Home
last modified time | relevance | path

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

12345678

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowApplicationTest.java78 assertThat(context.getSystemService(Context.ACTIVITY_SERVICE)) in shouldProvideServices()
80 assertThat(context.getSystemService(Context.POWER_SERVICE)) in shouldProvideServices()
82 assertThat(context.getSystemService(Context.ALARM_SERVICE)) in shouldProvideServices()
84 assertThat(context.getSystemService(Context.NOTIFICATION_SERVICE)) in shouldProvideServices()
86 assertThat(context.getSystemService(Context.KEYGUARD_SERVICE)) in shouldProvideServices()
88 assertThat(context.getSystemService(Context.LOCATION_SERVICE)) in shouldProvideServices()
90 assertThat(context.getSystemService(Context.SEARCH_SERVICE)) in shouldProvideServices()
92 assertThat(context.getSystemService(Context.SENSOR_SERVICE)) in shouldProvideServices()
94 assertThat(context.getSystemService(Context.STORAGE_SERVICE)) in shouldProvideServices()
96 assertThat(context.getSystemService(Context.VIBRATOR_SERVICE)).isInstanceOf(Vibrator.class); in shouldProvideServices()
[all …]
DShadowStatusBarManagerTest.java26 getApplicationContext().getSystemService(Context.STATUS_BAR_SERVICE))) in getDisable()
38 getApplicationContext().getSystemService(Context.STATUS_BAR_SERVICE))) in getDisable2()
47 getApplicationContext().getSystemService(Context.STATUS_BAR_SERVICE), in callDisableMethodofStatusBarManager()
56 getApplicationContext().getSystemService(Context.STATUS_BAR_SERVICE), in callDisable2MethodofStatusBarManager()
DShadowContextImplTest.java96 assertThat(context.getSystemService(Context.BLUETOOTH_SERVICE)) in getSystemService_shouldReturnBluetoothAdapter()
102 assertThat(context.getSystemService(Context.WALLPAPER_SERVICE)) in getSystemService_shouldReturnWallpaperManager()
109 assertThat(context.getSystemService(Context.WALLPAPER_SERVICE)).isNull(); in removeSystemService_getSystemServiceReturnsNull()
164 (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in createPackageContext()
DShadowStorageManagerTest.java29 storageManager = (StorageManager) application.getSystemService(Context.STORAGE_SERVICE); in setUp()
65 shadowOf(application.getSystemService(UserManager.class)).setUserUnlocked(true); in isUserKeyUnlocked()
DShadowBluetoothManagerTest.java20 ApplicationProvider.getApplicationContext().getSystemService(Context.BLUETOOTH_SERVICE);
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DDisplayRotationHelper.java47 display = context.getSystemService(WindowManager.class).getDefaultDisplay(); in DisplayRotationHelper()
54 context.getSystemService(DisplayManager.class).registerDisplayListener(this, null); in onResume()
61 context.getSystemService(DisplayManager.class).unregisterDisplayListener(this); in onPause()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DDisplayRotationHelper.java47 display = context.getSystemService(WindowManager.class).getDefaultDisplay(); in DisplayRotationHelper()
54 context.getSystemService(DisplayManager.class).registerDisplayListener(this, null); in onResume()
61 context.getSystemService(DisplayManager.class).unregisterDisplayListener(this); in onPause()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingService.java106 SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in onCreate()
138 SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in onDestroy()
216 ImsManager manager = getSystemService(ImsManager.class); in hasUserEnabledUce()
231 CarrierConfigManager configManager = getSystemService(CarrierConfigManager.class); in isRcsSupportedByCarrier()
DPollingTask.java179 mContext.getSystemService(Context.ALARM_SERVICE); in cancelRetryAlarm()
207 mContext.getSystemService(Context.ALARM_SERVICE); in scheduleRetry()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowService.java54 …NotificationManager nm = (NotificationManager)RuntimeEnvironment.application.getSystemService(Cont… in startForeground()
68 …NotificationManager nm = (NotificationManager)RuntimeEnvironment.application.getSystemService(Cont… in removeForegroundNotification()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitleView.java270 (CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE); in isCaptionManagerEnabled()
277 (CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE); in getUserCaptionFontScaleV19()
284 (CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE); in getUserCaptionStyleV19()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DSettingsFacade.java72 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in SettingsFacade()
73 mPower = (PowerManager) mService.getSystemService(Context.POWER_SERVICE); in SettingsFacade()
74 mAlarm = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in SettingsFacade()
77 (NotificationManager) mService.getSystemService(Context.NOTIFICATION_SERVICE); in SettingsFacade()
85 (TelephonyManager) mService.getSystemService(Context.TELEPHONY_SERVICE); in SettingsFacade()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioTestService.java71 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in runAsForegroundService()
104 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onDestroy()
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/
DCopyCodeActivityTest.java51 ApplicationProvider.getApplicationContext().getSystemService(ClipboardManager.class); in onCreate_emptyCode()
68 ApplicationProvider.getApplicationContext().getSystemService(ClipboardManager.class); in onCreate_codeCopied()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DNotificationUtil.java102 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createNotificationChannel()
125 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in setNotification()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DCarrierConfigFacade.java46 (CarrierConfigManager)mService.getSystemService(Context.CARRIER_CONFIG_SERVICE); in CarrierConfigFacade()
47 mTetheringManager = (TetheringManager) mService.getSystemService(Context.TETHERING_SERVICE); in CarrierConfigFacade()
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DRcsSettingUtils.java116 context.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isEabProvisioned()
143 context.getSystemService(Context.CARRIER_CONFIG_SERVICE); in isPublishEnabled()
158 ImsManager imsManager = context.getSystemService(ImsManager.class); in hasUserEnabledContactDiscovery()
361 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in getDefaultSubscriptionId()
DRcsStackAdaptor.java210 SubscriptionManager subscriptionManager = mContext.getSystemService( in handleAssociatedSubscriptionChanged()
577 TelephonyManager tm = mContext.getSystemService(TelephonyManager.class); in createStackConnection()
578 SubscriptionManager sm = mContext.getSystemService(SubscriptionManager.class); in createStackConnection()
646 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in init()
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresencePublication.java211 TelecomManager tm = mContext.getSystemService(TelecomManager.class); in PresencePublication()
258 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in isSimLoaded()
896 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in doPublish()
949 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in getUriForPublication()
1020 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in scheduleRetryPublish()
1187 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in isOnLTE()
1197 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in isOnIWLAN()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/scheduler/
DRequirementsWatcher.java130 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE)); in registerNetworkCallbackV24()
138 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in unregisterNetworkCallbackV24()
DRequirements.java132 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getNotMetNetworkRequirements()
159 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in isDeviceIdle()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DTriggerService.java170 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in installAlarm()
176 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in uninstallAlarm()
/external/replicaisland/src/com/replica/replicaisland/
DVibrationSystem.java37 Vibrator vibrator = (Vibrator)params.context.getSystemService(Context.VIBRATOR_SERVICE); in vibrate()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DHostActivity.java186 (WifiManager) appContext.getSystemService(Context.WIFI_SERVICE)); in onStart()
191 (PowerManager) appContext.getSystemService(Context.POWER_SERVICE)); in onStart()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/
DVideoFrameReleaseTimeHelper.java77 windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in VideoFrameReleaseTimeHelper()
191 DisplayManager manager = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in maybeBuildDefaultDisplayListenerV17()

12345678