/packages/apps/Camera2/src/com/android/camera/util/ |
D | AndroidServices.java | 66 return (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in provideActivityManager() 70 return (AudioManager) getSystemService(Context.AUDIO_SERVICE); in provideAudioManager() 74 return (AccessibilityManager) getSystemService(Context.ACCESSIBILITY_SERVICE); in provideAccessibilityManager() 82 Object service = ApiHelper.HAS_CAMERA_2_API ? getSystemService(Context.CAMERA_SERVICE) in provideCameraManager() 94 return (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in provideDevicePolicyManager() 98 return (DisplayManager) getSystemService(Context.DISPLAY_SERVICE); in provideDisplayManager() 102 return (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); in provideKeyguardManager() 106 return (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); in provideLayoutInflater() 110 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in provideLocationManager() 114 return (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in provideNotificationManager() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | MobileNetworkUtils.java | 86 int phoneCount = context.getSystemService(TelephonyManager.class).getPhoneCount(); in isWifiCallingEnabled() 180 (EuiccManager) context.getSystemService(EuiccManager.class); in showEuiccSettings() 188 (TelephonyManager) context.getSystemService(TelephonyManager.class); in showEuiccSettings() 222 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in setMobileDataEnabled() 224 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() 235 context.getSystemService(TelephonyManager.class).createForSubscriptionId( in setMobileDataEnabled() 250 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isCdmaOptions() 252 final PersistableBundle carrierConfig = context.getSystemService( in isCdmaOptions() 312 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isGsmBasicOptions() 314 final PersistableBundle carrierConfig = context.getSystemService( in isGsmBasicOptions() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkUtils.java | 98 SubscriptionManager subManager = context.getSystemService(SubscriptionManager.class); in isWifiCallingEnabled() 197 (EuiccManager) context.getSystemService(EuiccManager.class); in showEuiccSettings() 205 (TelephonyManager) context.getSystemService(TelephonyManager.class); in showEuiccSettings() 239 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in setMobileDataEnabled() 241 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() 252 context.getSystemService(TelephonyManager.class).createForSubscriptionId( in setMobileDataEnabled() 267 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isCdmaOptions() 269 final PersistableBundle carrierConfig = context.getSystemService( in isCdmaOptions() 327 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class) in isGsmBasicOptions() 329 final PersistableBundle carrierConfig = context.getSystemService( in isGsmBasicOptions() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/language/ |
D | LanguageAndInputSettingsTest.java | 86 when(mActivity.getSystemService(Context.USER_SERVICE)).thenReturn(mock(UserManager.class)); in setUp() 87 when(mActivity.getSystemService(Context.INPUT_SERVICE)) in setUp() 89 when(mActivity.getSystemService(Context.INPUT_SERVICE)).thenReturn(mIm); in setUp() 90 when(mActivity.getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE)) in setUp() 92 when(mActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(mDpm); in setUp() 93 when(mActivity.getSystemService(Context.INPUT_METHOD_SERVICE)).thenReturn(mImm); in setUp() 94 when((Object) mActivity.getSystemService(AutofillManager.class)) in setUp() 134 when(activity.getSystemService(Context.INPUT_METHOD_SERVICE)) in testSummary_shouldSetToCurrentImeName() 158 doReturn(inputManager).when(context).getSystemService(Context.INPUT_SERVICE); in testNonIndexableKeys_existInXmlLayout() 160 .getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE); in testNonIndexableKeys_existInXmlLayout() [all …]
|
/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/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 99 getContext().getSystemService(AppOpsManager.class) in getPackageNameInternal() 174 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 177 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 180 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 183 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 186 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 189 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal() 223 final boolean hasLegacy = getContext().getSystemService(AppOpsManager.class) in isLegacyInternal()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate() 191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() 196 final UserManager userManager = context.getSystemService(UserManager.class); in createPreferenceControllers() 239 final StorageManager sm = context.getSystemService(StorageManager.class); 240 final UserManager userManager = context.getSystemService(UserManager.class); 256 return new StorageAsyncLoader(context, context.getSystemService(UserManager.class), in onCreateLoader() 337 final StorageStatsManager stats = getActivity().getSystemService(StorageStatsManager.class); in isQuotaSupported() 376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader() 378 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in onCreateLoader()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageDashboardFragment.java | 87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate() 191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers() 196 final UserManager userManager = context.getSystemService(UserManager.class); in createPreferenceControllers() 239 final StorageManager sm = context.getSystemService(StorageManager.class); 240 final UserManager userManager = context.getSystemService(UserManager.class); 256 return new StorageAsyncLoader(context, context.getSystemService(UserManager.class), in onCreateLoader() 337 final StorageStatsManager stats = getActivity().getSystemService(StorageStatsManager.class); in isQuotaSupported() 376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader() 378 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in onCreateLoader()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimDialogActivity.java | 149 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultDataSubId() 150 final TelephonyManager telephonyManager = getSystemService( in setDefaultDataSubId() 159 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in setDefaultCallsSubId() 164 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultSmsSubId() 175 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in subscriptionIdToPhoneAccountHandle() 176 final TelephonyManager telephonyManager = getSystemService(TelephonyManager.class); in subscriptionIdToPhoneAccountHandle()
|
D | SimSelectNotification.java | 103 SubscriptionManager subscriptionManager = ((SubscriptionManager) context.getSystemService( in onEnableMmsDataRequest() 129 TelephonyManager tm = ((TelephonyManager) context.getSystemService( in onEnableMmsDataRequest() 216 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createSimSelectNotification() 223 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in cancelSimSelectNotification() 256 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createEnableMmsNotification() 263 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in cancelEnableMmsNotification() 304 context.getSystemService(NotificationManager.class); in createSimCombinationWarningNotification() 311 context.getSystemService(NotificationManager.class); in cancelSimCombinationWarningNotification()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | AccessibilitySettingsFragment.java | 64 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); 87 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in onCreate() 131 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onResume() 139 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in onPause() 175 (CarrierConfigManager) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE); in getVolteTtySupported() 201 (CarrierConfigManager) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isTtySupportedByCarrier()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceControllerTest.java | 112 mContext.getSystemService(NotificationManager.class).setNotificationListenerAccessGranted( in onStart_serviceAccessGranted_setsPreferenceChecked() 124 mContext.getSystemService(NotificationManager.class).setNotificationListenerAccessGranted( in onStart_serviceAccessNotGranted_setsPreferenceUnchecked() 136 mContext.getSystemService(NotificationManager.class).setNotificationListenerAccessGranted( in preferenceClicked_serviceAccessGranted_showsRevokeConfirmDialog() 151 mContext.getSystemService(NotificationManager.class).setNotificationListenerAccessGranted( in preferenceClicked_serviceAccessNotGranted_showsGrantConfirmDialog() 166 NotificationManager notificationManager = mContext.getSystemService( in revokeConfirmed_revokesNotificationAccess() 189 NotificationManager notificationManager = mContext.getSystemService( in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules() 220 NotificationManager notificationManager = mContext.getSystemService( in grantConfirmed_grantsNotificationAccess()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/ |
D | ZenAccessController.java | 47 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in ZenAccessController() 84 autoApproved.addAll(context.getSystemService(NotificationManager.class) in getAutoApprovedPackages() 90 return context.getSystemService( in hasAccess() 97 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in setAccess() 104 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in deleteRules()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/zenaccess/ |
D | ZenAccessController.java | 47 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in ZenAccessController() 84 autoApproved.addAll(context.getSystemService(NotificationManager.class) in getAutoApprovedPackages() 90 return context.getSystemService( in hasAccess() 97 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in setAccess() 104 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in deleteRules()
|
/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/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | ResetNetworkConfirm.java | 122 context.getSystemService(Context.CONNECTIVITY_SERVICE); 128 context.getSystemService(Context.WIFI_SERVICE); 136 context.getSystemService(Context.TELEPHONY_SERVICE); 142 context.getSystemService(Context.NETWORK_POLICY_SERVICE); 149 context.getSystemService(Context.BLUETOOTH_SERVICE); 178 context.getSystemService(Context.WIFI_P2P_SERVICE); in p2pFactoryReset()
|
/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/apps/Settings/src/com/android/settings/ |
D | ResetNetworkConfirm.java | 93 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in doInBackground() 99 mContext.getSystemService(Context.WIFI_SERVICE); in doInBackground() 107 mContext.getSystemService(Context.TELEPHONY_SERVICE); in doInBackground() 113 mContext.getSystemService(Context.NETWORK_POLICY_SERVICE); in doInBackground() 120 mContext.getSystemService(Context.BLUETOOTH_SERVICE); in doInBackground() 178 context.getSystemService(Context.WIFI_P2P_SERVICE); in p2pFactoryReset()
|
/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()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCyclePreferenceController.java | 55 services.mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in displayPreference() 57 services.mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in displayPreference() 58 services.mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in displayPreference() 59 services.mUserManager = mContext.getSystemService(UserManager.class); in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | NightDisplayPreferenceControllerTest.java | 28 context.getSystemService(ColorDisplayManager.class) in nightDisplaySuggestion_isNotCompleted_ifAutoModeDisabled() 36 context.getSystemService(ColorDisplayManager.class) in nightDisplaySuggestion_isCompleted_ifAutoModeCustom() 44 context.getSystemService(ColorDisplayManager.class) in nightDisplaySuggestion_isCompleted_ifAutoModeTwilight() 52 context.getSystemService(ColorDisplayManager.class) in nightDisplaySuggestion_isCompleted_ifSuggestionDisabled()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | BillingCyclePreferenceController.java | 55 services.mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in displayPreference() 57 services.mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in displayPreference() 58 services.mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in displayPreference() 59 services.mUserManager = mContext.getSystemService(UserManager.class); in displayPreference()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkConfirmFragment.java | 88 context.getSystemService(Context.CONNECTIVITY_SERVICE); in resetNetwork() 94 context.getSystemService(Context.WIFI_SERVICE); in resetNetwork() 100 context.getSystemService(Context.BLUETOOTH_SERVICE); in resetNetwork() 110 context.getSystemService(Context.TELEPHONY_SERVICE); in resetNetwork() 116 context.getSystemService(Context.NETWORK_POLICY_SERVICE); in resetNetwork()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | SimLockPreferenceController.java | 45 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in SimLockPreferenceController() 47 mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE); in SimLockPreferenceController() 49 .getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE); in SimLockPreferenceController() 50 mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in SimLockPreferenceController()
|