Searched refs:getSystemService (Results 1 - 25 of 118) sorted by relevance

12345

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DWifiInfoTest.java20 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
24 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
H A DTelephonyManagerTest.java46 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
53 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
61 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
69 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
83 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE);
H A DActivityManagerTest.java18 ActivityManager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIVITY_SERVICE);
30 ActivityManager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIVITY_SERVICE);
H A DKeyguardManagerTest.java22 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE );
32 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE );
H A DInputMethodManagerTest.java24 manager = (InputMethodManager) Robolectric.application.getSystemService(Activity.INPUT_METHOD_SERVICE);
H A DClipboardManagerTest.java22 clipboardManager = (ClipboardManager) Robolectric.application.getSystemService(Context.CLIPBOARD_SERVICE);
H A DContextWrapperTest.java173 assertThat(activity.getSystemService(serviceName), sameInstance(activity.getSystemService(serviceName)));
175 assertThat(activity.getSystemService(serviceName), sameInstance(new Activity().getSystemService(serviceName)));
H A DVibratorTest.java25 vibrator = (Vibrator) new Activity().getSystemService(Context.VIBRATOR_SERVICE);
H A DPowerManagerTest.java24 powerManager = (PowerManager) Robolectric.application.getSystemService(Context.POWER_SERVICE);
H A DSensorManagerTest.java26 sensorManager = (SensorManager) Robolectric.application.getSystemService(Context.SENSOR_SERVICE);
/external/replicaisland/src/com/replica/replicaisland/
H A DVibrationSystem.java37 Vibrator vibrator = (Vibrator)params.context.getSystemService(Context.VIBRATOR_SERVICE);
H A DCustomToastSystem.java33 LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
H A DDemoApplicationModule.java46 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
H A DAndroidModule.java47 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
H A DAndroidClipboard.java31 clipboard = (android.text.ClipboardManager)context.getSystemService(Context.CLIPBOARD_SERVICE);
33 honeycombClipboard = (android.content.ClipboardManager)context.getSystemService(Context.CLIPBOARD_SERVICE);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowResourceCursorAdapter.java54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
73 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
/external/glide/library/src/main/java/com/bumptech/glide/manager/
H A DDefaultConnectivityMonitor.java54 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
/external/libgdx/extensions/gdx-controllers/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/
H A DControllerLifeCycleListener.java40 this.inputManager = (InputManager)((Context)Gdx.app).getSystemService(Context.INPUT_SERVICE);
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
H A DAudioManagerFacade.java41 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE);
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
H A DServiceUtils.java74 (NotificationManager) service.getSystemService(Context.NOTIFICATION_SERVICE);
H A DTriggerService.java153 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
159 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
/external/sl4a/Utils/src/com/googlecode/android_scripting/
H A DForegroundService.java92 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
/external/droiddriver/src/io/appium/droiddriver/actions/view/
H A DCloseKeyboardAction.java59 .getSystemService(Context.INPUT_METHOD_SERVICE);
/external/droiddriver/src/io/appium/droiddriver/base/
H A DBaseUiDevice.java50 .getSystemService(Service.POWER_SERVICE);
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
H A DPollingService.java118 CarrierConfigManager configManager = context.getSystemService(CarrierConfigManager.class);

Completed in 1152 milliseconds

12345