Home
last modified time | relevance | path

Searched refs:modelData (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java148 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() local
149 if (modelData == null) { in startGenericRecognition()
153 return startRecognition(soundModel, modelData, callback, recognitionConfig, in startGenericRecognition()
211 private int cleanUpExistingKeyphraseModel(ModelData modelData) { in cleanUpExistingKeyphraseModel() argument
214 int status = tryStopAndUnloadLocked(modelData, true /* stop */, true /* unload */); in cleanUpExistingKeyphraseModel()
217 modelData.toString()); in cleanUpExistingKeyphraseModel()
235 int startRecognition(SoundModel soundModel, ModelData modelData, in startRecognition() argument
263 if (modelData.getSoundModel() != null) { in startRecognition()
266 if (modelData.getSoundModel().equals(soundModel) && modelData.isModelStarted()) { in startRecognition()
271 } else if (!modelData.getSoundModel().equals(soundModel)) { in startRecognition()
[all …]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DTestSoundTriggerActivity.java145 modelInfo.modelData = new byte[(int) modelDataFile.length()]; in createModelInfoAndWidget()
147 input.read(modelInfo.modelData, 0, modelInfo.modelData.length); in createModelInfoAndWidget()
149 modelInfo.modelData = new byte[1024]; in createModelInfoAndWidget()
150 mRandom.nextBytes(modelInfo.modelData); in createModelInfoAndWidget()
228 modelInfo.modelData); in createNewSoundModel()
357 public byte modelData[]; field in TestSoundTriggerActivity.ModelInfo
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java160 public boolean setModel(final byte[] modelData) { in setModel() argument
165 ByteArrayInputStream input = new ByteArrayInputStream(modelData); in setModel()
326 public boolean setModel(final byte[] modelData) { in setModel() argument
330 ByteArrayInputStream input = new ByteArrayInputStream(modelData); in setModel()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DPredictor.java162 public boolean setModel(final byte [] modelData) { in setModel() argument
163 return mPredictor.setModel(modelData); in setModel()
DIBordeauxLearner.java31 public boolean setModel(final byte [] modelData); in setModel() argument
DLearning_StochasticLinearRanker.java121 public boolean setModel(final byte [] modelData) { in setModel() argument
123 ByteArrayInputStream input = new ByteArrayInputStream(modelData); in setModel()
DLearning_MulticlassPA.java56 public boolean setModel(final byte [] modelData) { in setModel() argument