Home
last modified time | relevance | path

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

1234567

/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.java95 assertThat(context.getSystemService(Context.BLUETOOTH_SERVICE)) in getSystemService_shouldReturnBluetoothAdapter()
101 assertThat(context.getSystemService(Context.WALLPAPER_SERVICE)) in getSystemService_shouldReturnWallpaperManager()
108 assertThat(context.getSystemService(Context.WALLPAPER_SERVICE)).isNull(); in removeSystemService_getSystemServiceReturnsNull()
163 (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()
DShadowContextWrapperTest.java451 …assertThat(activity1.getSystemService(serviceName)).isSameAs(activity1.getSystemService(serviceNam… in assertSameInstanceEveryTime()
452 …assertThat(activity1.getSystemService(serviceName)).isSameAs(activity2.getSystemService(serviceNam… in assertSameInstanceEveryTime()
605 assertThat(context.getSystemService(Context.WALLPAPER_SERVICE)).isNull();
DShadowBluetoothManagerTest.java20 ApplicationProvider.getApplicationContext().getSystemService(Context.BLUETOOTH_SERVICE);
DShadowNetworkScoreManagerTest.java23 (NetworkScoreManager) context.getSystemService(Context.NETWORK_SCORE_SERVICE); in testGetActiveScorerPackage()
DShadowEuiccManagerTest.java24 euiccManager = application.getSystemService(EuiccManager.class); in setUp()
/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/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/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/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/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()
DCustomToastSystem.java33 …LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE… in CustomToastSystem()
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
DDemoApplicationModule.java46 return (LocationManager) application.getSystemService(LOCATION_SERVICE); in provideLocationManager()
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
DAndroidModule.java47 return (LocationManager) application.getSystemService(LOCATION_SERVICE); in provideLocationManager()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingTask.java177 mContext.getSystemService(Context.ALARM_SERVICE); in cancelRetryAlarm()
205 mContext.getSystemService(Context.ALARM_SERVICE); in scheduleRetry()
/external/grpc-grpc-java/android/src/main/java/io/grpc/android/
DAndroidChannelBuilder.java203 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in AndroidChannel()
349 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in onReceive()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DServiceUtils.java74 (NotificationManager) service.getSystemService(Context.NOTIFICATION_SERVICE); in setForeground()
/external/perfetto/test/cts/producer/src/android/perfetto/producer/
DProducerActivity.java35 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onResume()
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresencePublication.java197 final TelephonyManager teleMgr = (TelephonyManager) context.getSystemService( in PresencePublication()
911 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in doPublish()
971 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in scheduleRetryPublish()
1207 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in isOnLTE()
1217 TelephonyManager teleMgr = (TelephonyManager) mContext.getSystemService( in isOnIWLAN()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java107 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in ConnectivityManagerDelegate()
229 ? (WifiManager) context.getSystemService(Context.WIFI_SERVICE) : null; in WifiManagerDelegate()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java54 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in isConnected()

1234567