Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java65 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_ABSENT); in hasSim_simAbsent_returnsFalse()
73 when(telephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_UNKNOWN); in hasSim_simUnknown_returnsFalse()
81 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()
DPhoneGlobals.java269 return tm.createForSubscriptionId(phone.getSubId()).getSimState() in isSimLocked()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DSimContactsTestHelper.java145 return mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_READY; in isSimReady()
168 assumeThat(mTelephonyManager.getSimState(), equalTo(TelephonyManager.SIM_STATE_ABSENT)); in assumeSimCardAbsent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogControllerTest.java149 when(mTelephonyManager.getSimState(anyInt())).thenReturn( in populateImeiInfo_cdmaSimPresent_shouldSetImeiInfoAndSetAllCdmaSetting()
165 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.java96 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java74 || mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_READY) { in isDisplayable()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java154 final int simState = mTelephonyManager.getSimState(slotId); in isSimPresent()
/packages/apps/Settings/src/com/android/settings/network/
DEnableMultiSimSidecar.java153 int simState = mTelephonyManager.getSimState(logicalSlotId); in getReadySimsCount()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DSimLockPreferenceControllerTest.java167 when(mTelephonyManager.getSimState(anyInt())).thenReturn(SIM_STATE_READY); in setupMockSimReady()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java124 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimCard.java243 if (telephony.getSimState() == TelephonyManager.SIM_STATE_READY) { in create()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java261 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.java104 mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_READY; in canReadSimContacts()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java143 doReturn(TelephonyManager.SIM_STATE_READY).when(mTelephonyManager).getSimState(); in setUp()
/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.java418 && tm.getSimState() == TelephonyManager.SIM_STATE_READY; in isNetworkAvailable()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1928 || TelephonyManager.SIM_STATE_READY == mTelephonyManager.getSimState()) { in getCustomizedContextOrDefault()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java907 doReturn(TelephonyManager.SIM_STATE_ABSENT).when(mTelephony).getSimState(); in testGetLocationMcc()