Home
last modified time | relevance | path

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

12345678910>>...12

/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()
DResourceCursorTreeAdapter.java60 mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorTreeAdapter()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneFallbackEventHandler.java197 AudioManager audioManager = (AudioManager)mContext.getSystemService( in onKeyUp()
260 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager()
267 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager()
275 mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); in getKeyguardManager()
282 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager()
DKeyguardViewBase.java182 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in interceptMediaKey()
208 mAudioManager = (AudioManager) getContext().getSystemService( in interceptMediaKey()
/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/core/java/android/view/
DContextThemeWrapper.java72 @Override public Object getSystemService(String name) { in getSystemService() method in ContextThemeWrapper
79 return mBase.getSystemService(name); in getSystemService()
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java67 wpm = (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE); in WallpaperBackupHelper()
72 WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in WallpaperBackupHelper()
/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/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
DExternalSharedPermsFLTest.java34 ).getSystemService(Context.LOCATION_SERVICE); in testRunFineLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java140 mService = (StatusBarManager)context.getSystemService(Context.STATUS_BAR_SERVICE); in PhoneStatusBarPolicy()
143 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in PhoneStatusBarPolicy()
233 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in updateVolume()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestAlertActivity.java27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
DExternalSharedPermsTest.java39 ).getSystemService(Context.LOCATION_SERVICE); in testRunLocationAndBluetooth()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
DExternalSharedPermsDiffKeyTest.java37 ).getSystemService(Context.LOCATION_SERVICE); in testRunBluetoothAndFineLocation()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java69 public static NetworkPolicyManager getSystemService(Context context) { in getSystemService() method in NetworkPolicyManager
70 return (NetworkPolicyManager) context.getSystemService(Context.NETWORK_POLICY_SERVICE); in getSystemService()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java38 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setUp()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioManagerTest.java43 mAudioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentTasksLoader.java100 mContext.getSystemService(Context.ACTIVITY_SERVICE); in RecentTasksLoader()
162 mContext.getSystemService(Context.ACTIVITY_SERVICE); in loadThumbnail()
220 mContext.getSystemService(Context.ACTIVITY_SERVICE); in getRecentTasks()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java143 mTelephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); in initLocationListeners()
269 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in getLocationManager()
390 (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCompatModeButton.java45 mAM = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in CompatModeButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDoNotDisturb.java37 mStatusBar = (StatusBarManager)context.getSystemService(Context.STATUS_BAR_SERVICE); in DoNotDisturb()
/frameworks/base/services/java/com/android/server/
DUiModeManagerService.java316 (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in UiModeManagerService()
318 (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE); in UiModeManagerService()
329 PowerManager powerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in UiModeManagerService()
566 … mStatusBarManager = (StatusBarManager) mContext.getSystemService(Context.STATUS_BAR_SERVICE); in adjustStatusBarCarModeLocked()
582 mContext.getSystemService(Context.NOTIFICATION_SERVICE); in adjustStatusBarCarModeLocked()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
DDownloadManagerBaseTest.java150 DownloadManager dm = (DownloadManager)context.getSystemService( in onReceive()
229 ConnectivityManager connManager = (ConnectivityManager)mContext.getSystemService( in getWiFiIsOn()
243 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()
421 WifiManager manager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setWiFiStateOn()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListTakeFocusFromSide.java42 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ThrashListAdapter()

12345678910>>...12