/art/artd/ |
D | path_utils_test.cc | 104 EXPECT_THAT(BuildPrimaryRefProfilePath(PrimaryRefProfilePath{.packageName = "com.android.foo", in TEST_F() 111 PrimaryRefProfilePath{.packageName = "...", .profileName = "primary"}), in TEST_F() 114 PrimaryRefProfilePath{.packageName = "!@#$%^&*()_+-=", .profileName = "primary"}), in TEST_F() 120 PrimaryRefProfilePath{.packageName = "", .profileName = "primary"}), in TEST_F() 123 PrimaryRefProfilePath{.packageName = ".", .profileName = "primary"}), in TEST_F() 126 PrimaryRefProfilePath{.packageName = "..", .profileName = "primary"}), in TEST_F() 129 PrimaryRefProfilePath{.packageName = "a/b", .profileName = "primary"}), in TEST_F() 132 PrimaryRefProfilePath{.packageName = "a\0b"s, .profileName = "primary"}), in TEST_F() 138 PrimaryRefProfilePath{.packageName = "com.android.foo", .profileName = "."}), in TEST_F() 141 PrimaryRefProfilePath{.packageName = "com.android.foo", .profileName = ".."}), in TEST_F() [all …]
|
D | path_utils.cc | 192 OR_RETURN(ValidatePathElement(primary_ref_profile_path.packageName, "packageName")); in BuildPrimaryRefProfilePath() 195 primary_ref_profile_path.packageName, in BuildPrimaryRefProfilePath() 206 OR_RETURN(ValidatePathElement(primary_cur_profile_path.packageName, "packageName")); in BuildPrimaryCurProfilePath() 210 primary_cur_profile_path.packageName, in BuildPrimaryCurProfilePath()
|
D | artd_test.cc | 379 PrimaryRefProfilePath{.packageName = "com.android.foo", .profileName = "primary"}, in SetUp() 1599 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1603 .userId = 1, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1655 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1701 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1706 .userId = 1, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1734 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1769 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1808 .userId = 0, .packageName = "com.android.foo", .profileName = "primary"}; in TEST_F() 1930 .userId = 1, .packageName = "com.android.foo", .profileName = "primary"}, in TEST_F() [all …]
|
/art/libartservice/service/java/com/android/server/art/ |
D | DumpHelper.java | 95 String packageName = pkgState.getPackageName(); in dumpPackage() local 96 ipw.printf("[%s]\n", packageName); in dumpPackage() 100 .getDexoptStatus(snapshot, packageName) in dumpPackage() 104 .getSecondaryDexInfo(packageName) in dumpPackage() 129 dumpPrimaryDex(ipw, snapshot, fileStatuses, packageName); in dumpPackage() 136 dumpSecondaryDex(ipw, snapshot, entry.getValue(), packageName, in dumpPackage() 146 List<DexContainerFileDexoptStatus> fileStatuses, @NonNull String packageName) { in dumpPrimaryDex() argument 152 mInjector.getDexUseManager().getPrimaryDexLoaders(packageName, dexPath), in dumpPrimaryDex() 153 packageName); in dumpPrimaryDex() 159 List<DexContainerFileDexoptStatus> fileStatuses, @NonNull String packageName, in dumpSecondaryDex() argument [all …]
|
D | AidlUtils.java | 90 @NonNull String packageName, @NonNull String profileName) { in buildPrimaryRefProfilePath() 92 primaryRefProfilePath.packageName = packageName; in buildPrimaryRefProfilePath() 106 @NonNull String packageName, @NonNull String profileName) { in buildProfilePathForPrimaryRef() 108 buildPrimaryRefProfilePath(packageName, profileName)); in buildProfilePathForPrimaryRef() 125 int userId, @NonNull String packageName, @NonNull String profileName) { in buildProfilePathForPrimaryCur() argument 128 primaryCurProfilePath.packageName = packageName; in buildProfilePathForPrimaryCur() 158 public static OutputProfile buildOutputProfileForPrimary(@NonNull String packageName, in buildOutputProfileForPrimary() argument 161 buildPrimaryRefProfilePath(packageName, profileName)), in buildOutputProfileForPrimary() 184 profile.packageName, profile.profileName); in toString()
|
D | ArtManagerLocal.java | 188 @NonNull PackageManagerLocal.FilteredSnapshot snapshot, @NonNull String packageName) { in deleteDexoptArtifacts() argument 189 PackageState pkgState = Utils.getPackageStateOrThrow(snapshot, packageName); in deleteDexoptArtifacts() 207 mInjector.getDexUseManager().getSecondaryDexInfo(packageName)) { in deleteDexoptArtifacts() 233 @NonNull PackageManagerLocal.FilteredSnapshot snapshot, @NonNull String packageName) { in getDexoptStatus() argument 234 return getDexoptStatus(snapshot, packageName, ArtFlags.defaultGetStatusFlags()); in getDexoptStatus() 245 @NonNull String packageName, @GetStatusFlags int flags) { in getDexoptStatus() argument 251 PackageState pkgState = Utils.getPackageStateOrThrow(snapshot, packageName); in getDexoptStatus() 270 mInjector.getDexUseManager().getSecondaryDexInfo(packageName)) { in getDexoptStatus() 324 @NonNull PackageManagerLocal.FilteredSnapshot snapshot, @NonNull String packageName) { in clearAppProfiles() argument 325 PackageState pkgState = Utils.getPackageStateOrThrow(snapshot, packageName); in clearAppProfiles() [all …]
|
D | ArtShellCommand.java | 163 String packageName = getNextArg(); in handleArtCommand() local 164 if (packageName != null) { in handleArtCommand() 165 mArtManagerLocal.dumpPackage(pw, snapshot, packageName); in handleArtCommand() 329 for (String packageName : packageNames) { in handleCompile() 330 mArtManagerLocal.clearAppProfiles(snapshot, packageName); in handleCompile() 468 String packageName = getNextArgRequired(); in handleSnapshotProfile() local 482 if (packageName.equals(Utils.PLATFORM_PACKAGE_NAME)) { in handleSnapshotProfile() 498 splitName = getSplitNameByFullPath(snapshot, packageName, codePath); in handleSnapshotProfile() 501 return handleSnapshotAppProfile(pw, snapshot, packageName, splitName); in handleSnapshotProfile() 514 @NonNull PackageManagerLocal.FilteredSnapshot snapshot, @NonNull String packageName, in handleSnapshotAppProfile() argument [all …]
|
D | DexUseManagerLocal.java | 183 @NonNull String packageName) { in getSecondaryDexContainerFileUseInfo() 184 return getSecondaryDexInfo(packageName) in getSecondaryDexContainerFileUseInfo() 202 @NonNull String packageName, @NonNull String dexPath) { in getPrimaryDexLoaders() 205 mDexUse.mPackageDexUseByOwningPackageName.get(packageName); in getPrimaryDexLoaders() 223 @NonNull String packageName, @NonNull String dexPath) { in isPrimaryDexUsedByOtherApps() 224 return isUsedByOtherApps(getPrimaryDexLoaders(packageName, dexPath), packageName); in isPrimaryDexUsedByOtherApps() 236 @NonNull String packageName) { in getSecondaryDexInfo() 237 return getSecondaryDexInfoImpl(packageName, false /* checkDexFile */); in getSecondaryDexInfo() 247 @NonNull String packageName) { in getFilteredDetailedSecondaryDexInfo() 248 return getSecondaryDexInfoImpl(packageName, true /* checkDexFile */); in getFilteredDetailedSecondaryDexInfo() [all …]
|
D | Utils.java | 258 @NonNull PackageManagerLocal.FilteredSnapshot snapshot, @NonNull String packageName) { in getPackageStateOrThrow() argument 259 PackageState pkgState = snapshot.getPackageState(packageName); in getPackageStateOrThrow() 261 throw new IllegalArgumentException("Package not found: " + packageName); in getPackageStateOrThrow() 358 public static boolean isSystemUiPackage(@NonNull Context context, @NonNull String packageName) { in isSystemUiPackage() argument 359 return packageName.equals(context.getString(R.string.config_systemUi)); in isSystemUiPackage() 362 public static boolean isLauncherPackage(@NonNull Context context, @NonNull String packageName) { in isLauncherPackage() argument 364 return roleManager.getRoleHolders(RoleManager.ROLE_HOME).contains(packageName); in isLauncherPackage()
|
D | DexoptHelper.java | 293 for (String packageName : packageNames) { in getPackageStates() 294 PackageState pkgState = Utils.getPackageStateOrThrow(snapshot, packageName); in getPackageStates() 296 pkgStates.put(packageName, pkgState); in getPackageStates() 306 String packageName = library.getPackageName(); in getPackageStates() local 307 PackageState pkgState = Utils.getPackageStateOrThrow(snapshot, packageName); in getPackageStates() 309 pkgStates.put(packageName, pkgState); in getPackageStates()
|
D | Dexopter.java | 664 public boolean isSystemUiPackage(@NonNull String packageName) { in isSystemUiPackage() argument 665 return Utils.isSystemUiPackage(mContext, packageName); in isSystemUiPackage() 668 public boolean isLauncherPackage(@NonNull String packageName) { in isLauncherPackage() argument 669 return Utils.isLauncherPackage(mContext, packageName); in isLauncherPackage()
|
/art/artd/binder/com/android/server/art/ |
D | ProfilePath.aidl | 38 @utf8InCpp String packageName; 59 @utf8InCpp String packageName;
|
/art/libartservice/service/javatests/com/android/server/art/ |
D | DexUseManagerTest.java | 731 private AndroidPackage createPackage(String packageName) { in createPackage() argument 736 lenient().when(baseSplit.getPath()).thenReturn("/data/app/" + packageName + "/base.apk"); in createPackage() 742 lenient().when(split0.getPath()).thenReturn("/data/app/" + packageName + "/split_0.apk"); in createPackage() 750 private PackageState createPackageState(String packageName, String primaryAbi) { in createPackageState() argument 752 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState() 753 AndroidPackage pkg = createPackage(packageName); in createPackageState() 759 private void addPackage(String packageName, PackageState pkgState) { in addPackage() argument 760 lenient().when(mSnapshot.getPackageState(packageName)).thenReturn(pkgState); in addPackage() 761 mPackageStates.put(packageName, pkgState); in addPackage() 764 private void removePackage(String packageName) { in removePackage() argument [all …]
|
D | DumpHelperTest.java | 142 private PackageState createPackageState(@NonNull String packageName, int appId, in createPackageState() argument 145 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState()
|
D | DexoptHelperTest.java | 729 String packageName, List<SharedLibrary> deps, boolean multiSplit) { in createPackageState() argument 731 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState() 741 String libraryName, String packageName, List<SharedLibrary> deps) { in createLibrary() argument 744 lenient().when(library.getPackageName()).thenReturn(packageName); in createLibrary() 832 private void checkPackageResult(DexoptResult result, int index, String packageName, in checkPackageResult() argument 836 assertThat(packageResult.getPackageName()).isEqualTo(packageName); in checkPackageResult()
|
D | ArtManagerLocalTest.java | 993 String packageName, boolean isDexoptable, boolean multiSplit) { in createPackageState() argument 996 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState()
|
/art/libartservice/service/java/com/android/server/art/model/ |
D | DexoptResult.java | 141 public static @NonNull PackageDexoptResult create(@NonNull String packageName, in create() argument 145 packageName, dexContainerFileDexoptResults, packageLevelStatus); in create()
|
/art/test/595-profile-saving/src/ |
D | Main.java | 176 String packageName, in registerAppInfo() argument 183 packageName, in registerAppInfo()
|
/art/libnativeloader/test/src/android/test/hostside/ |
D | LibnativeloaderTest.java | 293 void pushSharedLib(String partitionDir, String packageName, String buildJarName) in pushSharedLib() argument 295 String path = partitionDir + "/framework/" + packageName + ".jar"; in pushSharedLib() 302 + "<library name=\"" + packageName + "\" file=\"" + path + "\" />\n" in pushSharedLib() 304 partitionDir + "/etc/permissions/" + packageName + ".xml"); in pushSharedLib()
|
/art/test/odsign/test-src/com/android/tests/odsign/ |
D | OdsignTestUtils.java | 120 String packageName = mTestInfo.properties().get(PACKAGE_NAME_KEY); in uninstallTestApex() local 121 if (packageName != null) { in uninstallTestApex() 122 mTestInfo.getDevice().uninstallPackage(packageName); in uninstallTestApex()
|