Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
H A DSimStatusPreferenceControllerTest.java89 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference()
98 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldSetSingleSimTitleAndSummary()
109 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldSetMultiSimTitleAndSummary()
/aosp12/packages/apps/Contacts/src/com/android/contacts/compat/
H A DTelephonyManagerCompat.java65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat
71 return telephonyManager.getPhoneCount(); in getPhoneCount()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceControllerTest.java109 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference()
120 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber()
133 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneConfigurationManager.java120 if (getPhoneCount() > 1) { in getDefaultCapability()
289 public int getPhoneCount() { in getPhoneCount() method in PhoneConfigurationManager
335 if (getPhoneCount() != numOfSims) { in switchMultiSimConfig()
355 int oldNumOfActiveModems = getPhoneCount(); in onMultiSimConfigChanged()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceControllerTest.java124 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference()
137 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber()
150 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
H A DImeiInfoPreferenceControllerTest.java100 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimGsm_shouldAddSecondPreference()
125 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimCdmaPhone_shouldSetMultiSimCdmaTitleAndMeid()
155 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimGsmPhone_shouldSetMultiSimGsmTitleAndImei()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
H A DSimStatusPreferenceController.java75 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
106 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/aosp12/packages/apps/Dialer/java/com/android/dialer/compat/telephony/
H A DTelephonyManagerCompat.java96 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat
100 return telephonyManager.getPhoneCount(); in getPhoneCount()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
H A 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 …]
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceController.java76 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
133 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
H A DImeiInfoPreferenceController.java57 mIsMultiSim = mTelephonyManager.getPhoneCount() > 1; in ImeiInfoPreferenceController()
75 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
H A DImeiInfoDialogController.java150 return slotIndex >= 0 && slotIndex < telephonyManager.getPhoneCount(); in isValidSlotIndex()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
H A DVoicemailNotificationSettingsUtil.java102 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailVibrationSettingsIfNeeded()
141 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailRingtoneSettingsIfNeeded()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneConfigurationManagerTest.java101 assertEquals(1, mPcm.getPhoneCount()); in testGetPhoneCount()
103 assertEquals(2, mPcm.getPhoneCount()); in testGetPhoneCount()
H A DProxyControllerTest.java89 doReturn(activeModemCount).when(mTelephonyManager).getPhoneCount(); in testRequestNotSupported()
H A DSubscriptionControllerTest.java120 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in setUp()
1545 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testGetActiveSubscriptionInfoListWithCarrierPrivilegesOnOneSubId()
1572 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testGetActiveSubscriptionInfoListCheckOrder()
1771 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
1780 doReturn(2).when(mTelephonyManager).getPhoneCount(); in testGetEnabledSubscriptionIdDualSIM()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccStateChangedLauncher.java65 mIsRestricted = new boolean[TelephonyManager.getDefault().getPhoneCount()]; in handleMessage()
/aosp12/packages/apps/Settings/src/com/android/settings/development/
H A DOemUnlockPreferenceController.java179 int phoneCount = mTelephonyManager.getPhoneCount(); in isSimLockedDevice()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DNotificationMgr.java294 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi()
351 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi()
545 if (mTelephonyManager.getPhoneCount() > 1) { in updateCfi()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DUiccStateChangedLauncherTest.java75 when(TelephonyManager.getDefault().getPhoneCount()).thenReturn(CARD_COUNT); in setUp()
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DLegacyVoicemailNotifier.java182 if (context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1) { in getNotificationTag()
/aosp12/packages/apps/Dialer/java/com/android/dialer/dialpadview/
H A DSpecialCharSequenceMgr.java327 if (TelephonyManagerCompat.getPhoneCount(telephonyManager) > 1) { in handleDeviceIdDisplay()
328 for (int slot = 0; slot < telephonyManager.getPhoneCount(); slot++) { in handleDeviceIdDisplay()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyEventBuilder.java174 int phoneCount = TelephonyManager.getDefault().getPhoneCount(); in setSimStateChange()
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/
H A DVoicemailChannelUtils.java271 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/settings/
H A DDialerSettingsActivity.java121 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders()

123