Home
last modified time | relevance | path

Searched refs:getSimState (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java66 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in hasSim_simAbsent_returnsFalse()
74 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_UNKNOWN); in hasSim_simUnknown_returnsFalse()
82 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_LOADED); in hasSim_otherStatus_returnsTrue()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java196 private static IccCardConstants.State getSimState(int slotId, Context context) { in getSimState() method in SpecialCharSequenceMgr
198 int simState = tele.getSimState(slotId); in getSimState()
221 if (state == getSimState(info.getSimSlotIndex(), context) in getNextSubIdForState()
DGsmUmtsCallBarringOptions.java416 boolean isSimReady = TelephonyManager.from(this).getSimState( in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java127 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in setUp()
345 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in testSummaryUpdate_noSim_shouldSetWifiMode()
382 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in testMobileData_noSimNoWifi_preferenceDisabled()
399 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in testMobileData_noSimWifi_preferenceDisabled()
DDataUsageUtilsTest.java80 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in hasSim_simStateReady()
87 when(mTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in hasSim_simStateMissing()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java123 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
154 final int simState = telephonyManager.getSimState(); in hasSim()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageUtils.java121 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
151 final int simState = telephonyManager.getSimState(); in hasSim()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DSimContactsTestHelper.java148 return mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_READY; in isSimReady()
171 assumeThat(mTelephonyManager.getSimState(), equalTo(TelephonyManager.SIM_STATE_ABSENT)); in assumeSimCardAbsent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogControllerTest.java150 when(mTelephonyManager.getSimState(anyInt())).thenReturn( in populateImeiInfo_cdmaSimPresent_shouldSetImeiInfoAndSetAllCdmaSetting()
166 when(mTelephonyManager.getSimState(anyInt())).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in populateImeiInfo_cdmaSimABSENT_shouldSetImeiInfoAndSetAllCdmaSetting()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java49 int simState = telephonyManager.getSimState(); in hasSim()
/packages/apps/Settings/src/com/android/settings/security/
DSimLockPreferenceController.java92 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DSimLockPreferenceController.java83 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DCellularDataConditionController.java64 || mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_READY) { in isDisplayable()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java64 || mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_READY) { in isDisplayable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DSimLockPreferenceControllerTest.java153 when(mTelephonyManager.getSimState(anyInt())).thenReturn(SIM_STATE_READY); in setupMockSimReady()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java154 final int simState = mTelephonyManager.getSimState(slotId); in isSimPresent()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimCard.java247 if (telephony.getSimState() == TelephonyManager.SIM_STATE_READY) { in create()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java258 int simState = mTelephonyManager.getSimState(); in onSubscriptionsChanged()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java252 return context.getSystemService(TelephonyManager.class).getSimState() in isSimReady()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java111 mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_READY; in canReadSimContacts()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java290 return mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in hasSim()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java368 && tm.getSimState() == TelephonyManager.SIM_STATE_READY; in isNetworkAvailable()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1892 || TelephonyManager.SIM_STATE_READY == mTelephonyManager.getSimState()) { in getCustomizedContextOrDefault()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java886 doReturn(TelephonyManager.SIM_STATE_ABSENT).when(mTelephony).getSimState(); in testGetLocationMcc()