Commit Graph
323 Commits
Author SHA1 Message Date
Eiden Kim 35a8289ef4 Block any BWU frames before the NC connection accepted by both side
PiperOrigin-RevId: 625459811
2024-04-16 14:49:14 -07:00
Eiden Kim b40a0d9046 Add a flag to nearby_connections_feature_flags.h manually
PiperOrigin-RevId: 625010913
2024-04-15 10:46:28 -07:00
Daniel Classon 05dac6b184 [Nearby Connections] Rename async scanning flag
Renames the enable_ble_v2_async_scanning_advertising flag to just
enable_ble_v2_async_scanning, reflecting that scanning/advertising
can be enabled independently. Work required to add async
advertising is tracked in b/333408829.

PiperOrigin-RevId: 624254277
2024-04-12 12:15:21 -07:00
hai007 1e1d841965 Multiplex implementation - Create Virtual Output Stream
PiperOrigin-RevId: 623540454
2024-04-10 10:44:50 -07:00
Hai Shang 8f51d92f22 internal fix
PiperOrigin-RevId: 622893779
2024-04-08 10:49:27 -07:00
Hai Shang d2c8fc3cd5 Internal fix
PiperOrigin-RevId: 622865759
2024-04-08 09:18:16 -07:00
hai007 2a56254756 Automated Code Change
PiperOrigin-RevId: 621908243
2024-04-04 10:52:30 -07:00
Hai Shang ca936891c8 Add start/stop legacyDeviceAdvertising in connections ble v2
PiperOrigin-RevId: 621303221
2024-04-02 14:52:36 -07:00
hai007 ce7fc7ef69 Automated Code Change
PiperOrigin-RevId: 621128773
2024-04-02 04:21:56 -07:00
Hai Shang 6162fb5f80 add legacy_device_discovered_cb to DiscoveredPeripheralCallback
PiperOrigin-RevId: 619702145
2024-03-27 17:45:37 -07:00
hai007 a633a940f4 Multiplex implementation - Frame generation
PiperOrigin-RevId: 616247739
2024-03-15 14:45:01 -07:00
Francis Tsui a082f36021 Switch glog to absl::log.
PiperOrigin-RevId: 615535748
2024-03-13 14:03:23 -07:00
hai007 87def076a5 Internal change
PiperOrigin-RevId: 613818883
2024-03-08 14:40:41 -08:00
Hai Shang c2495b275a Internal cleanup
PiperOrigin-RevId: 613362254
2024-03-06 15:35:09 -08:00
Juliet Levesque ecb9de0cbc [Nearby Presence] Add authentication status to InitialConnectionInfo
Adds authentication status to `InitialConnectionInfo`, 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 is used to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 613278476
2024-03-06 11:10:38 -08:00
Copybara-Service ee404cb766 Merge pull request #2307 from ChenWangG:patch-1
PiperOrigin-RevId: 612604370
2024-03-04 15:42:43 -08: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
Juliet Levesque 5f616fa592 [Nearby Presence] Pass remote device and EndpointManager throughout connection flow
In order to construct the `ConnectionsAuthenticationTransport` and authentication the connection with the `DeviceProvider`, the remote NearbyDevice and EndpointManager used in RequestConnectionV3() must be passed through the encryption protocol as parameters. This CL accomplishes this; it passes the remote NearbyDevice and EndpointManager through a successful encryption flow by introducting new functions to support this V3 protocol. They will be used in a follow up CL to authenticate the connection. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 610810602
2024-02-27 11:05:52 -08:00
Suet-Fei Li fa2bcbe579 Internal Refactor.
PiperOrigin-RevId: 610806721
2024-02-27 10:56:35 -08:00
Suet-Fei Li 84062c8a3b Internal Refactor.
PiperOrigin-RevId: 609768025
2024-02-23 10:29:22 -08:00
Daniel Classon f09368247b [Nearby Connections] Use async StartScanning when flag enabled
Creates the feature flag `enable_ble_v2_async_scanning_advertising` which
enables/disables the use of the async StartScanning, StopScanning,
StartAdvertising, StopAdvertising, etc methods over the soon-to-be deprecated
synchronous versions of those methods. Opted for feature flag over NearbyFlag,
as ChromeOS is the only current consumer and doesn't use Mendel.

