/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 42 AssetManager2 assets; in BM_AssetManagerLoadAssets() local 43 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadAssets() 51 AssetManager assets; in BM_AssetManagerLoadAssetsOld() local 52 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */, in BM_AssetManagerLoadAssetsOld() 56 assets.getResources(true); in BM_AssetManagerLoadAssetsOld() 65 AssetManager2 assets; in BM_AssetManagerLoadFrameworkAssets() local 66 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadFrameworkAssets() 74 AssetManager assets; in BM_AssetManagerLoadFrameworkAssetsOld() local 75 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */, in BM_AssetManagerLoadFrameworkAssetsOld() 79 assets.getResources(true); in BM_AssetManagerLoadFrameworkAssetsOld() [all …]
|
D | Theme_bench.cpp | 37 AssetManager2 assets; in BM_ThemeApplyStyleFramework() local 38 assets.SetApkAssets({apk.get()}); in BM_ThemeApplyStyleFramework() 41 auto theme = assets.NewTheme(); in BM_ThemeApplyStyleFramework() 48 AssetManager assets; in BM_ThemeApplyStyleFrameworkOld() local 49 if (!assets.addAssetPath(String8(kFrameworkPath), nullptr /* cookie */, false /* appAsLib */, in BM_ThemeApplyStyleFrameworkOld() 55 const ResTable& res_table = assets.getResources(true); in BM_ThemeApplyStyleFrameworkOld() 67 AssetManager2 assets; in BM_ThemeGetAttribute() local 68 assets.SetApkAssets({apk.get()}); in BM_ThemeGetAttribute() 70 auto theme = assets.NewTheme(); in BM_ThemeGetAttribute() 80 AssetManager assets; in BM_ThemeGetAttributeOld() local [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ApkAssets.java | 157 @Nullable AssetsProvider assets) throws IOException { in loadFromPath() argument 158 return new ApkAssets(FORMAT_APK, path, flags, assets); in loadFromPath() 176 @Nullable AssetsProvider assets) throws IOException { in loadFromFd() argument 177 return new ApkAssets(FORMAT_APK, fd, friendlyName, flags, assets); in loadFromFd() 199 @Nullable AssetsProvider assets) in loadFromFd() argument 201 return new ApkAssets(FORMAT_APK, fd, friendlyName, offset, length, flags, assets); in loadFromFd() 234 @Nullable AssetsProvider assets) throws IOException { in loadTableFromFd() argument 235 return new ApkAssets(FORMAT_ARSC, fd, friendlyName, flags, assets); in loadTableFromFd() 258 @Nullable AssetsProvider assets) throws IOException { in loadTableFromFd() argument 259 return new ApkAssets(FORMAT_ARSC, fd, friendlyName, offset, length, flags, assets); in loadTableFromFd() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 31 std::unique_ptr<AssetsProvider> assets, in ApkAssets() argument 37 assets_provider_(std::move(assets)), in ApkAssets() 54 std::unique_ptr<ApkAssets> ApkAssets::Load(std::unique_ptr<AssetsProvider> assets, in Load() argument 56 return LoadImpl(std::move(assets), flags, nullptr /* idmap_asset */, nullptr /* loaded_idmap */); in Load() 60 std::unique_ptr<AssetsProvider> assets, in LoadTable() argument 65 return LoadImpl(std::move(resources_asset), std::move(assets), flags, nullptr /* idmap_asset */, in LoadTable() 104 std::unique_ptr<ApkAssets> ApkAssets::LoadImpl(std::unique_ptr<AssetsProvider> assets, in LoadImpl() argument 108 if (assets == nullptr) { in LoadImpl() 114 auto resources_asset = assets->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER, in LoadImpl() 117 LOG(ERROR) << "Failed to open '" << kResourcesArsc << "' in APK '" << assets->GetDebugName() in LoadImpl() [all …]
|
/frameworks/base/core/java/android/content/pm/split/ |
D | SplitAssetDependencyLoader.java | 86 final AssetManager assets = new AssetManager(); in createAssetManagerWithAssets() local 87 assets.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in createAssetManagerWithAssets() 89 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in createAssetManagerWithAssets() 90 return assets; in createAssetManagerWithAssets() 96 final ArrayList<ApkAssets> assets = new ArrayList<>(); in constructSplit() local 100 Collections.addAll(assets, mCachedSplitApks[parentSplitIdx]); in constructSplit() 104 assets.add(loadApkAssets(mSplitPaths[splitIdx], mFlags)); in constructSplit() 108 assets.add(loadApkAssets(mSplitPaths[configSplitIdx], mFlags)); in constructSplit() 112 mCachedSplitApks[splitIdx] = assets.toArray(new ApkAssets[assets.size()]); in constructSplit() 137 for (AssetManager assets : mCachedAssetManagers) { in close() [all …]
|
D | DefaultSplitAssetLoader.java | 90 AssetManager assets = new AssetManager(); in getBaseAssetManager() local 91 assets.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in getBaseAssetManager() 93 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in getBaseAssetManager() 95 mCachedAssetManager = assets; in getBaseAssetManager()
|
/frameworks/base/tools/aapt/ |
D | Resource.cpp | 220 static status_t parsePackage(Bundle* bundle, const sp<AaptAssets>& assets, in parsePackage() argument 263 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage() 293 static status_t makeFileResources(Bundle* bundle, const sp<AaptAssets>& assets, in makeFileResources() argument 326 String16(assets->getPackage()), in makeFileResources() 335 assets->addResource(it.getLeafName(), resPath, it.getFile(), type8); in makeFileResources() 344 PreProcessImageWorkUnit(const Bundle* bundle, const sp<AaptAssets>& assets, in PreProcessImageWorkUnit() argument 346 mBundle(bundle), mAssets(assets), mFile(file), mHasErrors(hasErrors) { in PreProcessImageWorkUnit() 364 static status_t preProcessImages(const Bundle* bundle, const sp<AaptAssets>& assets, in preProcessImages() argument 374 bundle, assets, it.getFile(), &hasErrors); in preProcessImages() 594 const sp<AaptAssets>& assets, in applyFileOverlay() argument [all …]
|
D | Main.h | 50 const sp<AaptAssets>& assets, sp<ApkBuilder>& builder); 53 const sp<AaptAssets>& assets, const String8& pkgName, 56 extern android::status_t writeProguardFile(Bundle* bundle, const sp<AaptAssets>& assets); 57 extern android::status_t writeMainDexProguardFile(Bundle* bundle, const sp<AaptAssets>& assets); 61 extern status_t filterResources(Bundle* bundle, const sp<AaptAssets>& assets); 65 status_t writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets,
|
D | Images.h | 18 status_t preProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets, 23 status_t postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets,
|
D | Command.cpp | 194 AssetManager assets; in doList() local 195 if (!assets.addAssetPath(String8(zipFileName), NULL)) { in doList() 205 const ResTable& res = assets.getResources(false); in doList() 211 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml", in doList() 400 Vector<String8> getNfcAidCategories(AssetManager& assets, const String8& xmlPath, bool offHost, in getNfcAidCategories() argument 403 Asset* aidAsset = assets.openNonAsset(xmlPath, Asset::ACCESS_BUFFER); in getNfcAidCategories() 742 AssetManager assets; in doDump() local 748 if (!assets.addAssetPath(assetPath, NULL)) { in doDump() 754 if (!assets.addAssetPath(String8(filename), &assetsCookie)) { in doDump() 777 assets.setConfiguration(config); in doDump() [all …]
|
/frameworks/base/startop/view_compiler/ |
D | apk_layout_compiler.cc | 83 void CompileApkAssetsLayouts(const std::unique_ptr<android::ApkAssets>& assets, in CompileApkAssetsLayouts() argument 86 resources.SetApkAssets({assets.get()}); in CompileApkAssetsLayouts() 92 for (const auto& package : assets->GetLoadedArsc()->GetPackages()) { in CompileApkAssetsLayouts() 103 assets->GetAssetsProvider()->ForEachFile("res/", [&](const android::StringPiece& s, in CompileApkAssetsLayouts() 107 assets->GetAssetsProvider()->ForEachFile(path, [&](const android::StringPiece& layout_file, in CompileApkAssetsLayouts() 164 auto assets = android::ApkAssets::Load(filename); in CompileApkLayouts() local 165 CompileApkAssetsLayouts(assets, target, target_out); in CompileApkLayouts() 171 auto assets = android::ApkAssets::LoadFromFd(std::move(fd), friendly_name); in CompileApkLayoutsFd() local 172 CompileApkAssetsLayouts(assets, target, target_out); in CompileApkLayoutsFd()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ApkAssets.h | 50 static std::unique_ptr<ApkAssets> Load(std::unique_ptr<AssetsProvider> assets, 55 std::unique_ptr<AssetsProvider> assets, 98 static std::unique_ptr<ApkAssets> LoadImpl(std::unique_ptr<AssetsProvider> assets, 104 std::unique_ptr<AssetsProvider> assets, 111 std::unique_ptr<AssetsProvider> assets,
|
/frameworks/av/services/mediatranscoding/tests/ |
D | README.txt | 5 Tests media transcoding service with real transcoder. Uses the same test assets 7 to push the test assets to /sdcard: 8 …adb push $TOP/frameworks/av/media/libmediatranscoding/tests/assets /data/local/tmp/TranscodingTest…
|
/frameworks/base/core/java/android/content/pm/ |
D | FallbackCategoryProvider.java | 46 final AssetManager assets = new AssetManager(); in loadFallbacks() local 47 assets.addAssetPath("/system/framework/framework-res.apk"); in loadFallbacks() 48 final Resources res = new Resources(assets, null, null); in loadFallbacks()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 136 final AssetManager assets = res.getAssets(); in testMultithreadCacheStressTest() local 147 Typeface.createFromAsset(assets, "fonts/a3em.ttf"), in testMultithreadCacheStressTest() 148 Typeface.createFromAsset(assets, "fonts/b3em.ttf"), in testMultithreadCacheStressTest() 149 Typeface.createFromAsset(assets, "fonts/c3em.ttf"), in testMultithreadCacheStressTest() 150 Typeface.createFromAsset(assets, "fonts/all2em.ttf"), in testMultithreadCacheStressTest() 151 Typeface.createFromAsset(assets, "fonts/hasGlyphTestFont.ttf"), in testMultithreadCacheStressTest() 152 Typeface.createFromAsset(assets, "fonts/samplefont1.ttf"), in testMultithreadCacheStressTest() 153 Typeface.createFromAsset(assets, "fonts/no_coverage.ttf"), in testMultithreadCacheStressTest()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 45 final AssetManager assets = new AssetManager(); in createResourcesWithApk() local 46 assertTrue(assets.addAssetPath(extractApkAndGetPath(rawApkId)) != 0); in createResourcesWithApk() 50 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
|
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 81 static jlong CreateGuardedApkAssets(std::unique_ptr<const ApkAssets> assets) { in CreateGuardedApkAssets() argument 82 auto guarded_assets = new Guarded<std::unique_ptr<const ApkAssets>>(std::move(assets)); in CreateGuardedApkAssets() 215 auto assets = MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoad() local 218 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() 230 auto assets = MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoad() local 232 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() 275 auto assets = in NativeLoadFromFd() local 280 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoadFromFd() 342 auto assets = in NativeLoadFromFdOffset() local 350 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoadFromFdOffset()
|
/frameworks/av/media/libmediatranscoding/tests/ |
D | Android.bp | 13 path: "assets", 14 srcs: ["assets/**/*"],
|
/frameworks/base/cmds/idmap2/tests/data/target/ |
D | build | 16 aapt2 link --manifest AndroidManifest.xml -A assets -o target.apk compiled.flata 20 aapt2 link --manifest AndroidManifest.xml -A assets -o target-no-overlayable.apk values_values.arsc…
|
/frameworks/base/data/sounds/ |
D | README.txt | 1 This README describes the audio assets, and how they relate to each other. 4 which installs the appropriate assets into the destination directory.
|
/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/App/assets/ |
D | test.txt | 1 test.txt came from assets
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerShellCommand.java | 407 final AssetManager assets = res.getAssets(); in runLookup() local 409 assets.setResourceResolutionLoggingEnabled(true); in runLookup() 416 final String resolution = assets.getLastResourceResolution(); in runLookup() 447 out.println(assets.getLastResourceResolution()); in runLookup() 462 assets.setResourceResolutionLoggingEnabled(false); in runLookup()
|
/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/App/assets/subdir/subsubdir/ |
D | test.txt | 1 subdir/subsubdir/test.txt comes from assets
|
/frameworks/base/libs/androidfw/tests/data/system/ |
D | build | 21 aapt2 link --manifest AndroidManifest.xml -A assets -o system.apk compiled.flata
|
/frameworks/base/libs/androidfw/tests/data/app/ |
D | build | 24 -A assets \
|