Home
last modified time | relevance | path

Searched refs:AssetManager (Results 1 – 25 of 57) 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.java114 /*package*/ final AssetManager mAssets;
183 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources()
200 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources()
948 AssetManager.ACCESS_STREAMING); in openRawResource()
1110 AssetManager.applyThemeStyle(mTheme, resid, force); in applyStyle()
1123 AssetManager.copyTheme(mTheme, other.mTheme); in setTo()
1149 AssetManager.applyStyle(mTheme, 0, 0, 0, attrs, in obtainStyledAttributes()
1180 AssetManager.applyStyle(mTheme, 0, resid, 0, attrs, in obtainStyledAttributes()
1198 int d = i*AssetManager.STYLE_NUM_ENTRIES; in obtainStyledAttributes()
1199 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/utils/
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 …]
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)
DAndroid.mk23 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/cmds/bootanimation/
DBootAnimation.h36 class AssetManager; variable
81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
87 AssetManager mAssets;
/frameworks/base/graphics/java/android/graphics/
DTypeface.java19 import android.content.res.AssetManager;
120 public static Typeface createFromAsset(AssetManager mgr, String path) { in createFromAsset()
176 private static native int nativeCreateFromAsset(AssetManager mgr, String path); in nativeCreateFromAsset()
DBitmapRegionDecoder.java18 import android.content.res.AssetManager;
114 if (is instanceof AssetManager.AssetInputStream) { in newInstance()
116 ((AssetManager.AssetInputStream) is).getAssetInt(), in newInstance()
DBitmapFactory.java19 import android.content.res.AssetManager;
482 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
483 bm = nativeDecodeAsset(((AssetManager.AssetInputStream) is).getAssetInt(), in decodeStream()
/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;
220 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset()
283 if (is instanceof AssetManager.AssetInputStream) { in createFromResource()
284 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource()
DFont.java27 import android.content.res.AssetManager;
163 AssetManager mgr = res.getAssets(); in createFromAsset()
188 if (is instanceof AssetManager.AssetInputStream) { in createFromResource()
189 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource()
/frameworks/base/core/tests/coretests/src/android/content/
DAssetTest.java19 import android.content.res.AssetManager;
27 private AssetManager mAssets;
/frameworks/base/include/utils/
DAssetManager.h69 class AssetManager : public AAssetManager {
78 AssetManager(CacheMode cacheMode = CACHE_OFF);
79 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/base/core/java/android/webkit/
DFileLoader.java21 import android.content.res.AssetManager;
140 AssetManager.ACCESS_STREAMING); in setupStreamAndSendStatus()
DBrowserFrame.java22 import android.content.res.AssetManager;
250 AssetManager am = context.getAssets(); in BrowserFrame()
744 AssetManager.ACCESS_STREAMING); in inputStreamForAndroidResource()
759 AssetManager assets = mContext.getAssets(); in inputStreamForAndroidResource()
760 return assets.open(url, AssetManager.ACCESS_STREAMING); in inputStreamForAndroidResource()
1306 private native void nativeCreateFrame(WebViewCore w, AssetManager am, in nativeCreateFrame()
/frameworks/base/core/java/android/content/
DContext.java21 import android.content.res.AssetManager;
191 public abstract AssetManager getAssets(); in getAssets()

123