Commit Graph
1441 Commits
Author SHA1 Message Date
Guogang Li 465a82dc1e Avoid task execution to crash thread pool
PiperOrigin-RevId: 517980691
2023-03-20 08:53:03 -07:00
Guogang Li 12156937ee Check device name before calling update callback
PiperOrigin-RevId: 517851883
2023-03-19 20:26:56 -07:00
Guogang Li 44e6ff7bb1 Avoid task execution to crash thread pool
PiperOrigin-RevId: 517558076
2023-03-17 18:58:28 -07:00
Guogang Li 700d5c9dcc Fixed crash bug in BluetoothAdapter
PiperOrigin-RevId: 517556635
2023-03-17 18:44:51 -07:00
Anay Wadhera 69d2098ecb Weave port [1/n]: Introduce Weave packet implementation
PiperOrigin-RevId: 517526002
2023-03-17 15:44:09 -07:00
Janusz Sobczak 8f887064ec Fix dead-lock during executor shutdown
The flow below caused a dead-lock:
1. A lengthy task A is running on an executor.
2. Executor is destructed, or `Shutdown()` on another thread. The call blocks
   waiting for A to complete.
3. Task A executes another task B on the executor. The call blocks forever.

PiperOrigin-RevId: 517495348
2023-03-17 13:34:57 -07:00
Nick Bourdakos 076da722b1 Move CONTRIBUTING.md and CODE_OF_CONDUCT.md to the repo root and delete the docs directory
PiperOrigin-RevId: 517480463
2023-03-17 12:37:22 -07:00
Qin Wang 86ca85b85a Migrate fake functions to third_party/nearby to help unit test
PiperOrigin-RevId: 517433481
2023-03-17 09:34:58 -07:00
Edwin Wu 94ff506d1e Fixes HelloConnections that can't discover Pixel device from iPhone for Ble_v2 medium.
PiperOrigin-RevId: 517318035
2023-03-16 22:25:21 -07:00
hai007 debe65ce54 Tidy up for cl/516905639
PiperOrigin-RevId: 517279013
2023-03-16 18:08:41 -07:00
Guogang Li 335c07624e Fixed the issue to encode BLE V2 advertisement header
PiperOrigin-RevId: 517267592
2023-03-16 17:06:02 -07:00
Janusz Sobczak 2096795496 Use ExceptionOr::result()
ExceptionOr::result() returns a reference, unlike GetResult(), which returns a
copy of the value.
PiperOrigin-RevId: 517238836
2023-03-16 15:09:05 -07:00
Nick Bourdakos 2e8d6efdb8 Update build dependencies to fix broken macOS Dart build
PiperOrigin-RevId: 517235243
2023-03-16 14:55:17 -07:00
Guogang Li f7e6deb8ab internal cleanup
PiperOrigin-RevId: 517211099
2023-03-16 13:27:26 -07:00
hai007 3f61031345 1. Supports payload received ack sync for sender
2. Supports safe-to-disconnect check (no auto reconnect or auto resume transfer yet)

PiperOrigin-RevId: 517191691
2023-03-16 12:17:04 -07:00
hai007 fbee16103b Supports Multiplex transmission for Bluetooth to allow multiple clients reuse the existed connection. See go/nc_multiplex for more details.
PiperOrigin-RevId: 517039657
2023-03-16 00:11:27 -07:00
hai007 86d33f749a Supports Multiplex transmission for Bluetooth to allow multiple clients reuse the existed connection. See go/nc_multiplex for more details.
PiperOrigin-RevId: 517028681
2023-03-15 22:54:56 -07:00
Janusz Sobczak 02ffb5d45e Add Message Stream
Define MessageStream class for exchanging messages betweek the seeker and the
provider over rfcomm.

PiperOrigin-RevId: 516986541
2023-03-15 18:42:39 -07:00
Janusz Sobczak a70826dbf8 Add a timeout to Future
Future has a `Get(Duration)` method which allows us to wait synchronously until
a timeout.
Adding a timeout to the constructor allows the Future to time out
asynchronously.

