/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 66 private AssetManager mAssets; 81 final int dataLen = len * AssetManager.STYLE_NUM_ENTRIES; in resize() 169 index *= AssetManager.STYLE_NUM_ENTRIES; in getText() 171 final int type = data[index+AssetManager.STYLE_TYPE]; in getText() 206 index *= AssetManager.STYLE_NUM_ENTRIES; in getString() 208 final int type = data[index+AssetManager.STYLE_TYPE]; in getString() 245 index *= AssetManager.STYLE_NUM_ENTRIES; in getNonResourceString() 247 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonResourceString() 249 final int cookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getNonResourceString() 252 data[index+AssetManager.STYLE_DATA]).toString(); in getNonResourceString() [all …]
|
D | AssetManager.java | 45 public final class AssetManager implements AutoCloseable { class 75 /*package*/ static AssetManager sSystem = null; 96 public AssetManager() { in AssetManager() method in AssetManager 111 AssetManager system = new AssetManager(true); in ensureSystemAssets() 118 private AssetManager(boolean isSystem) { in AssetManager() method in AssetManager 134 public static AssetManager getSystem() { in getSystem() 626 synchronized (AssetManager.this) { in close()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 73 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc"; 74 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap"; 75 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay"; 76 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme"; 77 const char* AssetManager::TARGET_PACKAGE_NAME = "android"; 78 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk"; 79 const char* AssetManager::IDMAP_DIR = "/data/resource-cache"; 134 int32_t AssetManager::getGlobalCount() { in getGlobalCount() 138 AssetManager::AssetManager() : in AssetManager() function in AssetManager 147 AssetManager::~AssetManager() { in ~AssetManager() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | BridgeAssetManager.java | 22 public class BridgeAssetManager extends AssetManager { 34 public static AssetManager initSystem() { in initSystem() 35 if (!(AssetManager.sSystem instanceof BridgeAssetManager)) { in initSystem() 38 AssetManager.sSystem = new BridgeAssetManager(); in initSystem() 39 AssetManager.sSystem.makeStringBlocks(null); in initSystem() 41 return AssetManager.sSystem; in initSystem() 49 AssetManager.sSystem = null; in clearSystem()
|
D | AssetManager_Delegate.java | 33 /*package*/ static long newTheme(AssetManager manager) { in newTheme() 39 /*package*/ static void deleteTheme(AssetManager manager, long theme) { in deleteTheme() 44 /*package*/ static SparseArray<String> getAssignedPackageIdentifiers(AssetManager manager) { in getAssignedPackageIdentifiers()
|
/frameworks/base/core/java/android/content/pm/split/ |
D | SplitAssetDependencyLoader.java | 23 import android.content.res.AssetManager; 44 private AssetManager[] mCachedAssetManagers; 57 mCachedAssetManagers = new AssetManager[mSplitPaths.length]; in SplitAssetDependencyLoader() 65 private static AssetManager createAssetManagerWithPaths(String[] assetPaths, int flags) in createAssetManagerWithPaths() 67 final AssetManager assets = new AssetManager(); in createAssetManagerWithPaths() 110 public AssetManager getBaseAssetManager() throws PackageParser.PackageParserException { in getBaseAssetManager() 116 public AssetManager getSplitAssetManager(int idx) throws PackageParser.PackageParserException { in getSplitAssetManager() 125 for (AssetManager assets : mCachedAssetManagers) { in close()
|
D | DefaultSplitAssetLoader.java | 22 import android.content.res.AssetManager; 38 private AssetManager mCachedAssetManager; 46 private static void loadApkIntoAssetManager(AssetManager assets, String apkPath, int flags) in loadApkIntoAssetManager() 61 public AssetManager getBaseAssetManager() throws PackageParser.PackageParserException { in getBaseAssetManager() 66 AssetManager assets = new AssetManager(); in getBaseAssetManager() 89 public AssetManager getSplitAssetManager(int splitIdx) in getSplitAssetManager()
|
D | SplitAssetLoader.java | 19 import android.content.res.AssetManager; 28 AssetManager getBaseAssetManager() throws PackageParser.PackageParserException; in getBaseAssetManager() 29 AssetManager getSplitAssetManager(int splitIdx) throws PackageParser.PackageParserException; in getSplitAssetManager()
|
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
D | LargeAssetTest.java | 21 import android.content.res.AssetManager; 63 class Validator extends AsyncTask<AssetManager, Integer, Boolean> { 67 protected Boolean doInBackground(AssetManager... params) { in doInBackground() 68 AssetManager am = params[0]; in doInBackground() 70 InputStream is = am.open("million-ints", AssetManager.ACCESS_STREAMING); in doInBackground()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 172 argv[argc++] = AssetManager::IDMAP_BIN; in verifySystemIdmaps() 174 argv[argc++] = AssetManager::TARGET_PACKAGE_NAME; in verifySystemIdmaps() 175 argv[argc++] = AssetManager::TARGET_APK_PATH; in verifySystemIdmaps() 176 argv[argc++] = AssetManager::IDMAP_DIR; in verifySystemIdmaps() 181 int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); in verifySystemIdmaps() 183 String8 overlayPath = String8(AssetManager::OVERLAY_DIR) + "/" + subdir; in verifySystemIdmaps() 188 if (stat(AssetManager::OVERLAY_DIR, &st) == 0) { in verifySystemIdmaps() 189 argv[argc++] = AssetManager::OVERLAY_DIR; in verifySystemIdmaps() 194 execv(AssetManager::IDMAP_BIN, (char* const*)argv); in verifySystemIdmaps() 211 AssetManager* assetManagerForJavaObject(JNIEnv* env, jobject obj) in assetManagerForJavaObject() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | FallbackCategoryProvider.java | 19 import android.content.res.AssetManager; 46 final AssetManager assets = new AssetManager(); in loadFallbacks()
|
/frameworks/base/cmds/idmap/ |
D | create.cpp | 122 if (get_zip_entry_crc(target_apk_path, AssetManager::RESOURCES_FILENAME, in is_idmap_stale_fd() 126 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME, in is_idmap_stale_fd() 156 if (get_zip_entry_crc(target_apk_path, AssetManager::RESOURCES_FILENAME, in create_idmap() 160 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME, in create_idmap() 165 AssetManager am; in create_idmap()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Movie.java | 19 import android.content.res.AssetManager; 55 if (is instanceof AssetManager.AssetInputStream) { in decodeStream() 56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
|
D | BitmapRegionDecoder.java | 18 import android.content.res.AssetManager; 115 if (is instanceof AssetManager.AssetInputStream) { in newInstance() 117 ((AssetManager.AssetInputStream) is).getNativeAsset(), in newInstance()
|
D | FontFamily.java | 19 import android.content.res.AssetManager; 138 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, in addFontFromAssetManager() 196 private static native boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, in nAddFontFromAssetManager()
|
/frameworks/base/rs/java/android/renderscript/ |
D | FileA3D.java | 22 import android.content.res.AssetManager; 232 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() 298 if (is instanceof AssetManager.AssetInputStream) { in createFromResource() 299 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource()
|
D | Font.java | 26 import android.content.res.AssetManager; 185 AssetManager mgr = res.getAssets(); in createFromAsset() 213 if (is instanceof AssetManager.AssetInputStream) { in createFromResource() 214 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource()
|
/frameworks/base/native/android/ |
D | asset_manager.cpp | 107 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_open() 118 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_openDir()
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | TypefaceCreatePerfTest.java | 20 import android.content.res.AssetManager; 69 final AssetManager am = context.getAssets(); in testCreate_fromAsset() 80 final AssetManager am = context.getAssets(); in testCreate_fromFile()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorContext.java | 20 import android.content.res.AssetManager; 67 public AssetManager getAssets() { in getAssets()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | AvgBrightnessFilterTest.java | 19 import android.content.res.AssetManager; 33 private AssetManager assetMgr = null;
|
D | ContrastRatioFilterTest.java | 26 import android.content.res.AssetManager; 39 private AssetManager assetMgr = null;
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AssetTest.java | 19 import android.content.res.AssetManager; 27 private AssetManager mAssets;
|
/frameworks/base/core/tests/benchmarks/src/android/content/res/ |
D | ResourcesBenchmark.java | 31 private AssetManager mAsset; 41 mAsset = new AssetManager(); in setUp()
|
/frameworks/support/emoji/bundled/src/android/support/text/emoji/bundled/ |
D | BundledEmojiCompatConfig.java | 20 import android.content.res.AssetManager; 79 final AssetManager assetManager = mContext.getAssets(); in run()
|