/frameworks/base/libs/androidfw/tests/ |
H A D | ApkAssets_test.cpp | 63 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);
|
H A D | Theme_bench.cpp | 33 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 D | AssetManager2_bench.cpp | 43 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...] |
/frameworks/base/core/java/android/content/pm/split/ |
H A D | DefaultSplitAssetLoader.java | 46 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...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Delegate.java | 71 AssetManager assets, 76 resources.setImpl(new ResourcesImpl(assets, metrics, config, new DisplayAdjustments())); 70 initSystem(BridgeContext context, AssetManager assets, DisplayMetrics metrics, Configuration config, LayoutlibCallback layoutlibCallback) argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 76 * provides a high-level API for getting typed data from the assets. 78 * <p>The Android resource system keeps track of all non-code assets associated with an 204 * Create a new Resources object on top of an existing set of assets in an 210 * @param assets Previously created AssetManager. 217 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { argument 219 mResourcesImpl = new ResourcesImpl(assets, metrics, config, new DisplayAdjustments());
|
H A D | ResourcesImpl.java | 136 * @param assets Previously created AssetManager. 144 public ResourcesImpl(@NonNull AssetManager assets, @Nullable DisplayMetrics metrics, argument 146 mAssets = assets;
|
H A D | XmlBlock.java | 481 XmlBlock(AssetManager assets, long xmlBlock) { argument 482 mAssets = assets;
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 148 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument 150 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 18 // Provide access to read-only assets. 62 static const char* kAssetsRoot = "assets"; 290 Asset* assets[2] = {NULL, NULL}; local 299 assets[i] = openNonAssetInPathLocked("resources.arsc", 301 if (assets[i] == NULL) { 305 if (tables[i].add(assets[i]) != NO_ERROR) { 315 delete assets[0]; 316 delete assets[1]; 395 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); 427 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets adde [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 4 // 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 D | Command.cpp | 212 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 760 if (!assets.addAssetPath(String8(filename), &assetsCookie)) { 761 fprintf(stderr, "ERROR: dump failed because assets coul 2553 sp<AaptAssets> assets; local [all...] |
H A D | Resource.cpp | 4 // 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 D | ResourceTable.cpp | 4 // 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/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 217 AssetRepository assets, 234 mAssets.setAssetRepository(assets); 215 BridgeContext(Object projectKey, DisplayMetrics metrics, RenderResources renderResources, AssetRepository assets, LayoutlibCallback layoutlibCallback, Configuration config, int targetSdkVersion, boolean hasRtlSupport) argument
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageParser.java | 1158 final AssetManager assets = assetLoader.getBaseAssetManager(); 1160 final Package pkg = parseBaseApk(baseApk, assets, flags); 1202 final AssetManager assets = newConfiguredAssetManager(); 1212 final Package pkg = parseBaseApk(apkFile, assets, flags); 1217 IoUtils.closeQuietly(assets); 1221 private static int loadApkIntoAssetManager(AssetManager assets, String apkPath, int flags) argument 1231 int cookie = assets.addAssetPath(apkPath); 1239 private Package parseBaseApk(File apkFile, AssetManager assets, int flags) argument 1254 final int cookie = loadApkIntoAssetManager(assets, apkPath, flags); 1259 res = new Resources(assets, mMetric 1286 parseSplitApk(Package pkg, int splitIndex, AssetManager assets, int flags) argument [all...] |
/frameworks/opt/setupwizard/tools/docs/ |
H A D | doclava.jar | META-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ... |