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/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/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java77 for (UUID modelUuid : loadedModelUuids) { in tearDown()
78 soundTriggerService.deleteSoundModel(new ParcelUuid(modelUuid)); in tearDown()
87 UUID modelUuid = UUID.randomUUID(); in new_sound_model() local
89 return new GenericSoundModel(modelUuid, mVendorUuid, data); in new_sound_model()
203 UUID modelUuid = UUID.randomUUID(); in testFuzzGenericSoundModel() local
205 GenericSoundModel model = new GenericSoundModel(modelUuid, mVendorUuid, data); in testFuzzGenericSoundModel()
/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()
278 String modelUuid = c.getString( in getValidKeyphraseSoundModelForUser() local
280 if (modelUuid == null) { in getValidKeyphraseSoundModelForUser()
335 UUID.fromString(modelUuid), vendorUuid, data, keyphrases, version); in getValidKeyphraseSoundModelForUser()
386 public final String modelUuid; field in DatabaseHelper.SoundModelRecord
397 modelUuid = c.getString(c.getColumnIndex(SoundModelContract.KEY_MODEL_UUID)); in SoundModelRecord()
449 values.put(SoundModelContract.KEY_MODEL_UUID, modelUuid); in writeToDatabase()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java208 public static Model create(@NonNull UUID modelUuid, @NonNull UUID vendorUuid, in create() argument
210 Objects.requireNonNull(modelUuid); in create()
212 return new Model(new SoundTrigger.GenericSoundModel(modelUuid, vendorUuid, data, in create()
225 public static Model create(@NonNull UUID modelUuid, @NonNull UUID vendorUuid, in create() argument
227 return create(modelUuid, vendorUuid, data, -1); in create()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java966 public RemoteSoundTriggerDetectionService(@NonNull UUID modelUuid,
969 mPuuid = new ParcelUuid(modelUuid);