diff options
| author | 2024-01-12 01:26:28 +0000 | |
|---|---|---|
| committer | 2024-01-12 01:26:28 +0000 | |
| commit | f911830f282624081e615b806e4f54834d35eef9 (patch) | |
| tree | 123b409e99a2110e2732962981cb30f72f9d575c | |
| parent | 4d29ed23c5406cd460ac7ae207b25b3647ebe07b (diff) | |
update JAVA doc
Telephony feature mapping is not applied to TelecomManager.
Bug: 297989574
Test: build pass
Change-Id: I51ca0a9cf08a7c4b9b4230b8d023c242efc5602f
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 0dce0844ce64..e4ea479fb4d6 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -6445,10 +6445,6 @@ public class TelephonyManager { * targeting API level 31+. * * @return the current call state. - * - * @throws UnsupportedOperationException If the device does not have - * {@link PackageManager#FEATURE_TELECOM}. - * * @deprecated Use {@link #getCallStateForSubscription} to retrieve the call state for a * specific telephony subscription (which allows carrier privileged apps), * {@link TelephonyCallback.CallStateListener} for real-time call state updates, or @@ -6456,7 +6452,6 @@ public class TelephonyManager { * device. */ @RequiresPermission(value = android.Manifest.permission.READ_PHONE_STATE, conditional = true) - @RequiresFeature(PackageManager.FEATURE_TELECOM) @Deprecated public @CallState int getCallState() { if (mContext != null) { @@ -10782,9 +10777,7 @@ public class TelephonyManager { } /** - * @throws UnsupportedOperationException If the device does not have - * {@link PackageManager#FEATURE_TELECOM}. - * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead + * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @Deprecated @@ -10793,15 +10786,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE }) - @RequiresFeature(PackageManager.FEATURE_TELECOM) public boolean isOffhook() { TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isInCall(); } /** - * @throws UnsupportedOperationException If the device does not have - * {@link PackageManager#FEATURE_TELECOM}. * @deprecated Use {@link android.telecom.TelecomManager#isRinging} instead * @hide */ @@ -10811,15 +10801,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE }) - @RequiresFeature(PackageManager.FEATURE_TELECOM) public boolean isRinging() { TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isRinging(); } /** - * @throws UnsupportedOperationException If the device does not have - * {@link PackageManager#FEATURE_TELECOM}. * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @@ -10829,7 +10816,6 @@ public class TelephonyManager { android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE }) - @RequiresFeature(PackageManager.FEATURE_TELECOM) public boolean isIdle() { TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return !tm.isInCall(); @@ -12044,11 +12030,8 @@ public class TelephonyManager { * * @return {@code true} if the device supports TTY mode, and {@code false} otherwise. * - * @throws UnsupportedOperationException If the device does not have - * {@link PackageManager#FEATURE_TELECOM}. */ @Deprecated - @RequiresFeature(PackageManager.FEATURE_TELECOM) public boolean isTtyModeSupported() { try { TelecomManager telecomManager = null; |