Also sets the feature flag to enabled in the ServiceControllerRouter, which
is where ChromeOS sets NC feature flags at startup.

This CL also fully links up the asynchronous Scanning methods. Advertising
will be addressed in a follow up CL.

PiperOrigin-RevId: 608158273
2024-02-18 12:59:02 -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
Anay Wadhera 80c0d0916e Introduce basic handling for on lost advertisements.
PiperOrigin-RevId: 602910198
2024-01-30 19:33:35 -08:00
Anay Wadhera d1a6913017 Don't check IsDiscovering() when going to rotate endpoint ID
PiperOrigin-RevId: 601489921
2024-01-25 10:30:23 -08:00
hai007 f112d9ff71 Change code to follow payload ack send/receive frame format change.
PiperOrigin-RevId: 601486151
2024-01-25 10:17:23 -08:00
hai007 2fc575b593 [NC] Add ServiceControllerRouter constructor for EnableBleV2
Adds a new constructor for the ServiceControllerRouter which overrides
the value of the EnableBleV2 flag in Nearby Connections.

PiperOrigin-RevId: 601236068
2024-01-24 14:32:00 -08:00
hai007 2149b842f8 Allow client to use flags
PiperOrigin-RevId: 599243081
2024-01-17 11:50:06 -08:00
Francis Tsui c2ade33c9c No public changes.
PiperOrigin-RevId: 597033150
2024-01-09 13:46:42 -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
Hai Shang 78609d17a1 Internal fix
PiperOrigin-RevId: 592955244
2023-12-21 14:51:55 -08:00
hai007 16cb7f70b3 Implement Auto-reconnect after disconnection [1]
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Anay Wadhera 7022e6c5d9 Create instant on loss advertisement format
PiperOrigin-RevId: 590680562
2023-12-13 12:33:12 -08:00
Guogang Li ceded2da84 Added more logs on bandwidth upgrade
PiperOrigin-RevId: 590229747
2023-12-12 09:22:45 -08:00
Hai Shang dde1588871 internal fix
PiperOrigin-RevId: 589025655
2023-12-07 23:21:12 -08:00
hai007 b675986871 create a new PacketType "PAYLOAD_ACK" to replace ControlMessage.EventType "PAYLOAD_RECEIVED_ACK"
PiperOrigin-RevId: 588287541
2023-12-05 21:47:49 -08:00
hai007 6ebe52a418 Add Intel PIE based API to set Hotspot client scan channel
PiperOrigin-RevId: 586019580
2023-11-28 10:09:16 -08:00
Hai Shang 6ee53db8f5 Internal fix on p2p_cluster_pcp_handler
PiperOrigin-RevId: 584669043
2023-11-22 10:44:38 -08:00
Hai Shang 8987ddd461 Add more logs for bwu_manager
PiperOrigin-RevId: 584429491
2023-11-21 14:27:18 -08:00
Guogang Li 60735e8e2e Fixed the logic issue to handle discovered endpoint
PiperOrigin-RevId: 573350212
2023-10-13 16:51:36 -07:00
Anay Wadhera b0ab83535f silly season
PiperOrigin-RevId: 572781177
2023-10-11 22:08:37 -07:00
hai007 1d7751f581 fix auto-resume logging issue
PiperOrigin-RevId: 571981185
2023-10-12 04:48:08 +00:00
Janusz Sobczak 56acecdffa Migrate to AnyInvocable in DiscoveryListener
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
hai007 dfd3de80cf Set a separate shorter timeout (10s) for REMOTE_DISCONNECTION
PiperOrigin-RevId: 570795839
2023-10-04 13:51:54 -07:00
hai007 d477a2d174 Apply GO frequency to NC that queries from Intel PIE SDK
PiperOrigin-RevId: 569558266
2023-09-29 12:25:01 -07:00
Janusz Sobczak 746a8b6231 Use AnyInvocable in mediums/ble_v2
PiperOrigin-RevId: 566437160
2023-09-18 15:56:54 -07:00
Janusz Sobczak 48eeee8d2b Migrate to AnyInvocable in webrtc medium
PiperOrigin-RevId: 565805742
2023-09-15 16:26:09 -07: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
Janusz Sobczak 52c3360bd3 Use AnyInvocable in DiscoveredPeripheralCallback
PiperOrigin-RevId: 564523999
2023-09-11 15:48:25 -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