Home
last modified time | relevance | path

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

12

/external/robolectric/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()
DSensorManagerTest.java26 sensorManager = (SensorManager) Robolectric.application.getSystemService(Context.SENSOR_SERVICE); in setup()
DPowerManagerTest.java24 … powerManager = (PowerManager) Robolectric.application.getSystemService(Context.POWER_SERVICE); in before()
DNotificationManagerTest.java23 …notificationManager = (NotificationManager) Robolectric.application.getSystemService(Context.NOTIF… in setUp()
DConnectivityManagerTest.java27 …connectivityManager = (ConnectivityManager) Robolectric.application.getSystemService(Context.CONNE… in setUp()
/external/robolectric/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()
DShadowPopupWindow.java163 return (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in getWindowManager()
/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/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java54 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in isConnected()
/external/jmonkeyengine/engine/src/android/jme3test/android/
DDemoLaunchAdapter.java45 .getSystemService(Context.LAYOUT_INFLATER_SERVICE); in getView()
/external/droiddriver/src/io/appium/droiddriver/actions/view/
DCloseKeyboardAction.java59 .getSystemService(Context.INPUT_METHOD_SERVICE); in perform()
/external/droiddriver/src/io/appium/droiddriver/base/
DBaseUiDevice.java50 .getSystemService(Service.POWER_SERVICE); in isScreenOn()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DMemorySizeCalculator.java32 this((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE), in MemorySizeCalculator()
/external/deqp/android/package/src/com/drawelements/deqp/testercore/
DRemoteAPI.java143 …ActivityManager activityMgr = (ActivityManager)m_context.getSystemService(Context.ACTIVITY_SERVICE… in findProcess()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DListViewActivity.java63 …LayoutInflater inf = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVIC… in getView()
/external/droiddriver/src/io/appium/droiddriver/uiautomation/
DUiAutomationDriver.java152 .getSystemService(Context.ACCESSIBILITY_SERVICE); in clearAccessibilityNodeInfoCache()

12