Commit Graph
1050 Commits
Author SHA1 Message Date
Pu Shi ab80dbc2a3 [Nearby Connections] Extend timeout waiting for StopAllEndpoints to finish.
PiperOrigin-RevId: 479608809
2022-10-07 10:04:54 -07:00
John Carroll a3f5d108f5 Added a feature flag to control whether we are allowed to set the bluetooth adapter state or not on windows.
PiperOrigin-RevId: 479589889
2022-10-07 08:49:24 -07:00
hai007 d4392b4506 [Sharing][Copy&Paste] Combine uploadContacts and uploadCertificates to reduce server traffic.
PiperOrigin-RevId: 479466240
2022-10-06 18:52:28 -07:00
hai007 ff5f4d8ccc Use strongified advertiser inside block
Fixes unused-variable warning and a possible memory leak

PiperOrigin-RevId: 479430565
2022-10-06 15:43:30 -07:00
Hai Shang 57a8d8420c update presence client
PiperOrigin-RevId: 479424213
2022-10-06 15:17:26 -07:00
hai007 c82b0ba23e Add logging when a gRPC failed as the server UNAVAILABLE.
PiperOrigin-RevId: 479027905
2022-10-05 06:30:33 -07:00
hai007 8ef1a5f3a9 Fix Throughput Profiling Nightly Sanitizer Analysis test case error
PiperOrigin-RevId: 478878990
2022-10-04 14:08:31 -07:00
Hai Shang c4ad6de6f8 add scan function in presence BLE
PiperOrigin-RevId: 478666843
2022-10-03 19:35:23 -07:00
Guogang Li 2fff61b312 Separated BLE permission API into mediums manager
PiperOrigin-RevId: 478640491
2022-10-03 16:57:24 -07:00
Anthony Rueda 1443f3a135 Implement get public & private credentials.
PiperOrigin-RevId: 478522128
2022-10-03 09:18:19 -07:00
Eiden Kim 7350643c36 Update Prng usage so that it can generate random values on different threads.
PiperOrigin-RevId: 478025630
2022-09-30 10:31:27 -07:00
Hai Shang bf2d461cf6 Add unit tests for prng to verify it's not generating duplicating values
PiperOrigin-RevId: 478020355
2022-09-30 10:09:34 -07:00
John Carroll 646c3e5020 Move the increment rename tag (x) from before the first dot to before the last dot.
PiperOrigin-RevId: 477849732
2022-09-29 16:26:36 -07:00
hai007 8f681dece0 Throughput profiling
PiperOrigin-RevId: 477752265
2022-09-29 10:02:11 -07:00
Guogang Li a584dad4a9 Fixed the WiFi issue to handle service discovery
PiperOrigin-RevId: 477613253
2022-09-28 19:42:48 -07:00
hai007 ad93e1f47b Retry the Hotspot IP address query procedure
PiperOrigin-RevId: 477592843
2022-09-28 17:26:17 -07:00
hai007 f65e32ad32 Catch exceptions when retrieve Hotspot IP address
PiperOrigin-RevId: 477363744
2022-09-27 23:11:03 -07:00
hai007 f1a6cdc988 Fix link error by exporting DLL_API.
PiperOrigin-RevId: 477086755
2022-09-26 23:36:28 -07:00
Guogang Li d55d41e263 Fixed a crash in Bluetooth classic medium
PiperOrigin-RevId: 477027985
2022-09-26 17:12:12 -07:00
Guogang Li 086ad175a8 Fixed the issue to transfer file name in utf8
PiperOrigin-RevId: 476959117
2022-09-26 12:17:17 -07:00
hai007 1cf7978096 Internal change.
PiperOrigin-RevId: 476901929
2022-09-26 08:25:20 -07:00
Eiden Kim 028d2ae96a Fix to generate endpoint_id randomly.
PiperOrigin-RevId: 476421714
2022-09-23 11:37:47 -07:00
Anay Wadhera 3f2cfb1531 Implement BluetoothConnectionInfo
PiperOrigin-RevId: 476416765
2022-09-23 11:17:17 -07:00
Anay Wadhera 4b8575962a Explicitly create std::string from absl::string_view
Android does not support implicitly converting from absl::string_view to std::string.

