/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTestsBase.java | 99 Result sendCommand(@NonNull String sourcePackageName, @Nullable String targetPackageName, in sendCommand() argument 103 .setComponent(new ComponentName(sourcePackageName, ACTIVITY_CLASS_TEST)) in sendCommand() 146 "Latch timed out while awaiting a response from " + sourcePackageName in sendCommand() 171 Bundle sendCommandBlocking(@NonNull String sourcePackageName, in sendCommandBlocking() argument 174 final Result result = sendCommand(sourcePackageName, targetPackageName, in sendCommandBlocking() 179 Bundle sendCommandBlocking(@NonNull String sourcePackageName, int targetUid, in sendCommandBlocking() argument 182 final Result result = sendCommand(sourcePackageName, null /* targetPackageName */, in sendCommandBlocking() 187 void assertVisible(String sourcePackageName, String targetPackageName, in assertVisible() argument 189 final String[] packageNames = commandMethod.apply(sourcePackageName); in assertVisible() 192 assertThat(sourcePackageName + " should be able to see " + targetPackageName, in assertVisible() [all …]
|
D | AppEnumerationTests.java | 428 String sourcePackageName, String targetPackageName, Intent intent) throws Exception { in startExplicitActivityWithIntent() argument 429 sendCommandBlocking(sourcePackageName, targetPackageName, in startExplicitActivityWithIntent() 1399 private void assertVisible(String sourcePackageName, String targetPackageName) in assertVisible() argument 1401 Assert.assertNotNull(sourcePackageName + " should be able to see " + targetPackageName, in assertVisible() 1402 getPackageInfo(sourcePackageName, targetPackageName)); in assertVisible() 1405 private void assertNotVisible(String sourcePackageName, String targetPackageName) in assertNotVisible() argument 1408 getPackageInfo(sourcePackageName, targetPackageName); in assertNotVisible() 1409 fail(sourcePackageName + " should not be able to see " + targetPackageName); in assertNotVisible() 1414 private void assertServiceVisible(String sourcePackageName, String targetPackageName) in assertServiceVisible() argument 1416 assertTrue(bindService(sourcePackageName, targetPackageName)); in assertServiceVisible() [all …]
|
D | SyncAdapterEnumerationTests.java | 236 private String[] getSyncAdapterTypes(String sourcePackageName) throws Exception { in getSyncAdapterTypes() argument 237 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in getSyncAdapterTypes() 247 private String[] getSyncAdapterPackagesForAuthorityAsUser(String sourcePackageName, in getSyncAdapterPackagesForAuthorityAsUser() argument 252 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in getSyncAdapterPackagesForAuthorityAsUser() 257 private boolean requestSyncAndAwaitStatus(String sourcePackageName, Account account, in requestSyncAndAwaitStatus() argument 262 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in requestSyncAndAwaitStatus() 267 private PendingIntent getSyncAdapterControlPanel(String sourcePackageName, Account account, in getSyncAdapterControlPanel() argument 275 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in getSyncAdapterControlPanel() 301 private boolean getSyncAutomatically(String sourcePackageName, String targetPackageName) in getSyncAutomatically() argument 306 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in getSyncAutomatically() [all …]
|
D | MediaSessionEnumerationTests.java | 66 private boolean isTrustedForMediaControl(String sourcePackageName, in isTrustedForMediaControl() argument 71 sourcePackageName, in isTrustedForMediaControl()
|
D | LauncherAppsEnumerationTests.java | 518 private Result sendCommandAndWaitForLauncherAppsCallback(String sourcePackageName, in sendCommandAndWaitForLauncherAppsCallback() argument 523 final Result result = sendCommand(sourcePackageName, null /* targetPackageName */, in sendCommandAndWaitForLauncherAppsCallback() 529 private Result sendCommandAndWaitForLauncherAppsSessionCallback(String sourcePackageName, in sendCommandAndWaitForLauncherAppsSessionCallback() argument 533 final Result result = sendCommand(sourcePackageName, null /* targetPackageName */, in sendCommandAndWaitForLauncherAppsSessionCallback() 539 private boolean isActivityEnabled(String sourcePackageName, ComponentName componentName) in isActivityEnabled() argument 543 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in isActivityEnabled() 548 private Bundle getSuspendedPackageLauncherExtras(String sourcePackageName, in getSuspendedPackageLauncherExtras() argument 550 final Bundle response = sendCommandBlocking(sourcePackageName, targetPackageName, in getSuspendedPackageLauncherExtras() 562 private boolean shouldHideFromSuggestions(String sourcePackageName, String targetPackageName) in shouldHideFromSuggestions() argument 566 final Bundle response = sendCommandBlocking(sourcePackageName, targetPackageName, extraData, in shouldHideFromSuggestions()
|
D | AccountManagerEnumerationTest.java | 140 private String[] getAuthenticatorTypes(String sourcePackageName) throws Exception { in getAuthenticatorTypes() argument 141 final Bundle response = sendCommandBlocking(sourcePackageName, null /* targetPackageName */, in getAuthenticatorTypes()
|
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/ |
D | TestActivity.java | 375 final String sourcePackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local 378 sendCanPackageQuery(remoteCallback, sourcePackageName, targetPackageName); in handleIntent() 380 final String sourcePackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local 383 sendCanPackageQueries(remoteCallback, sourcePackageName, targetPackageNames); in handleIntent() 1036 private void sendCanPackageQuery(RemoteCallback remoteCallback, String sourcePackageName, in sendCanPackageQuery() argument 1039 final boolean visibility = getPackageManager().canPackageQuery(sourcePackageName, in sendCanPackageQuery() 1050 private void sendCanPackageQueries(RemoteCallback remoteCallback, String sourcePackageName, in sendCanPackageQueries() argument 1053 final boolean[] visibilities = getPackageManager().canPackageQuery(sourcePackageName, in sendCanPackageQueries()
|