/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppTest.java | 62 TestApp testApp = mTestAppProvider.any(); in reference_returnsNeneReference() local 64 assertThat(testApp.pkg()).isEqualTo(TestApis.packages().find(testApp.packageName())); in reference_returnsNeneReference() 69 TestApp testApp = mTestAppProvider.any(); in install_noUserSpecified_installsInInstrumentedUser() local 71 testApp.install(); in install_noUserSpecified_installsInInstrumentedUser() 74 assertThat(testApp.pkg().installedOnUser(sUser)).isTrue(); in install_noUserSpecified_installsInInstrumentedUser() 76 testApp.uninstall(sUser); in install_noUserSpecified_installsInInstrumentedUser() 82 TestApp testApp = mTestAppProvider.any(); in install_userReference_installs() local 84 testApp.install(sUser); in install_userReference_installs() 87 assertThat(testApp.pkg().installedOnUser(sUser)).isTrue(); in install_userReference_installs() 89 testApp.uninstall(sUser); in install_userReference_installs() [all …]
|
D | TestAppProviderTest.java | 143 TestApp testApp = mTestAppProvider.query() in query_testOnly_returnsMatching() local 147 assertThat(testApp.testOnly()).isTrue(); in query_testOnly_returnsMatching() 152 TestApp testApp = mTestAppProvider.query() in query_notTestOnly_returnsMatching() local 156 assertThat(testApp.testOnly()).isFalse(); in query_notTestOnly_returnsMatching() 161 TestApp testApp = mTestAppProvider.query() in query_minSdkVersion_returnsMatching() local 165 assertThat(testApp.minSdkVersion()).isAtLeast(28); in query_minSdkVersion_returnsMatching() 170 TestApp testApp = mTestAppProvider.query() in query_targetSdkVersion_returnsMatching() local 174 assertThat(testApp.targetSdkVersion()).isAtLeast(28); in query_targetSdkVersion_returnsMatching() 179 TestApp testApp = mTestAppProvider.query() in query_withPermission_returnsMatching() local 183 assertThat(testApp.permissions()).contains(PERMISSION_DECLARED_BY_TESTAPP); in query_withPermission_returnsMatching() [all …]
|
D | TestAppActivityReferenceTest.java | 56 TestApp testApp = mTestAppProvider.query().whereActivities().isNotEmpty().get(); in start_activityIsStarted() local 57 try (TestAppInstance testAppInstance = testApp.install(sUser)) { in start_activityIsStarted() 67 TestApp testApp = mTestAppProvider.query().whereActivities().isNotEmpty().get(); in remote_executes() local 68 try (TestAppInstance testAppInstance = testApp.install(sUser)) { in remote_executes()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DelegationScopesTest.java | 90 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsFromSetDelegatedScopes() argument 94 testApp.testApp().packageName(), in getDelegatedScopes_returnsFromSetDelegatedScopes() 99 testApp.testApp().packageName())) in getDelegatedScopes_returnsFromSetDelegatedScopes() 102 resetDelegatedScopes(testApp); in getDelegatedScopes_returnsFromSetDelegatedScopes() 110 try (TestAppInstance testApp = sTestApp.install(sUser)) { in setDelegatedScopes_invalidAdmin_throwsSecurityException() argument 114 testApp.testApp().packageName(), in setDelegatedScopes_invalidAdmin_throwsSecurityException() 122 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_invalidAdmin_throwsSecurityException() argument 125 sDeviceState.dpc().componentName(), testApp.testApp().packageName())); in getDelegatedScopes_invalidAdmin_throwsSecurityException() 132 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsLatestFromSetDelegatedScopes() argument 137 testApp.testApp().packageName(), in getDelegatedScopes_returnsLatestFromSetDelegatedScopes() [all …]
|
D | LockTaskTest.java | 152 TestAppInstance testApp = sTestApp.install()) { in startLockTask_recordsMetric() 155 Activity<TestAppActivity> activity = testApp.activities().any().start(); in startLockTask_recordsMetric() 435 try (TestAppInstance testApp = sTestApp.install()) { in startLockTask_includedInLockTaskPackages_taskIsLocked() argument 436 Activity<TestAppActivity> activity = testApp.activities().any().start(); in startLockTask_includedInLockTaskPackages_taskIsLocked() 463 try (TestAppInstance testApp = sTestApp.install()) { in startLockTask_notIncludedInLockTaskPackages_taskIsNotLocked() argument 464 Activity<TestAppActivity> activity = testApp.activities().any().start(); in startLockTask_notIncludedInLockTaskPackages_taskIsNotLocked() 490 try (TestAppInstance testApp = sTestApp.install()) { in startLockTask_includedInLockTaskPackages_policyShouldNotApply_taskIsNotLocked() argument 491 Activity<TestAppActivity> activity = testApp.activities().any().start(); in startLockTask_includedInLockTaskPackages_policyShouldNotApply_taskIsNotLocked() 518 try (TestAppInstance testApp = sTestApp.install()) { in finish_isLocked_doesNotFinish() argument 519 Activity<TestAppActivity> activity = testApp.activities().any().start(); in finish_isLocked_doesNotFinish() [all …]
|
D | ApplicationRestrictionsTest.java | 115 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAreSet() argument 122 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_applicationRestrictionsAreSet() 140 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() argument 151 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 246 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_policyDoesNotApply_applicationRestrictionsAreNotSet() argument 253 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_policyDoesNotApply_applicationRestrictionsAreNotSet() 305 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived() argument 306 testApp.registerReceiver(new IntentFilter(ACTION_APPLICATION_RESTRICTIONS_CHANGED)); in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived() 313 assertThat(testApp.events().broadcastReceived().whereIntent().action().isEqualTo( in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived() 330 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictionsManagingPackage_applicationRestrictionsManagingPackageIsSet() argument [all …]
|
D | NoAdminLeakingTest.java | 197 try (TestAppInstance testApp = sTestApp.install()) { in assertOnlyAggregatePolicyAvailableToNonAdmin() argument 199 accessor.accept(testApp.devicePolicyManager(), /* who= */ null); in assertOnlyAggregatePolicyAvailableToNonAdmin() 204 accessor.accept(testApp.devicePolicyManager(), DPC_COMPONENT_NAME); in assertOnlyAggregatePolicyAvailableToNonAdmin() 214 accessor.accept(testApp.devicePolicyManager(), nonexistentComponent); in assertOnlyAggregatePolicyAvailableToNonAdmin()
|
D | ScreenCaptureDisabledTest.java | 190 try (TestAppInstance testApp = sTestApp.install()) { in takeScreenshotExpectingFailure() argument 191 testApp.activities().any().start(); in takeScreenshotExpectingFailure() 200 try (TestAppInstance testApp = sTestApp.install()) { in takeScreenshotExpectingSuccess() argument 201 testApp.activities().any().start(); in takeScreenshotExpectingSuccess()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 245 public static ArrayList<String> listAs(TestApp testApp, String dirPath) throws Exception { in listAs() argument 246 return getContentsFromTestApp(testApp, dirPath, READDIR_QUERY); in listAs() 253 public static boolean canReadAndWriteAs(TestApp testApp, String path) throws Exception { in canReadAndWriteAs() argument 254 return getResultFromTestApp(testApp, path, CAN_READ_WRITE_QUERY); in canReadAndWriteAs() 262 TestApp testApp, String filePath) throws Exception { in readExifMetadataFromTestApp() argument 264 getMetadataFromTestApp(testApp, filePath, EXIF_METADATA_QUERY); in readExifMetadataFromTestApp() 273 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs() argument 274 return getResultFromTestApp(testApp, path, CREATE_FILE_QUERY); in createFileAs() 284 public static boolean createImageEntryAs(TestApp testApp, String path) throws Exception { in createImageEntryAs() argument 285 return getResultFromTestApp(testApp, path, CREATE_IMAGE_ENTRY_QUERY); in createImageEntryAs() [all …]
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemotePolicyManager.java | 30 RemotePolicyManager(TestApp testApp, UserReference user) { in RemotePolicyManager() argument 31 super(testApp, user); in RemotePolicyManager()
|
D | RemoteDelegate.java | 37 public RemoteDelegate(TestApp testApp, UserReference user) { in RemoteDelegate() argument 38 super(testApp, user); in RemoteDelegate()
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppProvider.java | 51 TestApp testApp = query().get(); in any() local 52 Log.d(TAG, "any(): returning " + testApp); in any() 53 return testApp; in any() 148 void markTestAppUsed(TestAppDetails testApp) { in markTestAppUsed() argument 149 mTestApps.remove(testApp); in markTestAppUsed()
|
D | TestAppInstance.java | 85 public TestAppInstance(TestApp testApp, UserReference user) { in TestAppInstance() argument 86 if (testApp == null || user == null) { in TestAppInstance() 89 mTestApp = testApp; in TestAppInstance() 114 public TestApp testApp() { in testApp() method in TestAppInstance 122 return testApp().packageName(); in packageName()
|
D | TestApp.java | 225 TestApp testApp = (TestApp) o; in equals() 226 return mDetails.mApp.getPackageName().equals(testApp.mDetails.mApp.getPackageName()); in equals()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 285 public static void installAppWithStoragePermissions(TestApp testApp) in installAppWithStoragePermissions() argument 289 final String packageName = testApp.getPackageName(); in installAppWithStoragePermissions() 295 Install.single(testApp).commit(); in installAppWithStoragePermissions() 308 public static void uninstallApp(TestApp testApp) throws Exception { in uninstallApp() argument 311 final String packageName = testApp.getPackageName(); in uninstallApp() 317 Log.e(TAG, "Exception occurred while uninstalling app: " + testApp, e); in uninstallApp() 328 public static ParcelFileDescriptor openFileAs(TestApp testApp, File dirPath) in openFileAs() argument 331 Bundle bundle = getFromTestApp(testApp, dirPath.getPath(), actionName); in openFileAs() 339 private static Bundle getFromTestApp(TestApp testApp, String dirPath, String actionName) in getFromTestApp() argument 351 sendIntentToTestApp(testApp, dirPath, actionName, broadcastReceiver, latch); in getFromTestApp() [all …]
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Install.java | 65 public static Install single(TestApp testApp) { in single() argument 66 return new Install(false, testApp); in single() 203 for (TestApp testApp : mTestApps) { in createSession() 204 session.addChildSessionId(createSingleInstallSession(testApp)); in createSession()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/ |
D | MimeGroupAssertions.java | 56 public static MimeGroupAssertions testApp(Context context) { in testApp() method in MimeGroupAssertions 57 return AssertionsByGroupData.testApp(context) in testApp() 58 .mergeWith(AssertionsByIntentResolution.testApp(context)); in testApp()
|
D | AssertionsByGroupData.java | 46 public static MimeGroupAssertions testApp(Context context) { in testApp() method in AssertionsByGroupData
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/ |
D | MultipleAppsTest.java | 38 super(MimeGroupCommands.testApp(context()), MimeGroupAssertions.testApp(context())); in MultipleAppsTest()
|
D | ComplexFilterTest.java | 39 super(MimeGroupCommands.testApp(context()), in ComplexFilterTest() 40 AssertionsByIntentResolution.testApp(context())); in ComplexFilterTest()
|
D | SingleAppTest.java | 43 super(MimeGroupCommands.testApp(context()), MimeGroupAssertions.testApp(context())); in SingleAppTest()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 38 String testApp = mContext.getPackageName(); in testUid() local 43 int uid3 = mContext.getPackageManager().getApplicationInfo(testApp, in testUid()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 922 private void createAndCheckFileAsApp(TestApp testApp, File newFile) throws Exception { in createAndCheckFileAsApp() argument 923 assertThat(createFileAs(testApp, newFile.getPath())).isTrue(); in createAndCheckFileAsApp() 925 .isEqualTo(testApp.getPackageName()); in createAndCheckFileAsApp() 929 private static void assertCreateFilesAs(TestApp testApp, File... files) throws Exception { in assertCreateFilesAs() argument 933 + testApp.getPackageName(), createFileAs(testApp, file.getPath())); in assertCreateFilesAs() 944 private static void assertCreatePublishedFilesAs(TestApp testApp, File... files) in assertCreatePublishedFilesAs() argument 948 + testApp.getPackageName(), createFileAs(testApp, file.getPath())); in assertCreatePublishedFilesAs() 954 private static void deleteFilesAs(TestApp testApp, File... files) throws Exception { in deleteFilesAs() argument 956 deleteFileAs(testApp, file.getPath()); in deleteFilesAs()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | ProfileOwnerTest.java | 51 sTestApp = sDeviceState.dpc().testApp(); in setUp()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/commands/ |
D | MimeGroupCommands.java | 78 static MimeGroupCommands testApp(Context context) { in testApp() method
|