Home
last modified time | relevance | path

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

1234

/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()
DActivityManagerTest.java18 …Manager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIV… in canGetMemoryInfoForOurProcess()
30 …Manager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIV… in canGetMemoryInfoEvenWhenWeDidNotSetIt()
DContextWrapperTest.java173 …assertThat(activity.getSystemService(serviceName), sameInstance(activity.getSystemService(serviceN… in assertSameInstanceEveryTime()
175 …assertThat(activity.getSystemService(serviceName), sameInstance(new Activity().getSystemService(se… in assertSameInstanceEveryTime()
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()
/external/chromium_org/third_party/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioTrack.java98 _context.getSystemService(Context.AUDIO_SERVICE); in InitPlayback()
217 _context.getSystemService(Context.AUDIO_SERVICE); in SetPlayoutSpeaker()
267 _context.getSystemService(Context.AUDIO_SERVICE); in SetPlayoutVolume()
287 _context.getSystemService(Context.AUDIO_SERVICE); in GetPlayoutVolume()
DAudioManagerAndroid.java37 context.getSystemService(Context.AUDIO_SERVICE); in AudioManagerAndroid()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DVibrationProvider.java46 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in VibrationProvider()
47 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in VibrationProvider()
DScreenOrientationListener.java163 (DisplayManager) mAppContext.getSystemService(Context.DISPLAY_SERVICE); in startListening()
170 (DisplayManager) mAppContext.getSystemService(Context.DISPLAY_SERVICE); in stopListening()
336 (WindowManager) mAppContext.getSystemService(Context.WINDOW_SERVICE); in updateOrientation()
/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()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DAccessibilityUtil.java52 context.getSystemService(Context.ACCESSIBILITY_SERVICE); in isAccessibilityEnabled()
64 context.getSystemService(Context.ACCESSIBILITY_SERVICE); in showWarningIfOldTalkbackRunning()
/external/chromium_org/media/base/android/java/src/org/chromium/media/
DMediaPlayerListener.java116 AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in releaseResources()
137 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in create()
/external/chromium_org/net/android/java/src/org/chromium/net/
DNetworkChangeNotifierAutoDetect.java34 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in ConnectivityManagerDelegate()
65 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiManagerDelegate()
DAndroidNetworkLibrary.java249 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in getNetworkCountryIso()
263 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in getNetworkOperator()
/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/chromium_org/printing/android/java/src/org/chromium/printing/
DPrintManagerDelegateImpl.java19 mPrintManager = (PrintManager) context.getSystemService(Context.PRINT_SERVICE); in PrintManagerDelegateImpl()
/external/chromium_org/ui/android/java/src/org/chromium/ui/
DUiUtils.java64 (InputMethodManager) view.getContext().getSystemService( in showKeyboard()
77 (InputMethodManager) view.getContext().getSystemService( in hideKeyboard()
/external/chromium_org/content/shell/android/javatests/src/org/chromium/content_shell_apk/
DContentShellPreconditionsTest.java24 PowerManager pm = (PowerManager) getInstrumentation().getContext().getSystemService( in testScreenIsOn()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java55 …ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.C… in isConnected()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DAccountsAdapter.java24 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in AccountsAdapter()
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DViewportTest.java43 WindowManager winManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); in testDefaultViewportSize()

1234