Home
last modified time | relevance | path

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

1234

/frameworks/base/libs/androidfw/
DAssetManager.cpp73 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
74 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
75 const char* AssetManager::VENDOR_OVERLAY_DIR = "/vendor/overlay";
76 const char* AssetManager::PRODUCT_OVERLAY_DIR = "/product/overlay";
77 const char* AssetManager::SYSTEM_EXT_OVERLAY_DIR = "/system_ext/overlay";
78 const char* AssetManager::ODM_OVERLAY_DIR = "/odm/overlay";
79 const char* AssetManager::OEM_OVERLAY_DIR = "/oem/overlay";
80 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme";
81 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
82 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeAssetManager.java23 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()
40 return AssetManager.sSystem; in initSystem()
48 AssetManager.sSystem = null; in clearSystem()
DAssetManager_Delegate.java59 public static InputStream open(AssetManager mgr, String fileName) throws IOException { in open()
64 public static InputStream open(AssetManager mgr, String fileName, int accessMode) in open()
84 /*package*/ static SparseArray<String> getAssignedPackageIdentifiers(AssetManager manager) { in getAssignedPackageIdentifiers()
/frameworks/base/core/java/android/content/pm/split/
DSplitAssetDependencyLoader.java26 import android.content.res.AssetManager;
46 private final AssetManager[] mCachedAssetManagers;
59 mCachedAssetManagers = new AssetManager[mSplitPaths.length]; in SplitAssetDependencyLoader()
82 private static AssetManager createAssetManagerWithAssets(ApkAssets[] apkAssets) { in createAssetManagerWithAssets()
83 final AssetManager assets = new AssetManager(); in createAssetManagerWithAssets()
114 public AssetManager getBaseAssetManager() throws PackageParserException { in getBaseAssetManager()
120 public AssetManager getSplitAssetManager(int idx) throws PackageParserException { in getSplitAssetManager()
129 for (AssetManager assets : mCachedAssetManagers) { in close()
DDefaultSplitAssetLoader.java25 import android.content.res.AssetManager;
42 private AssetManager mCachedAssetManager;
66 public AssetManager getBaseAssetManager() throws PackageParserException { in getBaseAssetManager()
85 AssetManager assets = new AssetManager(); in getBaseAssetManager()
95 public AssetManager getSplitAssetManager(int splitIdx) throws PackageParserException { in getSplitAssetManager()
DSplitAssetLoader.java19 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/
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/java/android/content/pm/
DFallbackCategoryProvider.java19 import android.content.res.AssetManager;
46 final AssetManager assets = new AssetManager(); in loadFallbacks()
/frameworks/base/cmds/idmap/
Dcreate.cpp126 if (get_zip_entry_crc(target_apk_path, AssetManager::RESOURCES_FILENAME, in is_idmap_stale_fd()
130 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME, in is_idmap_stale_fd()
160 if (get_zip_entry_crc(target_apk_path, AssetManager::RESOURCES_FILENAME, in create_idmap()
164 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME, in create_idmap()
169 AssetManager am; in create_idmap()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java22 import android.content.res.AssetManager;
62 private static ByteBuffer mmap(AssetManager am, String path) { in mmap()
102 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts()
117 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont()
133 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont()
/frameworks/base/graphics/java/android/graphics/
DMovie.java20 import android.content.res.AssetManager;
64 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
65 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
DBitmapRegionDecoder.java19 import android.content.res.AssetManager;
117 if (is instanceof AssetManager.AssetInputStream) { in newInstance()
119 ((AssetManager.AssetInputStream) is).getNativeAsset(), in newInstance()
DFontFamily.java21 import android.content.res.AssetManager;
185 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, in addFontFromAssetManager()
221 private static native boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, in nAddFontFromAssetManager()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesPerfTest.java21 import android.content.res.AssetManager;
46 private AssetManager mAsset;
56 mAsset = new AssetManager(); in setUp()
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java20 import android.content.res.AssetManager;
237 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset()
304 if (is instanceof AssetManager.AssetInputStream) { in createFromResource()
305 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource()
DFont.java20 import android.content.res.AssetManager;
186 AssetManager mgr = res.getAssets(); in createFromAsset()
214 if (is instanceof AssetManager.AssetInputStream) { in createFromResource()
215 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource()
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Builder_Delegate.java22 import android.content.res.AssetManager;
38 public static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp171 argv[argc++] = AssetManager::IDMAP_BIN; in NativeVerifySystemIdmaps()
173 argv[argc++] = AssetManager::TARGET_PACKAGE_NAME; in NativeVerifySystemIdmaps()
174 argv[argc++] = AssetManager::TARGET_APK_PATH; in NativeVerifySystemIdmaps()
175 argv[argc++] = AssetManager::IDMAP_DIR; in NativeVerifySystemIdmaps()
180 std::string overlay_theme_path = base::GetProperty(AssetManager::OVERLAY_THEME_DIR_PROPERTY, in NativeVerifySystemIdmaps()
184 std::string(AssetManager::VENDOR_OVERLAY_DIR) + "/" + overlay_theme_path; in NativeVerifySystemIdmaps()
190 if (stat(AssetManager::VENDOR_OVERLAY_DIR, &st) == 0) { in NativeVerifySystemIdmaps()
191 argv[argc++] = AssetManager::VENDOR_OVERLAY_DIR; in NativeVerifySystemIdmaps()
194 if (stat(AssetManager::PRODUCT_OVERLAY_DIR, &st) == 0) { in NativeVerifySystemIdmaps()
195 argv[argc++] = AssetManager::PRODUCT_OVERLAY_DIR; in NativeVerifySystemIdmaps()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java20 import android.content.res.AssetManager;
73 final AssetManager am = context.getAssets(); in testCreate_fromAsset()
84 final AssetManager am = context.getAssets(); in testCreate_fromFile()
/frameworks/base/libs/androidfw/tests/
DAssetManager2_bench.cpp51 AssetManager assets; in BM_AssetManagerLoadAssetsOld()
74 AssetManager assets; in BM_AssetManagerLoadFrameworkAssetsOld()
155 AssetManager assets; in BM_AssetManagerGetBagOld()
198 AssetManager assets; in BM_AssetManagerGetResourceLocalesOld()
236 AssetManager assets; in BM_AssetManagerSetConfigurationFrameworkOld()
/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;
DContrastRatioFilterTest.java26 import android.content.res.AssetManager;
39 private AssetManager assetMgr = null;
DExposureFilterTest.java19 import android.content.res.AssetManager;
38 private AssetManager assetMgr = null;
/frameworks/base/core/tests/coretests/src/android/content/
DAssetTest.java19 import android.content.res.AssetManager;
28 private AssetManager mAssets;
/frameworks/base/core/java/android/content/res/
DAssetManager.java60 public final class AssetManager implements AutoCloseable { class
73 @GuardedBy("sSync") static AssetManager sSystem = null;
130 public AssetManager build() { in build()
146 final AssetManager assetManager = new AssetManager(false /*sentinel*/); in build()
148 AssetManager.nativeSetApkAssets(assetManager.mObject, apkAssets, in build()
162 public AssetManager() { in AssetManager() method in AssetManager
184 private AssetManager(boolean sentinel) { in AssetManager() method in AssetManager
223 sSystem = new AssetManager(true /*sentinel*/); in createSystemAssetsInZygoteLocked()
272 public static AssetManager getSystem() { in getSystem()
1139 void setThemeTo(long dstThemePtr, @NonNull AssetManager srcAssetManager, long srcThemePtr) { in setThemeTo()
[all …]

1234