/cts/tests/tests/permission/src/android/permission/cts/ |
D | ServicesInstantAppsCannotAccessTests.java | 51 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetDevicePolicyManager() 57 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetFingerprintManager() 63 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetShortcutManager() 69 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetUsbManager() 76 .getSystemService(WALLPAPER_SERVICE); in cannotGetWallpaperManager() 87 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiP2pManager() 93 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiManager() 99 assertNull(InstrumentationRegistry.getTargetContext().getSystemService( in cannotGetWifiAwareManager()
|
D | PowerManagerServicePermissionTest.java | 24 PowerManager manager = getContext().getSystemService(PowerManager.class); in testSetBatterySaver_requiresPermissions() 37 PowerManager manager = getContext().getSystemService(PowerManager.class); in testGetPowerSaverMode_requiresPermissions() 47 PowerManager manager = getContext().getSystemService(PowerManager.class); in testsetDynamicPowerSavings_requiresPermissions()
|
D | NoCaptureVideoPermissionTest.java | 47 (DisplayManager)mContext.getSystemService(Context.DISPLAY_SERVICE); in testCreatePublicVirtualDisplay() 70 (DisplayManager)mContext.getSystemService(Context.DISPLAY_SERVICE); in testCreateSecureVirtualDisplay() 91 (DisplayManager)mContext.getSystemService(Context.DISPLAY_SERVICE); in testCreatePrivateVirtualDisplay()
|
D | NoSystemFunctionPermissionTest.java | 49 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( in testRestartPackage() 67 AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( in testSetTimeZone() 124 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); in testVibrator()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | PhoneAccountUtils.java | 79 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in registerTestPhoneAccount() 90 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getPhoneAccount() 100 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in unRegisterTestPhoneAccount() 110 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in registerTestSelfManagedPhoneAccount() 121 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in unRegisterTestSelfManagedPhoneAccount() 133 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getSelfManagedPhoneAccount() 144 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getDefaultOutgoingPhoneAccount() 155 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getSelfManagedPhoneAccount2()
|
D | TelecomDefaultDialerTestActivity.java | 90 RoleManager rm = (RoleManager) getSystemService(ROLE_SERVICE); in onCreate() 91 TelecomManager tm = (TelecomManager) getSystemService(TELECOM_SERVICE); in onCreate() 103 KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 139 getSystemService(DEVICE_POLICY_SERVICE); in onActivityResult()
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | SystemHealthManagerTest.java | 38 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshot() 49 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotWithMe() 60 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshotWithSystem() 78 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotsWithEmptyArray() 90 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotsWithMe() 107 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshotsWithSystem()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileUtils.java | 59 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddParentCanAccessManagedFilters() 68 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddManagedCanAccessParentFilters() 86 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testRemoveAllFilters() 93 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testDisallowCrossProfileCopyPaste() 100 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testAllowCrossProfileCopyPaste() 109 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testDisableAllBrowsers()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencyActivity.java | 57 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMaxLevel() 63 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMinLevel() 68 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in testMaxLevel() 81 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in getMaxLevelForStream() 89 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setLevelForStream() 100 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in getLevelForStream()
|
/cts/apps/NotificationBot/src/com/android/cts/robot/ |
D | NotificationBot.java | 74 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive() 86 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive() 105 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetSetupNotification() 108 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetSetupNotification() 139 context.getSystemService(NotificationManager.class); in testShortcutResetSetupNotification() 161 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetInlineReplyReceived() 168 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetInlineReplyReceived()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BackgroundCallAudioTest.java | 46 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in setUp() 86 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningAllow() 112 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningDisallow() 140 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningMissed() 166 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 205 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() 249 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromIncomingActivePlaceEmergencyCall() 284 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessActiveCall() 306 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessActiveCallMissed() 327 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessActiveCallRemoteHangup() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyRegistryManagerTest.java | 38 .getSystemService(Context.TELEPHONY_REGISTRY_SERVICE); in setUp() 65 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChangedForAllSubscriptions() 93 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChanged() 124 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyServiceStateChanged() 154 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifySignalStrengthChanged() 183 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyMessageWaitingChanged() 211 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallForwardingChanged() 237 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyDataActivityChanged()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 161 CameraManager cam = context.getSystemService(CameraManager.class); in testCameraState() 203 CameraManager cam = context.getSystemService(CameraManager.class); in testFlashlight() 234 final LocationManager locManager = context.getSystemService(LocationManager.class); in testGpsScan() 275 PowerManager pm = context.getSystemService(PowerManager.class); in testScreenBrightness() 297 AccountManager am = context.getSystemService(AccountManager.class); in testSyncState() 327 JobScheduler js = context.getSystemService(JobScheduler.class); in testScheduledJob() 343 Vibrator vib = context.getSystemService(Vibrator.class); in testVibratorState() 353 PowerManager pm = context.getSystemService(PowerManager.class); in testWakelockState() 379 AlarmManager manager = (AlarmManager) (context.getSystemService(AlarmManager.class)); in testWakeupAlarm() 389 WifiManager wm = context.getSystemService(WifiManager.class); in testWifiLockHighPerf() [all …]
|
D | Checkers.java | 36 Vibrator v = InstrumentationRegistry.getContext().getSystemService(Vibrator.class); in checkVibratorSupported() 42 WifiManager wm = InstrumentationRegistry.getContext().getSystemService(WifiManager.class); in checkWifiEnhancedPowerReportingSupported()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsMmTelManagerTest.java | 144 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testGetVoWiFiSetting_noPermission() 176 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testAdvancedCallingSetting() 212 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testVtSetting() 251 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testVoWiFiSetting() 286 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testVoWiFiRoamingSetting() 313 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testGetVoWiFiModeSetting_noPermission() 332 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testGetVoWiFiRoamingModeSetting_noPermission() 361 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testVoWiFiModeSetting() 401 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testVoWiFiRoamingModeSetting() 431 ImsManager imsManager = getContext().getSystemService(ImsManager.class); in testMethodPermissions() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplaySecurityTests.java | 194 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessSystemOwnedDisplay() 214 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPublicVirtualDisplayWithInternalPermission() 236 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPrivateVirtualDisplayWithInternalPermission() 259 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPublicVirtualDisplayNoEmbeddingPermission() 279 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed() 301 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPublicVirtualDisplayActivityEmbeddingAllowed() 323 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPrivateVirtualDisplay() 488 final Display display = mContext.getSystemService(DisplayManager.class).getDisplay( in testDisplayHasAccess_ExceptionWhenAddViewWithoutPresentOnPrivateDisplay() 491 newDisplayContext.getSystemService(WindowManager.class).addView(new View(mContext), in testDisplayHasAccess_ExceptionWhenAddViewWithoutPresentOnPrivateDisplay() 737 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testSettingFlagWithoutInternalSystemPermission() [all …]
|
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | ThrottledTests.java | 37 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertThrottled() 59 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in ensureThrottled() 65 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertCallNotThrottled()
|
D | ShortcutManagerThrottlingTestReceiver.java | 44 mManager = context.getSystemService(ShortcutManager.class); in getManager() 161 assertTrue(context.getSystemService(ShortcutManager.class).setDynamicShortcuts(list())); in testInlineReplyCheck() 162 assertTrue(context.getSystemService(ShortcutManager.class).addDynamicShortcuts(list())); in testInlineReplyCheck() 163 assertTrue(context.getSystemService(ShortcutManager.class).updateShortcuts(list())); in testInlineReplyCheck()
|
/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/ |
D | CtsCarModeInCallServiceControl.java | 52 UiModeManager uiModeManager = getSystemService(UiModeManager.class); 68 UiModeManager uiModeManager = getSystemService(UiModeManager.class); 74 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 84 .getSystemService(StorageStatsManager.class); in testVerify() 97 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifySummary() 109 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifyStats() 136 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifyStatsMultiple() 166 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifyStatsExternal() 213 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifyStatsExternalConsistent() 250 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheClearing() 251 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in testCacheClearing() 325 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheBehavior() 326 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in testCacheBehavior() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | StorageTest.java | 74 .getSystemService(StorageStatsManager.class); in testFullDisk() 133 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifySpaceApi() 134 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in testVerifySpaceApi() 183 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyQuotaApi() 191 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyAllocateApi() 218 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testBehaviorNormal() 232 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testBehaviorGroup() 246 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testBehaviorTombstone()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreTest.java | 127 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume() 140 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume_Unrelated() 230 final StorageManager storage = getContext().getSystemService(StorageManager.class); in getExternalPackageSize() 231 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in getExternalPackageSize() 239 final StorageManager storage = getContext().getSystemService(StorageManager.class); in getExternalTotalSize() 240 final StorageStatsManager stats = getContext().getSystemService(StorageStatsManager.class); in getExternalTotalSize()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | NetworkPolicyTestUtils.java | 114 final ActivityManager am = (ActivityManager) getContext().getSystemService( in isLowRamDevice() 120 final LocationManager lm = (LocationManager) getContext().getSystemService( in isLocationEnabled() 126 final LocationManager lm = (LocationManager) getContext().getSystemService( in setLocationEnabled() 265 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in getConnectivityManager() 272 mWm = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in getWifiManager()
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | LocalSliceProvider.java | 50 .spiedInstance(context.getSystemService(SliceManager.class)) in attachInfo() 57 public Object getSystemService(String name) { in attachInfo() 61 return super.getSystemService(name); in attachInfo()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 110 assertEquals(mContext.getSystemService(Context.ACTIVITY_SERVICE), in testGetSystemService() 111 contextThemeWrapper.getSystemService(Context.ACTIVITY_SERVICE)); in testGetSystemService() 112 assertNotSame(mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), in testGetSystemService() 113 contextThemeWrapper.getSystemService(Context.LAYOUT_INFLATER_SERVICE)); in testGetSystemService()
|