Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprTest.java108 ExprModel model = lb.getModel(); in testBasicInvalidationFlag() local
109 model.seal(); in testBasicInvalidationFlag()
111 d.setModel(model); in testBasicInvalidationFlag()
115 BitSet clone = (BitSet) model.getInvalidateAnyBitSet().clone(); in testBasicInvalidationFlag()
123 ExprModel model = lb.getModel(); in testCannotBeInvalidated() local
124 model.seal(); in testCannotBeInvalidated()
126 d.setModel(model); in testCannotBeInvalidated()
130 assertEquals(model.getInvalidateAnyBitSet(), d.getInvalidFlags()); in testCannotBeInvalidated()
135 ExprModel model = new ExprModel(); in testInvalidationInheritance() local
136 DummyExpr a = model.register(new DummyExpr("a")); in testInvalidationInheritance()
[all …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java95 GenericSoundModel model = new_sound_model(); in testUpdateGenericSoundModel() local
98 soundTriggerService.updateSoundModel(model); in testUpdateGenericSoundModel()
99 loadedModelUuids.add(model.uuid); in testUpdateGenericSoundModel()
103 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testUpdateGenericSoundModel()
104 assertEquals(model, returnedModel); in testUpdateGenericSoundModel()
109 GenericSoundModel model = new_sound_model(); in testDeleteGenericSoundModel() local
112 soundTriggerService.updateSoundModel(model); in testDeleteGenericSoundModel()
113 loadedModelUuids.add(model.uuid); in testDeleteGenericSoundModel()
116 soundTriggerService.deleteSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel()
117 loadedModelUuids.remove(model.uuid); in testDeleteGenericSoundModel()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DModelTest.java35 import com.android.documentsui.model.DocumentInfo;
75 private Model model; field in ModelTest
100 model = new Model(); in setUp()
101 model.addUpdateListener(new DummyListener()); in setUp()
102 model.update(r); in setUp()
107 model.update(null); in testNullUpdate()
109 assertTrue(model.isEmpty()); in testNullUpdate()
110 assertEquals(0, model.getItemCount()); in testNullUpdate()
111 assertEquals(0, model.getModelIds().length); in testNullUpdate()
116 assertEquals(ITEM_COUNT, model.getItemCount()); in testItemCount()
[all …]
DMultiSelectManager_GridModelTest.java40 private GridModel model; field in MultiSelectManager_GridModelTest
72 model = new GridModel(env, adapter); in initData()
73 model.addOnSelectionChangedListener( in initData()
89 model = null; in tearDown()
99 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionLeftOfItems()
107 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionRightOfItems()
115 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionAboveItems()
123 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionBelowItems()
131 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testVerticalSelectionBetweenItems()
139 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testHorizontalSelectionBetweenItems()
[all …]
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp511 sp<Model> model = mModels.valueAt(i); in detach() local
512 ALOGV("detach() unloading model %d", model->mHandle); in detach()
513 if (model->mState == Model::STATE_ACTIVE) { in detach()
514 mHwDevice->stop_recognition(mHwDevice, model->mHandle); in detach()
516 mHwDevice->unload_sound_model(mHwDevice, model->mHandle); in detach()
585 sp<Model> model = new Model(*handle, session, ioHandle, device, sound_model->type); in loadSoundModel() local
586 mModels.replaceValueFor(*handle, model); in loadSoundModel()
608 sp<Model> model = mModels.valueAt(index); in unloadSoundModel_l() local
610 if (model->mState == Model::STATE_ACTIVE) { in unloadSoundModel_l()
611 mHwDevice->stop_recognition(mHwDevice, model->mHandle); in unloadSoundModel_l()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DPipeManager.java45 ParcelFileDescriptor readDocument(MtpManager model, Identifier identifier) throws IOException { in readDocument() argument
46 final Task task = new ImportFileTask(model, identifier); in readDocument()
51 ParcelFileDescriptor readThumbnail(MtpManager model, Identifier identifier) throws IOException { in readThumbnail() argument
52 final Task task = new GetThumbnailTask(model, identifier); in readThumbnail()
74 ImportFileTask(MtpManager model, Identifier identifier) throws IOException { in ImportFileTask() argument
75 super(model, identifier); in ImportFileTask()
95 GetThumbnailTask(MtpManager model, Identifier identifier) throws IOException { in GetThumbnailTask() argument
96 super(model, identifier); in GetThumbnailTask()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/
DAnnotationMethod.java26 import javax.lang.model.element.Element;
27 import javax.lang.model.element.ElementKind;
28 import javax.lang.model.element.ExecutableElement;
29 import javax.lang.model.element.Modifier;
30 import javax.lang.model.element.TypeElement;
31 import javax.lang.model.type.DeclaredType;
32 import javax.lang.model.type.ExecutableType;
33 import javax.lang.model.type.TypeKind;
34 import javax.lang.model.type.TypeMirror;
35 import javax.lang.model.util.Elements;
[all …]
DAnnotationClass.java28 import javax.lang.model.element.AnnotationMirror;
29 import javax.lang.model.element.AnnotationValue;
30 import javax.lang.model.element.Element;
31 import javax.lang.model.element.ElementKind;
32 import javax.lang.model.element.ExecutableElement;
33 import javax.lang.model.element.TypeElement;
34 import javax.lang.model.element.VariableElement;
35 import javax.lang.model.type.ArrayType;
36 import javax.lang.model.type.DeclaredType;
37 import javax.lang.model.type.PrimitiveType;
[all …]
DAnnotationTypeUtil.java25 import javax.lang.model.type.ArrayType;
26 import javax.lang.model.type.ExecutableType;
27 import javax.lang.model.type.TypeMirror;
28 import javax.lang.model.type.TypeVariable;
31 javax.lang.model.util.Types mTypes;
DAnnotationAnalyzer.java29 import javax.lang.model.element.AnnotationMirror;
30 import javax.lang.model.element.Element;
31 import javax.lang.model.element.TypeElement;
32 import javax.lang.model.type.DeclaredType;
33 import javax.lang.model.type.TypeKind;
34 import javax.lang.model.type.TypeMirror;
35 import javax.lang.model.util.Elements;
36 import javax.lang.model.util.Types;
DAnnotationField.java22 import javax.lang.model.element.Modifier;
23 import javax.lang.model.element.TypeElement;
24 import javax.lang.model.element.VariableElement;
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
DStochasticLinearRanker.java108 public boolean loadModel(Model model) { in loadModel() argument
109 String[] wKeys = new String[model.weights.size()]; in loadModel()
110 float[] wValues = new float[model.weights.size()]; in loadModel()
112 for (Map.Entry<String, Float> e : model.weights.entrySet()){ in loadModel()
117 boolean res = setModelWeights(wKeys, wValues, model.weightNormalizer); in loadModel()
121 for (Map.Entry<String, String> e : model.parameters.entrySet()){ in loadModel()
141 public void print(Model model){ in print() argument
144 for (Map.Entry<String, Float> e : model.weights.entrySet()) in print()
146 for (Map.Entry<String, String> e : model.parameters.entrySet()) in print()
149 Log.i(TAG, "Normalizer is " + model.weightNormalizer); in print()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DLayoutBinderWriter.kt121 target.model.getUniqueFieldName(name, isPublic) in target()
141 target.model.getConstructorParamName(target.readableName) in target()
152 expr.model.getUniqueFieldName("m${expr.readableName.capitalize()}", false) in expr()
158 inverseBinding.model.getUniqueFieldName("$targetName$eventName", false) in inverseBinding()
162 expr.model.getUniqueFieldName("${expr.resolvedType.simpleName}Impl", false) in expr()
166 expr.model.getUniqueFieldName("mOld${expr.readableName.capitalize()}", false) in expr()
175 expr.model.getUniqueMethodName("set${expr.readableName.capitalize()}", true) in expr()
179 expr.model.getUniqueMethodName("onChange${expr.readableName.capitalize()}", false) in expr()
183 expr.model.getUniqueMethodName("get${expr.readableName.capitalize()}", true) in expr()
189 FlagSet(expr.invalidFlags, expr.model.flagBucketCount) in Expr()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java183 ModelData model = getKeyphraseModelDataLocked(keyphraseId); in startKeyphraseRecognition() local
184 if (model != null && !model.isKeyphraseModel()) { in startKeyphraseRecognition()
190 if (model != null && !model.getModelId().equals(soundModel.uuid)) { in startKeyphraseRecognition()
192 int status = cleanUpExistingKeyphraseModel(model); in startKeyphraseRecognition()
197 model = null; in startKeyphraseRecognition()
202 if (model == null) { in startKeyphraseRecognition()
203 model = createKeyphraseModelDataLocked(soundModel.uuid, keyphraseId); in startKeyphraseRecognition()
206 return startRecognition(soundModel, model, callback, recognitionConfig, in startKeyphraseRecognition()
599 ModelData model = getModelDataForLocked(event.soundModelHandle); in onGenericRecognitionSuccessLocked() local
600 if (model == null || !model.isGenericModel()) { in onGenericRecognitionSuccessLocked()
[all …]
DSoundTriggerService.java130 GenericSoundModel model = getSoundModel(parcelUuid); in startRecognition() local
131 if (model == null) { in startRecognition()
136 return mSoundTriggerHelper.startGenericRecognition(parcelUuid.getUuid(), model, in startRecognition()
156 SoundTrigger.GenericSoundModel model = mDbHelper.getGenericSoundModel( in getSoundModel() local
158 return model; in getSoundModel()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxSessionStorage.java84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { in createSessionEntry() argument
88 entry.put(COLUMN_MODEL, model); in createSessionEntry()
93 boolean saveSession(String key, Class learner, byte[] model) { in saveSession() argument
94 ContentValues content = createSessionEntry(key, learner, model); in saveSession()
110 byte[] model = cursor.getBlob(cursor.getColumnIndex(COLUMN_MODEL)); in getSessionFromCursor()
111 session.learner.setModel(model); in getSessionFromCursor()
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/
DProcessMethodAdapters.java38 import javax.lang.model.element.Element;
39 import javax.lang.model.element.ElementKind;
40 import javax.lang.model.element.ExecutableElement;
41 import javax.lang.model.element.Modifier;
42 import javax.lang.model.element.TypeElement;
43 import javax.lang.model.element.VariableElement;
44 import javax.lang.model.type.MirroredTypeException;
45 import javax.lang.model.type.TypeKind;
46 import javax.lang.model.type.TypeMirror;
47 import javax.lang.model.util.Elements;
[all …]
DProcessBindable.java36 import javax.lang.model.element.Element;
37 import javax.lang.model.element.ElementKind;
38 import javax.lang.model.element.ExecutableElement;
39 import javax.lang.model.element.Name;
40 import javax.lang.model.element.TypeElement;
41 import javax.lang.model.element.VariableElement;
42 import javax.lang.model.type.TypeKind;
43 import javax.lang.model.util.Types;
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java81 GenericSoundModel model = null; in getSoundModel() local
83 model = mSoundTriggerService.getSoundModel(new ParcelUuid(modelId)); in getSoundModel()
88 if (model == null) { in getSoundModel()
92 return model; in getSoundModel()
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java162 HashMap<String, HashMap<String, Integer> > model; in setModel() local
167 model = (HashMap<String, HashMap<String, Integer> >) objStream.readObject(); in setModel()
175 mCounter.putAll(model); in setModel()
306 HashMap<String, HashMap<String, HashMap<String, Integer > > > model = in getModel() local
309 model.put(entry.getKey(), entry.getValue().getCounter()); in getModel()
315 objStream.writeObject(model); in getModel()
327 HashMap<String, HashMap<String, HashMap<String, Integer > > > model; in setModel() local
332 model = (HashMap<String, HashMap<String, HashMap<String, Integer > > >) in setModel()
342 model.entrySet()) { in setModel()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java121 KeyphraseSoundModel model = null; in getSoundModel() local
123 model = mModelManagementService.getKeyphraseSoundModel(keyphraseId, bcp47Locale); in getSoundModel()
128 if (model == null) { in getSoundModel()
132 return model; in getSoundModel()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentsAdapter.java19 import static com.android.documentsui.model.DocumentInfo.getCursorString;
90 boolean isDirectory(Model model, int position) { in isDirectory() argument
92 Cursor cursor = model.getItem(modelId); in isDirectory()
/frameworks/base/opengl/java/android/opengl/
DGLU.java148 float[] model, int modelOffset, float[] project, int projectOffset, in gluProject() argument
156 model, modelOffset); in gluProject()
214 float[] model, int modelOffset, float[] project, int projectOffset, in gluUnProject() argument
222 model, modelOffset); in gluUnProject()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java73 public UsbAccessory(String manufacturer, String model, String description, in UsbAccessory() argument
76 mModel = model; in UsbAccessory()
197 String model = in.readString();
202 return new UsbAccessory(manufacturer, model, description, version, uri, serial);
/frameworks/base/docs/html/distribute/monetize/
Dpremium.jd3 …ge.metaDescription=Charging users to download your apps is a simple, convenient monetization model.
13 model. After creating your <a href=
24 This model could work well for any app or game, but might be particularly
32 However, this model may limit your apps monetization potential, particularly

12345678910>>...12