Home
last modified time | relevance | path

Searched refs:getPhoneCount (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java102 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailVibrationSettingsIfNeeded()
141 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailRingtoneSettingsIfNeeded()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneConfigurationManager.java115 if (getPhoneCount() > 1) { in getDefaultCapability()
283 public int getPhoneCount() { in getPhoneCount() method in PhoneConfigurationManager
329 if (getPhoneCount() != numOfSims) { in switchMultiSimConfig()
DProxyController.java366 if ((TelephonyManager.getDefault().getPhoneCount() == 1) && (ar.exception != null)) { in onStartRadioCapabilityResponse()
DSubscriptionController.java1739 phoneId >= mTelephonyManager.getPhoneCount()) { in setDisplayNumber()
1774 if (phoneId < 0 || phoneId >= mTelephonyManager.getPhoneCount()) { in setAssociatedPlmns()
2498 if (phoneId >= 0 && (phoneId < mTelephonyManager.getPhoneCount() in setDefaultFallbackSubId()
DSubscriptionInfoUpdater.java1159 for (int i = 0; i < TelephonyManager.getDefault().getPhoneCount(); i++) { in isNewSim()
DServiceStateTracker.java4258 .getSystemService(Context.TELEPHONY_SERVICE)).getPhoneCount() > 1); in setNotification()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java565 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges()
582 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_multiSim()
599 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent()
619 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent_multiSim()
639 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPriv_hasCarrierPrivi_needsConsent_multiSim_targetPsim()
842 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testSwitchToSubscription_hasCarrierPrivileges()
853 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_multiSim()
865 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent()
881 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent_multiSim()
898 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent_multiSim_targetPsim()
[all …]
DEuiccCardControllerTest.java99 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneConfigurationManagerTest.java94 assertEquals(1, mPcm.getPhoneCount()); in testGetPhoneCount()
96 assertEquals(2, mPcm.getPhoneCount()); in testGetPhoneCount()
DSubscriptionControllerTest.java99 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in setUp()
1050 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
1059 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
DSubscriptionInfoUpdaterTest.java137 doReturn(1).when(mTelephonyManager).getPhoneCount(); in setUp()
512 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testDualSimLoaded()
DTelephonyTest.java609 doReturn(1).when(mTelephonyManager).getPhoneCount(); in setUp()
613 mTelephonyManager.getPhoneCount())) in setUp()
DMultiSimSettingControllerTest.java111 doReturn(DUAL_SIM).when(mTelephonyManager).getPhoneCount(); in setUp()
DPhoneSwitcherTest.java1123 doReturn(activeModemCount).when(mTelephonyManager).getPhoneCount(); in setNumPhones()
DPhoneSubInfoControllerTest.java57 doReturn(2).when(mTelephonyManager).getPhoneCount(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccStateChangedLauncher.java65 mIsRestricted = new boolean[TelephonyManager.getDefault().getPhoneCount()]; in handleMessage()
DUiccController.java1226 return (index >= 0 && index < TelephonyManager.getDefault().getPhoneCount()); in isValidPhoneIndex()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java75 when(TelephonyManager.getDefault().getPhoneCount()).thenReturn(CARD_COUNT); in setUp()
DUiccControllerTest.java96 doReturn(PHONE_COUNT).when(mTelephonyManager).getPhoneCount(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyEventBuilder.java174 int phoneCount = TelephonyManager.getDefault().getPhoneCount(); in setSimStateChange()
DTelephonyMetrics.java207 private int mLastEnabledModemBitmap = (1 << TelephonyManager.getDefault().getPhoneCount()) - 1;
748 int phoneCount = TelephonyManager.getDefault().getPhoneCount(); in buildProto()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorSubscriptionController.java104 sNumPhones = TelephonyManager.getDefault().getPhoneCount(); in VendorSubscriptionController()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java353 int numPhones = getTelephonyManager().getPhoneCount();
2347 for (int i = 0; i < getTelephonyManager().getPhoneCount(); i++) { in dump()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java410 public int getPhoneCount() { in getPhoneCount() method in TelephonyManager
508 return getPhoneCount() > 1; in isMultiSimEnabled()
3209 for (int i = 0; i < getPhoneCount(); i++) { in getSimStateIncludingLoaded()
6866 return getPhoneCount(); in getSimCount()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTracker.java4818 for (int i = 0; i < mTelephonyManager.getPhoneCount(); i++) { in isPhoneStateIdle()

12