Home
last modified time | relevance | path

Searched refs:FEATURE_TELEPHONY (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/emergencynumber/
DEmergencyNumberUtilsTest.java84 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in getDefaultPoliceNumber_noTelephony_shouldReturnDefault()
93 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getDefaultPoliceNumber_hasTelephony_shouldLoadFromTelephony()
104 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasUserOverride_shouldLoadFromUserOverride()
119 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_noUserOverride_shouldLoadFromTelephony()
130 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasCarrierPrefix_shouldRemovePrefix()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManagerTest.java55 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setUp()
78 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in startTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
87 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in stopTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/data/repository/
DTelephonyRepository.kt99 applicationContext.packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DEmergencyButtonControllerTest.kt96 Mockito.`when`(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) in testUpdateEmergencyButton()
DCarrierTextManagerTest.java149 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManager.java107 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in ConnectivitySubsystemsRecoveryManager()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPhoneCallPowerStatsProcessorTest.java146 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setup()
DMobileRadioPowerStatsProcessorTest.java162 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setup()
DMobileRadioPowerStatsCollectorTest.java170 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setup()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackendTest.java78 mPackageManager.setSystemFeature(PackageManager.FEATURE_TELEPHONY, true); in setUp()
/frameworks/base/packages/SettingsLib/EmergencyNumber/src/com/android/settingslib/emergencynumber/
DEmergencyNumberUtils.java80 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in EmergencyNumberUtils()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButtonController.java152 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY), in updateEmergencyCallButton()
DCarrierTextManager.java224 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in CarrierTextManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackend.java298 PackageManager.FEATURE_TELEPHONY); in refreshList()
/frameworks/base/services/core/java/com/android/server/timedetector/
DServiceConfigAccessorImpl.java314 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isAutoDetectionSupported()
/frameworks/base/services/core/java/com/android/server/power/stats/
DMobileRadioPowerStatsCollector.java122 && packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)); in setEnabled()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DServiceConfigAccessorImpl.java439 && mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isTelephonyTimeZoneDetectionFeatureSupported()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java198 if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in AppOpsPolicy()
DLegacyGlobalActions.java145 context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in LegacyGlobalActions()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java187 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
2151 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
2172 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
2698 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
2717 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
2768 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
12032 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
12859 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
12982 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
15613 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java1401 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in getSimSpecificSettingsData()
1413 boolean hasTelephony = packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in restoreSimSpecificSettings()
/frameworks/base/services/java/com/android/server/
DSystemServer.java1526 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in startOtherServices()
2770 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in startOtherServices()
3259 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in startOtherServices()
/frameworks/base/core/java/android/telephony/
DTelephonyRegistryManager.java87 @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationAttentionHelper.java272 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in registerBroadcastListeners()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java427 mHasTelephony = packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in GlobalActionsDialogLite()

12