Home
last modified time | relevance | path

Searched refs:getSystemService (Results 1 – 25 of 3632) sorted by relevance

12345678910>>...146

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
H A DFrameworkServicesModule.java111 return context.getSystemService(AlarmManager.class); in provideAlarmManager()
117 return context.getSystemService(AudioManager.class); in provideAudioManager()
211 return context.getSystemService(FaceManager.class); in provideFaceManager()
282 return context.getSystemService(LauncherApps.class); in provideLauncherApps()
323 return context.getSystemService(PowerManager.class); in providePowerManager()
335 return context.getSystemService(RoleManager.class); in provideRoleManager()
359 return context.getSystemService(StatsManager.class); in provideStatsManager()
390 return context.getSystemService(TrustManager.class); in provideTrustManager()
397 return context.getSystemService(Vibrator.class); in provideVibrator()
415 return context.getSystemService(UserManager.class); in provideUserManager()
[all …]
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DAndroidServices.java67 return (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in provideActivityManager()
71 return (AudioManager) getSystemService(Context.AUDIO_SERVICE); in provideAudioManager()
99 return (DisplayManager) getSystemService(Context.DISPLAY_SERVICE); in provideDisplayManager()
103 return (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); in provideKeyguardManager()
111 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in provideLocationManager()
119 return (PowerManager) getSystemService(Context.POWER_SERVICE); in providePowerManager()
123 return (SensorManager) getSystemService(Context.SENSOR_SERVICE); in provideSensorManager()
127 return (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); in provideVibrator()
134 private Object getSystemService(String service) { in getSystemService() method in AndroidServices
135 return getSystemService(service, null); in getSystemService()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiTrackerLibProviderImpl.java48 context.getSystemService(WifiManager.class), in createWifiPickerTracker()
49 context.getSystemService(ConnectivityManager.class), in createWifiPickerTracker()
50 context.getSystemService(NetworkScoreManager.class), in createWifiPickerTracker()
67 context.getSystemService(WifiManager.class), in createNetworkDetailsTracker()
68 context.getSystemService(ConnectivityManager.class), in createNetworkDetailsTracker()
69 context.getSystemService(NetworkScoreManager.class), in createNetworkDetailsTracker()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/language/
H A DLanguageAndInputSettingsTest.java76 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()
/aosp12/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DCarrierActionUtils.java107 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableAllMeteredApns()
115 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableAllMeteredApns()
139 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onRegisterDefaultNetworkAvail()
147 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDeregisterDefaultNetworkAvail()
155 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableRadio()
163 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableRadio()
178 context.getSystemService(NotificationManager.class) in onShowCaptivePortalNotification()
190 context.getSystemService(NotificationManager.class) in onShowNoDataServiceNotification()
199 context.getSystemService(NotificationManager.class).cancelAll(); in onCancelAllNotifications()
206 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onResetAllCarrierActions()
[all …]
/aosp12/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
H A DTelephonyUtils.java48 context.getSystemService(TelephonyManager.class).createForSubscriptionId(subId); in TelephonyUtils()
50 mTelephonyManager = context.getSystemService(TelephonyManager.class); in TelephonyUtils()
52 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in TelephonyUtils()
112 (SubscriptionManager) context.getSystemService( in isActivedSubId()
124 (SubscriptionManager) context.getSystemService( in getSlotId()
137 context.getSystemService(CarrierConfigManager.class); in getConfigForSubId()
181 context.getSystemService(SubscriptionManager.class); in getSubIdsWithFcmSupported()
/aosp12/packages/apps/Settings/src/com/android/settings/network/telephony/
H A DMobileNetworkUtils.java147 context.getSystemService(ImsManager.class); in isContactDiscoveryEnabled()
204 CarrierConfigManager carrierConfigManager = context.getSystemService( in isContactDiscoveryVisible()
282 (EuiccManager) context.getSystemService(EuiccManager.class); in showEuiccSettingsDetecting()
332 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled()
360 final PersistableBundle carrierConfig = context.getSystemService( in isCdmaOptions()
425 final PersistableBundle carrierConfig = context.getSystemService( in isGsmBasicOptions()
445 final PersistableBundle carrierConfig = context.getSystemService( in isWorldMode()
458 final PersistableBundle carrierConfig = context.getSystemService( in shouldDisplayNetworkSelectOptions()
505 final PersistableBundle carrierConfig = context.getSystemService( in isTdscdmaSupported()
895 context.getSystemService(ConnectivityManager.class); in activeNetworkIsCellular()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DSearchManagerTest.java111 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable()
114 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable()
125 mContext.getSystemService(Context.SEARCH_SERVICE); in testStartSearchIdempotent()
139 mContext.getSystemService(Context.SEARCH_SERVICE); in testStopSearchIdempotent()
154 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerInvocations()
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/
H A DVoicemailChannelUtils.java143 return context.getSystemService(NotificationManager.class).getNotificationChannel(channelId) in doesChannelExist()
169 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createGlobalVoicemailChannel()
181 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in migrateGlobalVoicemailSoundSettings()
202 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in getAllEligableAccounts()
214 context.getSystemService(TelecomManager.class).getPhoneAccount(handle); in createVoicemailChannelForAccount()
221 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createVoicemailChannelForAccount()
228 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in migrateVoicemailSoundSettings()
238 context.getSystemService(TelecomManager.class).getPhoneAccount(handle); in isChannelAllowedForAccount()
271 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1; in isSingleSimDevice()
H A DNotificationChannelManager.java57 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()
/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DRotationHelper.java78 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in enable()
83 sContext.getSystemService(DeviceStateManager.class) in enable()
88 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in disable()
90 sContext.getSystemService(DeviceStateManager.class) in disable()
101 int newRotation = ((WindowManager) sContext.getSystemService( in updateOrientation()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
H A DSimStatusImeiInfoPreferenceControllerTest.java57 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue()
60 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class)); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue()
69 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse()
72 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class)); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse()
81 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isNotAdmin_shouldReturnFalse()
/aosp12/packages/services/Iwlan/src/com/google/android/iwlan/
H A DIwlanHelper.java44 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in getNai()
80 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in getCarrierId()
87 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getSubInfo()
99 context.getSystemService(ConnectivityManager.class); in getAddressesForNetwork()
158 context.getSystemService(CarrierConfigManager.class); in getConfig()
182 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in isDefaultDataSlot()
201 ImsManager imsManager = context.getSystemService(ImsManager.class); in isCrossSimCallingEnabled()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
H A DJobPreconditions.java18 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()
/aosp12/packages/services/Telephony/src/com/android/phone/settings/
H A DAccessibilitySettingsFragment.java75 (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()
/aosp12/packages/apps/Settings/src/com/android/settings/sim/
H A DSimDialogActivity.java159 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultDataSubId()
160 final TelephonyManager telephonyManager = getSystemService( in setDefaultDataSubId()
169 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in setDefaultCallsSubId()
174 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultSmsSubId()
185 final TelecomManager telecomManager = getSystemService(TelecomManager.class); in subscriptionIdToPhoneAccountHandle()
186 final TelephonyManager telephonyManager = getSystemService(TelephonyManager.class); in subscriptionIdToPhoneAccountHandle()
/aosp12/frameworks/base/core/java/com/android/internal/policy/
H A DDecorContext.java74 public Object getSystemService(String name) { in getSystemService() method in DecorContext
81 mContentCaptureManager = (ContentCaptureManager) context.getSystemService(name); in getSystemService()
90 return super.getSystemService(name); in getSystemService()
94 return (context != null) ? context.getSystemService(name) : super.getSystemService(name); in getSystemService()
/aosp12/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
H A DSystemProximityWakeLock.java41 .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()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java90 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced()
272 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed()
316 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRemoteContactSearchDisallowed()
335 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAccessibilityServiceDisallowed()
365 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId()
391 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAccountManagementDisabled()
420 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfUsbDataSignalingIsDisabled()
448 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfMeteredDataRestricted()
469 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfPasswordQualityIsSet()
549 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkForLockSetting()
[all …]
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DNekoService.java60 NotificationManager noman = context.getSystemService(NotificationManager.class); in setupNotificationChannels()
76 NotificationManager noman = getSystemService(NotificationManager.class); in onStartJob()
127 NotificationManager noman = context.getSystemService(NotificationManager.class); in notifyCat()
151 JobScheduler jss = context.getSystemService(JobScheduler.class); in registerJobIfNeeded()
161 JobScheduler jss = context.getSystemService(JobScheduler.class); in registerJob()
175 NotificationManager noman = context.getSystemService(NotificationManager.class); in registerJob()
189 JobScheduler jss = context.getSystemService(JobScheduler.class); in cancelJob()
/aosp12/frameworks/base/core/java/android/content/
H A DPermissionChecker.java318 return context.getSystemService(PermissionCheckerManager.class).checkPermission(permission, in checkPermissionForDataDeliveryCommon()
356 return context.getSystemService(PermissionCheckerManager.class).checkPermission( in checkPermissionAndStartDataDelivery()
391 return context.getSystemService(PermissionCheckerManager.class).checkOp( in startOpForDataDelivery()
410 context.getSystemService(PermissionCheckerManager.class).finishDataDelivery( in finishDataDelivery()
430 context.getSystemService(PermissionCheckerManager.class).finishDataDelivery( in finishDataDeliveryFromDatasource()
468 return context.getSystemService(PermissionCheckerManager.class).checkOp( in checkOpForPreflight()
503 return context.getSystemService(PermissionCheckerManager.class).checkOp( in checkOpForDataDelivery()
577 return context.getSystemService(PermissionCheckerManager.class) in checkPermissionForPreflight()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
H A DSensorPrivacyServiceMockingTest.java111 doReturn(mMockedAppOpsManager).when(mContext).getSystemService(AppOpsManager.class); in testServiceInit()
114 doReturn(mMockedActivityManager).when(mContext).getSystemService(ActivityManager.class); in testServiceInit()
116 .when(mContext).getSystemService(ActivityTaskManager.class); in testServiceInit()
117 doReturn(mMockedTelephonyManager).when(mContext).getSystemService( in testServiceInit()
191 doReturn(mMockedAppOpsManager).when(mContext).getSystemService(AppOpsManager.class); in testServiceInit_AppOpsRestricted()
196 doReturn(mMockedActivityManager).when(mContext).getSystemService(ActivityManager.class); in testServiceInit_AppOpsRestricted()
198 .when(mContext).getSystemService(ActivityTaskManager.class); in testServiceInit_AppOpsRestricted()
199 doReturn(mMockedTelephonyManager).when(mContext).getSystemService( in testServiceInit_AppOpsRestricted()
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/
H A DBillingCyclePreferenceController.java56 services.mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in displayPreference()
58 services.mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in displayPreference()
59 services.mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in displayPreference()
60 services.mUserManager = mContext.getSystemService(UserManager.class); in displayPreference()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DResetNetworkConfirm.java100 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()
203 context.getSystemService(Context.WIFI_P2P_SERVICE); in p2pFactoryReset()
296 SubscriptionManager mgr = mActivity.getSystemService(SubscriptionManager.class); in getSubscriptionManager()
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/
H A DUceUtils.java93 context.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isEabProvisioned()
117 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in isPresenceCapExchangeEnabled()
133 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in isPresenceSupported()
148 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in isSipOptionsSupported()
165 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in isPresenceGroupSubscribeEnabled()
237 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in getNonRcsCapabilitiesCacheExpiration()
250 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in isRequestForbiddenBySip489()
263 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class); in getRequestRetryInterval()

12345678910>>...146