/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
H A D | SimStatusPreferenceControllerTest.java | 89 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 D | TelephonyManagerCompat.java | 65 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 D | PhoneNumberPreferenceControllerTest.java | 109 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 D | PhoneConfigurationManager.java | 120 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 D | PhoneNumberPreferenceControllerTest.java | 124 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 D | ImeiInfoPreferenceControllerTest.java | 100 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 D | SimStatusPreferenceController.java | 75 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 D | TelephonyManagerCompat.java | 96 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 D | EuiccControllerTest.java | 565 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 D | PhoneNumberPreferenceController.java | 76 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 D | ImeiInfoPreferenceController.java | 57 mIsMultiSim = mTelephonyManager.getPhoneCount() > 1; in ImeiInfoPreferenceController() 75 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
|
H A D | ImeiInfoDialogController.java | 150 return slotIndex >= 0 && slotIndex < telephonyManager.getPhoneCount(); in isValidSlotIndex()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
H A D | VoicemailNotificationSettingsUtil.java | 102 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 D | PhoneConfigurationManagerTest.java | 101 assertEquals(1, mPcm.getPhoneCount()); in testGetPhoneCount() 103 assertEquals(2, mPcm.getPhoneCount()); in testGetPhoneCount()
|
H A D | ProxyControllerTest.java | 89 doReturn(activeModemCount).when(mTelephonyManager).getPhoneCount(); in testRequestNotSupported()
|
H A D | SubscriptionControllerTest.java | 120 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 D | UiccStateChangedLauncher.java | 65 mIsRestricted = new boolean[TelephonyManager.getDefault().getPhoneCount()]; in handleMessage()
|
/aosp12/packages/apps/Settings/src/com/android/settings/development/ |
H A D | OemUnlockPreferenceController.java | 179 int phoneCount = mTelephonyManager.getPhoneCount(); in isSimLockedDevice()
|
/aosp12/packages/services/Telephony/src/com/android/phone/ |
H A D | NotificationMgr.java | 294 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 D | UiccStateChangedLauncherTest.java | 75 when(TelephonyManager.getDefault().getPhoneCount()).thenReturn(CARD_COUNT); in setUp()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
H A D | LegacyVoicemailNotifier.java | 182 if (context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1) { in getNotificationTag()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
H A D | SpecialCharSequenceMgr.java | 327 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 D | TelephonyEventBuilder.java | 174 int phoneCount = TelephonyManager.getDefault().getPhoneCount(); in setSimStateChange()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/ |
H A D | VoicemailChannelUtils.java | 271 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
H A D | DialerSettingsActivity.java | 121 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders()
|