Commit Graph
85 Commits
Author SHA1 Message Date
hai007 bbecf44a56 Refactor WifiLanBwuHandler test to improve test coverage.
PiperOrigin-RevId: 807379771
2025-09-15 14:17:54 -07:00
hai007 b56d18d577 Refactor WifiLanBwuHandler test to improve test coverage.
PiperOrigin-RevId: 806350972
2025-09-12 11:01:53 -07:00
hai007 579a01e26f Refactor implementation:pcp_handler_test to improve test coverage.
PiperOrigin-RevId: 804491033
2025-09-08 10:32:06 -07:00
hai007 ec3dc80d32 Refactor implementation:service_controller_test to improve test coverage.
PiperOrigin-RevId: 800744966
2025-08-28 22:12:33 -07:00
Francis Tsui 000e12da8e Migrate platform to use MacAddress class.
PiperOrigin-RevId: 800631540
2025-08-28 15:14:16 -07:00
hai007 40bf056e17 Add p2p_star_pcp_handler_test.cc to improve test coverage.
PiperOrigin-RevId: 799397593
2025-08-25 21:51:55 -07:00
Guogang Li 9d06831a9c Enforce out-of-band mode for InjectEndpoint and relax discovery checks for Bluetooth callbacks.
PiperOrigin-RevId: 798228332
2025-08-22 08:58:41 -07:00
hai007 09e11ee122 Fuzz testing Nearby Share C++ lib: EndpointManager
PiperOrigin-RevId: 791395382
2025-08-05 15:38:20 -07:00
hai007 a78e9e4138 Automated Code Change
PiperOrigin-RevId: 786383170
2025-07-23 12:34:42 -07:00
hai007 3895575f51 Automated Code Change
PiperOrigin-RevId: 775072056
2025-06-23 22:37:57 -07:00
Crisrael Lucero acaf963c40 Migrate usage of BluetoothUtils::ToString() to MacAddress
PiperOrigin-RevId: 762184790
2025-05-22 17:09:38 -07:00
Guogang Li 7ea0e00333 Add AWDL upgrade logic
PiperOrigin-RevId: 756335927
2025-05-08 09:08:52 -07:00
hai007 cc2c6c527b Implement AWDL in connection layer (part 2)
PiperOrigin-RevId: 744206141
2025-04-05 01:49:16 -07:00
Mingshiou Wu aefcc4a8b2 Add client-side connection APIs for ble l2cap
PiperOrigin-RevId: 741061740
2025-03-27 01:38:10 -07:00
Mingshiou Wu 04b2f9cfc6 Interface definition for Ble L2CAP Medium in Nearby Connections layer
PiperOrigin-RevId: 741054574
2025-03-27 01:04:16 -07:00
Guogang Li 3b0522c97a Add AWDL as a new Medium type in Nearby Connections
PiperOrigin-RevId: 738179116
2025-03-18 16:15:07 -07:00
Guogang Li 5eab533260 Simplify the dependency in mediums
PiperOrigin-RevId: 736346209
2025-03-12 19:27:47 -07:00
Francis Tsui d911c194c8 Reorganize build targets.
PiperOrigin-RevId: 733814491
2025-03-05 11:48:08 -08:00
Guogang Li 553f5dbf01 Add advertising logic for DCT
PiperOrigin-RevId: 733752366
2025-03-05 08:54:56 -08:00
Guogang Li 0ce08ab931 internal fix
PiperOrigin-RevId: 723992593
2025-02-06 10:43:23 -08:00
Guogang Li ed6562754b Enhance on keep alive
PiperOrigin-RevId: 719317678
2025-01-24 08:45:49 -08:00
Suet-Fei Li 951f3b194d add flag disable_wifi_hotspot_for_selected_devices and use it to disable wifi hotspot for HP Realtek devices.
PiperOrigin-RevId: 716405757
2025-01-16 15:45:13 -08:00
Francis Tsui c9fbf6b690 internal changes
PiperOrigin-RevId: 709164576
2024-12-23 15:28:50 -08:00
Guogang Li 13e2f1a23b Make the default packet size of transmission changeable
PiperOrigin-RevId: 702411852
2024-12-03 11:37:20 -08:00
Guogang Li 9aa2510055 Internal changes
PiperOrigin-RevId: 689614191
2024-10-24 20:11:07 -07:00
hai007 df6c4fadef Implement Auto-reconnect after disconnection [2]
PiperOrigin-RevId: 689040466
2024-10-23 11:30:32 -07:00
Guogang Li 6707efeed8 internal refactor
PiperOrigin-RevId: 676552917
2024-09-19 13:58:21 -07:00
Guogang Li ec0de73e8e internal medium fix
PiperOrigin-RevId: 666509363
2024-08-22 15:22:04 -07:00
Anay Wadhera 6a638f3042 Split core_internal_test into more manageable targets.
PiperOrigin-RevId: 659571860
2024-08-05 09:04:17 -07:00
Guogang Li 4f386b95db Added logic to stabilize endpoint IDs
PiperOrigin-RevId: 644407047
2024-06-18 09:11:51 -07:00
Guogang Li bf5f843dfe Added logic to stabilize endpoint IDs
PiperOrigin-RevId: 642774719
2024-06-12 16:23:34 -07:00
Guogang Li b2f8233294 Added logic to stabilize endpoint IDs
PiperOrigin-RevId: 642624940
2024-06-12 08:36:57 -07:00
hai007 7c72774167 Multiplex implementation - Create Multiplex Socket
PiperOrigin-RevId: 632628955
2024-05-10 16:11:26 -07:00
Francis Tsui 012b9b0569 Cleanup EventLogger interface.
PiperOrigin-RevId: 625797877
2024-04-17 13:59:30 -07:00
hai007 ce7fc7ef69 Automated Code Change
PiperOrigin-RevId: 621128773
2024-04-02 04:21:56 -07:00
Juliet Levesque f235957345 [Nearby Presence] Authenticate the connection using the DeviceProvider
Once the encryption protocol has been completed successfully, authentication the connection using the registered DeviceProvider from the ClientProxy. For the Nearby Presence MVP, this will be the PresenceDeviceProvider and will only support outgoing connections, which is why the responder role is not used. The result (success or failure) is passed back to callers via the EndpointManager. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 611255632
2024-02-28 15:51:37 -08:00
Suet-Fei Li 84062c8a3b Internal Refactor.
PiperOrigin-RevId: 609768025
2024-02-23 10:29:22 -08:00
Juliet Levesque d497c2e97c [Nearby Presence] Add authentication status to PendingConnectionInfo
Adds authentication status to `PendingConnectionInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 607402836
2024-02-15 11:39:55 -08:00
Francis Tsui 1072030be8 Copy sharing/internal, sharing/common and sharing/scheduling to github.
- Move Abseil pin to same as that used in Chromium.
- Disabled layering_check due to build failure in absl.

PiperOrigin-RevId: 596631921
2024-01-08 10:20:37 -08:00
hai007 6ae46a9496 Add visibilities
PiperOrigin-RevId: 596118852
2024-01-05 17:26:39 -08:00
hai007 16cb7f70b3 Implement Auto-reconnect after disconnection [1]
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Juliet Levesque 8be118a3d0 [Nearby Connections] Plumb remote device information much deeper into the stack
This will be needed for the authentication transport as the verifier will need the information about the remote device. This CL is based on logic from
awadhera@ in cl/539175992 with additional unit test coverage.

PiperOrigin-RevId: 565037849
2023-09-13 06:59:50 -07:00
Nick Bourdakos 981ad214cd Add BLEv2 as an option for point-to-point and star strategies (currently this is only supported by cluster)
PiperOrigin-RevId: 563202701
2023-09-06 13:40:29 -07:00
hai007 55aedfb235 Implement Safe to Disconnect feature
PiperOrigin-RevId: 560119556
2023-08-25 09:51:44 -07:00
Janusz Sobczak 55194622a7 Migrate to AnyInvocable
PiperOrigin-RevId: 557660146
2023-08-16 18:13:11 -07:00
Janusz Sobczak 2c55c0cdbd Refactor Pipe implementation
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages

PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
Janusz Sobczak 5393daf9f1 Merge logging and types build targets
Both "types" and "logging" build targets included "logging.h"
Merging them together avoids circular dependencies.

PiperOrigin-RevId: 555262816
2023-08-09 19:13:12 -07:00
Janusz Sobczak ae69b8ff4e Protect PendingPayload from use-after-free errors.
Protects against race conditions where a PendingPayload is destroyed when
another thread is still accessing it.

PiperOrigin-RevId: 550990038
2023-07-25 14:04:11 -07:00
Guogang Li 4a71c4d2d0 Move NS implementation to third party folder
PiperOrigin-RevId: 546966492
2023-07-10 13:39:42 -07:00
Anay Wadhera 5da4b33824 Revert "Revert incoming connections listener changes for internal breakages."
PiperOrigin-RevId: 542381558
2023-06-21 15:36:44 -07:00