Home
last modified time | relevance | path

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

12345678910>>...44

/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java108 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableAllMeteredApns()
116 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableAllMeteredApns()
140 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onRegisterDefaultNetworkAvail()
148 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDeregisterDefaultNetworkAvail()
156 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onDisableRadio()
164 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onEnableRadio()
179 context.getSystemService(NotificationManager.class) in onShowCaptivePortalNotification()
191 context.getSystemService(NotificationManager.class) in onShowNoDataServiceNotification()
200 context.getSystemService(NotificationManager.class).cancelAll(); in onCancelAllNotifications()
207 final TelephonyManager telephonyMgr = context.getSystemService(TelephonyManager.class); in onResetAllCarrierActions()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
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()
/frameworks/base/core/java/com/android/internal/policy/
DDecorContext.java62 public Object getSystemService(String name) { in getSystemService() method in DecorContext
66 (WindowManagerImpl) super.getSystemService(Context.WINDOW_SERVICE); in getSystemService()
76 .getSystemService(name); in getSystemService()
81 return super.getSystemService(name); in getSystemService()
DPhoneFallbackEventHandler.java293 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager()
300 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager()
308 mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); in getKeyguardManager()
315 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager()
323 (MediaSessionManager) mContext.getSystemService(Context.MEDIA_SESSION_SERVICE); in getMediaSessionManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java88 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced()
133 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction()
163 (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in checkIfKeyguardFeaturesDisabled()
259 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed()
294 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRemoteContactSearchDisallowed()
313 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAccessibilityServiceDisallowed()
343 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId()
369 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAccountManagementDisabled()
404 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfMeteredDataRestricted()
418 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfAutoTimeRequired()
[all …]
DTetherUtil.java33 .getSystemService(Context.CARRIER_CONFIG_SERVICE); in isEntitlementCheckRequired()
59 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in isTetherAvailable()
/frameworks/base/services/core/java/com/android/server/oemlock/
DPersistentDataBlockLock.java75 mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); in setOemUnlockAllowedByDevice()
86 mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); in isOemUnlockAllowedByDevice()
101 mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); in disallowUnlockIfNotUnlocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java90 context.getSystemService(NotificationManager.class) in createAll()
109 context.getSystemService(NotificationManager.class) in createAll()
113 context.getSystemService(NotificationManager.class) in createAll()
127 return context.getSystemService(NotificationManager.class) in getChannel()
150 context.getSystemService(NotificationManager.class) in migrateVoicemailNotificationSettings()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java67 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in enable()
73 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in disable()
83 int newRotation = ((WindowManager) sContext.getSystemService( in updateOrientation()
/frameworks/base/telephony/java/android/telephony/
DVisualVoicemailService.java252 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in setSmsFilterSettings()
284 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in sendVisualVoicemailSms()
290 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in getSubId()
291 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in getSubId()
/frameworks/base/core/java/android/widget/
DResourceCursorAdapter.java57 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
80 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
98 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
/frameworks/base/core/java/android/app/
DPresentation.java190 mDisplayManager = (DisplayManager)getContext().getSystemService(DISPLAY_SERVICE); in Presentation()
327 (WindowManagerImpl)outerContext.getSystemService(WINDOW_SERVICE); in createPresentationContext()
332 public Object getSystemService(String name) { in createPresentationContext()
336 return super.getSystemService(name); in createPresentationContext()
/frameworks/base/tests/testables/src/android/testing/
DViewUtils.java41 view.getContext().getSystemService(WindowManager.class).addView(view, lp); in attachView()
50 view.getContext().getSystemService(WindowManager.class).removeViewImmediate(view); in detachView()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java36 final TelephonyManager telephonyManager = context.getSystemService( in getMobileTemplate()
38 final SubscriptionManager subscriptionManager = context.getSystemService( in getMobileTemplate()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java41 mContext.getSystemService(Service.WINDOW_SERVICE); in getDefaultDisplay()
53 mContext.getSystemService(Service.POWER_SERVICE); in isScreenOn()
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DTestContext.java45 public Object getSystemService(String name) { in getSystemService() method in TestContext
51 return super.getSystemService(name); in getSystemService()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodManagerTest.java46 final WindowManager wm = testContext.getSystemService(WindowManager.class); in testPrivateApiGetInstance()
50 defaultDisplayContext.getSystemService(InputMethodManager.class); in testPrivateApiGetInstance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java78 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in LocationControllerImpl()
80 = (StatusBarManager) context.getSystemService(Context.STATUS_BAR_SERVICE); in LocationControllerImpl()
130 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationEnabled()
144 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DDemo0.java48 getSystemService(Context.LAYOUT_INFLATER_SERVICE); in sendMessage()
54 getSystemService(Context.LAYOUT_INFLATER_SERVICE); in sendMessage()
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java107 public Object getSystemService(String name) { in getSystemService() method in ListViewTest.MockContext2
109 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
111 return super.getSystemService(name); in getSystemService()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTetherUtilTest.java57 .when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
59 .when(mContext).getSystemService(Context.USER_SERVICE); in setUp()
64 doReturn(null).when(mContext).getSystemService(Context.CARRIER_CONFIG_SERVICE); in isEntitlementCheckRequired_noConfigManager_returnTrue()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DPrivateStorageInfo.java43 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in getPrivateStorageInfo()
62 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in getTotalSize()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassificationManagerPerfTest.java51 context.getSystemService(TextClassificationManager.class); in testGetTextClassifier_systemTextClassifierDisabled()
67 context.getSystemService(TextClassificationManager.class); in testGetTextClassifier_systemTextClassifierEnabled()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java74 (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in onServiceConnected()
208 (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in registerDefaultAppProviders()
220 final RoleManager roleManager = mContext.getSystemService(RoleManager.class); in registerDefaultAppNotifier()
246 (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in updateSimCallManagerPermissions()

12345678910>>...44