Commit Graph
72 Commits
Author SHA1 Message Date
hai007 cb5016c3f3 1.Define OperationResult message, which contains result code category and resulc code
2.Add OperationResult message to ConnectionAttempt, EstablishedConnection and BandwidthUpgradeAttempt

PiperOrigin-RevId: 607231266
2024-02-14 23:57:20 -08:00
Francis Tsui c2ade33c9c No public changes.
PiperOrigin-RevId: 597033150
2024-01-09 13:46:42 -08:00
Anthony Rueda 7f7f097adb [Presence] Deprecate Metadata and remove instances of Metadata from gmscore NP codes.
PiperOrigin-RevId: 596041877
2024-01-05 11:23:33 -08:00
Anthony Rueda 91197f3683 [Presence] Deflag use_shared_credential_grpc and deprecate secret_id field from LocalCredential and SharedCredential protos
PiperOrigin-RevId: 586831590
2023-11-30 17:08:13 -08:00
hai007 c26a53e384 1. log connectionTokens into ClientSession
2. In 1:1 share, this connectionToken value will be the same as that one in the ConnectionAttempt (same as the BandwidthUpgradeAttempt or the EstablishedConnection).
3. In group share, this connectionToken value will be the combination of all the connectionTokens in above point 2 (separated by comma).

PiperOrigin-RevId: 584767628
2023-11-22 18:49:13 -08:00
hai007 e876b68d90 1. log client_flow_id into ClientSession
2. In NS, passing the saved advertising flow id into NC so the client_flow_id in receiver side could be the same as the NS one, which could have the correct records mapping between the NS and NC.

PiperOrigin-RevId: 582876537
2023-11-15 19:02:38 -08:00
Anthony Rueda 3d11defc4a [Presence] Add device ID to DeviceIdentityMetaData
PiperOrigin-RevId: 580758850
2023-11-08 20:16:54 -08:00
hai007 c1e5f47e3f [Analytics] Add analytics for subsequent pairing but entering pairing mode
Add is_in_paired_history field when the event is SECRET_HANDSHAKE

LOG_STORAGE_INCREASE(GB/week): <1
  1200000 perday * 7 days * (2+1 [tag+bool] + 2+8 [tag+int64] + 2+8 [tag+int64] + 2+1 [tag+bool]) bytes/record

Single record size (average): 26 bytes

PiperOrigin-RevId: 576717056
2023-10-25 19:45:16 -07:00
hai007 7596c298f7 [SubsequentPair] Add is_pair_triggered_by_settings in Fast Pair log to track subsequent pairing triggered from Pixel Settings.
LOG_STORAGE_INCREASE(GB/week): <1
 1 perday * 7 days * (2+1 [tag+length] + 2+1 [tag+bool]) bytes/record

Single record size (average): 6 bytes

Design doc: go/subsequent-pairing-settings-integration

