/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 42 AssetManager2 assets; in BM_AssetManagerLoadAssets() local 43 assets.SetApkAssets({apk}); 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}); 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}); 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}); 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 | 165 @Nullable AssetsProvider assets) throws IOException { in loadFromPath() argument 166 return new ApkAssets(FORMAT_APK, path, flags, assets); in loadFromPath() 184 @Nullable AssetsProvider assets) throws IOException { in loadFromFd() argument 185 return new ApkAssets(FORMAT_APK, fd, friendlyName, flags, assets); in loadFromFd() 207 @Nullable AssetsProvider assets) in loadFromFd() argument 209 return new ApkAssets(FORMAT_APK, fd, friendlyName, offset, length, flags, assets); in loadFromFd() 242 @Nullable AssetsProvider assets) throws IOException { in loadTableFromFd() argument 243 return new ApkAssets(FORMAT_ARSC, fd, friendlyName, flags, assets); in loadTableFromFd() 266 @Nullable AssetsProvider assets) throws IOException { in loadTableFromFd() argument 267 return new ApkAssets(FORMAT_ARSC, fd, friendlyName, offset, length, flags, assets); in loadTableFromFd() [all …]
|
/frameworks/base/core/java/com/android/internal/pm/split/ |
D | SplitAssetDependencyLoader.java | 82 final AssetManager assets = new AssetManager(); in createAssetManagerWithAssets() local 83 assets.setConfiguration(0, 0, null, new String[0], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in createAssetManagerWithAssets() 85 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in createAssetManagerWithAssets() 86 return assets; in createAssetManagerWithAssets() 92 final ArrayList<ApkAssets> assets = new ArrayList<>(); in constructSplit() local 96 Collections.addAll(assets, mCachedSplitApks[parentSplitIdx]); in constructSplit() 100 assets.add(loadApkAssets(mSplitPaths[splitIdx], mFlags)); in constructSplit() 104 assets.add(loadApkAssets(mSplitPaths[configSplitIdx], mFlags)); in constructSplit() 108 mCachedSplitApks[splitIdx] = assets.toArray(new ApkAssets[assets.size()]); in constructSplit() 133 for (AssetManager assets : mCachedAssetManagers) { in close() [all …]
|
D | DefaultSplitAssetLoader.java | 84 AssetManager assets = new AssetManager(); in getBaseAssetManager() local 85 assets.setConfiguration(0, 0, null, new String[0], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in getBaseAssetManager() 87 assets.setApkAssets(apkAssets, false /*invalidateCaches*/); in getBaseAssetManager() 89 mCachedAssetManager = assets; in getBaseAssetManager()
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 32 std::unique_ptr<AssetsProvider> assets, package_property_t property_flags, in ApkAssets() argument 36 assets_provider_(std::move(assets)), in ApkAssets() 51 ApkAssetsPtr ApkAssets::Load(std::unique_ptr<AssetsProvider> assets, package_property_t flags) { in Load() argument 52 return LoadImpl(std::move(assets), flags, nullptr /* idmap_asset */, nullptr /* loaded_idmap */); in Load() 56 std::unique_ptr<AssetsProvider> assets, in LoadTable() argument 61 return LoadImpl(std::move(resources_asset), std::move(assets), flags, nullptr /* idmap_asset */, in LoadTable() 100 ApkAssetsPtr ApkAssets::LoadImpl(std::unique_ptr<AssetsProvider> assets, in LoadImpl() argument 104 if (assets == nullptr) { in LoadImpl() 110 auto resources_asset = assets->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER, in LoadImpl() 113 LOG(ERROR) << "Failed to open '" << kResourcesArsc << "' in APK '" << assets->GetDebugName() in LoadImpl() [all …]
|
D | AssetManager2.cpp | 279 const auto& assets = GetApkAssets(i); in DumpToLog() local 280 base::StringAppendF(&list, "%s,", assets ? assets->GetDebugName().c_str() : "nullptr"); in DumpToLog() 318 const auto& assets = GetApkAssets(cookie); in GetStringPoolForCookie() local 319 return assets ? assets->GetLoadedArsc()->GetStringPool() : nullptr; in GetStringPoolForCookie() 372 const auto& assets = GetApkAssets(i); in GetOverlayablesToString() local 373 if (!assets) { in GetOverlayablesToString() 376 const LoadedArsc* loaded_arsc = assets->GetLoadedArsc(); in GetOverlayablesToString() 431 const auto& assets = GetApkAssets(i); in ContainsAllocatedTable() local 432 if (assets && assets->IsTableAllocated()) { in ContainsAllocatedTable() 604 const auto& assets = GetApkAssets(i - 1); in OpenNonAsset() local [all …]
|
/frameworks/base/tools/aapt/ |
D | Resource.cpp | 223 static status_t parsePackage(Bundle* bundle, const sp<AaptAssets>& assets, in parsePackage() argument 266 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage() 296 static status_t makeFileResources(Bundle* bundle, const sp<AaptAssets>& assets, in makeFileResources() argument 329 String16(assets->getPackage()), in makeFileResources() 338 assets->addResource(it.getLeafName(), resPath, it.getFile(), type8); in makeFileResources() 347 PreProcessImageWorkUnit(const Bundle* bundle, const sp<AaptAssets>& assets, in PreProcessImageWorkUnit() argument 349 mBundle(bundle), mAssets(assets), mFile(file), mHasErrors(hasErrors) { in PreProcessImageWorkUnit() 367 static status_t preProcessImages(const Bundle* bundle, const sp<AaptAssets>& assets, in preProcessImages() argument 377 bundle, assets, it.getFile(), &hasErrors); in preProcessImages() 597 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 | 195 AssetManager assets; in doList() local 196 if (!assets.addAssetPath(String8(zipFileName), NULL)) { in doList() 206 const ResTable& res = assets.getResources(false); in doList() 212 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml", in doList() 401 Vector<String8> getNfcAidCategories(AssetManager& assets, const String8& xmlPath, bool offHost, in getNfcAidCategories() argument 404 Asset* aidAsset = assets.openNonAsset(xmlPath.c_str(), Asset::ACCESS_BUFFER); in getNfcAidCategories() 743 AssetManager assets; in doDump() local 749 if (!assets.addAssetPath(assetPath, NULL)) { in doDump() 755 if (!assets.addAssetPath(String8(filename), &assetsCookie)) { in doDump() 778 assets.setConfiguration(config); in doDump() [all …]
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/ |
D | RainEffectConfig.kt | 56 assets: AssetManager, 61 rainShowerShader = GraphicsUtils.loadShader(assets, RAIN_SHOWER_LAYER_SHADER_PATH), 62 glassRainShader = GraphicsUtils.loadShader(assets, GLASS_RAIN_LAYER_SHADER_PATH), 63 colorGradingShader = GraphicsUtils.loadShader(assets, COLOR_GRADING_SHADER_PATH), 64 outlineShader = GraphicsUtils.loadShader(assets, OUTLINE_SHADER_PATH), 65 lut = GraphicsUtils.loadTexture(assets, LOOKUP_TABLE_TEXTURE_PATH),
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/ |
D | FogEffectConfig.kt | 65 assets: AssetManager, 71 shader = GraphicsUtils.loadShader(assets, SHADER_PATH), 72 colorGradingShader = GraphicsUtils.loadShader(assets, COLOR_GRADING_SHADER_PATH), 73 lut = GraphicsUtils.loadTexture(assets, LOOKUP_TABLE_TEXTURE_PATH), 74 cloudsTexture = GraphicsUtils.loadTexture(assets, CLOUDS_TEXTURE_PATH) 76 fogTexture = GraphicsUtils.loadTexture(assets, FOG_TEXTURE_PATH)
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/ |
D | SnowEffectConfig.kt | 66 shader = GraphicsUtils.loadShader(context.assets, SHADER_PATH), 68 GraphicsUtils.loadShader(context.assets, ACCUMULATED_SNOW_SHADER_PATH), 69 colorGradingShader = GraphicsUtils.loadShader(context.assets, COLOR_GRADING_SHADER_PATH), 70 noiseTexture = GraphicsUtils.loadTexture(context.assets, NOISE_TEXTURE_PATH) 72 lut = GraphicsUtils.loadTexture(context.assets, LOOKUP_TABLE_TEXTURE_PATH),
|
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 81 static jlong CreateGuardedApkAssets(AssetManager2::ApkAssetsPtr assets) { in CreateGuardedApkAssets() argument 82 auto guarded_assets = new Guarded<AssetManager2::ApkAssetsPtr>(std::move(assets)); in CreateGuardedApkAssets() 87 apk_assets.safeDelete([&apk_assets](AssetManager2::ApkAssetsPtr* assets) { in DeleteGuardedApkAssets() argument 88 if (!assets) { in DeleteGuardedApkAssets() 90 } else if (!*assets) { in DeleteGuardedApkAssets() 96 const auto useCount = (*assets)->getStrongCount(); in DeleteGuardedApkAssets() 97 const auto weakCount = (*assets)->getWeakRefs()->getWeakCount() - useCount; in DeleteGuardedApkAssets() 100 (*assets)->GetDebugName().c_str(), int(useCount), int(weakCount)); in DeleteGuardedApkAssets() 103 (*assets)->GetDebugName().c_str(), int(weakCount)); in DeleteGuardedApkAssets() 235 auto assets = MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoad() local [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ApkAssets.h | 52 static ApkAssetsPtr Load(std::unique_ptr<AssetsProvider> assets, package_property_t flags = 0U); 56 std::unique_ptr<AssetsProvider> assets, 98 static ApkAssetsPtr LoadImpl(std::unique_ptr<AssetsProvider> assets, 104 std::unique_ptr<AssetsProvider> assets, 117 std::unique_ptr<LoadedArsc> loaded_arsc, std::unique_ptr<AssetsProvider> assets,
|
/frameworks/av/media/module/service.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 | 137 final AssetManager assets = res.getAssets(); in testMultithreadCacheStressTest() local 148 Typeface.createFromAsset(assets, "fonts/a3em.ttf"), in testMultithreadCacheStressTest() 149 Typeface.createFromAsset(assets, "fonts/b3em.ttf"), in testMultithreadCacheStressTest() 150 Typeface.createFromAsset(assets, "fonts/c3em.ttf"), in testMultithreadCacheStressTest() 151 Typeface.createFromAsset(assets, "fonts/all2em.ttf"), in testMultithreadCacheStressTest() 152 Typeface.createFromAsset(assets, "fonts/hasGlyphTestFont.ttf"), in testMultithreadCacheStressTest() 153 Typeface.createFromAsset(assets, "fonts/samplefont1.ttf"), in testMultithreadCacheStressTest() 154 Typeface.createFromAsset(assets, "fonts/no_coverage.ttf"), in testMultithreadCacheStressTest()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 48 final AssetManager assets = new AssetManager(); in createResourcesWithApk() local 49 assertTrue(assets.addAssetPath(extractApkAndGetPath(rawApkId)) != 0); in createResourcesWithApk() 53 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
|
/frameworks/av/media/module/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 21 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/libs/systemui/weathereffects/graphics/ |
D | build.gradle | 20 assets.srcDirs = ["../graphics/assets"]
|
/frameworks/base/tools/aapt2/integration-tests/StaticLibTest/App/assets/ |
D | test.txt | 1 test.txt came from assets
|