Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DAssetManager.java128 public Builder addApkAssets(ApkAssets apkAssets) { in addApkAssets() argument
129 mUserApkAssets.add(apkAssets); in addApkAssets()
150 final ApkAssets apkAssets = currentLoaderApkAssets.get(j); in build() local
151 if (uniqueLoaderApkAssets.add(apkAssets)) { in build()
152 loaderApkAssets.add(0, apkAssets); in build()
159 final ApkAssets[] apkAssets = new ApkAssets[totalApkAssetCount]; in build() local
161 System.arraycopy(systemApkAssets, 0, apkAssets, 0, systemApkAssets.length); in build()
165 apkAssets[i + systemApkAssets.length] = mUserApkAssets.get(i); in build()
170 apkAssets[i + systemApkAssets.length + mUserApkAssets.size()] = in build()
177 assetManager.mApkAssets = apkAssets; in build()
[all …]
/frameworks/base/core/java/android/content/pm/split/
DDefaultSplitAssetLoader.java71 ApkAssets[] apkAssets = new ApkAssets[(mSplitCodePaths != null in getBaseAssetManager() local
76 apkAssets[splitIdx++] = loadApkAssets(mBaseCodePath, mFlags); in getBaseAssetManager()
81 apkAssets[splitIdx++] = loadApkAssets(apkPath, mFlags); in getBaseAssetManager()
88 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in getBaseAssetManager()
DSplitAssetDependencyLoader.java82 private static AssetManager createAssetManagerWithAssets(ApkAssets[] apkAssets) { in createAssetManagerWithAssets() argument
86 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in createAssetManagerWithAssets()
/frameworks/base/core/java/android/app/
DResourcesManager.java344 ApkAssets apkAssets = null; in loadApkAssets() local
346 apkAssets = mLoadedApkAssets.get(newKey); in loadApkAssets()
347 if (apkAssets != null && apkAssets.isUpToDate()) { in loadApkAssets()
348 return apkAssets; in loadApkAssets()
355 apkAssets = apkAssetsRef.get(); in loadApkAssets()
356 if (apkAssets != null && apkAssets.isUpToDate()) { in loadApkAssets()
358 mLoadedApkAssets.put(newKey, apkAssets); in loadApkAssets()
361 return apkAssets; in loadApkAssets()
370 apkAssets = ApkAssets.loadOverlayFromPath(overlayPathToIdmapPath(path), 0 /*flags*/); in loadApkAssets()
372 apkAssets = ApkAssets.loadFromPath(path, sharedLib ? ApkAssets.PROPERTY_DYNAMIC : 0); in loadApkAssets()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerService.java1142 ApkAssets apkAssets = null; in getOverlayableForTarget() local
1144 apkAssets = ApkAssets.loadFromPath(baseCodePath); in getOverlayableForTarget()
1145 return apkAssets.getOverlayableInfo(targetOverlayableName); in getOverlayableForTarget()
1147 if (apkAssets != null) { in getOverlayableForTarget()
1149 apkAssets.close(); in getOverlayableForTarget()
1166 ApkAssets apkAssets = null; in doesTargetDefineOverlayable() local
1168 apkAssets = ApkAssets.loadFromPath(baseCodePath); in doesTargetDefineOverlayable()
1169 return apkAssets.definesOverlayable(); in doesTargetDefineOverlayable()
1171 if (apkAssets != null) { in doesTargetDefineOverlayable()
1173 apkAssets.close(); in doesTargetDefineOverlayable()
/frameworks/base/core/java/android/content/res/loader/
DResourcesProvider.java229 private ResourcesProvider(@NonNull ApkAssets apkAssets) { in ResourcesProvider() argument
230 this.mApkAssets = apkAssets; in ResourcesProvider()
/frameworks/base/core/java/android/content/pm/parsing/
DApkLiteParseUtils.java234 ApkAssets apkAssets = null; in parseApkLiteInner() local
237 apkAssets = fd != null in parseApkLiteInner()
245 parser = apkAssets.openXml(PackageParser.ANDROID_MANIFEST_FILENAME); in parseApkLiteInner()
276 if (apkAssets != null) { in parseApkLiteInner()
278 apkAssets.close(); in parseApkLiteInner()
DParsingPackageUtils.java393 ApkAssets apkAssets = assets.getApkAssets()[0]; in parseBaseApk() local
394 if (apkAssets.definesOverlayable()) { in parseBaseApk()
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp237 auto get_first_package_id = [&assetmanager](const ApkAssets* apkAssets) -> uint8_t { in TEST_F() argument
238 return assetmanager.GetAssignedPackageId(apkAssets->GetLoadedArsc()->GetPackages()[0].get()); in TEST_F()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java1442 ApkAssets apkAssets = null; in parseApkLiteInner() local
1445 apkAssets = fd != null in parseApkLiteInner()
1453 parser = apkAssets.openXml(ANDROID_MANIFEST_FILENAME); in parseApkLiteInner()
1480 if (apkAssets != null) { in parseApkLiteInner()
1482 apkAssets.close(); in parseApkLiteInner()