Searched refs:assets (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DTheme_bench.cpp33 state.SkipWithError("Failed to load assets");
37 AssetManager2 assets; local
38 assets.SetApkAssets({apk.get()});
41 auto theme = assets.NewTheme();
48 AssetManager assets; local
49 if (!assets.addAssetPath(String8(kFrameworkPath), nullptr /* cookie */, false /* appAsLib */,
51 state.SkipWithError("Failed to load assets");
55 const ResTable& res_table = assets.getResources(true);
67 AssetManager2 assets; local
68 assets
83 AssetManager assets; local
[all...]
H A DAssetManager2_bench.cpp43 AssetManager2 assets; local
44 assets.SetApkAssets({apk.get()});
52 AssetManager assets; local
53 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
57 assets.getResources(true);
66 AssetManager2 assets; local
67 assets.SetApkAssets({apk.get()});
75 AssetManager assets; local
76 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
80 assets
169 AssetManager2 assets; local
186 AssetManager assets; local
217 AssetManager2 assets; local
229 AssetManager assets; local
[all...]
H A DApkAssets_test.cpp63 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); local
64 ASSERT_NE(nullptr, assets);
68 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); local
69 ASSERT_NE(nullptr, assets);
78 auto asset = loaded_apk->Open("assets/uncompressed.txt", Asset::ACCESS_UNKNOWN);
/frameworks/base/core/java/android/content/pm/split/
H A DDefaultSplitAssetLoader.java46 private static void loadApkIntoAssetManager(AssetManager assets, String apkPath, int flags) argument
53 if (assets.addAssetPath(apkPath) == 0) {
66 AssetManager assets = new AssetManager();
68 assets.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
70 loadApkIntoAssetManager(assets, mBaseCodePath, mFlags);
74 loadApkIntoAssetManager(assets, apkPath, mFlags);
78 mCachedAssetManager = assets;
79 assets = null;
82 if (assets != null) {
83 IoUtils.closeQuietly(assets);
[all...]
H A DSplitAssetDependencyLoader.java67 final AssetManager assets = new AssetManager();
69 assets.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
79 if (assets.addAssetPath(assetPath) == 0) {
85 return assets;
87 IoUtils.closeQuietly(assets);
125 for (AssetManager assets : mCachedAssetManagers) {
126 IoUtils.closeQuietly(assets);
/frameworks/base/tools/aapt/
H A DMain.h50 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,
H A DImages.h4 // Build resource files from raw assets.
18 status_t preProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets,
23 status_t postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets,
H A DResource.cpp4 // Build resource files from raw assets.
220 static status_t parsePackage(Bundle* bundle, const sp<AaptAssets>& assets, argument
263 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len)));
293 static status_t makeFileResources(Bundle* bundle, const sp<AaptAssets>& assets, argument
326 String16(assets->getPackage()),
335 assets->addResource(it.getLeafName(), resPath, it.getFile(), type8);
344 PreProcessImageWorkUnit(const Bundle* bundle, const sp<AaptAssets>& assets, argument
346 mBundle(bundle), mAssets(assets), mFile(file), mHasErrors(hasErrors) {
364 static status_t preProcessImages(const Bundle* bundle, const sp<AaptAssets>& assets, argument
374 bundle, assets, i
593 applyFileOverlay(Bundle *bundle, const sp<AaptAssets>& assets, sp<ResourceTypeSet> *baseSet, const char *resType) argument
1027 getPlatformAssetCookie(const AssetManager& assets) argument
1101 extractPlatformBuildVersion(AssetManager& assets, Bundle* bundle) argument
1169 generateAndroidManifestForSplit(Bundle* bundle, const sp<AaptAssets>& assets, const sp<ApkSplit>& split, sp<AaptFile>& outFile, ResourceTable* table) argument
1226 buildResources(Bundle* bundle, const sp<AaptAssets>& assets, sp<ApkBuilder>& builder) argument
2190 getSymbolPackage(const String8& symbol, const sp<AaptAssets>& assets, bool pub) argument
2206 getAttributeComment(const sp<AaptAssets>& assets, const String8& name, String16* outTypeComment = NULL) argument
2226 writeResourceLoadedCallbackForLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool ) argument
2255 writeResourceLoadedCallback( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument
2297 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate, bool nonConstantId) argument
2538 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument
2634 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId, bool emitCallback) argument
2756 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument
2797 writeResourceSymbols(Bundle* bundle, const sp<AaptAssets>& assets, const String8& package, bool includePrivate, bool emitCallback) argument
2970 writeProguardForAndroidManifest(ProguardKeepSet* keep, const sp<AaptAssets>& assets, bool mainDex) argument
3192 writeProguardForLayouts(ProguardKeepSet* keep, const sp<AaptAssets>& assets) argument
3288 writeProguardFile(Bundle* bundle, const sp<AaptAssets>& assets) argument
3312 writeMainDexProguardFile(Bundle* bundle, const sp<AaptAssets>& assets) argument
3344 writeDependencyPreReqs(Bundle* , const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument
[all...]
H A DCommand.cpp212 AssetManager assets; local
213 if (!assets.addAssetPath(String8(zipFileName), NULL)) {
214 fprintf(stderr, "ERROR: list -a failed because assets could not be loaded\n");
223 const ResTable& res = assets.getResources(false);
229 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml",
416 Vector<String8> getNfcAidCategories(AssetManager& assets, const String8& xmlPath, bool offHost, argument
419 Asset* aidAsset = assets.openNonAsset(xmlPath, Asset::ACCESS_BUFFER);
758 AssetManager assets; local
764 if (!assets.addAssetPath(assetPath, NULL)) {
770 if (!assets
2554 sp<AaptAssets> assets; local
[all...]
H A DXMLNode.h4 // Build resource files from raw assets.
138 status_t parseValues(const sp<AaptAssets>& assets, ResourceTable* table);
140 status_t assignResourceIds(const sp<AaptAssets>& assets,
H A DResourceTable.h4 // Build resource files from raw assets.
38 const sp<AaptAssets>& assets,
45 const sp<AaptAssets>& assets,
53 const sp<AaptAssets>& assets,
61 const sp<AaptAssets>& assets,
133 status_t addIncludedResources(Bundle* bundle, const sp<AaptAssets>& assets);
/frameworks/base/libs/androidfw/tests/data/basic/
H A Dbuild25 -A assets \
/frameworks/support/v14/preference/
H A Dbuild.gradle34 main.assets.srcDir 'assets'
/frameworks/base/tools/aapt2/integration-tests/AppOne/
H A DAndroid.mk24 LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets $(LOCAL_PATH)/assets2
/frameworks/base/core/java/android/content/pm/
H A DFallbackCategoryProvider.java46 final AssetManager assets = new AssetManager();
47 assets.addAssetPath("/system/framework/framework-res.apk");
48 final Resources res = new Resources(assets, null, null);
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/
H A Dbuild.gradle41 main.assets.srcDirs = [new File(fontDir, "supported-emojis").getAbsolutePath()]
/frameworks/support/samples/SupportEmojiDemos/
H A Dbuild.gradle41 main.assets.srcDirs = [new File(fontDir, "supported-emojis").getAbsolutePath()]
/frameworks/support/v7/preference/
H A Dbuild.gradle42 main.assets.srcDir 'assets'
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java44 final AssetManager assets = new AssetManager();
45 assertTrue(assets.addAssetPath(extractApkAndGetPath(rawApkId)) != 0);
49 return new Resources(assets, dm, new Configuration());
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
H A DPatchedGradleManifestFactory.java55 final FileFsFile assets;
71 if (FileFsFile.from(buildOutputDir, "assets", flavor, type).exists()) {
72 assets = FileFsFile.from(buildOutputDir, "assets", flavor, type);
74 assets = FileFsFile.from(buildOutputDir, "bundles", flavor, type, "assets");
96 return new ManifestIdentifier(manifest, res, assets, packageName, null);
/frameworks/support/room/integration-tests/kotlintestapp/
H A Dbuild.gradle47 androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
/frameworks/support/room/integration-tests/testapp/
H A Dbuild.gradle45 androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
/frameworks/base/tools/aapt2/configuration/
H A DConfigurationParser_test.cpp92 <texture-path>assets/dxt1/*</texture-path>
365 <texture-path>assets/dxt1/main/*</texture-path>
367 assets/dxt1/test/*
385 {"assets/dxt1/main/*", "assets/dxt1/test/*"}
/frameworks/base/core/java/android/app/
H A DResourcesManager.java273 AssetManager assets = new AssetManager();
279 if (assets.addAssetPath(key.mResDir) == 0) {
287 if (assets.addAssetPath(splitResDir) == 0) {
296 assets.addOverlayPath(idmapPath);
305 if (assets.addAssetPathAsSharedLibrary(libDir) == 0) {
312 return assets;
338 final AssetManager assets = createAssetManager(key);
339 if (assets == null) {
345 final ResourcesImpl impl = new ResourcesImpl(assets, dm, config, daj);
/frameworks/base/cmds/uiautomator/library/
H A DAndroid.mk52 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := external/doclava/res/assets/templates-sdk

Completed in 889 milliseconds

12