Home
last modified time | relevance | path

Searched refs:canPackageQuery (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAccountManagerEnumerationTest.java73 assertThat(sPm.canPackageQuery(sContext.getPackageName(), TARGET_VISIBLE), in onBefore()
76 () -> sPm.canPackageQuery(sContext.getPackageName(), TARGET_NOT_VISIBLE)); in onBefore()
DAppEnumerationTests.java1222 assertThat(sPm.canPackageQuery(QUERIES_ACTIVITY_ACTION, TARGET_FILTERS), in canPackageQuery_queriesActivityAction_canSeeFilters()
1228 assertThat(sPm.canPackageQuery(QUERIES_NOTHING, TARGET_FILTERS), in canPackageQuery_queriesNothing_cannotSeeFilters()
1235 () -> sPm.canPackageQuery( in canPackageQuery_withNonexistentPackages()
1238 () -> sPm.canPackageQuery( in canPackageQuery_withNonexistentPackages()
1241 () -> sPm.canPackageQuery( in canPackageQuery_withNonexistentPackages()
1248 () -> canPackageQuery( in canPackageQuery_callerHasNoPackageVisibility()
1251 () -> canPackageQuery( in canPackageQuery_callerHasNoPackageVisibility()
1259 () -> canPackageQuery(QUERIES_NOTHING, TARGET_STUB, "")); in canPackageQuery_cannotDetectPackageExistence()
1266 () -> canPackageQuery(QUERIES_NOTHING, TARGET_STUB, "")); in canPackageQuery_cannotDetectPackageExistence()
1382 assertThat(sPm.canPackageQuery(SPLIT_PKG, QUERIES_PACKAGE_PROVIDER), in grantImplicitAccessByUriGrant_canSeeProviderAfterUpdatedWithDontKill()
[all …]
DCrossUserPackageVisibilityTests.java542 () -> mPackageManager.canPackageQuery(TARGET_STUB, TARGET_STUB_SHARED_USER)); in testCanPackageQuery_cannotDetectStubPkg()
548 () -> mPackageManager.canPackageQuery(TARGET_STUB, TARGET_STUB_SHARED_USER)); in testCanPackageQuery_cannotDetectStubPkg()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DGlobalSearchSessionServiceCtsTestBase.java201 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, ctsPackageName)).isTrue(); in testPublicVisibility_accessibleTestPackage()
202 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, PKG_B)).isFalse(); in testPublicVisibility_accessibleTestPackage()
273 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, ctsPackageName)).isTrue(); in testPublicVisibility_inaccessibleHelperApp()
274 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, PKG_B)).isFalse(); in testPublicVisibility_inaccessibleHelperApp()
325 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, ctsPackageName)).isTrue(); in testPublicVisibility_invalidCertificate()
326 assertThat(mContext.getPackageManager().canPackageQuery(PKG_A, PKG_B)).isFalse(); in testPublicVisibility_invalidCertificate()
984 assertThat(mContext.getPackageManager().canPackageQuery(ctsPackageName, PKG_A)).isTrue(); in testGlobalGetById_requireAllVisibleToConfig_publicAclAndPermission()
1052 assertThat(mContext.getPackageManager().canPackageQuery(ctsPackageName, PKG_A)).isTrue(); in testGlobalGetById_requireAllVisibleToConfig_all3Settings()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java1039 final boolean visibility = getPackageManager().canPackageQuery(sourcePackageName, in sendCanPackageQuery()
1053 final boolean[] visibilities = getPackageManager().canPackageQuery(sourcePackageName, in sendCanPackageQueries()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12927 …method public boolean canPackageQuery(@NonNull String, @NonNull String) throws android.content.pm.…
12928 …method @NonNull public boolean[] canPackageQuery(@NonNull String, @NonNull String[]) throws androi…