/packages/apps/Camera2/src/com/android/camera/util/ |
D | AndroidServices.java | 67 return (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in provideActivityManager() 71 return (AudioManager) getSystemService(Context.AUDIO_SERVICE); in provideAudioManager() 75 return (AccessibilityManager) getSystemService(Context.ACCESSIBILITY_SERVICE); in provideAccessibilityManager() 83 Object service = ApiHelper.HAS_CAMERA_2_API ? getSystemService(Context.CAMERA_SERVICE) in provideCameraManager() 95 return (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in provideDevicePolicyManager() 99 return (DisplayManager) getSystemService(Context.DISPLAY_SERVICE); in provideDisplayManager() 103 return (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); in provideKeyguardManager() 107 return (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); in provideLayoutInflater() 111 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in provideLocationManager() 115 return (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in provideNotificationManager() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/language/ |
D | LanguageAndInputSettingsTest.java | 76 when(mActivity.getSystemService(Context.USER_SERVICE)).thenReturn(mock(UserManager.class)); in setUp() 77 when(mActivity.getSystemService(Context.INPUT_SERVICE)) in setUp() 79 when(mActivity.getSystemService(Context.INPUT_SERVICE)).thenReturn(mIm); in setUp() 80 when(mActivity.getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE)) in setUp() 82 when(mActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(mDpm); in setUp() 83 when(mActivity.getSystemService(Context.INPUT_METHOD_SERVICE)).thenReturn(mImm); in setUp() 84 when((Object) mActivity.getSystemService(AutofillManager.class)) in setUp() 123 doReturn(inputManager).when(context).getSystemService(Context.INPUT_SERVICE); in testNonIndexableKeys_existInXmlLayout() 125 .getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE); in testNonIndexableKeys_existInXmlLayout() 144 .getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE); in testPreferenceControllers_getPreferenceKeys_existInPreferenceScreen()
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | VoicemailChannelUtils.java | 121 return context.getSystemService(NotificationManager.class).getNotificationChannel(channelId) in doesChannelExist() 137 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createGlobalVoicemailChannel() 149 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in migrateGlobalVoicemailSoundSettings() 170 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in getAllEligableAccounts() 182 context.getSystemService(TelecomManager.class).getPhoneAccount(handle); in createVoicemailChannelForAccount() 189 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createVoicemailChannelForAccount() 196 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in migrateVoicemailSoundSettings() 206 context.getSystemService(TelecomManager.class).getPhoneAccount(handle); in isChannelAllowedForAccount() 239 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
|
D | NotificationChannelManager.java | 57 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels() 100 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getAllExistingChannelIds() 128 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createIncomingCallChannel() 142 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createOngoingCallChannel() 156 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createMissedCallChannel() 168 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createDefaultChannel()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | TelephonyUtils.java | 47 context.getSystemService(TelephonyManager.class).createForSubscriptionId(subId); in TelephonyUtils() 49 mTelephonyManager = context.getSystemService(TelephonyManager.class); in TelephonyUtils() 51 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in TelephonyUtils() 91 (SubscriptionManager) context.getSystemService( in isActivedSubId() 103 (SubscriptionManager) context.getSystemService( in getSlotId() 116 context.getSystemService(CarrierConfigManager.class); in getConfigForSubId() 160 context.getSystemService(SubscriptionManager.class); in getSubIdsWithFcmSupported()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtilsInternal.java | 82 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfRestrictionEnforced() 126 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction() 152 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfKeyguardFeaturesDisabled() 247 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfInputMethodDisallowed() 289 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfRemoteContactSearchDisallowed() 307 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfAccessibilityServiceDisallowed() 336 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId() 362 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfAccountManagementDisabled() 390 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfUsbDataSignalingIsDisabled() 418 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfMeteredDataRestricted() [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanHelper.java | 59 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in getNai() 95 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in getCarrierId() 102 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getSubInfo() 114 context.getSystemService(ConnectivityManager.class); in getAddressesForNetwork() 137 context.getSystemService(ConnectivityManager.class); in getStackedAddressesForNetwork() 205 context.getSystemService(CarrierConfigManager.class); in getConfig() 229 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in isDefaultDataSlot() 248 ImsManager imsManager = context.getSystemService(ImsManager.class); in isCrossSimCallingEnabled() 264 mCountryDetector = context.getSystemService(CountryDetector.class); in startCountryDetector()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | AccessibilitySettingsFragment.java | 75 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onCallStateChanged() 95 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in onCreate() 122 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onCreate() 150 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onResume() 159 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onPause() 184 CarrierConfigManager configManager = (CarrierConfigManager) mContext.getSystemService( in onPreferenceTreeClick() 208 (CarrierConfigManager) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isVolteTtySupportedInAnySlot() 252 mContext.getSystemService(android.telephony.ims.ImsManager.class) in isOnWfc() 281 (CarrierConfigManager) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isTtySupportedByCarrier()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceRestartTest.java | 215 .getSystemService(PowerManager.class); in setUp() 217 .getSystemService(PermissionCheckerManager.class); in setUp() 220 .getSystemService(PermissionManager.class); in setUp() 223 .getSystemService(BluetoothManager.class); in setUp() 235 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp() 237 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn( in setUp() 241 when(mMockContext.getSystemService(Context.POWER_SERVICE)).thenReturn(mPowerManager); in setUp() 246 when(mMockContext.getSystemService(Context.PERMISSION_CHECKER_SERVICE)) in setUp() 250 when(mMockContext.getSystemService(Context.PERMISSION_SERVICE)) in setUp() 252 when(mMockContext.getSystemService(Context.ALARM_SERVICE)).thenReturn(mMockAlarmManager); in setUp() [all …]
|
D | AdapterServiceFactoryResetTest.java | 229 .getSystemService(PowerManager.class); in setUp() 231 .getSystemService(PermissionCheckerManager.class); in setUp() 234 .getSystemService(PermissionManager.class); in setUp() 237 .getSystemService(BluetoothManager.class); in setUp() 249 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp() 251 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn( in setUp() 255 when(mMockContext.getSystemService(Context.POWER_SERVICE)).thenReturn(mPowerManager); in setUp() 260 when(mMockContext.getSystemService(Context.PERMISSION_CHECKER_SERVICE)) in setUp() 264 when(mMockContext.getSystemService(Context.PERMISSION_SERVICE)) in setUp() 266 when(mMockContext.getSystemService(Context.ALARM_SERVICE)).thenReturn(mMockAlarmManager); in setUp() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkUtils.java | 125 UserManager um = context.getSystemService(UserManager.class); in isMobileNetworkUserRestricted() 171 context.getSystemService(ImsManager.class); in isContactDiscoveryEnabled() 308 (EuiccManager) context.getSystemService(EuiccManager.class); in showEuiccSettingsDetecting() 338 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in isMobileDataEnabled() 356 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in setMobileDataEnabled() 358 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() 369 context.getSystemService(TelephonyManager.class).createForSubscriptionId( in setMobileDataEnabled() 393 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isCdmaOptions() 429 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isGsmOptions() 458 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isGsmBasicOptions() [all …]
|
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 266 CameraManager cam = context.getSystemService(CameraManager.class); in testCameraState() 308 CameraManager cam = context.getSystemService(CameraManager.class); in testFlashlight() 338 ActivityManager manager = context.getSystemService(ActivityManager.class); in checkIfServiceRunning() 350 final LocationManager locManager = context.getSystemService(LocationManager.class); in testGpsScan() 391 final LocationManager locManager = context.getSystemService(LocationManager.class); in testGpsStatus() 472 AccountManager am = context.getSystemService(AccountManager.class); in testSyncState() 502 JobScheduler js = context.getSystemService(JobScheduler.class); in testScheduledJob() 518 Vibrator vib = context.getSystemService(Vibrator.class); in testVibratorState() 528 PowerManager pm = context.getSystemService(PowerManager.class); in testWakelockState() 544 PowerManager pm = context.getSystemService(PowerManager.class); in testSliceByWakelockState() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetworkConfirm.java | 100 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in doInBackground() 105 VpnManager vpnManager = mContext.getSystemService(VpnManager.class); in doInBackground() 111 mContext.getSystemService(Context.WIFI_SERVICE); in doInBackground() 123 mContext.getSystemService(TelephonyManager.class) in doInBackground() 130 mContext.getSystemService(Context.NETWORK_POLICY_SERVICE); in doInBackground() 137 mContext.getSystemService(Context.BLUETOOTH_SERVICE); in doInBackground() 212 context.getSystemService(Context.WIFI_P2P_SERVICE); in p2pFactoryReset() 305 SubscriptionManager mgr = mActivity.getSystemService(SubscriptionManager.class); in getSubscriptionManager()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimDialogActivity.java | 198 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultDataSubId() 199 final TelephonyManager telephonyManager = getSystemService( in setDefaultDataSubId() 210 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in setDefaultCallsSubId() 215 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultSmsSubId() 226 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in subscriptionIdToPhoneAccountHandle() 227 final TelephonyManager telephonyManager = getSystemService(TelephonyManager.class); in subscriptionIdToPhoneAccountHandle()
|
D | SimSelectNotification.java | 110 SubscriptionManager subscriptionManager = ((SubscriptionManager) context.getSystemService( in onEnableMmsDataRequest() 136 TelephonyManager tm = ((TelephonyManager) context.getSystemService( in onEnableMmsDataRequest() 233 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createSimSelectNotification() 240 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in cancelSimSelectNotification() 272 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createEnableMmsNotification() 279 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in cancelEnableMmsNotification() 319 context.getSystemService(NotificationManager.class); in createSimCombinationWarningNotification() 326 context.getSystemService(NotificationManager.class); in cancelSimCombinationWarningNotification()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | JobPreconditions.java | 18 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isNetworkMetered() 27 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isWifiConnected() 43 BatteryManager batteryManager = (BatteryManager) context.getSystemService( in isCharging() 52 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in isIdle()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/power/ |
D | PowerManagerHelper.java | 46 return context.getSystemService(PowerManager.class).getMaximumScreenBrightnessSetting(); in getMaximumScreenBrightnessSetting() 58 return context.getSystemService(PowerManager.class).getMinimumScreenBrightnessSetting(); in getMinimumScreenBrightnessSetting() 72 PowerManager powerManager = context.getSystemService(PowerManager.class); in setDisplayState() 84 context.getSystemService(PowerManager.class).shutdown(confirm, reason, wait); in shutdown()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiTrackerLibProviderImpl.java | 47 context.getSystemService(WifiManager.class), in createWifiPickerTracker() 48 context.getSystemService(ConnectivityManager.class), in createWifiPickerTracker() 65 context.getSystemService(WifiManager.class), in createNetworkDetailsTracker() 66 context.getSystemService(ConnectivityManager.class), in createNetworkDetailsTracker()
|
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/ |
D | NearbyManagerTest.kt | 52 assertThat(appContext.getSystemService(Context.NEARBY_SERVICE)).isNotNull() in testContextGetNearbyService_fromUnTrustedApp_returnsNotNull() 61 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartScan_fromUnTrustedApp_throwsException() 83 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStopScan_fromUnTrustedApp_logsError() 110 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStartBroadcast_fromUnTrustedApp_throwsException() 139 val nearbyManager = appContext.getSystemService(Context.NEARBY_SERVICE) as NearbyManager in testNearbyManagerStopBroadcast_fromUnTrustedApp_logsError()
|
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/ |
D | SystemProximityWakeLock.java | 41 .getSystemService(PowerManager.class) in SystemProximityWakeLock() 48 context.getSystemService(DisplayManager.class).registerDisplayListener(this, null); in acquire() 54 context.getSystemService(DisplayManager.class).unregisterDisplayListener(this); in release() 87 context.getSystemService(DisplayManager.class).getDisplay(Display.DEFAULT_DISPLAY); in isDefaultDisplayOn()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 277 mBatteryStats = context.getSystemService(BatteryStatsManager.class); in WifiInjector() 279 mUserManager = mContext.getSystemService(UserManager.class); in WifiInjector() 313 mWifiCondManager = (WifiNl80211Manager) mContext.getSystemService( in WifiInjector() 324 mContext.getSystemService(SubscriptionManager.class); in WifiInjector() 327 subscriptionManager, mContext.getSystemService(CarrierConfigManager.class), in WifiInjector() 362 mContext.getSystemService(ActivityManager.class).isLowRamDevice() ? maxLinesLowRam in WifiInjector() 372 mContext.getSystemService(ActivityManager.class).isLowRamDevice() ? 128 : 256), in WifiInjector() 390 mContext.getSystemService(AppOpsManager.class), in WifiInjector() 391 mContext.getSystemService(ActivityManager.class), in WifiInjector() 484 (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE), in WifiInjector() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceProfileStatusPreferenceController.java | 37 mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class); in FaceProfileStatusPreferenceController() 42 mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class); in FaceProfileStatusPreferenceController() 47 mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class); in FaceProfileStatusPreferenceController() 52 mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class); in FaceProfileStatusPreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | BaseSettingsQCItemTestCase.java | 45 when(mContext.getSystemService(UserManager.class)).thenReturn(mUm); in baseSetUp() 46 when(mContext.getSystemService(DevicePolicyManager.class)).thenReturn(mDpm); in baseSetUp() 55 when(mContext.getSystemService(UserManager.class)).thenReturn(mUm); in setBaseUserRestriction() 60 when(mContext.getSystemService(UserManager.class)).thenReturn(mUm); in setUserRestriction()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCyclePreferenceController.java | 54 services.mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in displayPreference() 56 services.mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in displayPreference() 57 services.mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in displayPreference() 58 services.mUserManager = mContext.getSystemService(UserManager.class); in displayPreference()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 45 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkType() 57 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkInfo() 71 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkTypeName() 118 WifiManager wifiMgr = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in getWifiNetworkName() 136 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in getMobileNetworkName()
|