/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | DataConnectionStatusTrackerTest.java | 53 import android.telephony.TelephonyManager; 72 @Mock protected TelephonyManager mMockTelephonyManager; 139 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mMockTelephonyManager); in setup() 164 TelephonyManager.DATA_CONNECTING, in testOnCellular() 165 TelephonyManager.NETWORK_TYPE_LTE); in testOnCellular() 175 TelephonyManager.DATA_CONNECTED, in testOnCellular() 176 TelephonyManager.NETWORK_TYPE_LTE); in testOnCellular() 187 TelephonyManager.DATA_DISCONNECTED, in testOnCellular() 188 TelephonyManager.NETWORK_TYPE_LTE); in testOnCellular() 205 TelephonyManager.DATA_CONNECTING, in testCellularConnectingToDisconnect() [all …]
|
D | QnsConstantsTest.java | 21 import android.telephony.TelephonyManager; 182 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_DISCONNECTED); in testDataStateToString() 184 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_CONNECTED); in testDataStateToString() 186 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_CONNECTING); in testDataStateToString() 188 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_DISCONNECTING); in testDataStateToString() 190 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_SUSPENDED); in testDataStateToString() 192 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_HANDOVER_IN_PROGRESS); in testDataStateToString() 194 dataState = QnsConstants.dataStateToString(TelephonyManager.DATA_UNKNOWN); in testDataStateToString() 204 QnsConstants.callStateToString(TelephonyManager.CALL_STATE_IDLE)); in testCallStateToString() 207 QnsConstants.callStateToString(TelephonyManager.CALL_STATE_RINGING)); in testCallStateToString() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | TelephonyConstants.java | 19 import android.telephony.TelephonyManager; 219 public static final int RAF_UNKNOWN = (int) TelephonyManager.NETWORK_TYPE_BITMASK_UNKNOWN; 220 public static final int RAF_GSM = (int) TelephonyManager.NETWORK_TYPE_BITMASK_GSM; 221 public static final int RAF_GPRS = (int) TelephonyManager.NETWORK_TYPE_BITMASK_GPRS; 222 public static final int RAF_EDGE = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EDGE; 223 public static final int RAF_IS95A = (int) TelephonyManager.NETWORK_TYPE_BITMASK_CDMA; 224 public static final int RAF_IS95B = (int) TelephonyManager.NETWORK_TYPE_BITMASK_CDMA; 225 public static final int RAF_1xRTT = (int) TelephonyManager.NETWORK_TYPE_BITMASK_1xRTT; 227 public static final int RAF_EVDO_0 = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_0; 228 public static final int RAF_EVDO_A = (int) TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_A; [all …]
|
/packages/apps/Settings/src/com/android/settings/network/apn/ |
D | ApnNetworkTypes.kt | 19 import android.telephony.TelephonyManager in <lambda>() 25 TelephonyManager.NETWORK_TYPE_LTE, in <lambda>() 26 TelephonyManager.NETWORK_TYPE_HSPAP, in <lambda>() 27 TelephonyManager.NETWORK_TYPE_HSPA, in <lambda>() 28 TelephonyManager.NETWORK_TYPE_HSUPA, in <lambda>() 29 TelephonyManager.NETWORK_TYPE_HSDPA, in <lambda>() 30 TelephonyManager.NETWORK_TYPE_UMTS, in <lambda>() 31 TelephonyManager.NETWORK_TYPE_EDGE, in <lambda>() 32 TelephonyManager.NETWORK_TYPE_GPRS, in <lambda>() 33 TelephonyManager.NETWORK_TYPE_EHRPD, in <lambda>() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/slice/ |
D | SlicePurchaseControllerTest.java | 51 import android.telephony.TelephonyManager; 110 @TelephonyManager.PurchasePremiumCapabilityResult private int mResult; 181 TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY, in testCreatePendingIntent() 192 TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY)); in testIsPremiumCapabilityAvailableForPurchase() 195 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testIsPremiumCapabilityAvailableForPurchase() 198 new int[]{TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY}); in testIsPremiumCapabilityAvailableForPurchase() 205 TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY)); in testIsPremiumCapabilityAvailableForPurchase() 287 TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY, mHandler.obtainMessage()); in testPurchasePremiumCapabilityResultFeatureNotSupported() 289 assertEquals(TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_FEATURE_NOT_SUPPORTED, in testPurchasePremiumCapabilityResultFeatureNotSupported() 293 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testPurchasePremiumCapabilityResultFeatureNotSupported() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QnsConstants.java | 24 import android.telephony.TelephonyManager; 277 case TelephonyManager.CALL_STATE_IDLE: in callStateToString() 279 case TelephonyManager.CALL_STATE_RINGING: in callStateToString() 281 case TelephonyManager.CALL_STATE_OFFHOOK: in callStateToString() 378 case TelephonyManager.DATA_DISCONNECTED: in dataStateToString() 380 case TelephonyManager.DATA_CONNECTING: in dataStateToString() 382 case TelephonyManager.DATA_CONNECTED: in dataStateToString() 384 case TelephonyManager.DATA_SUSPENDED: in dataStateToString() 386 case TelephonyManager.DATA_DISCONNECTING: in dataStateToString() 388 case TelephonyManager.DATA_HANDOVER_IN_PROGRESS: in dataStateToString() [all …]
|
/packages/services/Telephony/src/com/android/phone/slice/ |
D | SlicePurchaseController.java | 19 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_IN_PROG… 20 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHAS… 21 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_CARRIER_DISABLE… 22 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_CARRIER_ERROR; 23 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ENTITLEMENT_CHE… 24 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_NOT_DEFAULT_DAT… 48 import android.telephony.TelephonyManager; 343 @TelephonyManager.PremiumCapability private final int mCapability; 351 @TelephonyManager.PremiumCapability int capability) { in SlicePurchaseControllerBroadcastReceiver() 365 + TelephonyManager.convertPremiumCapabilityToString(mCapability) in onReceive() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 46 import android.telephony.TelephonyManager; 77 @Mock private TelephonyManager mTelephonyManager; 78 private final SparseArray<TelephonyManager> mTelephonyManagerOfSub = new SparseArray<>(); 164 final TelephonyManager telephonyManagerOfSub; in updateSubscriberIdForTestSub() 168 telephonyManagerOfSub = mock(TelephonyManager.class); in updateSubscriberIdForTestSub() 225 assertRatTypeNotChangedForSub(TEST_IMSI1, TelephonyManager.NETWORK_TYPE_UNKNOWN); in testSubChangedAndRatTypeChanged() 229 assertRatTypeNotChangedForSub(TEST_IMSI1, TelephonyManager.NETWORK_TYPE_UNKNOWN); in testSubChangedAndRatTypeChanged() 237 setRatTypeForSub(TEST_SUBID1, TelephonyManager.NETWORK_TYPE_UMTS); in testSubChangedAndRatTypeChanged() 238 assertRatTypeChangedForSub(TEST_IMSI1, TelephonyManager.NETWORK_TYPE_UMTS); in testSubChangedAndRatTypeChanged() 239 assertRatTypeNotChangedForSub(TEST_IMSI2, TelephonyManager.NETWORK_TYPE_UNKNOWN); in testSubChangedAndRatTypeChanged() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/cdma/ |
D | CdmaSystemSelectPreferenceControllerTest.java | 31 import android.telephony.TelephonyManager; 53 private TelephonyManager mTelephonyManager; 66 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelephonyManager); in setUp() 68 when(mTelephonyManager.getPhoneType()).thenReturn(TelephonyManager.PHONE_TYPE_CDMA); in setUp() 78 TelephonyManager.CDMA_ROAMING_MODE_ANY); in setUp() 91 TelephonyManager.CDMA_ROAMING_MODE_ANY); in onPreferenceChange_selectHome_returnHomeMode() 94 Integer.toString(TelephonyManager.CDMA_ROAMING_MODE_HOME)); in onPreferenceChange_selectHome_returnHomeMode() 98 TelephonyManager.CDMA_ROAMING_MODE_ANY)).isEqualTo( in onPreferenceChange_selectHome_returnHomeMode() 99 TelephonyManager.CDMA_ROAMING_MODE_HOME); in onPreferenceChange_selectHome_returnHomeMode() 104 doReturn(TelephonyManager.CDMA_ROAMING_MODE_HOME).when( in updateState_stateHome_displayHome() [all …]
|
D | CdmaSubscriptionPreferenceControllerTest.java | 27 import android.telephony.TelephonyManager; 48 private TelephonyManager mTelephonyManager; 61 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelephonyManager); in setUp() 72 TelephonyManager.CDMA_SUBSCRIPTION_RUIM_SIM); in setUp() 84 TelephonyManager.CDMA_SUBSCRIPTION_NV)); in onPreferenceChange_selectNV_returnNVMode() 88 TelephonyManager.CDMA_SUBSCRIPTION_RUIM_SIM)).isEqualTo( in onPreferenceChange_selectNV_returnNVMode() 89 TelephonyManager.CDMA_SUBSCRIPTION_NV); in onPreferenceChange_selectNV_returnNVMode() 95 Settings.Global.CDMA_SUBSCRIPTION_MODE, TelephonyManager.CDMA_SUBSCRIPTION_NV); in updateState_stateRUIM_displayRUIM() 100 TelephonyManager.CDMA_SUBSCRIPTION_NV)); in updateState_stateRUIM_displayRUIM() 105 mPreference.setValue(Integer.toString(TelephonyManager.CDMA_SUBSCRIPTION_NV)); in updateState_stateUnknown_doNothing() [all …]
|
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | SimPinReplayManagerTest.java | 14 import android.telephony.TelephonyManager; 33 TelephonyManager mTelephonyManager; 42 mTelephonyManager = mock(TelephonyManager.class); in setUp() 67 TelephonyManager subIdManager = mock(TelephonyManager.class); in prepareSimPinReplay_success() 74 .thenReturn(TelephonyManager.PREPARE_UNATTENDED_REBOOT_SUCCESS); in prepareSimPinReplay_success() 95 TelephonyManager subIdManager = mock(TelephonyManager.class); in prepareSimPinReplay_noSimPin() 108 TelephonyManager subIdManager = mock(TelephonyManager.class); in prepareSimPinReplay_carrierDisableSimPin() 125 TelephonyManager subIdManager = mock(TelephonyManager.class); in prepareSimPinReplay_carrierEnabled() 133 .thenReturn(TelephonyManager.PREPARE_UNATTENDED_REBOOT_SUCCESS); in prepareSimPinReplay_carrierEnabled() 144 TelephonyManager subIdManager = mock(TelephonyManager.class); in prepareSimPinReplay_prepareError() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 28 import android.telephony.TelephonyManager; 135 TelephonyManager telephonyMgr = in getMobileNetworkName() 136 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in getMobileNetworkName() 146 case TelephonyManager.NETWORK_TYPE_1xRTT: in getMobileNetworkType() 147 case TelephonyManager.NETWORK_TYPE_CDMA: in getMobileNetworkType() 148 case TelephonyManager.NETWORK_TYPE_EDGE: in getMobileNetworkType() 149 case TelephonyManager.NETWORK_TYPE_GPRS: in getMobileNetworkType() 150 case TelephonyManager.NETWORK_TYPE_IDEN: in getMobileNetworkType() 152 case TelephonyManager.NETWORK_TYPE_EHRPD: in getMobileNetworkType() 153 case TelephonyManager.NETWORK_TYPE_EVDO_0: in getMobileNetworkType() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/compat/telephony/ |
D | TelephonyManagerCompat.java | 27 import android.telephony.TelephonyManager; 96 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() 109 public static boolean isTtyModeSupported(@Nullable TelephonyManager telephonyManager) { in isTtyModeSupported() 121 @Nullable TelephonyManager telephonyManager) { in isHearingAidCompatibilitySupported() 136 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() 149 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() 158 TelephonyManager telephonyManager, PhoneAccountHandle handle, boolean enabled) { in setVisualVoicemailEnabled() 160 TelephonyManager.class in setVisualVoicemailEnabled() 173 TelephonyManager telephonyManager, PhoneAccountHandle handle) { in isVisualVoicemailEnabled() 176 TelephonyManager.class in isVisualVoicemailEnabled() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/ |
D | EapSimTest.java | 19 import static android.telephony.TelephonyManager.APPTYPE_USIM; 36 import android.telephony.TelephonyManager; 164 private TelephonyManager mMockTelephonyManager; 171 mMockTelephonyManager = mock(TelephonyManager.class); in setUp() 236 TelephonyManager mockTelephonyManagerFromContext = mock(TelephonyManager.class); in verifyEapSimStart() 275 TelephonyManager.APPTYPE_USIM, in verifyEapSimChallenge() 276 TelephonyManager.AUTHTYPE_EAP_SIM, in verifyEapSimChallenge() 281 TelephonyManager.APPTYPE_USIM, in verifyEapSimChallenge() 282 TelephonyManager.AUTHTYPE_EAP_SIM, in verifyEapSimChallenge() 287 TelephonyManager.APPTYPE_USIM, in verifyEapSimChallenge() [all …]
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | MmsMessagePreferenceControllerTest.kt | 21 import android.telephony.TelephonyManager 38 private val mockTelephonyManager1: TelephonyManager = mock<TelephonyManager> { in <lambda>() 42 private val mockTelephonyManager2: TelephonyManager = mock<TelephonyManager> { in <lambda>() 47 private val mockTelephonyManager: TelephonyManager = mock<TelephonyManager> { in <lambda>() 54 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>() 102 isMobileDataPolicyEnabled(TelephonyManager.MOBILE_DATA_POLICY_AUTO_DATA_SWITCH) in getAvailabilityStatus_isDefaultDataAndDataOnAndAutoDataSwitchOn_unavailable() 117 isMobileDataPolicyEnabled(TelephonyManager.MOBILE_DATA_POLICY_AUTO_DATA_SWITCH) in getAvailabilityStatus_isDefaultDataAndDataOffAndAutoDataSwitchOn_available() 133 isMobileDataPolicyEnabled(TelephonyManager.MOBILE_DATA_POLICY_AUTO_DATA_SWITCH) in getAvailabilityStatus_defaultDataOnAndAutoDataSwitchOn_unavailable() 149 isMobileDataPolicyEnabled(TelephonyManager.MOBILE_DATA_POLICY_AUTO_DATA_SWITCH) in getAvailabilityStatus_defaultDataOffAndAutoDataSwitchOn_available() 162 isMobileDataPolicyEnabled(TelephonyManager.MOBILE_DATA_POLICY_MMS_ALWAYS_ALLOWED) in isChecked_whenMmsNotAlwaysAllowed_returnFalse() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | EnabledNetworkModePreferenceControllerTest.java | 47 import android.telephony.TelephonyManager; 77 private static final long DISABLED_5G_NETWORK_TYPE = ~TelephonyManager.NETWORK_TYPE_BITMASK_NR; 80 private TelephonyManager mTelephonyManager; 82 private TelephonyManager mInvalidTelephonyManager; 107 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelephonyManager); in setUp() 120 mockAccessFamily(TelephonyManager.NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA); in setUp() 179 mController.getTelephonyCallback().onCallStateChanged(TelephonyManager.CALL_STATE_IDLE); in getAvailabilityStatus_callStateIsIdle_returnAvailable() 191 mController.getTelephonyCallback().onCallStateChanged(TelephonyManager.CALL_STATE_OFFHOOK); in getAvailabilityStatus_duringCalling_returnAvailable() 208 .contains(String.valueOf(TelephonyManager.NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA)); in updateState_LteWorldPhone_GlobalHasLte() 215 mockAccessFamily(TelephonyManager.NETWORK_MODE_NR_LTE_CDMA_EVDO_GSM_WCDMA); in updateState_5gWorldPhone_GlobalHasNr() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 42 import android.telephony.TelephonyManager; 116 private TelephonyManager mTelephonyManager; 185 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in SimStatusDialogController() 198 public TelephonyManager getTelephonyManager() { in getTelephonyManager() 309 case TelephonyManager.DATA_CONNECTED: in updateDataState() 312 case TelephonyManager.DATA_SUSPENDED: in updateDataState() 315 case TelephonyManager.DATA_CONNECTING: in updateDataState() 318 case TelephonyManager.DATA_DISCONNECTED: in updateDataState() 403 && getTelephonyManager().getPhoneType() != TelephonyManager.PHONE_TYPE_CDMA; in updateLatestAreaInfo() 452 getNetworkTypeName(TelephonyManager.NETWORK_TYPE_UNKNOWN); in updateNetworkType() [all …]
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 38 import android.telephony.TelephonyManager; 87 protected TelephonyManager mTelephonyManager; 89 protected TelephonyManager mSubscriptionBoundTelephonyManager; 128 TelephonyManager.UPDATE_AVAILABLE_NETWORKS_INVALID_ARGUMENTS); 151 TelephonyManager 158 TelephonyManager 162 TelephonyManager 177 TelephonyManager.UPDATE_AVAILABLE_NETWORKS_SUCCESS); 183 TelephonyManager 187 TelephonyManager.UPDATE_AVAILABLE_NETWORKS_ABORTED); [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollector.java | 32 import android.telephony.TelephonyManager; 65 TelephonyManager.NETWORK_TYPE_UNKNOWN, 66 TelephonyManager.NETWORK_TYPE_GPRS, 67 TelephonyManager.NETWORK_TYPE_EDGE, 68 TelephonyManager.NETWORK_TYPE_UMTS, 69 TelephonyManager.NETWORK_TYPE_CDMA, 70 TelephonyManager.NETWORK_TYPE_EVDO_0, 71 TelephonyManager.NETWORK_TYPE_EVDO_A, 72 TelephonyManager.NETWORK_TYPE_1xRTT, 73 TelephonyManager.NETWORK_TYPE_HSDPA, [all …]
|
/packages/services/Telephony/testapps/TestSliceApp/app/src/main/java/com/google/android/sample/testsliceapp/ |
D | PrioritizeLatency.java | 18 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_IN_PROG… 19 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHAS… 20 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_CARRIER_DISABLE… 21 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_CARRIER_ERROR; 22 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_ENTITLEMENT_CHE… 23 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_FEATURE_NOT_SUP… 24 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_NETWORK_NOT_AVA… 25 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_NOT_DEFAULT_DAT… 26 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_NOT_FOREGROUND; 27 import static android.telephony.TelephonyManager.PURCHASE_PREMIUM_CAPABILITY_RESULT_PENDING_NETWORK… [all …]
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyManagerCompat.java | 22 import android.telephony.TelephonyManager; 42 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) { in isVoiceCapable() 52 return phoneType == TelephonyManager.PHONE_TYPE_CDMA || in isVoiceCapable() 53 phoneType == TelephonyManager.PHONE_TYPE_GSM; in isVoiceCapable() 65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() 86 public static String getDeviceId(@Nullable TelephonyManager telephonyManager, int slotId) { in getDeviceId() 105 public static boolean isTtyModeSupported(@Nullable TelephonyManager telephonyManager) { in isTtyModeSupported() 124 @Nullable TelephonyManager telephonyManager) { in isHearingAidCompatibilitySupported() 146 public static Uri getVoicemailRingtoneUri(TelephonyManager telephonyManager, in getVoicemailRingtoneUri() 163 public static boolean isVoicemailVibrationEnabled(TelephonyManager telephonyManager, in isVoicemailVibrationEnabled()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallWaitingSwitchPreference.java | 13 import android.telephony.TelephonyManager; 33 private TelephonyManager mTelephonyManager; 35 private int mUpdateStatus = TelephonyManager.CALL_WAITING_STATUS_UNKNOWN_ERROR; 36 private int mQueryStatus = TelephonyManager.CALL_WAITING_STATUS_UNKNOWN_ERROR; 59 TelephonyManager.class).createForSubscriptionId(phone.getSubId()); in init() 137 if (mQueryStatus != TelephonyManager.CALL_WAITING_STATUS_ENABLED in updateUi() 138 && mQueryStatus != TelephonyManager.CALL_WAITING_STATUS_DISABLED in updateUi() 139 && mQueryStatus != TelephonyManager.CALL_WAITING_STATUS_UNKNOWN_ERROR) { in updateUi() 143 case TelephonyManager.CALL_WAITING_STATUS_FDN_CHECK_FAILURE: in updateUi() 155 } else if (mQueryStatus == TelephonyManager.CALL_WAITING_STATUS_UNKNOWN_ERROR in updateUi() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | NetworkUtilsTest.java | 27 import android.telephony.TelephonyManager; 65 TelephonyManager telephonyManager = mock(TelephonyManager.class); in hasSim_simAbsent_returnsFalse() 66 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in hasSim_simAbsent_returnsFalse() 73 TelephonyManager telephonyManager = mock(TelephonyManager.class); in hasSim_simUnknown_returnsFalse() 74 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_UNKNOWN); in hasSim_simUnknown_returnsFalse() 81 TelephonyManager telephonyManager = mock(TelephonyManager.class); in hasSim_otherStatus_returnsTrue() 82 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_LOADED); in hasSim_otherStatus_returnsTrue()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | SubscriptionUtilTest.java | 42 import android.telephony.TelephonyManager; 79 private TelephonyManager mTelMgr; 90 when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelMgr); in setUp() 215 TelephonyManager sub1Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 216 TelephonyManager sub2Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 245 TelephonyManager sub1Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 246 TelephonyManager sub2Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 275 TelephonyManager sub1Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed() 276 TelephonyManager sub2Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed() 304 TelephonyManager sub1Telmgr = mock(TelephonyManager.class); in getUniqueDisplayNames_phoneNumberBlocked_subscriptionIdFallback() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | SuppServicesUiUtil.java | 25 import android.telephony.TelephonyManager; 92 TelephonyManager telephonyManager = in makeMessage() 93 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in makeMessage() 149 TelephonyManager telephonyManager = in isMobileDataOff() 150 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isMobileDataOff() 155 TelephonyManager telephonyManager = in isDataRoamingOffUnderRoaming() 156 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isDataRoamingOffUnderRoaming() 176 TelephonyManager telephonyManager = new TelephonyManager(context, phone.getSubId()); in handleCallerIdUssdResponse() 178 if (carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in handleCallerIdUssdResponse() 202 TelephonyManager.UssdResponseCallback ussdCallback = in handleCallerIdUssdResponse() [all …]
|