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
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
Qin Wang
9f49719492
RefactorConstant
...
PiperOrigin-RevId: 513577039
2023-03-02 10:34:12 -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
Aaron Yu
fc1811f966
Set g3 bluetooth adapter to be enabled by default and remove Toggle()
...
PiperOrigin-RevId: 509962396
2023-02-15 16:25:43 -08:00
Qin Wang
d0750694ff
Replace absl::optional with std::optional
...
PiperOrigin-RevId: 509649962
2023-02-14 15:10:04 -08:00
Qin Wang
dcc4ed0249
Implement Fast Pair scanner broker
...
PiperOrigin-RevId: 509593803
2023-02-14 11:47:21 -08:00
Qin Wang
1d01973d17
Fix Metadata downloading callback issue
...
PiperOrigin-RevId: 508767628
2023-02-10 15:25:35 -08:00
Qin Wang
68739bab45
Fix flacky test: fastpair_controller_test
...
PiperOrigin-RevId: 508727920
2023-02-10 12:35:55 -08:00
Qin Wang
eaf46568a4
Implement FastPairDataEncryptor for Fast Pair Windows
...
PiperOrigin-RevId: 508492184
2023-02-09 15:30:44 -08:00
Qin Wang
5cb25a1a70
Implement Fast Pair discoverable scanner
...
PiperOrigin-RevId: 508484936
2023-02-09 15:01:54 -08:00
Qin Wang
21e12fe8aa
Add constructor and destructor for FakeFastPairReposity
...
PiperOrigin-RevId: 507873629
2023-02-07 13:44:53 -08:00
Qin Wang
778af635ec
compatible_with = ["//buildenv/target:non_prod"]
...
PiperOrigin-RevId: 507831985
2023-02-07 11:06:41 -08:00
Qin Wang
d1d7cfad56
Replace absl::optional with std::optional
...
PiperOrigin-RevId: 507563369
2023-02-06 13:14:25 -08:00
Qin Wang
c52f1a4000
Implement Fast Pair scanner
...
PiperOrigin-RevId: 506807562
2023-02-02 21:57:35 -08:00
hai007
c1ffccfacf
Create FakeFastPairRepository for test support
...
PiperOrigin-RevId: 506720516
2023-02-02 14:17:58 -08:00
hai007
72f0b1d323
Create Fast Pair repository to manage server access API.
...
PiperOrigin-RevId: 506162700
2023-01-31 17:32:21 -08:00
Qin Wang
295564bd3a
Implement Fast Pair Data Parser
...
PiperOrigin-RevId: 505800235
2023-01-30 14:35:10 -08:00
hai007
d1fe2bfe51
Create device metadata to store the server access response for further use.
...
PiperOrigin-RevId: 505217480
2023-01-27 15:02:08 -08:00
Qin Wang
a0692e6306
Migrate device_info from location/nearby to third_party/nearby
...
PiperOrigin-RevId: 504935151
2023-01-26 14:01:11 -08:00
hai007
54fec27c00
Adding the warning log to point out the os type is hardcoded to kWindows. To avoid future misunderstands when implement in different platform.
...
PiperOrigin-RevId: 504899629
2023-01-26 11:41:30 -08:00
hai007
6dc37d460f
Adding Anti Spoofing Key Pair into Device in proto.
...
PiperOrigin-RevId: 503214302
2023-01-19 11:12:17 -08:00
Qin Wang
afb76ee45c
Refactor Crypto Library
...
PiperOrigin-RevId: 502942033
2023-01-18 12:05:01 -08:00