From 7d0312eca6ed9a934518f8629159ffc027f9b8cf Mon Sep 17 00:00:00 2001 From: Ryan Hansberry Date: Mon, 6 May 2024 09:22:18 -0700 Subject: [PATCH] Add Call Transfer action bit Phones are now broadcasting this action bit. Allow platform impls to handle these Call Transfer ADVs. PiperOrigin-RevId: 631085965 --- presence/data_element.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/presence/data_element.h b/presence/data_element.h index 86a454bd..eb2ffebb 100644 --- a/presence/data_element.h +++ b/presence/data_element.h @@ -30,6 +30,7 @@ namespace presence { // The values are bit numbers in BE ordering. // TODO(b/338107166): these are out of date, need to be updated to latest spec enum class ActionBit { + kCallTransferAction = 4, kActiveUnlockAction = 8, kNearbyShareAction = 9, kInstantTetheringAction = 10, @@ -44,10 +45,11 @@ enum class ActionBit { // helpful for enumerating overall all possible action bit types, this must be // kept in sync with the above enum constexpr std::initializer_list kAllActionBits = { - ActionBit::kActiveUnlockAction, ActionBit::kNearbyShareAction, - ActionBit::kInstantTetheringAction, ActionBit::kPhoneHubAction, - ActionBit::kPresenceManagerAction, ActionBit::kFinderAction, - ActionBit::kFastPairSassAction, ActionBit::kTapToTransferAction}; + ActionBit::kCallTransferAction, ActionBit::kActiveUnlockAction, + ActionBit::kNearbyShareAction, ActionBit::kInstantTetheringAction, + ActionBit::kPhoneHubAction, ActionBit::kPresenceManagerAction, + ActionBit::kFinderAction, ActionBit::kFastPairSassAction, + ActionBit::kTapToTransferAction}; /** Describes a custom Data element in NP advertisement. */ class DataElement {