Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
DSimStatusPreferenceControllerTest.java84 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference()
93 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldSetSingleSimTitleAndSummary()
104 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldSetMultiSimTitleAndSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceControllerTest.java104 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSim_shouldAddSecondPreference()
115 when(mTelephonyManager.getPhoneCount()).thenReturn(1); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber()
128 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoPreferenceControllerTest.java95 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimGsm_shouldAddSecondPreference()
120 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimCdmaPhone_shouldSetMultiSimCdmaTitleAndMeid()
150 when(mTelephonyManager.getPhoneCount()).thenReturn(2); in displayPreference_multiSimGsmPhone_shouldSetMultiSimGsmTitleAndImei()
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyManagerCompat.java65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat
71 return telephonyManager.getPhoneCount(); in getPhoneCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/
DSimStatusPreferenceController.java72 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
103 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusPreferenceController.java72 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
103 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/packages/apps/Dialer/java/com/android/dialer/compat/telephony/
DTelephonyManagerCompat.java96 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() method in TelephonyManagerCompat
100 return telephonyManager.getPhoneCount(); in getPhoneCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/imei/
DImeiInfoPreferenceController.java51 mIsMultiSim = mTelephonyManager.getPhoneCount() > 1; in ImeiInfoPreferenceController()
68 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java73 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
139 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPhoneNumberPreferenceController.java75 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
141 return mTelephonyManager.getPhoneCount() > 1 ? mContext.getString( in getPreferenceTitle()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoPreferenceController.java53 mIsMultiSim = mTelephonyManager.getPhoneCount() > 1; in ImeiInfoPreferenceController()
70 for (int simSlotNumber = 1; simSlotNumber < mTelephonyManager.getPhoneCount(); in displayPreference()
DImeiInfoDialogController.java169 return slotIndex >= 0 && slotIndex < telephonyManager.getPhoneCount(); in isValidSlotIndex()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java287 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi()
344 if (mTelephonyManager.getPhoneCount() > 1) { in updateMwi()
526 if (mTelephonyManager.getPhoneCount() > 1) { in updateCfi()
DShortcutViewUtils.java214 if (telephonyManager.getPhoneCount() <= 0) { in pickPreferredPhone()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DSpecialCharSequenceMgr.java327 if (TelephonyManagerCompat.getPhoneCount(telephonyManager) > 1) { in handleDeviceIdDisplay()
328 for (int slot = 0; slot < telephonyManager.getPhoneCount(); slot++) { in handleDeviceIdDisplay()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java227 int getPhoneCount(); in getPhoneCount() method
244 public int getPhoneCount() { in getPhoneCount() method in TelephonyConnectionService.TelephonyManagerProxyImpl
245 return mTelephonyManager.getPhoneCount(); in getPhoneCount()
1934 int phoneCount = mTelephonyManagerProxy.getPhoneCount(); in possiblyOverrideDefaultDataForEmergencyCall()
2094 int phoneCount = mTelephonyManagerProxy.getPhoneCount(); in getFirstPhoneForEmergencyCall()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DOemUnlockPreferenceController.java181 int phoneCount = mTelephonyManager.getPhoneCount(); in isSimLockedDevice()
/packages/apps/Settings/src/com/android/settings/development/
DOemUnlockPreferenceController.java176 int phoneCount = mTelephonyManager.getPhoneCount(); in isSimLockedDevice()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java1185 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in setupConnectionServiceForDelayDial()
1225 doReturn(2).when(mTelephonyManagerProxy).getPhoneCount(); in setupConnectionServiceInApm()
1282 when(mTelephonyManagerProxy.getPhoneCount()).thenReturn(2); in setupDeviceConfig()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DLegacyVoicemailNotifier.java181 if (context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1) { in getNotificationTag()
/packages/apps/Dialer/java/com/android/dialer/notification/
DVoicemailChannelUtils.java239 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java121 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSettings.java77 private int mPhoneCount = TelephonyManager.getDefault().getPhoneCount();
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSettings.java77 private int mPhoneCount = TelephonyManager.getDefault().getPhoneCount();
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java86 int phoneCount = context.getSystemService(TelephonyManager.class).getPhoneCount(); in isWifiCallingEnabled()

12