/external/glide/library/src/main/java/com/bumptech/glide/ |
D | GifRequestBuilder.java | 35 public class GifRequestBuilder<ModelType> 36 extends GenericRequestBuilder<ModelType, InputStream, GifDrawable, GifDrawable> 39 GifRequestBuilder(LoadProvider<ModelType, InputStream, GifDrawable, GifDrawable> loadProvider, in GifRequestBuilder() argument 40 Class<GifDrawable> transcodeClass, GenericRequestBuilder<ModelType, ?, ?, ?> other) { in GifRequestBuilder() argument 48 …public GifRequestBuilder<ModelType> thumbnail(GenericRequestBuilder<?, ?, ?, GifDrawable> thumbnai… in thumbnail() 76 public GifRequestBuilder<ModelType> thumbnail(GifRequestBuilder<?> thumbnailRequest) { in thumbnail() 85 public GifRequestBuilder<ModelType> thumbnail(float sizeMultiplier) { in thumbnail() 94 public GifRequestBuilder<ModelType> sizeMultiplier(float sizeMultiplier) { in sizeMultiplier() 103 public GifRequestBuilder<ModelType> decoder( in decoder() 113 public GifRequestBuilder<ModelType> cacheDecoder( in cacheDecoder() [all …]
|
D | DrawableRequestBuilder.java | 41 public class DrawableRequestBuilder<ModelType> 42 extends GenericRequestBuilder<ModelType, ImageVideoWrapper, GifBitmapWrapper, GlideDrawable> 45 DrawableRequestBuilder(Context context, Class<ModelType> modelClass, in DrawableRequestBuilder() 46 …LoadProvider<ModelType, ImageVideoWrapper, GifBitmapWrapper, GlideDrawable> loadProvider, Glide gl… in DrawableRequestBuilder() argument 76 public DrawableRequestBuilder<ModelType> thumbnail( in thumbnail() 86 public DrawableRequestBuilder<ModelType> thumbnail( in thumbnail() 96 public DrawableRequestBuilder<ModelType> thumbnail(float sizeMultiplier) { in thumbnail() 105 public DrawableRequestBuilder<ModelType> sizeMultiplier(float sizeMultiplier) { in sizeMultiplier() 114 …public DrawableRequestBuilder<ModelType> decoder(ResourceDecoder<ImageVideoWrapper, GifBitmapWrapp… in decoder() 123 …public DrawableRequestBuilder<ModelType> cacheDecoder(ResourceDecoder<File, GifBitmapWrapper> cach… in cacheDecoder() [all …]
|
D | BitmapRequestBuilder.java | 46 public class BitmapRequestBuilder<ModelType, TranscodeType> 47 …extends GenericRequestBuilder<ModelType, ImageVideoWrapper, Bitmap, TranscodeType> implements Bitm… 55 …BitmapRequestBuilder(LoadProvider<ModelType, ImageVideoWrapper, Bitmap, TranscodeType> loadProvide… in BitmapRequestBuilder() argument 56 Class<TranscodeType> transcodeClass, GenericRequestBuilder<ModelType, ?, ?, ?> other) { in BitmapRequestBuilder() argument 72 public BitmapRequestBuilder<ModelType, TranscodeType> approximate() { in approximate() 83 public BitmapRequestBuilder<ModelType, TranscodeType> asIs() { in asIs() 95 public BitmapRequestBuilder<ModelType, TranscodeType> atMost() { in atMost() 110 private BitmapRequestBuilder<ModelType, TranscodeType> downsample(Downsampler downsampler) { in downsample() 121 public BitmapRequestBuilder<ModelType, TranscodeType> thumbnail(float sizeMultiplier) { in thumbnail() 149 …public BitmapRequestBuilder<ModelType, TranscodeType> thumbnail(BitmapRequestBuilder<?, TranscodeT… in thumbnail() [all …]
|
D | GenericRequestBuilder.java | 49 public class GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> implements Clo… 50 protected final Class<ModelType> modelClass; 56 private ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider; 58 private ModelType model; 65 private RequestListener<? super ModelType, TranscodeType> requestListener; 80 … GenericRequestBuilder(LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider, in GenericRequestBuilder() argument 81 Class<TranscodeType> transcodeClass, GenericRequestBuilder<ModelType, ?, ?, ?> other) { in GenericRequestBuilder() argument 91 GenericRequestBuilder(Context context, Class<ModelType> modelClass, in GenericRequestBuilder() 92 LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider, in GenericRequestBuilder() argument 101 … ? new ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType>(loadProvider) : null; in GenericRequestBuilder() [all …]
|
D | DrawableTypeRequest.java | 30 public class DrawableTypeRequest<ModelType> extends DrawableRequestBuilder<ModelType> implements Do… 31 private final ModelLoader<ModelType, InputStream> streamModelLoader; 32 private final ModelLoader<ModelType, ParcelFileDescriptor> fileDescriptorModelLoader; 54 …DrawableTypeRequest(Class<ModelType> modelClass, ModelLoader<ModelType, InputStream> streamModelLo… in DrawableTypeRequest() argument 55 …ModelLoader<ModelType, ParcelFileDescriptor> fileDescriptorModelLoader, Context context, Glide gli… in DrawableTypeRequest() 71 public BitmapTypeRequest<ModelType> asBitmap() { in asBitmap() 72 return optionsApplier.apply(new BitmapTypeRequest<ModelType>(this, streamModelLoader, in asBitmap() 88 public GifTypeRequest<ModelType> asGif() { in asGif() 89 …return optionsApplier.apply(new GifTypeRequest<ModelType>(this, streamModelLoader, optionsApplier)… in asGif() 106 private GenericTranscodeRequest<ModelType, InputStream, File> getDownloadOnlyRequest() { in getDownloadOnlyRequest() [all …]
|
D | GenericTranscodeRequest.java | 32 public class GenericTranscodeRequest<ModelType, DataType, ResourceType> 33 …extends GenericRequestBuilder<ModelType, DataType, ResourceType, ResourceType> implements Download… 34 private final ModelLoader<ModelType, DataType> modelLoader; 46 Class<ResourceType> transcodeClass, GenericRequestBuilder<ModelType, ?, ?, ?> other, in GenericTranscodeRequest() argument 47 …ModelLoader<ModelType, DataType> modelLoader, Class<DataType> dataClass, Class<ResourceType> resou… in GenericTranscodeRequest() argument 57 GenericTranscodeRequest(Context context, Glide glide, Class<ModelType> modelClass, in GenericTranscodeRequest() 58 …ModelLoader<ModelType, DataType> modelLoader, Class<DataType> dataClass, Class<ResourceType> resou… in GenericTranscodeRequest() argument 76 …public <TranscodeType> GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> tra… in transcode() 78 …LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider = build(glide, modelLo… in transcode() 81 …return optionsApplier.apply(new GenericRequestBuilder<ModelType, DataType, ResourceType, Transcode… in transcode() [all …]
|
D | BitmapTypeRequest.java | 23 public class BitmapTypeRequest<ModelType> extends BitmapRequestBuilder<ModelType, Bitmap> { 24 private final ModelLoader<ModelType, InputStream> streamModelLoader; 25 private final ModelLoader<ModelType, ParcelFileDescriptor> fileDescriptorModelLoader; 48 BitmapTypeRequest(GenericRequestBuilder<ModelType, ?, ?, ?> other, in BitmapTypeRequest() argument 49 ModelLoader<ModelType, InputStream> streamModelLoader, in BitmapTypeRequest() argument 50 ModelLoader<ModelType, ParcelFileDescriptor> fileDescriptorModelLoader, in BitmapTypeRequest() 68 … public <R> BitmapRequestBuilder<ModelType, R> transcode(ResourceTranscoder<Bitmap, R> transcoder, in transcode() 70 return optionsApplier.apply(new BitmapRequestBuilder<ModelType, R>( in transcode() 83 public BitmapRequestBuilder<ModelType, byte[]> toBytes() { in toBytes() 98 …public BitmapRequestBuilder<ModelType, byte[]> toBytes(Bitmap.CompressFormat compressFormat, int q… in toBytes()
|
D | GifTypeRequest.java | 20 public class GifTypeRequest<ModelType> extends GifRequestBuilder<ModelType> { 21 private final ModelLoader<ModelType, InputStream> streamModelLoader; 39 GifTypeRequest(GenericRequestBuilder<ModelType, ?, ?, ?> other, in GifTypeRequest() argument 40 …ModelLoader<ModelType, InputStream> streamModelLoader, RequestManager.OptionsApplier optionsApplie… in GifTypeRequest() argument 61 public <R> GenericRequestBuilder<ModelType, InputStream, GifDrawable, R> transcode( in transcode() 63 …FixedLoadProvider<ModelType, InputStream, GifDrawable, R> provider = buildProvider(glide, streamMo… in transcode() 65 …return optionsApplier.apply(new GenericRequestBuilder<ModelType, InputStream, GifDrawable, R>(prov… in transcode() 78 public GenericRequestBuilder<ModelType, InputStream, GifDrawable, byte[]> toBytes() { in toBytes()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/downloader/ |
D | DownloadedModelManagerImplTest.java | 24 import com.android.textclassifier.common.ModelType; 25 import com.android.textclassifier.common.ModelType.ModelTypeDef; 76 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_cacheNotInitialized() 77 registerManifestToDB(ModelType.ANNOTATOR, "zh", "manifestUrlZh", "modelUrlZh", "modelPathZh"); in listModels_cacheNotInitialized() 79 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_cacheNotInitialized() 81 assertThat(downloadedModelManagerImpl.listModels(ModelType.LANG_ID)).isEmpty(); in listModels_cacheNotInitialized() 86 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_doNotListBlockedModels() 87 registerManifestToDB(ModelType.ANNOTATOR, "zh", "manifestUrlZh", "modelUrlZh", "modelPathZh"); in listModels_doNotListBlockedModels() 94 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_doNotListBlockedModels() 100 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_cacheNotUpdatedUnlessOnDownloadCompleted() [all …]
|
D | TextClassifierDownloadLoggerTest.java | 25 import com.android.textclassifier.common.ModelType; 34 private static final String MODEL_TYPE = ModelType.LANG_ID; 35 private static final TextClassifierDownloadReported.ModelType MODEL_TYPE_ATOM = 36 TextClassifierDownloadReported.ModelType.LANG_ID;
|
D | LocaleUtilsTest.java | 22 import com.android.textclassifier.common.ModelType; 34 private static final String MODEL_TYPE = ModelType.ANNOTATOR; 110 @ModelType.ModelTypeDef String modelType, String localeTag, String url) { in setUpManifestUrl()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/ |
D | TestDataUtils.java | 20 import com.android.textclassifier.common.ModelType; 40 return ModelFile.createFromRegularFile(getTestAnnotatorModelFile(), ModelType.ANNOTATOR); in getTestAnnotatorModelFileWrapped() 49 getTestActionsModelFile(), ModelType.ACTIONS_SUGGESTIONS); in getTestActionsModelFileWrapped() 57 return ModelFile.createFromRegularFile(getLangIdModelFile(), ModelType.LANG_ID); in getLangIdModelFileWrapped()
|
D | ModelFileManagerImplTest.java | 33 import com.android.textclassifier.common.ModelType; 34 import com.android.textclassifier.common.ModelType.ModelTypeDef; 65 @ModelTypeDef private static final String MODEL_TYPE = ModelType.ANNOTATOR; 106 verifyModelPreloadedAsAsset(ModelType.ANNOTATOR, "textclassifier/annotator.universal.model"); in annotatorModelPreloaded() 112 ModelType.ACTIONS_SUGGESTIONS, "textclassifier/actions_suggestions.universal.model"); in actionsModelPreloaded() 117 verifyModelPreloadedAsAsset(ModelType.LANG_ID, "textclassifier/lang_id.model"); in langIdModelPreloaded() 325 when(downloadedModelManager.listModels(ModelType.LANG_ID)) in downloaderModelsLister() 327 when(downloadedModelManager.listModels(ModelType.ACTIONS_SUGGESTIONS)) in downloaderModelsLister() 331 assertThat(downloaderModelsLister.list(ModelType.LANG_ID)) in downloaderModelsLister() 332 .containsExactly(ModelFile.createFromRegularFile(langIdFile, ModelType.LANG_ID)); in downloaderModelsLister() [all …]
|
D | TextClassifierImplTest.java | 51 import com.android.textclassifier.common.ModelType; 101 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in setup() 103 when(modelFileManager.findBestModelFile(eq(ModelType.LANG_ID), any(), any())) in setup() 105 when(modelFileManager.findBestModelFile(eq(ModelType.ACTIONS_SUGGESTIONS), any(), any())) in setup() 141 verify(modelFileManager).findBestModelFile(eq(ModelType.ANNOTATOR), eq(LOCALES), any()); in testSuggestSelection_localePreferenceIsPassedToModelFileManager() 572 new ModelFile(ModelType.ANNOTATOR, annotatorFilePath, 701, "en", false); in testUseCachedAnnotatorModelDisabled() 574 new ModelFile(ModelType.ANNOTATOR, annotatorFilePath, 801, "en", false); in testUseCachedAnnotatorModelDisabled() 582 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled() 598 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled() 614 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled() [all …]
|
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/ |
D | object_detector.h | 186 template <typename ModelType> 193 typename std::map<std::string, ModelType*>::const_iterator it = in ~ObjectDetector() 196 ModelType* model = it->second; in ~ObjectDetector() 202 ModelType* model = object_models_[name]; in DeleteObjectModel() 210 typename std::map<std::string, ModelType*>::const_iterator it = in GetObjectModels() 222 std::map<std::string, ModelType*> object_models_;
|
/external/libtextclassifier/java/src/com/android/textclassifier/downloader/ |
D | TextClassifierDownloadLogger.java | 22 import com.android.textclassifier.common.ModelType; 23 import com.android.textclassifier.common.ModelType.ModelTypeDef; 45 ModelType.ANNOTATOR, 47 ModelType.LANG_ID, 49 ModelType.ACTIONS_SUGGESTIONS,
|
/external/libtextclassifier/java/src/com/android/textclassifier/ |
D | ModelFileManagerImpl.java | 27 import com.android.textclassifier.common.ModelType; 28 import com.android.textclassifier.common.ModelType.ModelTypeDef; 77 ModelType.ANNOTATOR, in ModelFileManagerImpl() 82 ModelType.ANNOTATOR, in ModelFileManagerImpl() 88 ModelType.ACTIONS_SUGGESTIONS, in ModelFileManagerImpl() 93 ModelType.ACTIONS_SUGGESTIONS, in ModelFileManagerImpl() 99 ModelType.LANG_ID, in ModelFileManagerImpl() 104 ModelType.LANG_ID, in ModelFileManagerImpl() 443 for (@ModelTypeDef String modelType : ModelType.values()) { in dump()
|
/external/armnn/tests/OnnxMnist-Armnn/ |
D | OnnxMnist-Armnn.cpp | 19 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 25 [](const char* dataDir, const ModelType&) { in main() argument
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/ |
D | TextClassifierSettingsTest.java | 106 assertThat(settings.getLanguageTagAndManifestUrlMap(ModelType.ANNOTATOR)) in getLanguageTagsForManifestAndUrlMap() 120 assertThat(settings.getLanguageTagAndManifestUrlMap(ModelType.LANG_ID)) in getLanguageTagsForManifestAndUrlMap() 130 assertThat(settings.getLanguageTagAndManifestUrlMap(ModelType.ACTIONS_SUGGESTIONS)) in getLanguageTagsForManifestAndUrlMap()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/ |
D | ModelType.java | 25 public final class ModelType { class 42 private ModelType() {} in ModelType() method in ModelType
|
/external/armnn/tests/TfLiteInceptionV3Quantized-Armnn/ |
D | TfLiteInceptionV3Quantized-Armnn.cpp | 29 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 40 [&imageSet](const char* dataDir, const ModelType &) { in main() argument
|
/external/armnn/tests/TfLiteResNetV2-Armnn/ |
D | TfLiteResNetV2-Armnn.cpp | 30 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 40 [&imageSet](const char* dataDir, const ModelType &) { in main() argument
|
/external/armnn/tests/TfLiteMnasNet-Armnn/ |
D | TfLiteMnasNet-Armnn.cpp | 29 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 40 [&imageSet](const char* dataDir, const ModelType &) { in main() argument
|
/external/armnn/tests/TfLiteMobilenetV2Quantized-Armnn/ |
D | TfLiteMobilenetV2Quantized-Armnn.cpp | 29 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 40 [&imageSet](const char* dataDir, const ModelType &) { in main() argument
|
/external/armnn/tests/TfLiteResNetV2-50-Quantized-Armnn/ |
D | TfLiteResNetV2-50-Quantized-Armnn.cpp | 29 using ModelType = InferenceModel<ParserType, DataType>; in main() typedef 40 [&imageSet](const char* dataDir, const ModelType &) { in main() argument
|