/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | AndroidPackageUtils.java | 17 package com.android.server.pm.parsing.pkg; 58 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePathsExcludingResourceOnly() local 60 if (pkg.isHasCode()) { in getAllCodePathsExcludingResourceOnly() 61 paths.add(pkg.getBaseApkPath()); in getAllCodePathsExcludingResourceOnly() 63 String[] splitCodePaths = pkg.getSplitCodePaths(); in getAllCodePathsExcludingResourceOnly() 66 if ((pkg.getSplitFlags()[i] & ApplicationInfo.FLAG_HAS_CODE) != 0) { in getAllCodePathsExcludingResourceOnly() 78 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePaths() local 80 paths.add(pkg.getBaseApkPath()); in getAllCodePaths() 82 String[] splitCodePaths = pkg.getSplitCodePaths(); in getAllCodePaths() 89 public static SharedLibraryInfo createSharedLibraryForStatic(AndroidPackage pkg) { in createSharedLibraryForStatic() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesUserState.java | 48 public void addOp(String pkg, int op) { in addOp() argument 49 if (mAppOps.get(pkg) == null) { in addOp() 50 mAppOps.put(pkg, new ArraySet<>(3)); in addOp() 52 mAppOps.get(pkg).add(op); in addOp() 55 public boolean removeOp(String pkg, int op) { in removeOp() argument 57 final ArraySet<Integer> keys = mAppOps.get(pkg); in removeOp() 63 mAppOps.remove(pkg); in removeOp() 69 public void addImportantNotification(String pkg, String key) { in addImportantNotification() argument 70 addNotification(mImportantNotifications, pkg, key); in addImportantNotification() 73 public boolean removeImportantNotification(String pkg, String key) { in removeImportantNotification() argument [all …]
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | PackageInfoWithoutStateUtils.java | 75 public static PackageInfo generate(ParsingPackageRead pkg, int[] gids, in generate() argument 78 …return generateWithComponents(pkg, gids, flags, firstInstallTime, lastUpdateTime, grantedPermissio… in generate() 83 public static PackageInfo generate(ParsingPackageRead pkg, ApexInfo apexInfo, int flags) { in generate() argument 84 return generateWithComponents(pkg, EmptyArray.INT, flags, 0, 0, Collections.emptySet(), in generate() 89 private static PackageInfo generateWithComponents(ParsingPackageRead pkg, int[] gids, in generateWithComponents() argument 93 ApplicationInfo applicationInfo = generateApplicationInfo(pkg, flags, state, userId); in generateWithComponents() 97 PackageInfo info = generateWithoutComponents(pkg, gids, flags, firstInstallTime, in generateWithComponents() 105 final int N = pkg.getActivities().size(); in generateWithComponents() 110 final ParsedActivity a = pkg.getActivities().get(i); in generateWithComponents() 111 if (ComponentParseUtils.isMatch(state, false, pkg.isEnabled(), a, in generateWithComponents() [all …]
|
D | ParsingPackageUtils.java | 287 ParsingPackage pkg = result.getResult(); in parseDefault() local 289 pkg.setSigningDetails( in parseDefault() 290 ParsingPackageUtils.getSigningDetails(pkg, false /* skipVerify */)); in parseDefault() 294 pkg.hideAsParsed(); in parseDefault() 296 return input.success(pkg); in parseDefault() 395 ParsingPackage pkg = result.getResult(); in parseClusterPackage() local 397 pkg.asSplit( in parseClusterPackage() 407 parseSplitApk(input, pkg, i, splitAssets, flags); in parseClusterPackage() 411 pkg.setUse32BitAbi(lite.isUse32bitAbi()); in parseClusterPackage() 412 return input.success(pkg); in parseClusterPackage() [all …]
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 47 void cancelAllNotifications(String pkg, int userId); in cancelAllNotifications() argument 49 void clearData(String pkg, int uid, boolean fromApp); in clearData() argument 50 …void enqueueTextToast(String pkg, IBinder token, CharSequence text, int duration, int displayId, @… in enqueueTextToast() argument 51 …void enqueueToast(String pkg, IBinder token, ITransientNotification callback, int duration, int di… in enqueueToast() argument 52 void cancelToast(String pkg, IBinder token); in cancelToast() argument 53 void finishToken(String pkg, IBinder token); in finishToken() argument 55 void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id, in enqueueNotificationWithTag() argument 58 void cancelNotificationWithTag(String pkg, String opPkg, String tag, int id, int userId); in cancelNotificationWithTag() argument 60 void setShowBadge(String pkg, int uid, boolean showBadge); in setShowBadge() argument 61 boolean canShowBadge(String pkg, int uid); in canShowBadge() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 58 import com.android.server.pm.parsing.pkg.AndroidPackage; 59 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 60 import com.android.server.pm.parsing.pkg.PackageImpl; 61 import com.android.server.pm.pkg.PackageStateUnserialized; 85 public static PackageInfo generate(AndroidPackage pkg, int[] gids, in generate() argument 89 return generateWithComponents(pkg, gids, flags, firstInstallTime, lastUpdateTime, in generate() 97 public static PackageInfo generate(AndroidPackage pkg, ApexInfo apexInfo, int flags, in generate() argument 99 return generateWithComponents(pkg, EmptyArray.INT, flags, 0, 0, Collections.emptySet(), in generate() 106 private static PackageInfo generateWithComponents(AndroidPackage pkg, int[] gids, in generateWithComponents() argument 110 ApplicationInfo applicationInfo = generateApplicationInfo(pkg, flags, state, userId, in generateWithComponents() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SELinuxMMACTest.java | 29 import com.android.server.pm.parsing.pkg.AndroidPackage; 30 import com.android.server.pm.parsing.pkg.PackageImpl; 31 import com.android.server.pm.parsing.pkg.ParsedPackage; 55 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoOptInToLatest() local 57 argThat(argument -> argument.packageName.equals(pkg.getPackageName())))) in getSeInfoOptInToLatest() 59 assertThat(SELinuxMMAC.getSeInfo(pkg, null, mMockCompatibility), in getSeInfoOptInToLatest() 65 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoOptInToR() local 67 argThat(argument -> argument.packageName.equals(pkg.getPackageName())))) in getSeInfoOptInToR() 69 assertThat(SELinuxMMAC.getSeInfo(pkg, null, mMockCompatibility), in getSeInfoOptInToR() 75 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoNoOptIn() local [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | Broadcaster.cpp | 57 pkg(), in ReportId() 63 pkg(that.pkg), in ReportId() 69 pkg(p), in ReportId() 83 if (pkg < that.pkg) { in operator <() 86 if (pkg > that.pkg) { in operator <() 129 void Broadcaster::clearBroadcasts(const string& pkg, const string& cls, const string& id) { in clearBroadcasts() argument 132 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in clearBroadcasts() 144 void Broadcaster::clearPackageBroadcasts(const string& pkg) { in clearPackageBroadcasts() argument 149 if (it->first.pkg == pkg) { in clearPackageBroadcasts() 205 if (!was_ready_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexMetadataHelperTest.java | 42 import com.android.server.pm.parsing.pkg.AndroidPackage; 43 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 44 import com.android.server.pm.parsing.pkg.ParsedPackage; 139 private static void validatePackageDexMetadata(AndroidPackage pkg, boolean requireManifest) in validatePackageDexMetadata() argument 142 AndroidPackageUtils.getPackageDexMetadata(pkg).values(); in validatePackageDexMetadata() 143 String packageName = pkg.getPackageName(); in validatePackageDexMetadata() 144 long versionCode = pkg.toAppInfoWithoutState().longVersionCode; in validatePackageDexMetadata() 151 private static void validatePackageDexMetatadataVaryingRequireManifest(ParsedPackage pkg) in validatePackageDexMetatadataVaryingRequireManifest() argument 153 validatePackageDexMetadata(pkg, /*requireManifest=*/true); in validatePackageDexMetatadataVaryingRequireManifest() 154 validatePackageDexMetadata(pkg, /*requireManifest=*/false); in validatePackageDexMetatadataVaryingRequireManifest() [all …]
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceManagerService.java | 146 public Uri[] getPinnedSlices(String pkg) { in getPinnedSlices() argument 147 verifyCaller(pkg); in getPinnedSlices() 152 if (Objects.equals(pkg, state.getPkg())) { in getPinnedSlices() 165 public void pinSlice(String pkg, Uri uri, SliceSpec[] specs, IBinder token) in pinSlice() argument 167 verifyCaller(pkg); in pinSlice() 168 enforceAccess(pkg, uri); in pinSlice() 172 getOrCreatePinnedSlice(uri, slicePkg).pin(pkg, specs, token); in pinSlice() 175 if (slicePkg != null && !Objects.equals(pkg, slicePkg)) { in pinSlice() 177 isAssistant(pkg, user) || isDefaultHomeApp(pkg, user) in pinSlice() 184 public void unpinSlice(String pkg, Uri uri, IBinder token) throws RemoteException { in unpinSlice() argument [all …]
|
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/ |
D | InstallOverlayTests.java | 50 for (String pkg : ALL_PACKAGES) { in ensureNoOverlays() 51 assertFalse(pkg + " should not be installed", isPackageInstalled(pkg)); in ensureNoOverlays() 52 assertFalse(pkg + " should not be registered with overlay manager service", in ensureNoOverlays() 53 overlayManagerContainsPackage(pkg)); in ensureNoOverlays() 64 for (String pkg : ALL_PACKAGES) { in uninstallOverlays() 65 uninstallPackage(pkg); in uninstallOverlays() 199 private void installPackage(String pkg) throws Exception { in installPackage() argument 200 super.installPackage(pkg); in installPackage() 204 private void installInstantPackage(String pkg) throws Exception { in installInstantPackage() argument 205 super.installPackage(pkg, "--instant"); in installInstantPackage() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationCollectorTest.kt | 28 import com.android.server.pm.parsing.pkg.AndroidPackage 56 val pkg = mockPkg(useV2 = false, autoVerify = true) in verifyV1() constant 58 assertThat(collector.collectAllWebDomains(pkg)) in verifyV1() 60 assertThat(collector.collectValidAutoVerifyDomains(pkg)) in verifyV1() 62 assertThat(collector.collectInvalidAutoVerifyDomains(pkg)) in verifyV1() 68 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1NoAutoVerify() constant 70 assertThat(collector.collectAllWebDomains(pkg)) in verifyV1NoAutoVerify() 72 assertThat(collector.collectValidAutoVerifyDomains(pkg)).isEmpty() in verifyV1NoAutoVerify() 73 assertThat(collector.collectInvalidAutoVerifyDomains(pkg)).isEmpty() in verifyV1NoAutoVerify() 78 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1ForceAutoVerify() constant [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 42 import com.android.server.pm.parsing.pkg.AndroidPackage; 138 void addPackage(FakeDeviceState.PackageBuilder pkg, int userId) { in addPackage() argument 139 mState.add(pkg, userId); in addPackage() 168 void installAndAssert(@NonNull FakeDeviceState.PackageBuilder pkg, int userId, in installAndAssert() argument 171 if (mState.select(pkg.packageName, userId) != null) { in installAndAssert() 172 throw new IllegalStateException("package " + pkg.packageName + " already installed"); in installAndAssert() 174 mState.add(pkg, userId); in installAndAssert() 175 assertEquals(onAddedUpdatedPackages, mImpl.onPackageAdded(pkg.packageName, userId)); in installAndAssert() 189 void upgradeAndAssert(FakeDeviceState.PackageBuilder pkg, int userId, in upgradeAndAssert() argument 193 final FakeDeviceState.Package replacedPackage = mState.select(pkg.packageName, userId); in upgradeAndAssert() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | GroupHelperTest.java | 66 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() argument 74 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn() 78 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() argument 80 return getSbn(pkg, id, tag, user, null); in getSbn() 85 final String pkg = "package"; in testNoGroup_postingUnderLimit() local 87 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_postingUnderLimit() 91 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_postingUnderLimit() 99 final String pkg = "package"; in testNoGroup_multiPackage() local 102 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiPackage() 108 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_multiPackage() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtUtils.java | 25 import com.android.server.pm.parsing.pkg.AndroidPackage; 26 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 42 AndroidPackage pkg, PackageSetting pkgSetting) { in createArtPackageInfo() argument 44 pkg.getPackageName(), in createArtPackageInfo() 46 AndroidPackageUtils.getPrimaryCpuAbi(pkg, pkgSetting), in createArtPackageInfo() 47 AndroidPackageUtils.getSecondaryCpuAbi(pkg, pkgSetting))), in createArtPackageInfo() 48 AndroidPackageUtils.getAllCodePaths(pkg), in createArtPackageInfo() 49 getOatDir(pkg, pkgSetting)); in createArtPackageInfo() 52 private static String getOatDir(AndroidPackage pkg, @NonNull PackageSetting pkgSetting) { in getOatDir() argument 53 if (!AndroidPackageUtils.canHaveOatDir(pkg, in getOatDir() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelper.java | 24 import com.android.server.pm.parsing.pkg.AndroidPackage; 25 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 26 import com.android.server.pm.parsing.pkg.ParsedPackage; 41 NativeLibraryPaths deriveNativeLibraryPaths(AndroidPackage pkg, boolean isUpdatedSystemApp, in deriveNativeLibraryPaths() argument 49 Abis getBundledAppAbis(AndroidPackage pkg); in getBundledAppAbis() argument 57 Pair<Abis, NativeLibraryPaths> derivePackageAbi(AndroidPackage pkg, boolean isUpdatedSystemApp, in derivePackageAbi() argument 100 public void applyTo(ParsedPackage pkg) { in applyTo() argument 101 pkg.setNativeLibraryRootDir(nativeLibraryRootDir) in applyTo() 121 Abis(AndroidPackage pkg, PackageSetting pkgSetting) { in Abis() argument 122 this(AndroidPackageUtils.getPrimaryCpuAbi(pkg, pkgSetting), in Abis() [all …]
|
D | PackageDexOptimizer.java | 75 import com.android.server.pm.parsing.pkg.AndroidPackage; 76 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 129 static boolean canOptimizePackage(AndroidPackage pkg) { in canOptimizePackage() argument 133 if (!PLATFORM_PACKAGE_NAME.equals(pkg.getPackageName()) && !pkg.isHasCode()) { in canOptimizePackage() 147 int performDexOpt(AndroidPackage pkg, @NonNull PackageSetting pkgSetting, in performDexOpt() argument 150 if (PLATFORM_PACKAGE_NAME.equals(pkg.getPackageName())) { in performDexOpt() 154 if (pkg.getUid() == -1) { in performDexOpt() 155 throw new IllegalArgumentException("Dexopt for " + pkg.getPackageName() in performDexOpt() 158 if (!canOptimizePackage(pkg)) { in performDexOpt() 162 final long acquireTime = acquireWakeLockLI(pkg.getUid()); in performDexOpt() [all …]
|
D | PackageAbiHelperImpl.java | 42 import com.android.server.pm.parsing.pkg.AndroidPackage; 43 import com.android.server.pm.parsing.pkg.AndroidPackageUtils; 135 public NativeLibraryPaths deriveNativeLibraryPaths(AndroidPackage pkg, in deriveNativeLibraryPaths() argument 139 return deriveNativeLibraryPaths(new Abis(pkg.getPrimaryCpuAbi(), pkg.getSecondaryCpuAbi()), in deriveNativeLibraryPaths() 140 appLib32InstallDir, pkg.getPath(), pkg.getBaseApkPath(), pkg.isSystem(), in deriveNativeLibraryPaths() 208 public Abis getBundledAppAbis(AndroidPackage pkg) { in getBundledAppAbis() argument 209 final String apkName = deriveCodePathName(pkg.getPath()); in getBundledAppAbis() 213 final String apkRoot = calculateBundledApkRoot(pkg.getBaseApkPath()); in getBundledAppAbis() 214 final Abis abis = getBundledAppAbi(pkg, apkRoot, apkName); in getBundledAppAbis() 226 private Abis getBundledAppAbi(AndroidPackage pkg, String apkRoot, String apkName) { in getBundledAppAbi() argument [all …]
|
D | KeySetManagerService.java | 32 import com.android.server.pm.parsing.pkg.AndroidPackage; 137 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr() local 138 if (pkg == null) { in packageIsSignedByLPr() 141 if (pkg.keySetData == null) { in packageIsSignedByLPr() 148 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByLPr() 163 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr() local 164 if (pkg == null) { in packageIsSignedByExactlyLPr() 167 if (pkg.keySetData == null in packageIsSignedByExactlyLPr() 168 || pkg.keySetData.getProperSigningKeySet() in packageIsSignedByExactlyLPr() 176 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByExactlyLPr() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerAllowlistBackend.java | 72 public boolean isSysAllowlisted(String pkg) { in isSysAllowlisted() argument 73 return mSysAllowlistedApps.contains(pkg); in isSysAllowlisted() 79 public boolean isAllowlisted(String pkg) { in isAllowlisted() argument 80 if (mAllowlistedApps.contains(pkg)) { in isAllowlisted() 84 if (isDefaultActiveApp(pkg)) { in isAllowlisted() 94 public boolean isDefaultActiveApp(String pkg) { in isDefaultActiveApp() argument 99 if (mDefaultActiveApps.contains(pkg)) { in isDefaultActiveApp() 105 if (devicePolicyManager.packageHasActiveAdmins(pkg)) { in isDefaultActiveApp() 121 for (String pkg : pkgs) { in isAllowlisted() 122 if (isAllowlisted(pkg)) { in isAllowlisted() [all …]
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | IncidentCompanionService.java | 124 public void sendReportReadyBroadcast(String pkg, String cls) { in sendReportReadyBroadcast() argument 137 intent.setComponent(new ComponentName(pkg, cls)); in sendReportReadyBroadcast() 196 public List<String> getIncidentReportList(String pkg, String cls) throws RemoteException { in getIncidentReportList() argument 201 return getIIncidentManager().getIncidentReportList(pkg, cls); in getIncidentReportList() 211 public void deleteIncidentReports(String pkg, String cls, String id) in deleteIncidentReports() argument 213 if (pkg == null || cls == null || id == null in deleteIncidentReports() 214 || pkg.length() == 0 || cls.length() == 0 || id.length() == 0) { in deleteIncidentReports() 217 enforceAccessReportsPermissions(pkg); in deleteIncidentReports() 221 getIIncidentManager().deleteIncidentReports(pkg, cls, id); in deleteIncidentReports() 231 public void deleteAllIncidentReports(String pkg) throws RemoteException { in deleteAllIncidentReports() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SnoozeHelper.java | 125 private String getPkgKey(@UserIdInt int userId, String pkg) { in getPkgKey() argument 126 return userId + "|" + pkg; in getPkgKey() 132 String pkg = mPackages.get(key); in cleanupPersistedContext() local 133 removeRecordLocked(pkg, key, userId, mPersistedSnoozedNotificationsWithContext); in cleanupPersistedContext() 138 protected Long getSnoozeTimeForUnpostedNotification(int userId, String pkg, String key) { in getSnoozeTimeForUnpostedNotification() argument 142 mPersistedSnoozedNotifications.get(getPkgKey(userId, pkg)); in getSnoozeTimeForUnpostedNotification() 153 protected String getSnoozeContextForUnpostedNotification(int userId, String pkg, String key) { in getSnoozeContextForUnpostedNotification() argument 156 mPersistedSnoozedNotificationsWithContext.get(getPkgKey(userId, pkg)); in getSnoozeContextForUnpostedNotification() 164 protected boolean isSnoozed(int userId, String pkg, String key) { in isSnoozed() argument 166 return mSnoozedNotifications.containsKey(getPkgKey(userId, pkg)) in isSnoozed() [all …]
|
D | RankingConfig.java | 41 Collection<NotificationChannelGroup> getNotificationChannelGroups(String pkg, in getNotificationChannelGroups() argument 43 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup() argument 45 ParceledListSlice<NotificationChannelGroup> getNotificationChannelGroups(String pkg, in getNotificationChannelGroups() argument 47 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel() argument 49 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, in updateNotificationChannel() argument 51 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, in getNotificationChannel() argument 53 NotificationChannel getConversationNotificationChannel(String pkg, int uid, String channelId, in getConversationNotificationChannel() argument 56 boolean deleteNotificationChannel(String pkg, int uid, String channelId); in deleteNotificationChannel() argument 57 void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId); in permanentlyDeleteNotificationChannel() argument 58 void permanentlyDeleteNotificationChannels(String pkg, int uid); in permanentlyDeleteNotificationChannels() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/ |
D | AndroidTestBaseUpdater.java | 31 import com.android.server.pm.parsing.pkg.AndroidPackage; 32 import com.android.server.pm.parsing.pkg.ParsedPackage; 58 private static boolean isChangeEnabled(AndroidPackage pkg) { in isChangeEnabled() argument 61 if (!pkg.isSystem()) { in isChangeEnabled() 66 pkg.toAppInfoWithoutState()); in isChangeEnabled() 72 return pkg.getTargetSdkVersion() > Build.VERSION_CODES.Q; in isChangeEnabled() 76 public void updatePackage(ParsedPackage pkg, boolean isUpdatedSystemApp) { in updatePackage() argument 80 if (!isChangeEnabled(pkg)) { in updatePackage() 81 prefixRequiredLibrary(pkg, ANDROID_TEST_BASE); in updatePackage() 86 prefixImplicitDependency(pkg, ANDROID_TEST_RUNNER, ANDROID_TEST_BASE); in updatePackage()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationCollector.java | 34 import com.android.server.pm.parsing.pkg.AndroidPackage; 95 public ArraySet<String> collectAllWebDomains(@NonNull AndroidPackage pkg) { in collectAllWebDomains() argument 96 return collectDomains(pkg, false /* checkAutoVerify */, true /* valid */); in collectAllWebDomains() 104 public ArraySet<String> collectValidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectValidAutoVerifyDomains() argument 105 return collectDomains(pkg, true /* checkAutoVerify */, true /* valid */); in collectValidAutoVerifyDomains() 113 public ArraySet<String> collectInvalidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectInvalidAutoVerifyDomains() argument 114 return collectDomains(pkg, true /* checkAutoVerify */, false /* valid */); in collectInvalidAutoVerifyDomains() 117 public boolean containsWebDomain(@NonNull AndroidPackage pkg, @NonNull String targetDomain) { in containsWebDomain() argument 118 return collectDomains(pkg, false /* checkAutoVerify */, true /* valid */, null, in containsWebDomain() 127 public boolean containsAutoVerifyDomain(@NonNull AndroidPackage pkg, [all …]
|