Home
last modified time | relevance | path

Searched refs:PackageInfoFlags (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java58 import android.content.pm.PackageManager.PackageInfoFlags;
173 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasMedataData_notDisplayCompat_returnsTrue()
191 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
211 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasFeatureAutomotive_requiredTrue_returnsFalse()
223 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasFeatureAutomotive_requiredFalse_returnsFalse()
232 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasNoActivities_returnsFalse()
245 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasDistractionOptimizedActivity_returnsFalse()
256 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in isPrivileged_returnsFalse()
271 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in isSystem_returnsFalse()
286 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasPlatformSignature_returnsFalse()
[all …]
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderInterface.java26 import android.content.pm.PackageManager.PackageInfoFlags;
61 @NonNull PackageInfoFlags flags, @UserIdInt int userId) in getPackageInfoAsUser()
DCarDisplayCompatScaleProvider.java46 import android.content.pm.PackageManager.PackageInfoFlags;
131 PackageInfoFlags flags, int userId) in getBuiltinInterface()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DPackageManagerKtx.kt26 val pkgInfo = this.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in PackageManager()
DCredentialKtx.kt370 PackageManager.PackageInfoFlags.of(0) in getServiceLabelAndIcon()
401 PackageManager.PackageInfoFlags.of(0) in getServiceLabelAndIcon()
435 PackageManager.PackageInfoFlags.of( in getPackageInfo()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java42 import android.content.pm.PackageManager.PackageInfoFlags;
81 final PackageInfoFlags flags = PackageInfoFlags.of(GET_PERMISSIONS | GET_CONFIGURATIONS); in getPackageInfo()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTest.java32 assertThat(PackageManager.PackageInfoFlags.of(42L).getValue()).isEqualTo(42L); in testPackageInfoFlags()
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java135 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_FACTORY_ONLY)); in testUpdateSystemApp_InstallV2()
139 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_InstallV2()
148 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_FACTORY_ONLY)); in testUpdateSystemApp_InstallV2()
152 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_InstallV2()
166 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_FACTORY_ONLY)); in testUpdateSystemApp_PostInstallV2()
170 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_PostInstallV2()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/
DDataConverter.kt69 pm.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in <lambda>()
98 PackageManager.PackageInfoFlags.of(0) in getServiceLabelAndIcon()
129 PackageManager.PackageInfoFlags.of(0) in getServiceLabelAndIcon()
163 PackageManager.PackageInfoFlags.of( in getPackageInfo()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java227 return getPackageInfo(packageName, PackageInfoFlags.of(flags)); in getPackageInfo()
231 public PackageInfo getPackageInfo(String packageName, PackageInfoFlags flags) in getPackageInfo()
239 return getPackageInfo(versionedPackage, PackageInfoFlags.of(flags)); in getPackageInfo()
243 public PackageInfo getPackageInfo(VersionedPackage versionedPackage, PackageInfoFlags flags) in getPackageInfo()
261 return getPackageInfoAsUser(packageName, PackageInfoFlags.of(flags), userId); in getPackageInfoAsUser()
265 public PackageInfo getPackageInfoAsUser(String packageName, PackageInfoFlags flags, int userId) in getPackageInfoAsUser()
369 return getPackageGids(packageName, PackageInfoFlags.of(flags)); in getPackageGids()
373 public int[] getPackageGids(String packageName, PackageInfoFlags flags) in getPackageGids()
391 return getPackageUid(packageName, PackageInfoFlags.of(flags)); in getPackageUid()
395 public int getPackageUid(String packageName, PackageInfoFlags flags) in getPackageUid()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageManager.java5613 public final static class PackageInfoFlags extends Flags { class in PackageManager
5614 private PackageInfoFlags(@PackageInfoFlagsBits long value) { in PackageInfoFlags() method in PackageManager.PackageInfoFlags
5618 public static PackageInfoFlags of(@PackageInfoFlagsBits long value) { in of()
5619 return new PackageInfoFlags(value); in of()
5703 public PackageInfo getPackageInfo(@NonNull String packageName, @NonNull PackageInfoFlags flags) in getPackageInfo()
5741 @NonNull PackageInfoFlags flags) throws NameNotFoundException { in getPackageInfo()
5780 @NonNull PackageInfoFlags flags, @UserIdInt int userId) throws NameNotFoundException { in getPackageInfoAsUser()
5917 public int[] getPackageGids(@NonNull String packageName, @NonNull PackageInfoFlags flags) in getPackageGids()
5943 public int getPackageUid(@NonNull String packageName, @NonNull PackageInfoFlags flags) in getPackageUid()
5995 public int getPackageUidAsUser(@NonNull String packageName, @NonNull PackageInfoFlags flags, in getPackageUidAsUser()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java216 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_ARCHIVED_PACKAGES)); in onCreateDialog()
277 PackageManager.PackageInfoFlags.of(0), cloneUser.getIdentifier()) > 0) { in hasClonedInstance()
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/
DPackageMonitorVisibilityTest.java84 PackageManager.PackageInfoFlags.of(0)); in testPackageMonitorPackageVisible()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableImpl.java47 import android.content.pm.PackageManager.PackageInfoFlags;
488 PackageInfoFlags pkgFlags = PackageInfoFlags in requiresDisplayCompatNotCachedLocked()
/frameworks/base/services/core/java/com/android/server/
DBinaryTransparencyService.java972 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_FACTORY_ONLY in onShellCommand()
978 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_ALL in onShellCommand()
1540 pm.getPackageInfo(packageName, PackageManager.PackageInfoFlags.of( in isPackagePreloaded()
1552 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_APEX)); in isPackageAnApex()
1625 PackageManager.PackageInfoFlags.of(PackageManager.MATCH_APEX in getCurrentInstalledApexs()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundInstallControlService.java204 PackageManager.PackageInfoFlags.of(flags), userId); in getBackgroundInstalledPackages()
233 name, PackageManager.PackageInfoFlags.of(PackageManager.MATCH_ALL)); in getMockBackgroundInstalledPackages()
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerService.java33 import android.content.pm.PackageManager.PackageInfoFlags;
512 .getPackageUidAsUser(appPackageName, PackageInfoFlags.of(0), userId); in getPackageUid()
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DCrossUserPackageVisibilityTests.java197 CROSS_USER_TEST_PACKAGE_NAME, PackageManager.PackageInfoFlags.of(0)); in testGetFlagsForUid_cannotDetectCrossUserPkg()
/frameworks/base/services/credentials/java/com/android/server/credentials/
DMetricUtilities.java89 PackageManager.PackageInfoFlags.of(0), userId); in getPackageUid()
DCredentialManagerService.java473 PackageManager.PackageInfoFlags.of( in constructCallingAppInfo()
1112 PackageManager.PackageInfoFlags.of(0)); in enforceCallingPackage()
/frameworks/base/services/core/java/com/android/server/audio/
DMusicFxHelper.java244 PackageManager.PackageInfoFlags.of(MATCH_ANY_USER), getCurrentUserId()); in handleAudioEffectBroadcast()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java289 any(PackageManager.PackageInfoFlags.class), anyInt())).thenReturn(packageInfo); in testReportDelayedRestoreResult_sendsLogsToMonitor()
/frameworks/opt/car/services/builtInServices/api/
Dmodule-lib-current.txt108 …oAsUser(@NonNull String, @NonNull android.content.pm.PackageManager.PackageInfoFlags, int) throws …
/frameworks/libs/gsma_services/ts43authentication/src/com/android/libraries/ts43authentication/
DTs43AuthenticationLibrary.java424 PackageManager.PackageInfoFlags.of( in getMainPackageSignatures()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java167 PackageManager.PackageInfoFlags.of(0) in resolveSdkSandboxPackageUid()

12