Searched defs:assets (Results 1 - 17 of 17) sorted by relevance

/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.cpp42 AssetManager2 assets; local
43 assets.SetApkAssets({apk.get()});
51 AssetManager assets; local
52 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
56 assets.getResources(true);
65 AssetManager2 assets; local
66 assets.SetApkAssets({apk.get()});
74 AssetManager assets; local
75 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
79 assets
138 AssetManager2 assets; local
155 AssetManager assets; local
186 AssetManager2 assets; local
198 AssetManager assets; local
222 AssetManager2 assets; local
236 AssetManager assets; local
[all...]
/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java83 @NonNull AssetManager assets,
90 resources.setImpl(new ResourcesImpl(assets, metrics, config, new DisplayAdjustments()));
82 initSystem(@onNull BridgeContext context, @NonNull AssetManager assets, @NonNull DisplayMetrics metrics, @NonNull Configuration config, @NonNull LayoutlibCallback layoutlibCallback) argument
/frameworks/base/core/java/android/content/res/
H A DResources.java77 * provides a high-level API for getting typed data from the assets.
79 * <p>The Android resource system keeps track of all non-code assets associated with an
213 * Create a new Resources object on top of an existing set of assets in an
219 * @param assets Previously created AssetManager.
226 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { argument
228 mResourcesImpl = new ResourcesImpl(assets, metrics, config, new DisplayAdjustments());
H A DResourcesImpl.java158 * @param assets Previously created AssetManager.
166 public ResourcesImpl(@NonNull AssetManager assets, @Nullable DisplayMetrics metrics, argument
168 mAssets = assets;
H A DXmlBlock.java483 XmlBlock(@Nullable AssetManager assets, long xmlBlock) { argument
484 mAssets = assets;
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp139 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument
141 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER);
/frameworks/base/graphics/java/android/graphics/
H A DImageDecoder.java502 AssetSource(@NonNull AssetManager assets, @NonNull String fileName) { argument
503 mAssets = assets;
862 * Create a new {@link Source Source} from a file in the "assets" directory.
866 public static Source createSource(@NonNull AssetManager assets, @NonNull String fileName) { argument
867 return new AssetSource(assets, fileName);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp18 // Provide access to read-only assets.
62 static const char* kAssetsRoot = "assets";
331 Asset* assets[2] = {NULL, NULL}; local
340 assets[i] = openNonAssetInPathLocked("resources.arsc",
342 if (assets[i] == NULL) {
346 if (tables[i].add(assets[i]) != NO_ERROR) {
356 delete assets[0];
357 delete assets[1];
436 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
469 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets adde
[all...]
/frameworks/base/tools/aapt/
H A DImages.cpp4 // Build resource files from raw assets.
912 // each of our PNG assets seem to have about four distinct pixels
1357 status_t preProcessImage(const Bundle* bundle, const sp<AaptAssets>& /* assets */,
1584 status_t postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets, argument
1593 return compileXmlFile(bundle, assets, resourceName, file, table);
H A DCommand.cpp194 AssetManager assets; local
195 if (!assets.addAssetPath(String8(zipFileName), NULL)) {
196 fprintf(stderr, "ERROR: list -a failed because assets could not be loaded\n");
205 const ResTable& res = assets.getResources(false);
211 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml",
400 Vector<String8> getNfcAidCategories(AssetManager& assets, const String8& xmlPath, bool offHost, argument
403 Asset* aidAsset = assets.openNonAsset(xmlPath, Asset::ACCESS_BUFFER);
742 AssetManager assets; local
748 if (!assets.addAssetPath(assetPath, NULL)) {
754 if (!assets
2566 sp<AaptAssets> assets; local
[all...]
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
1043 getPlatformAssetCookie(const AssetManager& assets) argument
1131 extractPlatformBuildVersion(AssetManager& assets, Bundle* bundle) argument
1199 generateAndroidManifestForSplit(Bundle* bundle, const sp<AaptAssets>& assets, const sp<ApkSplit>& split, sp<AaptFile>& outFile, ResourceTable* table) argument
1256 buildResources(Bundle* bundle, const sp<AaptAssets>& assets, sp<ApkBuilder>& builder) argument
2222 getSymbolPackage(const String8& symbol, const sp<AaptAssets>& assets, bool pub) argument
2238 getAttributeComment(const sp<AaptAssets>& assets, const String8& name, String16* outTypeComment = NULL) argument
2258 writeResourceLoadedCallbackForLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool ) argument
2287 writeResourceLoadedCallback( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument
2329 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate, bool nonConstantId) argument
2570 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument
2666 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId, bool emitCallback) argument
2788 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument
2829 writeResourceSymbols(Bundle* bundle, const sp<AaptAssets>& assets, const String8& package, bool includePrivate, bool emitCallback) argument
3002 writeProguardForAndroidManifest(ProguardKeepSet* keep, const sp<AaptAssets>& assets, bool mainDex) argument
3224 writeProguardForLayouts(ProguardKeepSet* keep, const sp<AaptAssets>& assets) argument
3320 writeProguardFile(Bundle* bundle, const sp<AaptAssets>& assets) argument
3344 writeMainDexProguardFile(Bundle* bundle, const sp<AaptAssets>& assets) argument
3376 writeDependencyPreReqs(Bundle* , const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument
[all...]
H A DResourceTable.cpp4 // Build resource files from raw assets.
43 const sp<AaptAssets>& assets,
54 return compileXmlFile(bundle, assets, resourceName, root, target, table, options);
58 const sp<AaptAssets>& assets,
70 return compileXmlFile(bundle, assets, resourceName, root, outTarget, table, options);
74 const sp<AaptAssets>& assets,
84 // Remove the assets entry.
85 sp<AaptDir> resDir = assets->getDirs().valueFor(String8("res"));
108 status_t err = root->assignResourceIds(assets, table);
115 status_t err = root->parseValues(assets, tabl
42 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<AaptFile>& target, ResourceTable* table, int options) argument
57 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<AaptFile>& target, const sp<AaptFile>& outTarget, ResourceTable* table, int options) argument
73 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<XMLNode>& root, const sp<AaptFile>& target, ResourceTable* table, int options) argument
780 compileResourceFile(Bundle* bundle, const sp<AaptAssets>& assets, const sp<AaptFile>& in, const ResTable_config& defParams, const bool overwrite, ResourceTable* outTable) argument
1807 addIncludedResources(Bundle* bundle, const sp<AaptAssets>& assets) argument
[all...]
/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp750 static int32_t FindFrameworkAssetManagerCookie(const android::AssetManager& assets) { argument
755 const ResTable& table = assets.getResources(true);
783 void ExtractCompileSdkVersions(android::AssetManager* assets) { argument
786 int32_t cookie = FindFrameworkAssetManagerCookie(*assets);
788 // No Framework assets loaded. Not a failure.
793 assets->openNonAsset(cookie, kAndroidManifestPath, Asset::AccessMode::ACCESS_BUFFER));
1542 std::string full_key = "assets/" + file;
2052 "An assets directory to include in the APK. These are unprocessed.",
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java221 @NonNull AssetRepository assets,
238 mAssets.setAssetRepository(assets);
219 BridgeContext(Object projectKey, @NonNull DisplayMetrics metrics, @NonNull RenderResources renderResources, @NonNull AssetRepository assets, @NonNull LayoutlibCallback layoutlibCallback, @NonNull Configuration config, int targetSdkVersion, boolean hasRtlSupport) argument
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java1233 final AssetManager assets = assetLoader.getBaseAssetManager();
1235 final Package pkg = parseBaseApk(baseApk, assets, flags);
1303 private Package parseBaseApk(File apkFile, AssetManager assets, int flags) argument
1320 final int cookie = assets.findCookieForPath(apkPath);
1325 parser = assets.openXmlResourceParser(cookie, ANDROID_MANIFEST_FILENAME);
1326 final Resources res = new Resources(assets, mMetrics, null);
1352 private void parseSplitApk(Package pkg, int splitIndex, AssetManager assets, int flags) argument
1365 final int cookie = assets.findCookieForPath(apkPath);
1371 parser = assets.openXmlResourceParser(cookie, ANDROID_MANIFEST_FILENAME);
1372 res = new Resources(assets, mMetric
[all...]
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...

Completed in 424 milliseconds