Commit Graph
2361 Commits
Author SHA1 Message Date
hai007 2c6926be17 Move IO_ENDPOINT_IO_ERROR_ON_XXX related result code to CONNECTIVITY_CHANNEL_IO_ERROR_ON_XXX, due to they are related to channel writing error.
PiperOrigin-RevId: 621498234
2024-04-03 06:06:05 -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 734014a841 Add build flag to switch between C++ and rust implemented parser
- Both implementations implement `AdvertisementDecoder` interface and provide the
   concrete implementation for AdvertisementDecoderImpl
 - cleanup missing includes as complained about by clang-tidy

PiperOrigin-RevId: 621187625
2024-04-02 08:43:31 -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
hai007 419fb08a8f Internal change
PiperOrigin-RevId: 621013420
2024-04-01 19:01:59 -07:00
Copybara-Service 32afb2e89c Merge pull request #2386 from bourdakos1:firebase-testing
PiperOrigin-RevId: 620725145
2024-03-31 19:26:56 -07:00
Nick Bourdakos aa0a1bdfb8 Update Package.swift 2024-03-31 21:36:38 -04:00
hai007 80570e55b0 Automated Code Change
PiperOrigin-RevId: 620702020
2024-03-31 16:16:32 -07:00
Francis Tsui 1e08b2d886 Fixed remaining filesystem calls that throws exceptions.
PiperOrigin-RevId: 620379472
2024-03-29 17:33:25 -07:00
hai007 c8168ba1de Implement Westworld logging of preconnect events
PiperOrigin-RevId: 620374739
2024-03-29 17:07:40 -07:00
Francis Tsui f1d3c2d740 Wrap std::filesystem calls.
PiperOrigin-RevId: 620315145
2024-03-29 12:42:04 -07:00
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