Commit Graph
41 Commits
Author SHA1 Message Date
Janusz Sobczak 408900e702 Define StartBroadcast API.
Changed StartBroadcast() API to be more generic - the client app can use the
same call to start presence, fast pair or eddystone advertisement.

PiperOrigin-RevId: 470066137
2022-08-25 13:16:17 -07:00
Anay Wadhera 5b7bb37d41 Nearby Presence/Implementation: Fix for Android compile
PiperOrigin-RevId: 468735587
2022-08-19 10:43:41 -07:00
Xin He f166f1e22c Remove presence_identity struct.
PiperOrigin-RevId: 468032143
2022-08-16 14:56:38 -07:00
Hai Shang 0849bc7598 Use absl::variant for PresenceScanFilter and legacy.
PiperOrigin-RevId: 467982930
2022-08-16 11:44:49 -07:00
Xin He e5c24b8b8a Add manager app ID into the APIs
PiperOrigin-RevId: 467757514
2022-08-15 14:11:15 -07:00
Xin He 123a2cfd18 Move credentials related proto from Prensence to internal
Replace PresenceIdentityType with proto

PiperOrigin-RevId: 467294239
2022-08-12 14:18:34 -07:00
Anay Wadhera e1f8cf40ba Switch to absl::variant for Chrome compatibility
PiperOrigin-RevId: 467033120
2022-08-11 13:21:52 -07:00
Hai Shang 754b1ad349 Check in sensor fusion interface
PiperOrigin-RevId: 467029545
2022-08-11 13:07:26 -07:00
Janusz Sobczak 8446944697 Hide internal code in implementation/
Refactoring change.

action_factory* -> implementation/action_factory*
broadcast_request* -> implementation/base_broadcast_request*
encryption* -> implementation/encryption*

Clean up build targets.

PiperOrigin-RevId: 466992367
2022-08-11 10:37:56 -07:00
Xin He 76d45f20db Replace encrypting metadata with CBC to AES.
Provide a new API to decrypt the device metadata inside a public credential

PiperOrigin-RevId: 466936093
2022-08-11 06:23:49 -07:00
Nick Bourdakos c48e27d754 Add GitHub Action for testing Linux build.
PiperOrigin-RevId: 466797648
2022-08-10 15:18:44 -07:00
Janusz Sobczak 07119e80de Merge CertificateManager and CredentialManager
Refactoring change.
Merge CertificateManager and CredentialManager into a single interface.
Hide AdvertisementFactory in implementation/. The client app will not be using
that class directly.
Clean up build targets.

PiperOrigin-RevId: 466748133
2022-08-10 11:46:16 -07:00
Suet-Fei Li 55f20775d2 Fix internal flow
PiperOrigin-RevId: 466426960
2022-08-09 12:02:16 -07:00
hai007 0a8f1f1c39 Implement Credentials Generation APIs
PiperOrigin-RevId: 466389238
2022-08-09 09:56:54 -07:00
Janusz Sobczak 6e6ae3ebd7 Decode the action in Base NP advertisements back into a list of Data Elements
PiperOrigin-RevId: 466204445
2022-08-08 19:39:05 -07:00
suetfei 4bf31d18da Internal Flow change
PiperOrigin-RevId: 465623255
2022-08-05 12:30:23 -07:00
jsobczak ce6c5893d7 Fix Action Data Elements construction.
Data Elements representing an action should have the type set to
kActionFieldType, and the actual action stored in the value.

PiperOrigin-RevId: 465365230
2022-08-04 11:40:04 -07:00
hai007 4d6bc3d62f Fix redundant statement in scan_request comparator
PiperOrigin-RevId: 465340601
2022-08-04 10:05:58 -07:00
jsobczak 319e5abea4 Add advertisement decoder
The decoder allows us to parse incoming Nearby Presence advertisements.

