Commit Graph
93 Commits
Author SHA1 Message Date
Janusz Sobczak b5938c0d17 Add G3 gatt server
PiperOrigin-RevId: 531287485
2023-05-11 13:15:40 -07:00
Janusz Sobczak 0901aec6e2 Add BleMedium::GetRemotePeripheral
Added:
nearby::api::ble_v2::BlePeripheral::GetUniqueId()
nearby::api::ble_v2::BleMedium::GetRemotePeripheral(...)

Moved BlePeripheral implementation from bluetooth_adapter_* to ble_v2.*
Added G3 (test) implementation for the new methods.

PiperOrigin-RevId: 531023568
2023-05-10 15:40:38 -07:00
Qin Wang 69f4feaf55 Add g3 implementation for BluetoothPairing
PiperOrigin-RevId: 530965844
2023-05-10 11:47:00 -07:00
Qin Wang 115c286885 Use nearby/internal/platform/mutex instead of absl:mutex
PiperOrigin-RevId: 530727456
2023-05-09 15:20:41 -07:00
Qin Wang 10d3a624b3 Fix fast_pair_wrapper_impl_test
PiperOrigin-RevId: 529545346
2023-05-04 16:30:04 -07:00
Qin Wang 9c5664577e Fix fast_pair_handshake_lookup_test
PiperOrigin-RevId: 529465499
2023-05-04 11:27:56 -07:00
Guogang Li d510a8ce3c Added cancellable request to network library
PiperOrigin-RevId: 529197083
2023-05-03 15:37:17 -07:00
hai007 465aa7a489 Applied platform thread to network lib
PiperOrigin-RevId: 528521852
2023-05-01 11:13:36 -07:00
Qin Wang 9f6e7f6b84 Refactor Bluetooth Mediums
PiperOrigin-RevId: 528511969
2023-05-01 10:41:29 -07:00
Qin Wang 37000006c2 Fix callback scope issue
PiperOrigin-RevId: 527764249
2023-04-27 20:36:13 -07:00
Qin Wang a4be31137f Enable manually set log level for fast pair windows
PiperOrigin-RevId: 527343929
2023-04-26 12:37:45 -07:00
Qin Wang 5b602e3033 use std::optional instead of absl::optional
PiperOrigin-RevId: 527329165
2023-04-26 11:44:26 -07:00
Qin Wang 164a3d9b10 Maintain discovered device
PiperOrigin-RevId: 527321179
2023-04-26 11:18:56 -07:00
Qin Wang a826f2d627 Add Pair failure info for fast pair pairing
PiperOrigin-RevId: 527087848
2023-04-25 15:14:20 -07:00
hai007 c9cb329cdd Automated visibility attribute cleanup.
PiperOrigin-RevId: 526877413
2023-04-25 00:10:12 -07:00
Qin Wang cb48598cca Rewrite scanner_broker_impl_test
PiperOrigin-RevId: 526759429
2023-04-24 14:42:58 -07:00
Janusz Sobczak 0e9d578e42 Clean up fetcher test
PiperOrigin-RevId: 526757011
2023-04-24 14:35:11 -07:00
Qin Wang b68f5324ff Refactor FastPairHandshake to avoid locally store fast pair device
PiperOrigin-RevId: 526691078
2023-04-24 10:47:33 -07:00
hai007 c40e011267 Implement Fast Pair UI broker
PiperOrigin-RevId: 525184851
2023-04-18 10:28:33 -07:00
hai007 bf835451b2 Add Discovery action clicked callback.
PiperOrigin-RevId: 524968900
2023-04-17 15:43:06 -07:00
Qin Wang 74def10d7c Implement FastPairHandshakeLookup
PiperOrigin-RevId: 524915633
2023-04-17 12:19:18 -07:00
hai007 3da0891479 Automated visibility attribute cleanup.
PiperOrigin-RevId: 523821060
2023-04-12 15:26:27 -07:00
hai007 c940c63c3d Create fast_pair analytics recorder.
PiperOrigin-RevId: 523515641
2023-04-11 15:11:26 -07:00
Qin Wang 0a89c8a499 Add startscanning to fast pair mediator
PiperOrigin-RevId: 522114963
2023-04-05 11:55:15 -07:00
hai007 0705059e94 Create Fake Presenter and Factory of presenter for further testing in UI broker
PiperOrigin-RevId: 522111553
2023-04-05 11:42:32 -07:00
hai007 0575b3164b Revise unit test for fast pair notification controller and remove redundant fake observer.
PiperOrigin-RevId: 521882831
2023-04-04 15:33:34 -07:00
Qin Wang d01bbcc2cd Implement fast pair handshake
PiperOrigin-RevId: 521872662
2023-04-04 14:53:28 -07:00
Qin Wang c1835fcfa1 Implement FastPairGattServiceClient for fast pair windows
PiperOrigin-RevId: 521005152
2023-03-31 13:52:34 -07:00
Guogang Li be99b60feb Applied platform thread to network lib
PiperOrigin-RevId: 520998502
2023-03-31 13:23:32 -07:00
Guogang Li 8a66bff097 Made observer list thread safe
PiperOrigin-RevId: 520713657
2023-03-30 12:36:11 -07:00
Qin Wang 2c70aababf Add FastPairMediator
PiperOrigin-RevId: 520437860
2023-03-29 14:09:43 -07:00
Janusz Sobczak 94630e75ea Promote FpDevice to a class
PiperOrigin-RevId: 520430547
2023-03-29 13:51:11 -07:00
Qin Wang 564bca0a85 Refactor unit test for fast pair scanner and add mock_scanner_broker
PiperOrigin-RevId: 520386239
2023-03-29 11:06:04 -07:00
Qin Wang ec0944a61b Add GetFastPairVersion to DeviceMetadata
PiperOrigin-RevId: 520094589
2023-03-28 12:03:52 -07:00
hai007 e64dcb40c8 Implement Fast Pair presenter for creating and managing UI component with Notification Controller.
PiperOrigin-RevId: 519237240
2023-03-24 14:23:32 -07:00
Nick Bourdakos e21f736588 Internal change
PiperOrigin-RevId: 519180519
2023-03-24 11:05:33 -07:00
Qin Wang fd955d864f Add FakeFastPairDataEncryptor to help unit test FastPairHandshake
PiperOrigin-RevId: 518967535
2023-03-23 14:44:42 -07:00
Janusz Sobczak 4bd7da967a Add MessageStream fuzzing test
PiperOrigin-RevId: 518920458
2023-03-23 11:41:39 -07:00
Janusz Sobczak dbd31508fa Add medium fuzzing tests
PiperOrigin-RevId: 518722768
2023-03-22 18:08:09 -07:00
Janusz Sobczak 1a78b33a89 Add InputStream::ReadExactly
Read() can return fewer bytes than requested.
ReadExactly() will call Read() repeatedly until we
have read as many bytes as we need.

PiperOrigin-RevId: 518719418
2023-03-22 17:45:50 -07:00
Nick Bourdakos cbf50a3d49 Add more visibilities
PiperOrigin-RevId: 518647351
2023-03-22 12:51:23 -07:00
Janusz Sobczak b2da1efbbf Parse events from message stream.
Adds parsing for standard events, everything except audio switch.

PiperOrigin-RevId: 518425430
2023-03-21 17:23:42 -07:00
Nick Bourdakos 57dd89c34c Internal change
PiperOrigin-RevId: 518076706
2023-03-20 14:27:22 -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
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
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
Qin Wang 178bfc2897 Enbale ble to connect to Gatt srver
PiperOrigin-RevId: 516896186
2023-03-15 12:22:44 -07: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 f1ad8f4b9a Remove ble_gatt_client from third_party/nearby/fastpair
PiperOrigin-RevId: 514469603
2023-03-06 11:24:58 -08:00
Qin Wang 2eff1c383c Change TaskRunner to be unique_ptr
PiperOrigin-RevId: 513858401
2023-03-03 10:15:30 -08:00