Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/core/tests/coretests/src/android/app/
DSearchManagerTest.java115 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable()
118 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable()
129 mContext.getSystemService(Context.SEARCH_SERVICE); in testStartSearchIdempotent()
143 mContext.getSystemService(Context.SEARCH_SERVICE); in testStopSearchIdempotent()
158 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerInvocations()
/frameworks/support/v4/java/android/support/v4/widget/
DResourceCursorAdapter.java56 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
78 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
95 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
/frameworks/base/core/java/android/widget/
DResourceCursorAdapter.java54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
76 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
93 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
/frameworks/base/core/java/android/app/
DPresentation.java180 mDisplayManager = (DisplayManager)getContext().getSystemService(Context.DISPLAY_SERVICE); in Presentation()
309 (WindowManagerImpl)outerContext.getSystemService(Context.WINDOW_SERVICE); in createPresentationContext()
314 public Object getSystemService(String name) { in createPresentationContext()
318 return super.getSystemService(name); in createPresentationContext()
/frameworks/support/v4/froyo/android/support/v4/media/session/
DMediaSessionCompatApi8.java24 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in registerMediaButtonEventReceiver()
29 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in unregisterMediaButtonEventReceiver()
/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/core/tests/coretests/src/android/widget/
DListViewTest.java106 public Object getSystemService(String name) { in getSystemService() method in ListViewTest.MockContext2
108 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
110 return super.getSystemService(name); in getSystemService()
/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()
DDemo1.java53 getSystemService(Context.LAYOUT_INFLATER_SERVICE); in onCreate()
62 getSystemService(Context.LAYOUT_INFLATER_SERVICE); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSearchPanelView.java89 final Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in startAssistActivity()
112 mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in onFinishInflate()
119 Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in maybeSwapSearchIcon()
165 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in vibrate()
262 return ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in isAssistantAvailable()
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/
DMediaSessionCompatApi18.java32 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in registerMediaButtonEventReceiver()
37 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in unregisterMediaButtonEventReceiver()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneFallbackEventHandler.java258 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager()
265 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager()
273 mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); in getKeyguardManager()
280 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
267 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in turnScreenOff()
275 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in turnScreenOn()
278 KeyguardManager km = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); in turnScreenOn()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteDialogPresenter.java43 final MediaRouter router = (MediaRouter)activity.getSystemService( in showDialogFragment()
71 final MediaRouter router = (MediaRouter)context.getSystemService( in createDialog()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java106 @Override public Object getSystemService(String name) { in getSystemService() method in ContextThemeWrapper
113 return getBaseContext().getSystemService(name); in getSystemService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java67 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in LocationControllerImpl()
69 = (StatusBarManager) context.getSystemService(Context.STATUS_BAR_SERVICE); in LocationControllerImpl()
144 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java624 public Object getSystemService(@ServiceName @NonNull String name) { in getSystemService() method in AccessibilityService
633 mWindowManager = (WindowManager) getBaseContext().getSystemService(name); in getSystemService()
637 return super.getSystemService(name); in getSystemService()
669 final WindowManagerImpl wm = (WindowManagerImpl) getSystemService(WINDOW_SERVICE); in onBind()
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE); in onCreate()
46 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); in onCreate()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardViewBase.java317 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in interceptMediaKey()
343 mAudioManager = (AudioManager) getContext().getSystemService( in interceptMediaKey()
386 mAudioManager = (AudioManager) getContext().getSystemService( in handleMediaKeyEvent()
460 final Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in showAssistant()
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
DWakeUpCall.java46 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in onReceive()
106 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in screenOn()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java104 DisplayManager dm = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in createVirtualDisplay()
137 DisplayManager dm = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in createVirtualDisplay()
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java99 (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in WallpaperBackupHelper()
101 (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE); in WallpaperBackupHelper()
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DDozeTestDream.java75 mPowerManager = (PowerManager)getSystemService(Context.POWER_SERVICE); in onCreate()
78 mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE); in onCreate()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java47 .getSystemService(Context.AUDIO_SERVICE); in SettingsHelper()
49 .getSystemService(Context.TELEPHONY_SERVICE); in SettingsHelper()
168 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setGpsLocation()
/frameworks/base/services/core/java/com/android/server/notification/
DNextAlarmTracker.java106 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in init()
107 final PowerManager p = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in init()
210 final AlarmManager alarms = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in rescheduleAlarm()

12345678910>>...23