Home
last modified time | relevance | path

Searched refs:resourcePath (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/
DSystemPreparer.java107 public SystemPreparer installResourceApk(String resourcePath, String packageName) in installResourceApk() argument
110 final File tmpFile = copyResourceToTemp(resourcePath); in installResourceApk()
186 private File copyResourceToTemp(String resourcePath) throws IOException { in copyResourceToTemp() argument
189 try (InputStream assetIs = classLoader.getResource(resourcePath).openStream(); in copyResourceToTemp()
192 throw new IllegalStateException("Failed to find resource " + resourcePath); in copyResourceToTemp()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java69 File resourcePath; field in PackageSettingBase
141 PackageSettingBase(String name, String realName, File codePath, File resourcePath, in PackageSettingBase() argument
153 this.resourcePath = resourcePath; in PackageSettingBase()
154 this.resourcePathString = resourcePath.toString(); in PackageSettingBase()
249 resourcePath = orig.resourcePath; in doCopy()
732 this.resourcePath = other.resourcePath; in updateFrom()
DPackageSetting.java74 public PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument
80 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
DSettings.java540 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath, in enableSystemPackageLPw()
560 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, in addPackageLPw() argument
574 p = new PackageSetting(name, realName, codePath, resourcePath, in addPackageLPw()
637 File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi, in createNewSetting() argument
653 pkgSetting.resourcePath = resourcePath; in createNewSetting()
664 pkgSetting = new PackageSetting(pkgName, realPkgName, codePath, resourcePath, in createNewSetting()
758 @NonNull File codePath, File resourcePath, in updatePackageSetting() argument
805 if (!pkgSetting.resourcePath.equals(resourcePath)) { in updatePackageSetting()
811 + " to " + resourcePath.toString() in updatePackageSetting()
813 pkgSetting.resourcePath = resourcePath; in updatePackageSetting()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSettingBuilder.java77 public PackageSettingBuilder setResourcePath(String resourcePath) { in setResourcePath() argument
78 this.mResourcePath = resourcePath; in setResourcePath()
DPackageManagerSettingsTests.java621 assertThat(testPkgSetting01.resourcePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting01()
662 assertThat(testPkgSetting01.resourcePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting02()
708 assertThat(testPkgSetting01.resourcePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting03()
751 assertThat(testPkgSetting01.resourcePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting04()
831 assertSame(origPkgSetting.resourcePath, testPkgSetting.resourcePath); in verifySettingCopy()
832 assertThat(origPkgSetting.resourcePath, is(testPkgSetting.resourcePath)); in verifySettingCopy()
DScanTests.java538 assertThat(pkgSetting.resourcePath, is(new File(createCodePath(packageName))));
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java376 private static String copyAndHashResource(String resourcePath, File copyTo) throws Exception { in copyAndHashResource() argument
381 try (InputStream input = thisClass.getResourceAsStream(resourcePath); in copyAndHashResource()
/frameworks/base/core/java/android/content/pm/
DApplicationInfo.java2226 …/** {@hide} */ public void setResourcePath(String resourcePath) { scanPublicSourceDir = resourcePa… in setResourcePath() argument
DPackageParser.java6841 public void setApplicationInfoResourcePath(String resourcePath) { in setApplicationInfoResourcePath() argument
6842 this.applicationInfo.setResourcePath(resourcePath); in setApplicationInfoResourcePath()
6846 childPackages.get(i).applicationInfo.setResourcePath(resourcePath); in setApplicationInfoResourcePath()
6853 public void setApplicationInfoBaseResourcePath(String resourcePath) { in setApplicationInfoBaseResourcePath() argument
6854 this.applicationInfo.setBaseResourcePath(resourcePath); in setApplicationInfoBaseResourcePath()
6858 childPackages.get(i).applicationInfo.setBaseResourcePath(resourcePath); in setApplicationInfoBaseResourcePath()