HomeSort by relevance Sort by last modified time
    Searched refs:getSystemService (Results 1 - 25 of 3824) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/permission/src/android/permission/cts/
ServicesInstantAppsCannotAccessTests.java 39 * Some services are not available to instant apps, see {@link Context#getSystemService}.
46 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
52 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
58 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
64 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
70 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
76 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
82 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
88 assertNull(InstrumentationRegistry.getTargetContext().getSystemService(
  /cts/tests/tests/security/aidl/android/security/cts/
IIsolatedService.aidl 21 IBinder getSystemService(String serviceName);
  /packages/apps/Dialer/java/com/android/incallui/util/
AccessibilityUtil.java 26 context.getSystemService(AccessibilityManager.class);
32 context.getSystemService(AccessibilityManager.class);
  /packages/apps/Camera2/src/com/android/camera/util/
AndroidServices.java 66 return (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
70 return (AudioManager) getSystemService(Context.AUDIO_SERVICE);
74 return (AccessibilityManager) getSystemService(Context.ACCESSIBILITY_SERVICE);
82 Object service = ApiHelper.HAS_CAMERA_2_API ? getSystemService(Context.CAMERA_SERVICE)
94 return (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
98 return (DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
102 return (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
106 return (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
110 return (LocationManager) getSystemService(Context.LOCATION_SERVICE);
114 return (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE)
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowWifiInfoTest.java 21 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
28 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
35 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
41 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
48 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
54 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
61 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
67 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
74 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
80 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE)
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/hardware/display/
DisplayManagerCompat.java 84 return ((DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE))
88 Display display = ((WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE))
104 return ((DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE))
108 Display display = ((WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE))
132 return ((DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE))
139 Display display = ((WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE))
  /development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
Compat.java 29 return context.getSystemService(LauncherApps.class).getProfiles();
31 return context.getSystemService(UserManager.class).getUserProfiles();
  /packages/apps/Dialer/java/com/android/dialer/common/
UiUtil.java 30 (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE);
37 (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
  /cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
ScreenLockHelper.java 32 KeyguardManager km = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);
TelephonyHelper.java 32 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
  /cts/hostsidetests/devicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/
SimpleActivity.java 27 final boolean enabled = getSystemService(AutofillManager.class).isEnabled();
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
CheckNoOwnerRestrictionsTest.java 28 mContext.getSystemService(UserManager.class).hasUserRestriction(
  /cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
ManagementTest.java 27 mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
  /cts/tests/framework/base/activitymanager/app/src/android/server/am/
DismissKeyguardMethodActivity.java 28 getSystemService(KeyguardManager.class).requestDismissKeyguard(this,
KeyguardLockActivity.java 29 mKeyguardLock = getSystemService(KeyguardManager.class).newKeyguardLock("test");
TurnScreenOnAttrDismissKeyguardActivity.java 27 ((KeyguardManager) getSystemService(KEYGUARD_SERVICE))
  /frameworks/support/compat/src/main/java/androidx/core/os/
UserManagerCompat.java 40 return context.getSystemService(UserManager.class).isUserUnlocked();
  /packages/apps/Dialer/java/com/android/contacts/common/util/
TelephonyManagerUtils.java 32 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
  /packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
SystemProximityWakeLock.java 41 .getSystemService(PowerManager.class)
48 context.getSystemService(DisplayManager.class).registerDisplayListener(this, null);
54 context.getSystemService(DisplayManager.class).unregisterDisplayListener(this);
87 context.getSystemService(DisplayManager.class).getDisplay(Display.DEFAULT_DISPLAY);
  /packages/apps/Settings/src/com/android/settings/password/
ScreenLockSuggestionActivity.java 25 KeyguardManager km = context.getSystemService(KeyguardManager.class);
  /packages/apps/StorageManager/src/com/android/storagemanager/automatic/
JobPreconditions.java 18 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(
27 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(
43 BatteryManager batteryManager = (BatteryManager) context.getSystemService(
52 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
AccessibilityHelper.java 32 getSystemService(Context.ACCESSIBILITY_SERVICE);
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
CrossProfileUtils.java 59 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService(
68 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService(
86 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService(
93 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
100 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
109 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
  /frameworks/support/core/ktx/src/main/java/androidx/core/content/
Context.kt 32 * @see Context.getSystemService(Class)
34 inline fun <reified T> Context.getSystemService(): T? =
35 ContextCompat.getSystemService(this, T::class.java)
37 @Deprecated("Use getSystemService", ReplaceWith("this.getSystemService<T>()"))
39 ContextCompat.getSystemService(this, T::class.java)
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
PhoneAccountUtils.java 79 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
90 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
100 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
110 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
121 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
133 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
144 TelecomManager telecomManager = (TelecomManager) context.getSystemService(
155 TelecomManager telecomManager = (TelecomManager) context.getSystemService(

Completed in 840 milliseconds

1 2 3 4 5 6 7 8 91011>>