Commit Graph
1432 Commits
Author SHA1 Message Date
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
Qin Wang 9f49719492 RefactorConstant
PiperOrigin-RevId: 513577039
2023-03-02 10:34:12 -08:00
Edwin Wu 517ff0f52e [Nearby Connections] Add control packet in BlePacket
PiperOrigin-RevId: 513573452
2023-03-02 10:21:07 -08:00
hai007 d2965024ca Move app data from %PROGRAMDATA% to %LOCALAPPDATA%
PiperOrigin-RevId: 513355549
2023-03-01 15:22:23 -08:00
Qin Wang 4727861f5d Refactor GattCharactristic to support bitwise combination of Permission and Property
PiperOrigin-RevId: 513339751
2023-03-01 14:21:04 -08:00
Janusz Sobczak bb0ccf9156 Verify LDT with test data from android tests
PiperOrigin-RevId: 513093397
2023-02-28 18:12:03 -08:00
hai007 37adaf83c7 Implement Fast Pair notification controller.
PiperOrigin-RevId: 513067597
2023-02-28 16:15:29 -08:00
Qin Wang f9dec58aff Add PairFailure to track errors for fast pair pairing
PiperOrigin-RevId: 513053149
2023-02-28 15:18:36 -08:00
Guogang Li d750e54bc8 Added dummy implementation for BLE sockets
PiperOrigin-RevId: 512797910
2023-02-27 19:29:58 -08:00
Guogang Li 843a4c1a35 Added initial BLE GATT server implementation for BLE v2 support
PiperOrigin-RevId: 512666999
2023-02-27 10:35:02 -08:00