Home
last modified time | relevance | path

Searched refs:AssetManager (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/core/java/android/content/res/
DTypedArray.java56 final int fullLen = len * AssetManager.STYLE_NUM_ENTRIES; in obtain()
67 new int[len*AssetManager.STYLE_NUM_ENTRIES], in obtain()
73 private AssetManager mAssets;
159 index *= AssetManager.STYLE_NUM_ENTRIES; in getText()
161 final int type = data[index+AssetManager.STYLE_TYPE]; in getText()
196 index *= AssetManager.STYLE_NUM_ENTRIES; in getString()
198 final int type = data[index+AssetManager.STYLE_TYPE]; in getString()
235 index *= AssetManager.STYLE_NUM_ENTRIES; in getNonResourceString()
237 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonResourceString()
239 final int cookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getNonResourceString()
[all …]
DAssetManager.java42 public final class AssetManager implements AutoCloseable { class
72 /*package*/ static AssetManager sSystem = null;
93 public AssetManager() { in AssetManager() method in AssetManager
108 AssetManager system = new AssetManager(true); in ensureSystemAssets()
115 private AssetManager(boolean isSystem) { in AssetManager() method in AssetManager
131 public static AssetManager getSystem() { in getSystem()
599 synchronized (AssetManager.this) { in close()
DResourcesImpl.java115 final AssetManager mAssets;
140 public ResourcesImpl(@NonNull AssetManager assets, @Nullable DisplayMetrics metrics, in ResourcesImpl()
153 public AssetManager getAssets() { in getAssets()
301 AssetManager.ACCESS_STREAMING); in openRawResource()
719 value.assetCookie, file, AssetManager.ACCESS_STREAMING); in loadDrawableForCookie()
1054 private final AssetManager mAssets;
1087 AssetManager.applyThemeStyle(mTheme, resId, force); in applyStyle()
1097 AssetManager.copyTheme(mTheme, other.mTheme); in setTo()
1120 AssetManager.applyStyle(mTheme, defStyleAttr, defStyleRes, in obtainStyledAttributes()
1142 AssetManager.resolveAttrs(mTheme, 0, 0, values, attrs, array.mData, array.mIndices); in resolveAttributes()
[all …]
/frameworks/base/libs/androidfw/
DAssetManager.cpp76 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
77 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
78 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay";
79 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
80 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
81 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
136 int32_t AssetManager::getGlobalCount() in getGlobalCount()
141 AssetManager::AssetManager(CacheMode cacheMode) in AssetManager() function in AssetManager
153 AssetManager::~AssetManager(void) in ~AssetManager()
168 bool AssetManager::addAssetPath( in addAssetPath()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeAssetManager.java22 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()
DAssetManager_Delegate.java31 /*package*/ static long newTheme(AssetManager manager) { in newTheme()
37 /*package*/ static void deleteTheme(AssetManager manager, long theme) { in deleteTheme()
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/
DLargeAssetTest.java21 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/
Dandroid_util_AssetManager.cpp181 argv[argc++] = AssetManager::IDMAP_BIN; in verifySystemIdmaps()
183 argv[argc++] = AssetManager::TARGET_PACKAGE_NAME; in verifySystemIdmaps()
184 argv[argc++] = AssetManager::TARGET_APK_PATH; in verifySystemIdmaps()
185 argv[argc++] = AssetManager::IDMAP_DIR; in verifySystemIdmaps()
189 if (stat(AssetManager::OVERLAY_DIR, &st) == 0) { in verifySystemIdmaps()
190 argv[argc++] = AssetManager::OVERLAY_DIR; in verifySystemIdmaps()
195 execv(AssetManager::IDMAP_BIN, (char* const*)argv); in verifySystemIdmaps()
212 AssetManager* assetManagerForJavaObject(JNIEnv* env, jobject obj) in assetManagerForJavaObject()
215 AssetManager* am = reinterpret_cast<AssetManager*>(amHandle); in assetManagerForJavaObject()
226 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openAsset()
[all …]
/frameworks/base/cmds/idmap/
Dcreate.cpp122 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()
Dinspect.cpp147 status_t resource_metadata(const AssetManager& am, uint32_t res_id, in resource_metadata()
167 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { in parse_idmap_header()
225 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { in parse_data()
300 AssetManager am; in idmap_inspect()
/frameworks/base/graphics/java/android/graphics/
DMovie.java19 import android.content.res.AssetManager;
55 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
DFontFamily.java19 import android.content.res.AssetManager;
88 public boolean addFontFromAsset(AssetManager mgr, String path) { in addFontFromAsset()
98 private static native boolean nAddFontFromAsset(long nativeFamily, AssetManager mgr, in nAddFontFromAsset()
DBitmapRegionDecoder.java18 import android.content.res.AssetManager;
115 if (is instanceof AssetManager.AssetInputStream) { in newInstance()
117 ((AssetManager.AssetInputStream) is).getNativeAsset(), in newInstance()
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java22 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()
DFont.java26 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/
Dasset_manager.cpp107 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_open()
118 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_openDir()
/frameworks/base/core/java/com/android/internal/policy/
DDecorContext.java20 import android.content.res.AssetManager;
67 public AssetManager getAssets() { in getAssets()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DAvgBrightnessFilterTest.java19 import android.content.res.AssetManager;
33 private AssetManager assetMgr = null;
DExposureFilterTest.java19 import android.content.res.AssetManager;
38 private AssetManager assetMgr = null;
DContrastRatioFilterTest.java26 import android.content.res.AssetManager;
39 private AssetManager assetMgr = null;
/frameworks/base/core/tests/coretests/src/android/content/
DAssetTest.java19 import android.content.res.AssetManager;
27 private AssetManager mAssets;
/frameworks/base/core/tests/benchmarks/src/android/content/res/
DResourcesBenchmark.java31 private AssetManager mAsset;
41 mAsset = new AssetManager(); in setUp()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java22 import android.content.res.AssetManager;
114 public AssetManager getAssets() { in getAssets()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java44 final AssetManager assets = new AssetManager(); in createResourcesWithApk()
/frameworks/base/cmds/bootanimation/
DBootAnimation.h113 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
128 AssetManager mAssets;

12345