PiperOrigin-RevId: 570646781
2023-10-04 03:52:06 -07:00
hai007 c0fed171f2 Add several new fields to fast_pair_log
PiperOrigin-RevId: 568315642
2023-09-25 13:53:27 -07:00
hai007 94df1ffc4c Records the dual band support status
PiperOrigin-RevId: 566465959
2023-09-18 18:04:30 -07:00
hai007 b1dfb11d2d [Presence] Added more device types: foldable, automotive, and speaker.
PiperOrigin-RevId: 561692221
2023-08-31 10:24:11 -07:00
hai007 d9a6192916 Add num_successful_auto_resume into Payload logging.
PiperOrigin-RevId: 561345201
2023-08-30 08:16:55 -07:00
Xin He 0d83625766 [Presence] Add DUSI to shared credential
PiperOrigin-RevId: 560181461
2023-08-25 13:31:48 -07:00
Anthony Rueda 96750db706 [Presence] Renamemetadata_encryption_key_tag fields in shared credential proto to differentiate between V0/V1 unsigned adv key tags
PiperOrigin-RevId: 558919544
2023-08-21 15:39:35 -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
Anthony Rueda 37b9119615 [Presence] Extend shared credential proto with int64 secret id field
PiperOrigin-RevId: 550661806
2023-07-24 13:48:54 -07:00
hai007 48184e6b4d Add IfChange annotation to ensure the proto sync between 3rd party and the server copy.
PiperOrigin-RevId: 547953571
2023-07-13 16:01:55 -07:00
hai007 d91f7e6f44 Automated visibility attribute cleanup.
PiperOrigin-RevId: 542896809
2023-06-23 10:34:27 -07:00
Anthony Rueda c829632879 [Presence] Pass DeviceIdentityMetadata materials to PresenceDevice during advertisement decryption
PiperOrigin-RevId: 540715111
2023-06-15 16:00:50 -07:00
hai007 efb0fd9a0a Update Tachyon protos to allow Messaging APIs to be callable.
PiperOrigin-RevId: 540336655
2023-06-14 11:49:13 -07:00
Anthony Rueda 72b249474d Extend local and shared credential protos to included duplicated metadata_encryption_key and metadata_encryption_key_tag for all protocol version
PiperOrigin-RevId: 538612138
2023-06-07 15:43:30 -07:00
hai007 b36b56b635 Add instance type to metadata to differentiate personal or managed profiles.
PiperOrigin-RevId: 538524943
2023-06-07 10:21:13 -07:00
Anthony Rueda c1d7f6e3e0 [Presence] Data Structure modification for NP Multiple Account Phase One Implementation: b/285573323
PiperOrigin-RevId: 538508248
2023-06-07 09:20:16 -07:00
hai007 20ca9e282b Add Tachyon protos for WebRTC.
PiperOrigin-RevId: 533278916
2023-05-18 16:08:20 -07:00
Joy Babafemi 8741eb6c71 Add "Foldable" DeviceType to PresenceDevice.
PiperOrigin-RevId: 528629960
2023-05-01 18:20:42 -07:00
Juliet Levesque 09b3ab0882 [Nearby Presence] Add DEVICE_TYPE_CHROMEOS to Metadata DeviceType
PiperOrigin-RevId: 524350458
2023-04-14 12:00:55 -07:00
Hai Shang c312442f3d internal clean up
PiperOrigin-RevId: 521555239
2023-04-03 14:00:22 -07:00
hai007 3e2d4b09ff remove semantic_annotations and collection_basis_annotations on fast_pair_log to fix OSS build issue.
PiperOrigin-RevId: 520952834
2023-03-31 10:18:59 -07:00
Nick Bourdakos c73ebe8778 Add import comments
PiperOrigin-RevId: 520433728
2023-03-29 13:55:46 -07:00
hai007 4b4e599ea6 Add connection's SafeDisconnectionResult into the established connection so we could analyzing any mis-matched SafeDisconnectionResult with the same connection token.
PiperOrigin-RevId: 520398868
2023-03-29 11:49:08 -07:00
Nick Bourdakos 64ff0ee034 Comment protos
PiperOrigin-RevId: 520349919
2023-03-29 09:00:08 -07:00
hai007 8c4489d0f9 Fix fast_pair_log to generate fast_pair_log.pb.h file.
PiperOrigin-RevId: 519802479
2023-03-27 12:50:42 -07:00
Nick Bourdakos decdc15402 Internal change
PiperOrigin-RevId: 519204238
2023-03-24 12:06:55 -07:00
Nick Bourdakos 99298444df Use @rules_cc for cc_proto_library
PiperOrigin-RevId: 519188761
2023-03-24 12:05:19 -07:00
Nick Bourdakos e21f736588 Internal change
PiperOrigin-RevId: 519180519
2023-03-24 11:05:33 -07:00
hai007 548b51f331 Add MagicPairLog and magic_pair_enums to third_party.
PiperOrigin-RevId: 518603122
2023-03-22 10:16:24 -07:00
Janusz Sobczak 75feca580b Replace device_id with device_type
PiperOrigin-RevId: 508482519
2023-02-09 14:52:53 -08:00
Janusz Sobczak aa95be4ff4 Add java options to proto files
PiperOrigin-RevId: 507900410
2023-02-07 15:24:30 -08:00
Janusz Sobczak 5f4144cd0b Update SharedCredential definition
PiperOrigin-RevId: 507568902
2023-02-06 13:33:23 -08:00
Janusz Sobczak eb282a64da Set credential start&end times
PiperOrigin-RevId: 504880260
2023-01-26 10:33:22 -08:00
Anay Wadhera c58b45eb50 Rename PublicCredential to SharedCredential and PrivateCredential to LocalCredential
PiperOrigin-RevId: 503221477
2023-01-24 12:09:21 -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 6ef8a4c00a 1. Log advertising power level (contains Low, High, Balance power levels).
2. Log discovering power level (only contained Low and unspecified power levels)

PiperOrigin-RevId: 497814014
2022-12-26 09:11:27 -08:00
hai007 863e2f650e Automated visibility attribute cleanup.
PiperOrigin-RevId: 494035002
2022-12-08 17:15:43 -08:00
hai007 d4551b7187 Add MCC Mode
PiperOrigin-RevId: 489580605
2022-11-18 15:58:41 -08:00
Anay Wadhera 74f7f5ec5c Fix visibility rules
PiperOrigin-RevId: 485897261
2022-11-03 09:44:47 -07:00
hai007 5d207f9e15 Add the frequency of the connected AP into the ConnectionAttemptMetadata, the purpose is to judge if there is MCC symptom.
Storage increase will be 4 bytes increasing in ConnetionAttemptMetadata.

(4 bytes in each sharing * 2610000 shares/daily * 7 days/week) / GB = about 0.7 GB)
(2610000 was based on current daily connection attempts count on 20221017.)

PiperOrigin-RevId: 483115234
2022-10-22 21:51:58 -07:00
hai007 e34cac3a96 Update connections_log.proto
1. 2499483 is the "Daily Initial Connection Attempts by Medium" from product data of 2022/10/10
2. http://shortn/_XocswsePbY

PiperOrigin-RevId: 482691333
2022-10-20 22:28:17 -07:00
hai007 5ad57c5841 Update connections_log.proto
1. 2499483 is the "Daily Initial Connection Attempts by Medium" from product data of 2022/10/10
2. http://shortn/_XocswsePbY

PiperOrigin-RevId: 482681421
2022-10-20 21:13:53 -07:00