Home
last modified time | relevance | path

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

12345678910>>...18

/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/testing/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/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/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/policy/src/com/android/internal/policy/impl/
DPhoneFallbackEventHandler.java200 AudioManager audioManager = (AudioManager)mContext.getSystemService( in onKeyUp()
261 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager()
268 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager()
276 mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); in getKeyguardManager()
283 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSearchPanelView.java96 Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in startAssistActivity()
164 mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in onFinishInflate()
172 Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in maybeSwapSearchIcon()
209 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in vibrate()
303 return ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in isAssistantAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationController.java82 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in LocationController()
84 = (StatusBarManager) context.getSystemService(Context.STATUS_BAR_SERVICE); in LocationController()
154 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted()
/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()
DRestrictionsPinActivity.java54 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
64 (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); in initUi()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java110 @Override public Object getSystemService(String name) { in getSystemService() method in ContextThemeWrapper
117 return mBase.getSystemService(name); in getSystemService()
/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.java120 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in interceptMediaKey()
146 mAudioManager = (AudioManager) getContext().getSystemService( in interceptMediaKey()
DKeyguardSelectorView.java68 ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE))
202 ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in updateTargets()
214 Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in updateResources()
DKeyguardViewMediator.java494 mPM = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in KeyguardViewMediator()
495 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in KeyguardViewMediator()
503 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in KeyguardViewMediator()
515 WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); in KeyguardViewMediator()
548 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in onSystemReady()
1194 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in playSounds()
1270 mContext.getSystemService(Context.STATUS_BAR_SERVICE); in adjustStatusBarLocked()
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java84 wpm = (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE); in WallpaperBackupHelper()
89 WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in WallpaperBackupHelper()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java210 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
212 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
493 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in turnScreenOff()
501 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in turnScreenOn()
504 KeyguardManager km = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); in turnScreenOn()
/frameworks/base/core/java/android/net/
DNetworkIdentity.java151 final TelephonyManager telephony = (TelephonyManager) context.getSystemService( in buildNetworkIdentity()
164 final WifiManager wifi = (WifiManager) context.getSystemService( in buildNetworkIdentity()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java87 DownloadManager dm = (DownloadManager)context.getSystemService( in onReceive()
166 ConnectivityManager connManager = (ConnectivityManager)mContext.getSystemService( in getWiFiIsOn()
180 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()
219 WifiManager manager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setWiFiStateOn()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
DExternalSharedPermsFLTest.java34 ).getSystemService(Context.LOCATION_SERVICE); in testRunFineLocation()
/frameworks/support/v4/jellybean-mr1/android/support/v4/hardware/display/
DDisplayManagerJellybeanMr1.java24 return context.getSystemService(Context.DISPLAY_SERVICE); in getDisplayManager()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestAlertActivity.java27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()

12345678910>>...18