PiperOrigin-RevId: 465146528
2022-08-03 14:18:12 -07:00
hai007 ecf51ff13d [Nearby][Presence] Add a builder for ScanRequest
PiperOrigin-RevId: 465139728
2022-08-03 13:52:24 -07:00
hai007 a732616a97 Change private/public credentials from struct to proto.
PiperOrigin-RevId: 464678736
2022-08-01 19:16:05 -07:00
hai007 0d4964da7b Splitting SaveCredentials into two separate virtual functions:
SavePrivateCredentials() and SavePublicCredentials().

Replacing Get_**_CredentialsCallback implementation with two function wrappers
instead of one function wrapper for the ExceptionOr class.

PiperOrigin-RevId: 464108110
2022-07-29 10:34:22 -07:00
hai007 a37a7b7a83 [Nearby][Presence] Create unit tests for credential
PiperOrigin-RevId: 463900304
2022-07-28 12:37:32 -07:00
hais d5f86a04d6 Replace to use IdentityType where TrustType were used.
PiperOrigin-RevId: 463713311
2022-07-27 17:07:19 -07:00
hais c7c698412c Presence ScanRequest type def
PiperOrigin-RevId: 463703748
2022-07-27 16:17:46 -07:00
jsobczak a56d36f3a5 Move constants to DataElement.
The move will allow us to reuse these constants.

PiperOrigin-RevId: 463670924
2022-07-27 13:54:46 -07:00
jsobczak be140a71d5 Make CredentialManager abstract
An abstract CredentialManager will help with unit testing.
Also added an empty CredentialManagerImpl class.

PiperOrigin-RevId: 463651261
2022-07-27 12:34:31 -07:00
hai007 d4b40ed9a7 Change device metadata from struct to proto.
PiperOrigin-RevId: 463583244
2022-07-27 07:44:54 -07:00
jsobczak 3ed4bfcfe1 Set non_prod compatibility
PiperOrigin-RevId: 462733200
2022-07-22 17:03:23 -07:00
hai007 d2c401112c Modify Credential data structure.
PiperOrigin-RevId: 462252551
2022-07-20 16:12:34 -07:00
hais 9dec6143d1 Move credential.h to presence dir
PiperOrigin-RevId: 461779197
2022-07-18 20:03:20 -07:00
jsobczak 7153f5e482 Add advertisement factory
PiperOrigin-RevId: 461754387
2022-07-18 17:31:13 -07:00
hai007 ddcef2c67a Expose Encryption to nearby/presence
PiperOrigin-RevId: 461239780
2022-07-15 14:37:17 -07:00
jsobczak 61c9876ce9 Add Presence Identity types
PiperOrigin-RevId: 460569984
2022-07-12 15:46:58 -07:00
jsobczak b92881a460 Define Data Elements and ActionFactory.
Data Elements describe the custom data entities that can be added
to an advertisement.
ActionFactory takes a list of Data Elements and creates an Action
for the base NP advertisement.

PiperOrigin-RevId: 460557059
2022-07-12 14:48:42 -07:00
hais b6f817274e Initial header files showing class dependency and ownership.
No detailed function signatures nor impl included yet.

PiperOrigin-RevId: 460300058
2022-07-11 14:26:26 -07:00
jsobczak cfa9e555c7 Add BroadcastRequest
Define BroadcastRequest class with some preliminary support for Base NP advertisement.

PiperOrigin-RevId: 456549911
2022-06-22 10:40:50 -07:00
jsobczak 09c04d4cc8 Build visibility changes
PiperOrigin-RevId: 452460772
2022-06-01 22:37:42 -07:00
hais c1e898bcf1 Initial impl for PresenceClient
PiperOrigin-RevId: 437370707
2022-03-25 17:37:25 -07:00
hais c9bb09ce6e Presence discovery data types
PiperOrigin-RevId: 437004937
2022-03-24 08:52:35 -07:00
hais 4acd3b1a1d Initial impl for Nearby Presence in Nearby SDk.
discovery associated data types.

PiperOrigin-RevId: 436615656
2022-03-22 17:56:17 -07:00