PiperOrigin-RevId: 476415970
2022-09-23 11:13:47 -07:00
John Carroll 43da74bb7c Export InputStream class.
PiperOrigin-RevId: 476215485
2022-09-22 15:46:44 -07:00
Anthony Rueda fd59e9aede Consolidate credential_storage callback functions. Move all callback struct definitions in a central header file compiled as part of internal/platform/implementation:comm library.
PiperOrigin-RevId: 476186596
2022-09-22 13:46:47 -07:00
hai007 0e6e22b4db Fix typo in CONTRIBUTING.md.
PiperOrigin-RevId: 476131393
2022-09-22 10:12:51 -07:00
Janusz Sobczak f1f8680034 Fix debug build
PiperOrigin-RevId: 475955358
2022-09-21 16:44:15 -07:00
Guogang Li 2ca7d43f1a Fixed the BLE start/stop issues
PiperOrigin-RevId: 475915082
2022-09-21 13:53:37 -07:00
hai007 756501bf3f Update build file for tests.
PiperOrigin-RevId: 475473048
2022-09-19 23:28:02 -07:00
Guogang Li 9f9b3d26d1 Fixed the log issue for advertisement data
PiperOrigin-RevId: 474897767
2022-09-16 14:09:45 -07:00
Janusz Sobczak 69cb2310d0 Add DirectExecutor
PiperOrigin-RevId: 474671922
2022-09-15 15:32:11 -07:00
Anthony Rueda 69b86f1ad8 Removing unnecessary location::nearby::CredentialStorage class.
This class was only kept to satisfy MockClass requirements for cl/472776321.
The location::nearby::api::CredentialStorage class located under
platform/implementation/credential_storage.h contains virtual functions which
satisfy the same requirements. This CL will remove excess code.

PiperOrigin-RevId: 474643989
2022-09-15 13:33:43 -07:00
Hai Shang bbe77d8397 internal change
PiperOrigin-RevId: 474390888
2022-09-14 14:28:10 -07:00
John Carroll 0b57cd5c5f Fixed unit tests. Unit tests were failing locally, mostly just type mismatches, but there was an error in the GetDownloadPath for the test utilities.
PiperOrigin-RevId: 474358069
2022-09-14 12:17:35 -07:00
hai007 6b5251f8d2 Don't add WIFI_LAN device if it's device info is incomplete or has error
PiperOrigin-RevId: 474162548
2022-09-13 17:16:53 -07:00
Anthony Rueda 41de6e4450 Remove nested callback function logic from CredentialStorage g3 implementation. Change instances of passing callback by value to moving callback.
PiperOrigin-RevId: 474157705
2022-09-13 16:52:19 -07:00
John Carroll fa062b70c9 The order of includes was messed up in bluetooth_adapter.cc
PiperOrigin-RevId: 473854940
2022-09-12 15:07:54 -07:00
Janusz Sobczak 5871209f44 Convert from public to internal broadcast request
Add conversion from public BroadcastRequest to internal BLE 4.2 broadcast request.

PiperOrigin-RevId: 473338534
2022-09-09 14:09:09 -07:00
Janusz Sobczak 560253baa9 Clean up build file
Each source file should be compiled into just one target.

PiperOrigin-RevId: 473084337
2022-09-08 14:26:10 -07:00
Anay Wadhera aaea08204d Introduce Device Provider interface
PiperOrigin-RevId: 472964206
2022-09-08 05:41:40 -07:00
Guogang Li 397964b5da Fixed the crash after sending a file from windows device
PiperOrigin-RevId: 472782884
2022-09-07 12:15:32 -07:00
Xin He 4f599a0d3e Save generated credentials and make the callback
PiperOrigin-RevId: 472776321
2022-09-07 11:50:30 -07:00
John Carroll 55c4714b99 Cleanup the code. Change inputs on ImplementationPlatform::GetDownloadPath from std::string& to absl::string_view.
PiperOrigin-RevId: 472770249
2022-09-07 11:22:24 -07:00
Anay Wadhera 92bf3356ee Reshuffle device.h to internal as both Connections and Presence will be utilizing it.
PiperOrigin-RevId: 472745171
2022-09-07 09:35:12 -07:00
hai007 d10a04df5f Updated the third_party/nearby/proto/connections_enums.proto file and created a cl to address the Presubmit:CheckPresubmitService:Copybara error
PiperOrigin-RevId: 472649958
2022-09-07 00:12:06 -07:00
Hai Shang da54ba3422 Add async operations to ble_v2
PiperOrigin-RevId: 472611661
2022-09-06 19:08:22 -07:00
Guogang Li 851f5ec0dd Fixed the crash when connecting a remote target from Win to Phone
PiperOrigin-RevId: 472502070
2022-09-06 10:50:21 -07:00
hai007 525283a166 Add LOG_SEVERITY_VERBOSE definition to enable VERBOSE log mode.
PiperOrigin-RevId: 471023073
2022-08-30 10:10:31 -07:00
Janusz Sobczak d7889420c4 Add tests for Future::AddListener
PiperOrigin-RevId: 470814362
2022-08-29 14:25:33 -07:00