summaryrefslogtreecommitdiff
path: root/telephony
diff options
context:
space:
mode:
author rambowang <rambowang@google.com> 2023-02-15 13:53:43 -0600
committer rambowang <rambowang@google.com> 2023-08-02 14:08:37 -0500
commitee1c07cb07190cdc6ae7e838efa72810d7334e32 (patch)
tree45aad81067221c4b0110147b89328d38b21b85f9 /telephony
parent35d5d62deb89ef8abee0b80b6a8c01ab9ee2ef21 (diff)
PhysicalChannelConfig: deprecate cell connection status enums
These enums have duplication definitions as those defined in CellInfo. Keep CellInfo as the single source of truth to keep code healthy. Bug: 72993578 Test: atest PhysicalChannelConfigTest Change-Id: I28d8a471b1da95c9eb59cddfcd1d932364a41c50 Merged-In: I28d8a471b1da95c9eb59cddfcd1d932364a41c50 (cherry picked from commit 13951afeb6f4af574b3a0cfba96736ac4b298a03)
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/PhysicalChannelConfig.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/PhysicalChannelConfig.java b/telephony/java/android/telephony/PhysicalChannelConfig.java
index 212aaaed46b2..2c6d457916f1 100644
--- a/telephony/java/android/telephony/PhysicalChannelConfig.java
+++ b/telephony/java/android/telephony/PhysicalChannelConfig.java
@@ -37,15 +37,26 @@ public final class PhysicalChannelConfig implements Parcelable {
/**
* UE has connection to cell for signalling and possibly data (3GPP 36.331, 25.331).
+ *
+ * @deprecated Use {@link CellInfo#CONNECTION_PRIMARY_SERVING} instead.
*/
+ @Deprecated
public static final int CONNECTION_PRIMARY_SERVING = 1;
/**
* UE has connection to cell for data (3GPP 36.331, 25.331).
+ *
+ * @deprecated Use {@link CellInfo#CONNECTION_SECONDARY_SERVING} instead.
*/
+ @Deprecated
public static final int CONNECTION_SECONDARY_SERVING = 2;
- /** Connection status is unknown. */
+ /**
+ * Connection status is unknown.
+ *
+ * @deprecated Use {@link CellInfo#CONNECTION_UNKNOWN} instead.
+ */
+ @Deprecated
public static final int CONNECTION_UNKNOWN = -1;
/** Channel number is unknown. */