/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
FileDescriptorAssetPathFetcher.java | 3 import android.content.res.AssetManager; 12 public FileDescriptorAssetPathFetcher(AssetManager assetManager, String assetPath) { 13 super(assetManager, assetPath); 17 protected ParcelFileDescriptor loadResource(AssetManager assetManager, String path) throws IOException { 18 return assetManager.openFd(path).getParcelFileDescriptor();
|
StreamAssetPathFetcher.java | 3 import android.content.res.AssetManager; 12 public StreamAssetPathFetcher(AssetManager assetManager, String assetPath) { 13 super(assetManager, assetPath); 17 protected InputStream loadResource(AssetManager assetManager, String path) throws IOException { 18 return assetManager.open(path);
|
AssetPathFetcher.java | 3 import android.content.res.AssetManager; 11 * An abstract class for obtaining data for an asset path using an {@link android.content.res.AssetManager}. 18 private final AssetManager assetManager; 21 public AssetPathFetcher(AssetManager assetManager, String assetPath) { 22 this.assetManager = assetManager; 28 data = loadResource(assetManager, assetPath); 58 * Opens the given asset path with the given {@link android.content.res.AssetManager} and returns the conrete dat [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AssetManagerTest.java | 4 import android.content.res.AssetManager; 21 AssetManager assetManager; 26 assetManager = new Activity().getAssets(); 31 assertNotNull(assetManager); 33 assetManager = Robolectric.application.getAssets(); 34 assertNotNull(assetManager); 36 assetManager = Robolectric.application.getResources().getAssets(); 37 assertNotNull(assetManager); 46 files = Arrays.asList(assetManager.list(testPath)) [all...] |
/frameworks/layoutlib/bridge/src/android/content/res/ |
BridgeAssetManager.java | 22 public class BridgeAssetManager extends AssetManager { 27 * This initializes the static field {@link AssetManager#sSystem} which is used 28 * by methods who get a global asset manager using {@link AssetManager#getSystem()}. 34 public static AssetManager initSystem() { 35 if (!(AssetManager.sSystem instanceof BridgeAssetManager)) { 36 // Note that AssetManager() creates a system AssetManager and we override it 38 AssetManager.sSystem = new BridgeAssetManager(); 40 return AssetManager.sSystem; 44 * Clears the static {@link AssetManager#sSystem} to make sure we don't leave object [all...] |
AssetManager_Delegate.java | 27 * Delegate used to provide implementation of a select few native methods of {@link AssetManager} 29 * Through the layoutlib_create tool, the original native methods of AssetManager have been replaced 36 public static InputStream open(AssetManager mgr, String fileName) throws IOException { 41 public static InputStream open(AssetManager mgr, String fileName, int accessMode) 50 /*package*/ static long newTheme(AssetManager manager) { 56 /*package*/ static void deleteTheme(AssetManager manager, long theme) { 61 /*package*/ static SparseArray<String> getAssignedPackageIdentifiers(AssetManager manager) {
|
/external/skia/tools/skqp/ |
skqp_asset_manager.h | 15 class AssetManager { 17 virtual ~AssetManager() {}
|
/external/skqp/tools/skqp/ |
skqp_asset_manager.h | 15 class AssetManager { 17 virtual ~AssetManager() {}
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAssetManager.java | 3 import android.content.res.AssetManager; 16 @Implements(AssetManager.class) 18 static AssetManager bind(AssetManager assetManager, ResourceLoader resourceLoader) { 19 ShadowAssetManager shadowAssetManager = shadowOf(assetManager); 22 return assetManager;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowAssetManagerTest.java | 14 import android.content.res.AssetManager; 42 private AssetManager assetManager; 47 assetManager = Robolectric.buildActivity(Activity.class).create().get().getAssets(); 53 assertNotNull(assetManager); 55 assetManager = RuntimeEnvironment.application.getAssets(); 56 assertNotNull(assetManager); 58 assetManager = resources.getAssets(); 59 assertNotNull(assetManager); 64 assertThat(assetManager.list("") [all...] |
/frameworks/base/libs/androidfw/tests/ |
BenchmarkHelpers.cpp | 20 #include "androidfw/AssetManager.h" 27 AssetManager assetmanager; local 29 if (!assetmanager.addAssetPath(String8(path.c_str()), nullptr /* cookie */, 37 const ResTable& table = assetmanager.getResources(true); 39 assetmanager.setConfiguration(*config); 68 AssetManager2 assetmanager; local 69 assetmanager.SetApkAssets(apk_assets_ptrs); 71 assetmanager.SetConfiguration(*config); 80 ApkAssetsCookie cookie = assetmanager.GetResource [all...] |
AssetManager2_test.cpp | 18 #include "androidfw/AssetManager.h" 94 AssetManager2 assetmanager; local 95 assetmanager.SetConfiguration(desired_config); 96 assetmanager.SetApkAssets({basic_assets_.get()}); 103 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, 124 AssetManager2 assetmanager; local 125 assetmanager.SetConfiguration(desired_config); 126 assetmanager.SetApkAssets({basic_assets_.get(), basic_de_fr_assets_.get()}); 133 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, 149 AssetManager2 assetmanager; local 197 AssetManager2 assetmanager; local 214 AssetManager2 assetmanager; local 237 AssetManager2 assetmanager; local 256 AssetManager2 assetmanager; local 275 AssetManager2 assetmanager; local 333 AssetManager2 assetmanager; local 344 AssetManager2 assetmanager; local 367 AssetManager2 assetmanager; local 390 AssetManager2 assetmanager; local 422 AssetManager2 assetmanager; local 446 AssetManager2 assetmanager; local 489 AssetManager2 assetmanager; local 508 AssetManager2 assetmanager; local 520 AssetManager2 assetmanager; local 532 AssetManager2 assetmanager; local 544 AssetManager2 assetmanager; local 566 AssetManager2 assetmanager; local [all...] |
Theme_test.cpp | 62 AssetManager2 assetmanager; local 63 assetmanager.SetApkAssets({style_assets_.get()}); 65 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); 67 EXPECT_EQ(&assetmanager, theme->GetAssetManager()); 75 AssetManager2 assetmanager; local 76 assetmanager.SetApkAssets({style_assets_.get()}); 78 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); 99 AssetManager2 assetmanager; local 100 assetmanager.SetApkAssets({style_assets_.get()}); 102 std::unique_ptr<Theme> theme = assetmanager.NewTheme() 132 AssetManager2 assetmanager; local 144 AssetManager2 assetmanager; local 178 AssetManager2 assetmanager; local 212 AssetManager2 assetmanager; local 242 AssetManager2 assetmanager; local [all...] |
AttributeResolution_bench.cpp | 21 #include "androidfw/AssetManager.h" 46 AssetManager2 assetmanager; local 47 assetmanager.SetApkAssets({styles_apk.get()}); 50 assetmanager.OpenNonAsset("res/layout/layout.xml", Asset::ACCESS_BUFFER); 66 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); 96 AssetManager2 assetmanager; local 97 assetmanager.SetApkAssets({framework_apk.get(), basic_apk.get()}); 115 assetmanager.GetResource(basic::R::layout::layoutt, false /*may_be_bag*/, 124 assetmanager.GetStringPoolForCookie(cookie)->string8At(value.data, &len); 130 std::unique_ptr<Asset> asset = assetmanager.OpenNonAsset [all...] |
/frameworks/base/core/java/android/content/pm/split/ |
SplitAssetLoader.java | 19 import android.content.res.AssetManager; 28 AssetManager getBaseAssetManager() throws PackageParser.PackageParserException; 29 AssetManager getSplitAssetManager(int splitIdx) throws PackageParser.PackageParserException;
|
DefaultSplitAssetLoader.java | 25 import android.content.res.AssetManager; 35 * Loads the base and split APKs into a single AssetManager. 42 private AssetManager mCachedAssetManager; 66 public AssetManager getBaseAssetManager() throws PackageParserException { 85 AssetManager assets = new AssetManager(); 95 public AssetManager getSplitAssetManager(int splitIdx) throws PackageParserException {
|
SplitAssetDependencyLoader.java | 26 import android.content.res.AssetManager; 46 private final AssetManager[] mCachedAssetManagers; 59 mCachedAssetManagers = new AssetManager[mSplitPaths.length]; 82 private static AssetManager createAssetManagerWithAssets(ApkAssets[] apkAssets) { 83 final AssetManager assets = new AssetManager(); 114 public AssetManager getBaseAssetManager() throws PackageParserException { 120 public AssetManager getSplitAssetManager(int idx) throws PackageParserException { 129 for (AssetManager assets : mCachedAssetManagers) {
|
/frameworks/base/core/jni/ |
android_util_AssetManager.cpp | 37 #include "androidfw/AssetManager.h" 157 argv[argc++] = AssetManager::IDMAP_BIN; 159 argv[argc++] = AssetManager::TARGET_PACKAGE_NAME; 160 argv[argc++] = AssetManager::TARGET_APK_PATH; 161 argv[argc++] = AssetManager::IDMAP_DIR; 165 std::string overlay_theme_path = base::GetProperty(AssetManager::OVERLAY_THEME_DIR_PROPERTY, 168 overlay_theme_path = std::string(AssetManager::OVERLAY_DIR) + "/" + overlay_theme_path; 174 if (stat(AssetManager::OVERLAY_DIR, &st) == 0) { 175 argv[argc++] = AssetManager::OVERLAY_DIR; 178 if (stat(AssetManager::PRODUCT_OVERLAY_DIR, &st) == 0) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MediaVulkanGpuTest.java | 18 import android.content.res.AssetManager; 37 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); 51 private static native void loadMediaAndVerifyFrameImport(AssetManager assetManager,
|
CameraVulkanGpuTest.java | 19 import android.content.res.AssetManager; 46 private static native void loadCameraAndVerifyFrameImport(AssetManager assetManager);
|
BasicVulkanGpuTest.java | 18 import android.content.res.AssetManager; 65 private static native void verifyBasicBufferImport(AssetManager assetManager, int format,
|
/frameworks/support/emoji/bundled/src/main/java/androidx/emoji/bundled/ |
BundledEmojiCompatConfig.java | 20 import android.content.res.AssetManager; 29 * {@link EmojiCompat.Config} implementation that loads the metadata using AssetManager and 80 final AssetManager assetManager = mContext.getAssets(); 81 final MetadataRepo resourceIndex = MetadataRepo.create(assetManager, FONT_NAME);
|
/frameworks/base/libs/androidfw/ |
AssetManager.cpp | 27 #include <androidfw/AssetManager.h> 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::PRODUCT_OVERLAY_DIR = "/product/overlay"; 77 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme"; 78 const char* AssetManager::TARGET_PACKAGE_NAME = "android"; 79 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk"; 80 const char* AssetManager::IDMAP_DIR = "/data/resource-cache"; 131 * AssetManager [all...] |
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/ |
SkQP.java | 11 import android.content.res.AssetManager; 17 protected native void nInit(AssetManager assetManager, String dataDir, boolean experimentalMode); 44 AssetManager assetManager = context.getResources().getAssets(); 45 this.nInit(assetManager, outputDirPath, true);
|
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/ |
SkQP.java | 11 import android.content.res.AssetManager; 17 protected native void nInit(AssetManager assetManager, String dataDir, boolean experimentalMode); 44 AssetManager assetManager = context.getResources().getAssets(); 45 this.nInit(assetManager, outputDirPath, true);
|