Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneConfigurationManager.java104 if (getPhoneCount() > 1) { in getDefaultCapability()
270 public int getPhoneCount() { in getPhoneCount() method in PhoneConfigurationManager
272 return tm.getPhoneCount(); in getPhoneCount()
316 if (getPhoneCount() != numOfSims) { in switchMultiSimConfig()
DProxyController.java163 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in registerForAllDataDisconnected()
171 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in unregisterForAllDataDisconnected()
180 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in areAllDataDisconnected()
343 if ((TelephonyManager.getDefault().getPhoneCount() == 1) && (ar.exception != null)) { in onStartRadioCapabilityResponse()
DNetworkRegistrationManager.java95 if (TelephonyManager.getDefault().getPhoneCount() > 1) { in NetworkRegistrationManager()
DCarrierServiceBindHelper.java109 int numPhones = TelephonyManager.from(context).getPhoneCount(); in CarrierServiceBindHelper()
DPhoneFactory.java153 int numPhones = tm.getPhoneCount(); in makeDefaultPhone()
DSubscriptionController.java1634 phoneId >= mTelephonyManager.getPhoneCount()) { in setDisplayNumber()
1669 if (phoneId < 0 || phoneId >= mTelephonyManager.getPhoneCount()) { in setAssociatedPlmns()
2315 if (phoneId >= 0 && (phoneId < mTelephonyManager.getPhoneCount() in setDefaultFallbackSubId()
DSubscriptionInfoUpdater.java77 private static final int PROJECT_SIM_NUM = TelephonyManager.getDefault().getPhoneCount();
/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/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java564 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges()
581 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_multiSim()
598 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent()
618 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent_multiSim()
638 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testDownloadSubscription_noPriv_hasCarrierPrivi_needsConsent_multiSim_targetPsim()
841 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testSwitchToSubscription_hasCarrierPrivileges()
852 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_multiSim()
864 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent()
880 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent_multiSim()
897 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testSwitchToSubscription_hasCarrierPrivileges_needsConsent_multiSim_targetPsim()
[all …]
DEuiccCardControllerTest.java99 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccStateChangedLauncher.java65 mIsRestricted = new boolean[TelephonyManager.getDefault().getPhoneCount()]; in handleMessage()
DUiccController.java1029 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.java99 doReturn(PHONE_COUNT).when(mTelephonyManager).getPhoneCount(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyEventBuilder.java165 int phoneCount = TelephonyManager.getDefault().getPhoneCount(); in setSimStateChange()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionControllerTest.java86 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in setUp()
964 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
972 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
DMultiSimSettingControllerTest.java107 doReturn(DUAL_SIM).when(mTelephonyManager).getPhoneCount(); in setUp()
DPhoneSubInfoControllerTest.java54 doReturn(2).when(mTelephonyManager).getPhoneCount(); in setUp()
DTelephonyTest.java538 doReturn(1).when(mTelephonyManager).getPhoneCount(); in setUp()
DSubscriptionInfoUpdaterTest.java143 doReturn(1).when(mTelephonyManager).getPhoneCount(); in setUp()
DPhoneSwitcherTest.java995 doReturn(numPhones).when(mTelephonyManager).getPhoneCount(); in setNumPhones()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java115 when(mTelephonyManager.getPhoneCount()).thenReturn(3); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java175 Context.TELEPHONY_SERVICE)).getPhoneCount(); in CarrierTextController()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java279 int numPhones = TelephonyManager.getDefault().getPhoneCount();
374 int numPhones = TelephonyManager.getDefault().getPhoneCount(); in TelephonyRegistry()
1963 for (int i = 0; i < TelephonyManager.getDefault().getPhoneCount(); i++) { in dump()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java1205 return mTelephonyManager.getPhoneCount() > 1; in supportMultiActiveSlots()

12