Nick Bourdakos
3caae8d58d
Remove compatible_with from Bazel targets
...
PiperOrigin-RevId: 698102508
2024-11-19 12:19:39 -08:00
Nick Bourdakos
a08a42077c
PR #2404 : Add license header to all source files
...
Imported from GitHub PR https://github.com/google/nearby/pull/2404
Copybara import of the project:
--
a6fbb3c396321c0b9012b787323f5f2ff652fd8f by Nick Bourdakos <bourdakos1@gmail.com >:
Add license header to all source files
Merging this change closes #2404
PiperOrigin-RevId: 623540004
2024-04-10 10:40:38 -07:00
Janusz Sobczak
5393daf9f1
Merge logging and types build targets
...
Both "types" and "logging" build targets included "logging.h"
Merging them together avoids circular dependencies.
PiperOrigin-RevId: 555262816
2023-08-09 19:13:12 -07:00
Qin Wang
886ac8a2b9
Remove device from local repository when user forget a device
...
PiperOrigin-RevId: 553269983
2023-08-09 19:04:52 -07:00
Qin Wang
bccdf6543e
Checks if a device is already saved before writing accountkey
...
PiperOrigin-RevId: 551045458
2023-07-25 17:33:45 -07:00
Qin Wang
0cd8aaab25
Write account association to footprints
...
PiperOrigin-RevId: 549693215
2023-07-20 11:39:06 -07:00
Crisrael Lucero
0e44ed626d
Refactor crypto/ directory into crypto_cros/ and crypto/
...
PiperOrigin-RevId: 549467911
2023-07-19 17:12:52 -07:00
Qin Wang
99053e4df3
Implement scanner for fast pair subsequent pairing
...
PiperOrigin-RevId: 548841808
2023-07-17 17:20:01 -07:00
Qin Wang
ffdd25a194
Checks if a found device is associated with current account
...
PiperOrigin-RevId: 547549817
2023-07-12 11:18:34 -07:00
hai007
07384669f2
Fix use-after-scope in test
...
As-is FastPairDeviceRepository is destroyed before SingleThreadExecutor which
can run tasks depending on FastPairDeviceRepository.
This CL makes sure there is no users of FastPairDeviceRepository when
it's deleted.
PiperOrigin-RevId: 546977517
2023-07-10 14:04:53 -07:00
Qin Wang
5bab62fbb1
Get/Write/Delete account associated device from/to footprints
...
PiperOrigin-RevId: 546342820
2023-07-07 11:57:29 -07:00
Qin Wang
61820e49fb
BugFix //third_party/nearby/fastpair/scanning/fastpair:fast_pair_discoverable_scanner_impl_test
...
PiperOrigin-RevId: 546253578
2023-07-07 05:38:00 -07:00
Qin Wang
5bce94d8ee
Move fast_pair_repository to third_party/nearby/fastpair/repository and remove all deprecated files
...
PiperOrigin-RevId: 546057062
2023-07-06 12:10:57 -07:00
Janusz Sobczak
33abd7d879
Increase plugin life time
...
A plugin is created when it is first needed and destroyed when the FP device
is destroyed. This allows the plugins to keep state during long running
operations such as presenting a UI query.
PiperOrigin-RevId: 543502491
2023-06-26 11:58:56 -07:00
Janusz Sobczak
3cf20ee3bc
Store metadata in FastPairDevice
...
Add DeviceMetadata to FastPairDevice after downloading it.
It simplifies the code and prevents fetching the same metadata several times.
FastPairDataEncryptorImpl does not download the metadata anymore. Metadata
must have already been downloaded, otherwise we wouldn't know what FP protocol
to use.
PiperOrigin-RevId: 542490742
2023-06-22 01:48:56 -07:00
Chun Zhang
e101795cac
Add Fast Pair Switches.
...
PiperOrigin-RevId: 538605609
2023-06-07 15:17:00 -07:00
Janusz Sobczak
5bad45aed1
Use FastPairDeviceRepository in FastPairSevice
...
PiperOrigin-RevId: 535386036
2023-05-25 14:25:41 -07:00
Janusz Sobczak
c2fc33038c
Define FastPairDeviceRepository
...
Move onwership of Fast Par Devices to a single point, FastPairDeviceRepository,
which will live inside a singleton FastPairService.
PiperOrigin-RevId: 534547186
2023-05-23 13:54:05 -07:00
hai007
c9cb329cdd
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 526877413
2023-04-25 00:10:12 -07:00
Janusz Sobczak
0e9d578e42
Clean up fetcher test
...
PiperOrigin-RevId: 526757011
2023-04-24 14:35:11 -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
cbf50a3d49
Add more visibilities
...
PiperOrigin-RevId: 518647351
2023-03-22 12:51:23 -07: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
589829f947
Create a downloader class to trigger downloading and deal with the success and failure status.
...
PiperOrigin-RevId: 501961621
2023-01-13 16:12:52 -08:00
hai007
454d22b19a
Adding factory for creating FastPairMetadataRepository instances to increase the flexibility. The unit test for the FastPairMetadataRepositoryFactory will be involved when it is called.
...
PiperOrigin-RevId: 501682263
2023-01-12 15:28:42 -08:00
hai007
d347d0688b
Create an interface to make API requests which pass Client ID, Released mode and Model ID to Nearby Devices.
...
PiperOrigin-RevId: 500053224
2023-01-06 03:03:31 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
hai007
76a002f6e3
Migrate fastpair Unauth fetcher from location/nearby/cpp/fastpair/server_access to third_party/nearby/fastpair/repository
...
PiperOrigin-RevId: 498413189
2022-12-29 10:40:03 -08:00