Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/content/res/
DTypedArray.java90 index *= AssetManager.STYLE_NUM_ENTRIES; in getText()
92 final int type = data[index+AssetManager.STYLE_TYPE]; in getText()
118 index *= AssetManager.STYLE_NUM_ENTRIES; in getString()
120 final int type = data[index+AssetManager.STYLE_TYPE]; in getString()
153 index *= AssetManager.STYLE_NUM_ENTRIES; in getNonResourceString()
155 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonResourceString()
157 final int cookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getNonResourceString()
160 data[index+AssetManager.STYLE_DATA]).toString(); in getNonResourceString()
179 index *= AssetManager.STYLE_NUM_ENTRIES; in getNonConfigurationString()
181 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonConfigurationString()
[all …]
DResources.java113 /*package*/ final AssetManager mAssets;
166 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { in Resources()
182 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources()
942 AssetManager.ACCESS_STREAMING); in openRawResource()
1103 AssetManager.applyThemeStyle(mTheme, resid, force); in applyStyle()
1116 AssetManager.copyTheme(mTheme, other.mTheme); in setTo()
1142 AssetManager.applyStyle(mTheme, 0, 0, 0, attrs, in obtainStyledAttributes()
1173 AssetManager.applyStyle(mTheme, 0, resid, 0, attrs, in obtainStyledAttributes()
1191 int d = i*AssetManager.STYLE_NUM_ENTRIES; in obtainStyledAttributes()
1192 value.type = data[d+AssetManager.STYLE_TYPE]; in obtainStyledAttributes()
[all …]
DAssetManager.java35 public final class AssetManager { class
65 /*package*/ static AssetManager sSystem = null;
87 public AssetManager() { in AssetManager() method in AssetManager
102 AssetManager system = new AssetManager(true); in ensureSystemAssets()
109 private AssetManager(boolean isSystem) { in AssetManager() method in AssetManager
125 public static AssetManager getSystem() { in getSystem()
558 synchronized (AssetManager.this) { in close()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeAssetManager.java21 import android.content.res.AssetManager;
23 public class BridgeAssetManager extends AssetManager {
33 public static AssetManager initSystem() { in initSystem()
34 if (!(AssetManager.sSystem instanceof BridgeAssetManager)) { in initSystem()
37 AssetManager.sSystem = new BridgeAssetManager(); in initSystem()
38 AssetManager.sSystem.makeStringBlocks(false); in initSystem()
40 return AssetManager.sSystem; in initSystem()
48 AssetManager.sSystem = null; in clearSystem()
/frameworks/base/libs/androidfw/
DAssetManager.cpp109 int32_t AssetManager::getGlobalCount() in getGlobalCount()
114 AssetManager::AssetManager(CacheMode cacheMode) in AssetManager() function in AssetManager
124 AssetManager::~AssetManager(void) in ~AssetManager()
137 bool AssetManager::addAssetPath(const String8& path, void** cookie) in addAssetPath()
211 bool AssetManager::isIdmapStaleLocked(const String8& originalPath, const String8& overlayPath, in isIdmapStaleLocked()
264 bool AssetManager::getZipEntryCrcLocked(const String8& zipPath, const char* entryFilename, in getZipEntryCrcLocked()
283 bool AssetManager::createIdmapFileLocked(const String8& originalPath, const String8& overlayPath, in createIdmapFileLocked()
355 bool AssetManager::addDefaultAssets() in addDefaultAssets()
366 void* AssetManager::nextAssetPath(void* cookie) const in nextAssetPath()
373 String8 AssetManager::getAssetPath(void* cookie) const in getAssetPath()
[all …]
DAndroid.mk24 AssetManager.cpp \
/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.cpp106 AssetManager* assetManagerForJavaObject(JNIEnv* env, jobject obj) in assetManagerForJavaObject()
108 AssetManager* am = (AssetManager*)env->GetIntField(obj, gAssetManagerOffsets.mObject); in assetManagerForJavaObject()
119 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openAsset()
184 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openAssetFd()
213 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openNonAssetNative()
250 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openNonAssetFdNative()
279 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_list()
440 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_addAssetPath()
453 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_isUpToDate()
468 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_setLocale()
[all …]
/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/graphics/java/android/renderscript/
DFileA3D.java23 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 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource()
DFont.java27 import android.content.res.AssetManager;
186 AssetManager mgr = res.getAssets(); in createFromAsset()
214 if (is instanceof AssetManager.AssetInputStream) { in createFromResource()
215 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource()
/frameworks/base/graphics/java/android/graphics/
DBitmapRegionDecoder.java18 import android.content.res.AssetManager;
114 if (is instanceof AssetManager.AssetInputStream) { in newInstance()
116 ((AssetManager.AssetInputStream) is).getAssetInt(), in newInstance()
DTypeface.java19 import android.content.res.AssetManager;
148 public static Typeface createFromAsset(AssetManager mgr, String path) { in createFromAsset()
226 private static native int nativeCreateFromAsset(AssetManager mgr, String path); in nativeCreateFromAsset()
DBitmapFactory.java19 import android.content.res.AssetManager;
486 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
487 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in decodeStream()
/frameworks/base/core/tests/coretests/src/android/content/
DAssetTest.java19 import android.content.res.AssetManager;
27 private AssetManager mAssets;
/frameworks/base/cmds/bootanimation/
DBootAnimation.h81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
89 AssetManager mAssets;
/frameworks/base/include/androidfw/
DAssetManager.h70 class AssetManager : public AAssetManager {
79 AssetManager(CacheMode cacheMode = CACHE_OFF);
80 virtual ~AssetManager(void);
DAssetDir.h72 friend class AssetManager; variable
/frameworks/base/include/android_runtime/
Dandroid_util_AssetManager.h26 extern AssetManager* assetManagerForJavaObject(JNIEnv* env, jobject assetMgr);
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java19 import android.content.res.AssetManager;
42 super(new AssetManager(), null, null); in MockResources()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java25 import android.content.res.AssetManager;
141 /*package*/ static synchronized int nativeCreateFromAsset(AssetManager mgr, String path) { in nativeCreateFromAsset()
/frameworks/native/libs/utils/
DREADME99 is governed by AssetManager.cpp, which tracks loaded resources per
102 Assets are looked up by path and filename in AssetManager.cpp. The path
104 handled like assets by AssetManager.cpp. Other resources are handled
120 AssetManager, which in turn keeps a forest structure of loaded
190 the process' AssetManager (by proxy, via AssetManager.java and JNI)
/frameworks/base/core/java/android/webkit/
DBrowserFrame.java22 import android.content.res.AssetManager;
250 AssetManager am = context.getAssets(); in BrowserFrame()
728 AssetManager.ACCESS_STREAMING); in inputStreamForAndroidResource()
741 AssetManager assets = mContext.getAssets(); in inputStreamForAndroidResource()
743 return assets.open(uri.getPath(), AssetManager.ACCESS_STREAMING); in inputStreamForAndroidResource()
1216 private native void nativeCreateFrame(WebViewCore w, AssetManager am, in nativeCreateFrame()
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DMediaPlayerProxyTestCase.java23 import android.content.res.AssetManager;
534 AssetManager assets = getAssets(); in getTestContentUri()
578 private AssetManager getAssets() { in getAssets()
/frameworks/base/core/java/android/content/
DContext.java21 import android.content.res.AssetManager;
208 public abstract AssetManager getAssets(); in getAssets()

123