/cts/tests/tests/security/src/android/security/cts/ |
D | PermissionBackupCertificateCheckTest.kt | 82 uninstallIfInstalled(APP) in tearDown() 83 clearFlag(APP, ACCESS_FINE_LOCATION, FLAG_PERMISSION_USER_SET) in tearDown() 84 clearFlag(APP, ACCESS_BACKGROUND_LOCATION, FLAG_PERMISSION_USER_SET) in tearDown() 98 grantPermission(APP, ACCESS_FINE_LOCATION) in testRestore_sameCert_restoresRuntimePermissions() 101 uninstallIfInstalled(APP) in testRestore_sameCert_restoresRuntimePermissions() 106 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_sameCert_restoresRuntimePermissions() 107 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_sameCert_restoresRuntimePermissions() 122 grantPermission(APP, ACCESS_FINE_LOCATION) in testRestore_diffCert_doesNotGrantRuntimePermissions() 125 uninstallIfInstalled(APP) in testRestore_diffCert_doesNotGrantRuntimePermissions() 130 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_diffCert_doesNotGrantRuntimePermissions() [all …]
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 62 private static final String APP = "android.backup.permission"; field in PermissionTest 90 resetApp(APP); in setUp() 101 grantPermission(APP, ACCESS_FINE_LOCATION); in testGrantDeniedRuntimePermission() 104 resetApp(APP); in testGrantDeniedRuntimePermission() 108 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission() 109 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)); in testGrantDeniedRuntimePermission() 140 grantPermission(APP, WRITE_CONTACTS); in testNoTriStateRuntimePermission() 144 setFlag(APP, ACCESS_FINE_LOCATION, FLAG_PERMISSION_USER_SET); in testNoTriStateRuntimePermission() 145 setFlag(APP, ACCESS_BACKGROUND_LOCATION, FLAG_PERMISSION_USER_SET); in testNoTriStateRuntimePermission() 148 resetApp(APP); in testNoTriStateRuntimePermission() [all …]
|
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/ |
D | CtsGpuProfilingDataTest.java | 70 private static final String APP = "android.graphics.gpuprofiling.app"; field in CtsGpuProfilingDataTest 112 getDevice().executeShellV2Command("am force-stop " + APP); in cleanup() 131 getDevice().executeShellV2Command("settings put global gpu_debug_app " + APP); in init() 157 getDevice().executeShellV2Command("am start -n " + APP + "/." + ACTIVITY); in testProfilingDataProducersAvailable()
|
/cts/tests/tests/notificationlegacy/notificationlegacy34/src/android/app/notification/legacy34/cts/ |
D | NotificationManagerApi34Test.kt | 79 NotificationHelper.SEARCH_TYPE.APP in testMediaStyle_noClearFlagNotSet() 96 NotificationHelper.SEARCH_TYPE.APP in testCustomMediaStyle_noClearFlagNotSet()
|
/cts/tests/app/shared/src/android/app/stubs/shared/ |
D | NotificationHelper.java | 57 APP, enumConstant 93 searchAll ? SEARCH_TYPE.LISTENER : SEARCH_TYPE.APP) in clickNotification() 173 case APP: in getNotifications()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerTest.java | 899 assertThat(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)).isNull(); in testNotify_nonexistentChannel_ignored() 1344 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testNotify_blockedChannel() 1358 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testCancel() 1378 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testCancelAll() 1398 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testNotifyWithTimeout() 1405 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testNotifyWithTimeout() 1482 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testMediaStyle() 1505 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testInboxStyle() 1530 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testBigTextStyle() 1558 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testBigPictureStyle() [all …]
|
D | BaseNotificationManagerTest.java | 303 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in cancelAndPoll() 350 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in sendNotification()
|
/cts/tests/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/ |
D | ServiceKillTestService.java | 82 public static final String APP = "CTSServiceKillTest"; field in ServiceKillTestService 140 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, APP + "::" + TAG); in onCreate()
|