Commit Graph
446 Commits
Author SHA1 Message Date
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
Nick Bourdakos ca500a8d98 PR #2393: Add missing license headers to Swift files
Imported from GitHub PR https://github.com/google/nearby/pull/2393

Copybara import of the project:

--
9f5918dd18b0cb825d2f671d18eb15a119a7e6d1 by Nick Bourdakos <bourdakos1@gmail.com>:

Add missing license headers to Swift files

Merging this change closes #2393

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/nearby/pull/2393 from bourdakos1:add-swift-license 9f5918dd18b0cb825d2f671d18eb15a119a7e6d1
PiperOrigin-RevId: 621062126
2024-04-01 23:03:32 -07:00
Nick Bourdakos 5e53ac62d5 Update formatting of connections mediums support tables 2024-03-27 23:02:20 -04:00
Hai Shang 6162fb5f80 add legacy_device_discovered_cb to DiscoveredPeripheralCallback
PiperOrigin-RevId: 619702145
2024-03-27 17:45:37 -07:00
Will Harmon 4123a74c0e Add table for GitHub about which mediums are supported
PiperOrigin-RevId: 619668129
2024-03-27 17:44:57 -07:00
Guogang Li 387a51b260 internal update
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Edwin Wu 76da129ce5 Fix PayloadType enumeration value in c++ code, and minor update JNI java counterpart.
PiperOrigin-RevId: 618877462
2024-03-25 10:05:52 -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
Nick Bourdakos 32fc3f7c10 Fix spelling of Wi-Fi
PiperOrigin-RevId: 611532710
2024-02-29 11:11:55 -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 e7a433f41e [Nearby Presence] Add authentication status to ConnectionResponseInfo
Adds authentication status to `ConnectionResponseInfo`, 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: 607457933
2024-02-15 14:34:37 -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
Guogang Li c477809ed0 Clean up unused files
PiperOrigin-RevId: 605360366
2024-02-08 10:36:20 -08:00
Guogang Li 7b8436c289 Update C wrapper to support multiple instances
PiperOrigin-RevId: 605002988
2024-02-07 09:10:55 -08:00
Guogang Li 929a41b7f5 Fixed HC broken on MacOS
PiperOrigin-RevId: 603105834
2024-01-31 11:17:25 -08:00
Anay Wadhera 80c0d0916e Introduce basic handling for on lost advertisements.
PiperOrigin-RevId: 602910198
2024-01-30 19:33:35 -08:00
Guogang Li 9be93ae23d Optimized the API implementation of adapter
PiperOrigin-RevId: 602404458
2024-01-29 09:05:41 -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
Guogang Li 809c36139f Added the dart wrapper for new C wrapper
PiperOrigin-RevId: 601272383
2024-01-24 16:44:32 -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
Guogang Li 6f58a4d111 Implemented a C wrapper for Nearby Connections.
PiperOrigin-RevId: 601133946
2024-01-24 08:50:30 -08:00
Nick Bourdakos 5fb7f69830 Expose NearbyFlags through Objective-C package so BLE v2 can more easily be enabled in the Swift SDK
PiperOrigin-RevId: 600790011
2024-01-23 08:04:03 -08:00
hai007 2149b842f8 Allow client to use flags
PiperOrigin-RevId: 599243081
2024-01-17 11:50:06 -08:00
Nick Bourdakos 4bdb5000ee Fix broken link
PiperOrigin-RevId: 597606304
2024-01-11 11:16:37 -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
Guogang Li 850c3e2788 Fixed the bug of passing connection request info
PiperOrigin-RevId: 592248269
2023-12-19 08:46:17 -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 454d24e837 Allow ConnectionOptionsW::GetMediums to actually return the updated mediums_size value.
Currently, mediums_size is passed in by value, so updates to it have no effect outside the function.

PiperOrigin-RevId: 587942623
2023-12-04 22:21:22 -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