Home
last modified time | relevance | path

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

12345

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTelephonyManagerTest.java46 …TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERV… in shouldGiveDeviceId()
53 …TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERV… in shouldGiveNetworkOperatorName()
61 …TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERV… in shouldGiveNetworkCountryIso()
69 …TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERV… in shouldGiveNetworkOperator()
83 …TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERV… in shouldGivePhoneType()
DWifiInfoTest.java20 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in shouldReturnMacAddress()
24 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in shouldReturnMacAddress()
DContextWrapperTest.java173 …assertThat(activity.getSystemService(serviceName), sameInstance(activity.getSystemService(serviceN… in assertSameInstanceEveryTime()
175 …assertThat(activity.getSystemService(serviceName), sameInstance(new Activity().getSystemService(se… in assertSameInstanceEveryTime()
DActivityManagerTest.java18 …Manager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIV… in canGetMemoryInfoForOurProcess()
30 …Manager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIV… in canGetMemoryInfoEvenWhenWeDidNotSetIt()
DKeyguardManagerTest.java22 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE ); in testIsInRestrcitedInputMode()
32 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE ); in testShouldBeAbleToDisableTheKeyguardLock()
DInputMethodManagerTest.java24 …manager = (InputMethodManager) Robolectric.application.getSystemService(Activity.INPUT_METHOD_SERV… in setUp()
DClipboardManagerTest.java22 …clipboardManager = (ClipboardManager) Robolectric.application.getSystemService(Context.CLIPBOARD_S… in setUp()
DVibratorTest.java25 vibrator = (Vibrator) new Activity().getSystemService(Context.VIBRATOR_SERVICE); in before()
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
DAndroidClipboard.java31 clipboard = (android.text.ClipboardManager)context.getSystemService(Context.CLIPBOARD_SERVICE); in AndroidClipboard()
33 …honeycombClipboard = (android.content.ClipboardManager)context.getSystemService(Context.CLIPBOARD_… in AndroidClipboard()
DAndroidInput.java172 vibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); in AndroidInput()
570 …InputMethodManager manager = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SER… in setOnscreenKeyboardVisible()
684 manager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in registerSensorListeners()
697 manager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in registerSensorListeners()
710 if (manager == null) manager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in registerSensorListeners()
813 …orientation = ((WindowManager)context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(… in getRotation()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowResourceCursorAdapter.java54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in __constructor__()
73 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in __constructor__()
DShadowContextWrapper.java67 public Object getSystemService(String name) { in getSystemService() method in ShadowContextWrapper
68 return getApplicationContext().getSystemService(name); in getSystemService()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DSettingsFacade.java63 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in SettingsFacade()
64 mPower = (PowerManager) mService.getSystemService(Context.POWER_SERVICE); in SettingsFacade()
65 mAlarm = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in SettingsFacade()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DTriggerService.java153 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in installAlarm()
159 AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in uninstallAlarm()
DServiceUtils.java74 (NotificationManager) service.getSystemService(Context.NOTIFICATION_SERVICE); in setForeground()
/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/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java54 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in isConnected()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DAudioManagerFacade.java41 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in AudioManagerFacade()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DForegroundService.java92 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onCreate()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/
DControllerLifeCycleListener.java40 this.inputManager = (InputManager)((Context)Gdx.app).getSystemService(Context.INPUT_SERVICE); in ControllerLifeCycleListener()
/external/jmonkeyengine/engine/src/android/jme3test/android/
DDemoLaunchAdapter.java45 .getSystemService(Context.LAYOUT_INFLATER_SERVICE); in getView()

12345