PiperOrigin-RevId: 516982717
2023-03-15 18:18:54 -07:00
Qin Wang c2d8d44767 Migrate Clock to third_party/nearby
PiperOrigin-RevId: 516972534
2023-03-15 17:24:11 -07:00
Qin Wang 52d41aa671 Maintain on_characteristic_changed_cb in GattCharacteristicData struct
PiperOrigin-RevId: 516972294
2023-03-15 17:19:39 -07:00
hai007 ae3a4ca0b5 Create fake notification controller observer for further testing in presenter and ui_broker.
PiperOrigin-RevId: 516907638
2023-03-15 13:07:26 -07:00
hai007 4e5f5ed341 Refactor WinRT socket to Win32 socket for Hotspot Server Socket for lower latency
PiperOrigin-RevId: 516905639
2023-03-15 13:00:02 -07:00
Qin Wang 178bfc2897 Enbale ble to connect to Gatt srver
PiperOrigin-RevId: 516896186
2023-03-15 12:22:44 -07:00
Guogang Li fd5430764f Created NearbyFlags to avoid create multiple classes
PiperOrigin-RevId: 516885843
2023-03-15 11:44:25 -07:00
Guogang Li acf0f09a3f Hooked up experiment for Nearby Connections
PiperOrigin-RevId: 516694135
2023-03-14 19:15:54 -07:00
Guogang Li e539d021a3 Added flag for BLE v2 in nearby connections
PiperOrigin-RevId: 516585139
2023-03-14 11:35:49 -07:00
Nick Bourdakos ecac59ef2b Remove py_proto_library
PiperOrigin-RevId: 516548569
2023-03-14 09:36:35 -07:00
Suet-Fei Li 108e7eeae2 Fix LICENSE file.
PiperOrigin-RevId: 516440654
2023-03-14 00:11:18 -07:00
John Carroll 999a5e4681 Drop windows/json and use google3/third_party/json instead. Update the LICENSE file.
PiperOrigin-RevId: 516383763
2023-03-13 18:44:42 -07:00
hai007 9c3b5fb377 Add Python support to connections_enums.proto.
PiperOrigin-RevId: 515649214
2023-03-10 08:57:23 -08:00
hai007 e866ef6061 [Analytics] logging for default opt in.
PiperOrigin-RevId: 515561927
2023-03-10 00:57:39 -08:00
Qin Wang 1e4497d59c Add Write Type enum to specify what type of GATT write should be performed
PiperOrigin-RevId: 515487102
2023-03-09 17:28:09 -08:00
Guogang Li 988847e2d6 internal change
PiperOrigin-RevId: 515350366
2023-03-09 09:01:58 -08:00
hai007 e5efc0a09a Add all options to GNCAdvertisingOptions, GNCDiscoveryOptions, and GNCConnectionOptions.
PiperOrigin-RevId: 515153199
2023-03-08 15:08:30 -08:00
Anay Wadhera 4375f988d7 Remove irrelevant timeout fields from discovery_options
PiperOrigin-RevId: 515106695
2023-03-08 12:17:43 -08:00
Qin Wang 53d4f55e70 Immediate convert ByteArray to string to avoid using ByteArray in Fast Pair internal code
PiperOrigin-RevId: 514833850
2023-03-07 14:06:33 -08:00
Qin Wang 7e1ca7d458 Print out GattCommunicationStatus to help with debugging
PiperOrigin-RevId: 514809824
2023-03-07 12:38:25 -08:00
Qin Wang 0c078b3528 Convet ByteArray to std::string in ble_gatt_client
PiperOrigin-RevId: 514786088
2023-03-07 11:10:34 -08:00
Guogang Li ead3df1ff8 Added flag reader interface
PiperOrigin-RevId: 514551069
2023-03-06 15:55:10 -08:00
Qin Wang f1ad8f4b9a Remove ble_gatt_client from third_party/nearby/fastpair
PiperOrigin-RevId: 514469603
2023-03-06 11:24:58 -08:00
Qin Wang ba8d60b8a9 Implement subscription for a GATT characteristic value changed
PiperOrigin-RevId: 513960871
2023-03-06 07:08:08 -08:00
Hai Shang 29a52b7bf1 ble_v2 internal clean up
PiperOrigin-RevId: 513933519
2023-03-06 07:06:57 -08:00
Guogang Li 4f7b61ad79 Added flag to control whether enable base64 in BLE advertisement header
PiperOrigin-RevId: 513924031
2023-03-06 07:03:30 -08:00
Qin Wang 2eff1c383c Change TaskRunner to be unique_ptr
PiperOrigin-RevId: 513858401
2023-03-03 10:15:30 -08:00
John Carroll 4b1423d94e Adding Gatt Server tests.
PiperOrigin-RevId: 513823778
2023-03-03 07:38:56 -08:00
Guogang Li 21e8a0200c Added advertising and scanning for BLE v2
PiperOrigin-RevId: 513652877
2023-03-02 15:17:25 -08:00
Guogang Li 5c9166c02d Check BLE extended feature before use it
PiperOrigin-RevId: 513637981
2023-03-02 14:20:03 -08:00
hai007 9542a4812d Renamed to "wrapper" and move fastpair windows adapter-related code into dart folder to followed the nearby structure change from platform based clients to language based in third_party.
PiperOrigin-RevId: 513635793
2023-03-02 14:12:32 -08:00
Anay Wadhera b0e5b059d9 Internal upgrade
PiperOrigin-RevId: 513590478
2023-03-02 11:20:57 -08:00