/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/ |
D | SlotSimStatusTest.java | 82 doReturn(2).when(mTelephonyManager).getPhoneCount(); in size_returnNumberOfPhone_whenQuery() 96 doReturn(2).when(mTelephonyManager).getPhoneCount(); in size_returnNumberOfPhone_whenQueryInBackgroundThread() 113 doReturn(2).when(mTelephonyManager).getPhoneCount(); in getPreferenceOrdering_returnOrdering_whenQuery() 128 doReturn(2).when(mTelephonyManager).getPhoneCount(); in getPreferenceKey_returnKey_whenQuery() 150 doReturn(2).when(mTelephonyManager).getPhoneCount(); in getSubscriptionInfo_returnSubscriptionInfo_whenActive()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusPreferenceControllerTest.java | 130 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference() 142 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldSetSingleSimTitleAndSummary() 156 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldSetMultiSimTitleAndSummary() 176 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in handlePreferenceTreeClick_shouldStartDialogFragment() 200 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateDynamicRawDataToIndex_addToSearch_simInSimSlot()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | PhoneNumberPreferenceControllerTest.java | 96 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference() 110 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber() 124 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyManagerCompat.java | 65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat 71 return telephonyManager.getPhoneCount(); in getPhoneCount()
|
/packages/apps/Dialer/java/com/android/dialer/compat/telephony/ |
D | TelephonyManagerCompat.java | 96 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat 100 return telephonyManager.getPhoneCount(); in getPhoneCount()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PhoneNumberPreferenceController.java | 70 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference() 117 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 150 return slotIndex >= 0 && slotIndex < telephonyManager.getPhoneCount(); in isValidSlotIndex()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SlotSimStatus.java | 108 mNumberOfSlots.set(telMgr.getPhoneCount()); in queryDetails()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | NotificationMgrTest.java | 210 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in testUpdateCfi_visible_hasActiveSub_singleSIM_notificationSent() 221 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithoutDisplayName() 233 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithDisplayName()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OemUnlockPreferenceController.java | 188 int phoneCount = mTelephonyManager.getPhoneCount(); in isSimLockedDevice()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | LegacyVoicemailNotifier.java | 181 if (context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1) { in getNotificationTag()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | SpecialCharSequenceMgr.java | 327 if (TelephonyManagerCompat.getPhoneCount(telephonyManager) > 1) { in handleDeviceIdDisplay() 328 for (int slot = 0; slot < telephonyManager.getPhoneCount(); slot++) { in handleDeviceIdDisplay()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 305 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi() 362 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi() 564 if (mTelephonyManager.getPhoneCount() > 1) { in updateCfi()
|
D | ShortcutViewUtils.java | 214 if (telephonyManager.getPhoneCount() <= 0) { in pickPreferredPhone()
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | VoicemailChannelUtils.java | 239 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoPreferenceControllerTest.java | 122 when(mTelephonyManager.getPhoneCount()).thenReturn(count); in setupPhoneCount()
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | DialerSettingsActivity.java | 121 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 477 if (mTelephonyManager.getPhoneCount() <= 1) { in getLaunchSmartForwardingMenuIntent()
|
D | RadioInfo.java | 990 int phones = tm.getPhoneCount(); in getPhoneIndexLabels() 2293 return TelephonyManager.getDefault().getPhoneCount() > 1; in isDsdsEnabled()
|
/packages/apps/CellBroadcastReceiver/tests/compliancetests/src/com/android/cellbroadcastreceiver/compliancetests/ |
D | CellBroadcastBaseTest.java | 164 boolean isMultiSim = tm != null && tm.getPhoneCount() > 1; in beforeAllTests()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConnectionService.java | 318 int getPhoneCount(); in getPhoneCount() method 346 public int getPhoneCount() { in getPhoneCount() method in TelephonyConnectionService.TelephonyManagerProxyImpl 347 return mTelephonyManager.getPhoneCount(); in getPhoneCount() 3654 int phoneCount = mTelephonyManagerProxy.getPhoneCount(); in possiblyOverrideDefaultDataForEmergencyCall() 3910 int phoneCount = mTelephonyManagerProxy.getPhoneCount(); in getFirstPhoneForEmergencyCall()
|
D | TelecomAccountRegistry.java | 365 } else if (mTelephonyManager.getPhoneCount() == 1) { in buildPstnPhoneAccount()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 908 int phoneCount = mTelephonyManager.getPhoneCount(); in enableModemStackForNonOpportunisticSlots()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyConnectionServiceTest.java | 1417 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in testCreateOutgoingConnectionForNormalRoutedEmergencyCall() 4029 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in setupConnectionServiceInApmForDomainSelection() 4165 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in setupConnectionServiceForDelayDial() 4207 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in setupConnectionServiceInApm() 4261 when(mTelephonyManagerProxy.getPhoneCount()).thenReturn(2); in setupDeviceConfig()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkUtils.java | 740 for (int i = 0; i < tm.getPhoneCount(); i++) { in isCurrentCountrySupported()
|