Home
last modified time | relevance | path

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

/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java66 void addModel(UUID modelUuid, String state); in addModel() argument
67 void setModelState(UUID modelUuid, String state); in setModelState() argument
69 void handleDetection(UUID modelUuid); in handleDetection() argument
164 return modelInfo.modelUuid; in getModelUuidFromIntent()
210 Log.e(TAG, "Loop " + modelInfo.modelUuid); in stopAllRecognitionsAndUnload()
219 mSoundTriggerUtil.deleteSoundModel(modelInfo.modelUuid); in stopAllRecognitionsAndUnload()
232 public UUID modelUuid; field in SoundTriggerTestService.ModelInfo
243 return SoundTriggerManager.Model.create(modelInfo.modelUuid, modelInfo.vendorUuid, in createNewSoundModel()
247 public synchronized void loadModel(UUID modelUuid) { in loadModel() argument
248 ModelInfo modelInfo = mModelInfoMap.get(modelUuid); in loadModel()
[all …]
DSoundTriggerTestActivity.java116 public void addModel(UUID modelUuid, String name) { in addModel() argument
126 mButtonModelUuidMap.put(button, modelUuid); in addModel()
127 mModelButtons.put(modelUuid, button); in addModel()
128 mModelNames.put(modelUuid, name); in addModel()
143 if (mSelectedModelUuid == null || mSelectedModelUuid.equals(modelUuid)) { in addModel()
150 public void setModelState(UUID modelUuid, String state) { in setModelState() argument
154 String newButtonText = mModelNames.get(modelUuid); in setModelState()
158 mModelButtons.get(modelUuid).setText(newButtonText); in setModelState()
184 public void handleDetection(UUID modelUuid) { in handleDetection() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerEvent.java113 public SessionEvent(Type type, UUID modelUuid, String errorString) { in SessionEvent() argument
115 mModelUuid = modelUuid; in SessionEvent()
119 public SessionEvent(Type type, UUID modelUuid) { in SessionEvent() argument
120 this(type, modelUuid, null); in SessionEvent()
DSoundTriggerService.java1110 public RemoteSoundTriggerDetectionService(@NonNull UUID modelUuid, in RemoteSoundTriggerDetectionService() argument
1113 mPuuid = new ParcelUuid(modelUuid); in RemoteSoundTriggerDetectionService()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java66 UUID modelUuid = UUID.randomUUID(); in onEnrollButtonClicked() local
70 KeyphraseSoundModel soundModel = new KeyphraseSoundModel(modelUuid, null, data, in onEnrollButtonClicked()
75 this, "Successfully enrolled, model UUID=" + modelUuid, Toast.LENGTH_SHORT) in onEnrollButtonClicked()
78 Toast.makeText(this, "Failed to enroll!!!" + modelUuid, Toast.LENGTH_SHORT).show(); in onEnrollButtonClicked()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java137 Slog.e(TAG, "Database write failed " + record.modelUuid + ": " in onUpgrade()
141 Slog.e(TAG, "Failed to update V6 record " + record.modelUuid, e); in onUpgrade()
262 String modelUuid = c.getString( in getValidKeyphraseSoundModelForUser() local
264 if (modelUuid == null) { in getValidKeyphraseSoundModelForUser()
319 UUID.fromString(modelUuid), vendorUuid, data, keyphrases, version); in getValidKeyphraseSoundModelForUser()
370 public final String modelUuid; field in DatabaseHelper.SoundModelRecord
381 modelUuid = c.getString(c.getColumnIndex(SoundModelContract.KEY_MODEL_UUID)); in SoundModelRecord()
433 values.put(SoundModelContract.KEY_MODEL_UUID, modelUuid); in writeToDatabase()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java342 public static Model create(@NonNull UUID modelUuid, @NonNull UUID vendorUuid, in create() argument
344 Objects.requireNonNull(modelUuid); in create()
346 return new Model(new SoundTrigger.GenericSoundModel(modelUuid, vendorUuid, data, in create()
359 public static Model create(@NonNull UUID modelUuid, @NonNull UUID vendorUuid, in create() argument
361 return create(modelUuid, vendorUuid, data, -1); in create()