Commit Graph
2324 Commits
Author SHA1 Message Date
Francis Tsui 1824098faa Internal changes only
PiperOrigin-RevId: 616229857
2024-03-15 13:39:48 -07:00
Francis Tsui 30f594cfba Update wire_format.proto
PiperOrigin-RevId: 616204206
2024-03-15 12:06:18 -07:00
Suet-Fei Li 989efcf2c5 Metadata to DeviceIdentityMetaData Migration
PiperOrigin-RevId: 616182462
2024-03-15 10:57:58 -07:00
Francis Tsui 33e682f244 Bypass GN check of absl/log include.
PiperOrigin-RevId: 615954726
2024-03-14 17:29:31 -07:00
Anthony Rueda 848ef00cc0 [Presence] Change new unused signature_version field to string type for easier debugging and to align with [nearby_resources.proto](https://source.corp.google.com/piper///depot/google3/google/internal/location/nearby/presence/v1/nearby_resources.proto;l=96)
PiperOrigin-RevId: 615921095
2024-03-14 15:24:13 -07:00
Copybara-Service 936b75b0e3 Merge pull request #2341 from ChenWangG:chenw-dataclass
PiperOrigin-RevId: 615907682
2024-03-14 14:38:12 -07:00
Francis Tsui c497fc902e Migrate project to bzlmod.
PiperOrigin-RevId: 615839861
2024-03-14 11:09:36 -07:00
Anay Wadhera 30e6f30775 Merge pull request #2337 from anayw2001/main
Update proto compile set and compile multiplex_frames
2024-03-14 13:54:49 -04:00
Anay Wadhera 353f828305 Update proto compile set and compile multiplex_frames 2024-03-14 17:46:09 +00:00
Chen Wang 0d021a4d8b Delete nearby/rust.
The directoy has been moved to nearby/presence/rust.
2024-03-14 01:02:25 +00:00
Francis Tsui a082f36021 Switch glog to absl::log.
PiperOrigin-RevId: 615535748
2024-03-13 14:03:23 -07:00
Francis Tsui 5859dd5513 Cleanup proto target.
PiperOrigin-RevId: 615530943
2024-03-13 13:47:22 -07:00
Guogang Li 61f71c6ce0 Added Nearby Context class
PiperOrigin-RevId: 615497408
2024-03-13 12:00:02 -07:00
Francis Tsui a733df384f Update protobuf version to fix build error.
PiperOrigin-RevId: 615488289
2024-03-13 11:32:31 -07:00
hai007 8a73a44146 Add analytics log for GATT database hash
Add new field in ProviderInfo message and write the data from provider GATT database characteristic

PiperOrigin-RevId: 615247090
2024-03-12 19:00:36 -07:00
Copybara-Service d72f71f103 Merge pull request #2333 from ChenWangG:main
PiperOrigin-RevId: 615241378
2024-03-12 18:30:02 -07:00
Chen Wang c74c86694d Create nearby/presence/rust directory
Create the rust directory for Presence Rust codes.
2024-03-12 17:41:15 -07:00
hai007 a667642709 [Sharing][Analytics] Add VendorId to EventMetadata.
PiperOrigin-RevId: 614500009
2024-03-10 18:33:52 -07:00
Francis Tsui 483c1997a7 Match Android behavior when creating signature for PairedKeyEncriptedFrame.
PiperOrigin-RevId: 614066423
2024-03-08 15:48:34 -08: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
hai007 965677199e Internal change
PiperOrigin-RevId: 613336063
2024-03-06 14:14:42 -08:00
hai007 6cf2fe5c1b Define protos for NearbyConnections Westworld logging
PiperOrigin-RevId: 613289168
2024-03-06 11:43:12 -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
hai007 cf2a1eb0b1 Internal change
PiperOrigin-RevId: 613133183
2024-03-06 10:21:45 -08:00
Francis Tsui 5fd4fc8ffa [Sharing][Analytics] Add VendorId to EventMetadata.
PiperOrigin-RevId: 612980580
2024-03-05 15:01:16 -08:00
hai007 e3d52a902d [Sharing][Analytics] Add VendorId to EventMetadata.
PiperOrigin-RevId: 612689201
2024-03-04 21:03:15 -08:00
Copybara-Service ee404cb766 Merge pull request #2307 from ChenWangG:patch-1
PiperOrigin-RevId: 612604370
2024-03-04 15:42:43 -08:00
ChenWangG 45662fce62 Create README 2024-02-29 16:30:35 -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
hai007 924247aa8f If the sender BT or Wifi connect failed, we should log the correct result code to clearcut
PiperOrigin-RevId: 610709164
2024-02-27 04:28:13 -08:00
Francis Tsui 87e9c806b2 Split transfer_metadata into separate build target.
PiperOrigin-RevId: 610597218
2024-02-26 19:14:59 -08:00
Suet-Fei Li 84062c8a3b Internal Refactor.
PiperOrigin-RevId: 609768025
2024-02-23 10:29:22 -08:00
Francis Tsui 2282fcb503 extend TextAttachment to allow setting text body.
PiperOrigin-RevId: 609547008
2024-02-22 17:04:26 -08:00
Francis Tsui d15f533721 Cleanup BUILD dependencies.
PiperOrigin-RevId: 609511614
2024-02-22 15:05:13 -08:00
Francis Tsui 3dcca3abfc Cleanup BUILD dependencies.
PiperOrigin-RevId: 609501622
2024-02-22 14:35:56 -08:00
Ryan Hansberry 8561d03a21 [Nearby] CredentialManager: Do not block on main thread.
PiperOrigin-RevId: 608743138
2024-02-20 14:37:12 -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
Crisrael Lucero 88064b1543 Remove usage of absl/log/check.h in PresenceDeviceProvider
PiperOrigin-RevId: 607460011
2024-02-15 14:40: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
Anay Wadhera 506aa270c5 Merge pull request #2281 from rzhw/update_depot_tools
nearby: Upgrade depot_tools
2024-02-15 13:00:33 -05:00
hai007 cb5016c3f3 1.Define OperationResult message, which contains result code category and resulc code
2.Add OperationResult message to ConnectionAttempt, EstablishedConnection and BandwidthUpgradeAttempt

PiperOrigin-RevId: 607231266
2024-02-14 23:57:20 -08:00
Juliet Levesque fb1f01717f [Nearby Presence] Add authentication status to ConnectionInfo
Adds authentication status to `ConnectionInfo`, 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: 606789503
2024-02-13 16:49:49 -08:00
Juliet Levesque caf34a717f [Nearby Presence] Read response data from remote device
see go/cros-nearby-presence-np-nc-authentication for details.

PiperOrigin-RevId: 606772097
2024-02-13 15:50:07 -08:00
Hai Shang f8c907a120 internal cleanup
PiperOrigin-RevId: 605780857
2024-02-09 18:13:40 -08:00
Guogang Li c477809ed0 Clean up unused files
PiperOrigin-RevId: 605360366
2024-02-08 10:36:20 -08:00