Commit Graph
2349 Commits
Author SHA1 Message Date
Francis Tsui ebe6d0dade Clean up PairedKeyVerificationRunner
PiperOrigin-RevId: 620111283
2024-03-28 18:04:48 -07:00
hai007 112da5e64a Refactor, remove scan_request dependency from AdvertisementDecoder
- Removes banned_data_types_, PUBLIC identity advertisements will never have
   any corresponding credentials anyways, so decryption will always be skipped
   and this is now guarenteed by asserts in UpdatePublicCredentials
 - Filtering adv based on identity is moved into advertisement Filter which
   already contains the requested identity info from scan_request
 - LegacyPresenceScanFilter is no longer used by AdvertisementDecoder since
   this is not being used anywhere at the moment
 - Cleanup miscellaneous clang-tidy lints about missing or unused includes

PiperOrigin-RevId: 620086399
2024-03-28 16:15:37 -07:00
Francis Tsui ffa8b67837 clean up paired key verification.
PiperOrigin-RevId: 620058646
2024-03-28 14:32:34 -07:00
Copybara-Service 6c6122a3d0 Merge pull request #2371 from bourdakos1:readme-update
PiperOrigin-RevId: 619948384
2024-03-28 08:58:14 -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
hai007 b224eb7bf8 Internal change
PiperOrigin-RevId: 619658526
2024-03-27 17:31:38 -07:00
Guogang Li 387a51b260 internal update
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Francis Tsui 40e4966ab5 Fix paired key verifiation error.
PiperOrigin-RevId: 619418705
2024-03-26 22:38:08 -07:00
hai007 5bc1c83472 Pure Refactor: move filtering logic into AdvertisementFilter class
- this decouples filtering logic from advertisement decoding logic
   in preparation for introducing a Rust backed impl of
   AdvertisementDecoder
 - this change is only a refactor and does not change functionality
   in any way

PiperOrigin-RevId: 618978564
2024-03-25 15:33:20 -07:00
Francis Tsui 0b711e91e9 Remove enable_self_share flag
PiperOrigin-RevId: 618932233
2024-03-25 12:58:40 -07:00
Francis Tsui ba52423e89 Cleanup ShareTargetInfo.
PiperOrigin-RevId: 618928076
2024-03-25 12:43:50 -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
Francis Tsui e5350b0e81 Change sharing service APIs to accept share target ID.
PiperOrigin-RevId: 617931356
2024-03-21 12:42:43 -07:00
Francis Tsui 9d4d229c1b Use cached ShareTarget for OnTransferUpdate callbak.
PiperOrigin-RevId: 617921208
2024-03-21 12:07:22 -07:00
hai007 30e0b25743 Fix the certificate pairing issue when the visibility is set to everyone
PiperOrigin-RevId: 617873950
2024-03-21 09:47:54 -07:00
hai007 ca0cb7dc91 Logs more detail result codes of p2p creating when hosting Wifi Direct
PiperOrigin-RevId: 617700352
2024-03-20 19:57:02 -07:00
Francis Tsui 6bd24c14a4 Clean up ShareTargetInfo.
PiperOrigin-RevId: 617397808
2024-03-19 22:23:40 -07:00
Suet-Fei Li ed61f4a143 Change std::get back to ansl::get because it is not supported in chromium.
PiperOrigin-RevId: 617252541
2024-03-19 12:10:05 -07:00
Francis Tsui a50ce3649f Minor cleanups.
PiperOrigin-RevId: 616940586
2024-03-18 14:05:16 -07:00
Francis Tsui 0c086a3c93 Minor fixes to reduce copying.
PiperOrigin-RevId: 616927443
2024-03-18 13:22:56 -07:00
Hai Shang 30c9c55d3b Initial Async version of StartAdvertising for windows.
PiperOrigin-RevId: 616915567
2024-03-18 12:43:12 -07:00
Francis Tsui af3f8e488e Switch to using share target id in sharing service.
PiperOrigin-RevId: 616293087
2024-03-15 18:05:32 -07:00
hai007 a633a940f4 Multiplex implementation - Frame generation
PiperOrigin-RevId: 616247739
2024-03-15 14:45:01 -07:00
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