Home
last modified time | relevance | path

Searched refs:assetManager (Results 1 – 25 of 37) sorted by relevance

12

/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DAssetPathFetcher.java18 private final AssetManager assetManager; field in AssetPathFetcher
21 public AssetPathFetcher(AssetManager assetManager, String assetPath) { in AssetPathFetcher() argument
22 this.assetManager = assetManager; in AssetPathFetcher()
28 data = loadResource(assetManager, assetPath); in loadData()
64 protected abstract T loadResource(AssetManager assetManager, String path) throws IOException; in loadResource() argument
DStreamAssetPathFetcher.java12 public StreamAssetPathFetcher(AssetManager assetManager, String assetPath) { in StreamAssetPathFetcher() argument
13 super(assetManager, assetPath); in StreamAssetPathFetcher()
17 protected InputStream loadResource(AssetManager assetManager, String path) throws IOException { in loadResource() argument
18 return assetManager.open(path); in loadResource()
DFileDescriptorAssetPathFetcher.java12 public FileDescriptorAssetPathFetcher(AssetManager assetManager, String assetPath) { in FileDescriptorAssetPathFetcher() argument
13 super(assetManager, assetPath); in FileDescriptorAssetPathFetcher()
17 …protected ParcelFileDescriptor loadResource(AssetManager assetManager, String path) throws IOExcep… in loadResource() argument
18 return assetManager.openFd(path).getParcelFileDescriptor(); in loadResource()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAssetManagerTest.java38 private AssetManager assetManager; field in ShadowAssetManagerTest
44 assetManager = resources.getAssets(); in setUp()
53 assetManager.openFd("deflatedAsset.xml"); in openFd_shouldProvideFileDescriptorForDeflatedAsset()
58 InputStream inputStream = assetManager.openNonAsset(0, "res/drawable/an_image.png", 0); in openNonAssetShouldOpenRealAssetFromResources()
76 InputStream inputStream = assetManager.openNonAsset(0, fileName, 0); in openNonAssetShouldOpenFileFromAndroidJar()
88 assetManager.openNonAsset(0, "res/drawable/does_not_exist.png", 0); in openNonAssetShouldThrowExceptionWhenFileDoesNotExist()
99 assetManager.openNonAsset(0, "res/drawable/does_not_exist.png", 0); in unknownResourceIdsShouldReportPackagesSearched()
110 assetManager.openNonAsset(0, "res/drawable/does_not_exist.png", 0); in forSystemResources_unknownResourceIdsShouldReportPackagesSearched()
118 InputStream inputStream = assetManager.openNonAsset(0, "res/drawable/robolectric.png", 0); in openNonAssetShouldOpenCorrectAssetBasedOnQualifierMdpi()
127 InputStream inputStream = assetManager.openNonAsset(0, "res/drawable/robolectric.png", 0); in openNonAssetShouldOpenCorrectAssetBasedOnQualifierHdpi()
[all …]
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DJniInterface.java22 static AssetManager assetManager; field in JniInterface
24 public static native long createNativeApplication(AssetManager assetManager); in createNativeApplication() argument
72 return BitmapFactory.decodeStream(assetManager.open(imageName)); in loadImage()
/external/skia/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DJniInterface.java22 static AssetManager assetManager; field in JniInterface
24 public static native long createNativeApplication(AssetManager assetManager); in createNativeApplication() argument
72 return BitmapFactory.decodeStream(assetManager.open(imageName)); in loadImage()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DTensorFlowMultiBoxDetector.java80 final AssetManager assetManager, in create() argument
90 d.inferenceInterface = new TensorFlowInferenceInterface(assetManager, modelFilename); in create()
117 d.loadCoderOptions(assetManager, locationFilename, d.boxPriors); in create()
135 final AssetManager assetManager, final String locationFilename, final float[] boxPriors) in loadCoderOptions() argument
141 is = assetManager.open(locationFilename.split(assetPrefix)[1]); in loadCoderOptions()
DTensorFlowImageClassifier.java75 AssetManager assetManager, in create() argument
93 br = new BufferedReader(new InputStreamReader(assetManager.open(actualFilename))); in create()
103 c.inferenceInterface = new TensorFlowInferenceInterface(assetManager, modelFilename); in create()
DTensorFlowObjectDetectionAPIModel.java72 final AssetManager assetManager, in create() argument
80 labelsInput = assetManager.open(actualFilename); in create()
91 d.inferenceInterface = new TensorFlowInferenceInterface(assetManager, modelFilename); in create()
DTensorFlowYoloDetector.java91 final AssetManager assetManager, in create() argument
107 d.inferenceInterface = new TensorFlowInferenceInterface(assetManager, modelFilename); in create()
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java17 protected native void nInit(AssetManager assetManager, String dataDir); in nInit() argument
44 AssetManager assetManager = context.getResources().getAssets(); in runTests() local
45 this.nInit(assetManager, outputDirPath); in runTests()
DSkQPRunner.java52 AssetManager assetManager = context.getResources().getAssets(); in SkQPRunner() local
53 mImpl.nInit(assetManager, mOutputDirectory); in SkQPRunner()
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java17 protected native void nInit(AssetManager assetManager, String dataDir); in nInit() argument
44 AssetManager assetManager = context.getResources().getAssets(); in runTests() local
45 this.nInit(assetManager, outputDirPath); in runTests()
DSkQPRunner.java52 AssetManager assetManager = context.getResources().getAssets(); in SkQPRunner() local
53 mImpl.nInit(assetManager, mOutputDirectory); in SkQPRunner()
/external/skqp/tools/sk_app/android/
Dsurface_glue_android.cpp33 static void config_resource_mgr(JNIEnv* env, jobject assetManager) { in config_resource_mgr() argument
35 SkASSERT(assetManager); in config_resource_mgr()
36 gAAssetManager = AAssetManager_fromJava(env, assetManager); in config_resource_mgr()
240 jobject assetManager) { in Java_org_skia_viewer_ViewerApplication_createNativeApp() argument
241 config_resource_mgr(env, assetManager); in Java_org_skia_viewer_ViewerApplication_createNativeApp()
/external/skia/tools/sk_app/android/
Dsurface_glue_android.cpp33 static void config_resource_mgr(JNIEnv* env, jobject assetManager) { in config_resource_mgr() argument
35 SkASSERT(assetManager); in config_resource_mgr()
36 gAAssetManager = AAssetManager_fromJava(env, assetManager); in config_resource_mgr()
240 jobject assetManager) { in Java_org_skia_viewer_ViewerApplication_createNativeApp() argument
241 config_resource_mgr(env, assetManager); in Java_org_skia_viewer_ViewerApplication_createNativeApp()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAssetInputStream.java17 AssetManager assetManager) { in createAssetInputStream() argument
21 from(AssetManager.class, assetManager), in createAssetInputStream()
DShadowAssetManager.java41 static ShadowLegacyAssetManager legacyShadowOf(AssetManager assetManager) { in legacyShadowOf() argument
42 return (ShadowLegacyAssetManager) Shadow.extract(assetManager); in legacyShadowOf()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteImageClassifier.java86 AssetManager assetManager, String modelFilename, String labelFilename, int inputSize) { in create() argument
94 br = new BufferedReader(new InputStreamReader(assetManager.open(labelFilename))); in create()
110 c.tfLite = new Interpreter(loadModelFile(assetManager, modelFilename)); in create()
DTFLiteObjectDetectionAPIModel.java99 final AssetManager assetManager, in create() argument
108 labelsInput = assetManager.open(labelFilename); in create()
121 d.tfLite = new Interpreter(loadModelFile(assetManager, modelFilename)); in create()
/external/skia/tools/skqp/src/
Djni_skqp.cpp103 void Java_org_skia_skqp_SkQP_nInit(JNIEnv* env, jobject object, jobject assetManager, in Java_org_skia_skqp_SkQP_nInit() argument
112 jassert(env, assetManager,); in Java_org_skia_skqp_SkQP_nInit()
114 gAAssetManager = AAssetManager_fromJava(env, assetManager); in Java_org_skia_skqp_SkQP_nInit()
Dskqp_model.h56 SkQPAssetManager* assetManager);
/external/skqp/tools/skqp/src/
Djni_skqp.cpp103 void Java_org_skia_skqp_SkQP_nInit(JNIEnv* env, jobject object, jobject assetManager, in Java_org_skia_skqp_SkQP_nInit() argument
112 jassert(env, assetManager,); in Java_org_skia_skqp_SkQP_nInit()
114 gAAssetManager = AAssetManager_fromJava(env, assetManager); in Java_org_skia_skqp_SkQP_nInit()
Dskqp_model.h56 SkQPAssetManager* assetManager);
/external/skia/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/
DViewerApplication.java22 private native long createNativeApp(AssetManager assetManager); in createNativeApp() argument

12