OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:soundModel
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
TestEnrollmentActivity.java
65
KeyphraseSoundModel
soundModel
= new KeyphraseSoundModel(modelUuid, null, data,
67
boolean status = mEnrollmentUtil.addOrUpdateSoundModel(
soundModel
);
82
KeyphraseSoundModel
soundModel
= mEnrollmentUtil.getSoundModel(KEYPHRASE_ID, BCP47_LOCALE);
83
if (
soundModel
== null) {
89
Toast.makeText(this, "Successfully un-enrolled, model UUID=" +
soundModel
.uuid,
102
KeyphraseSoundModel
soundModel
= mEnrollmentUtil.getSoundModel(KEYPHRASE_ID, BCP47_LOCALE);
103
if (
soundModel
== null) {
110
KeyphraseSoundModel updated = new KeyphraseSoundModel(
soundModel
.uuid,
111
soundModel
.vendorUuid, data,
soundModel
.keyphrases)
[
all
...]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerDbHelper.java
82
public boolean updateGenericSoundModel(GenericSoundModel
soundModel
) {
86
values.put(GenericSoundModelContract.KEY_MODEL_UUID,
soundModel
.uuid.toString());
87
values.put(GenericSoundModelContract.KEY_VENDOR_UUID,
soundModel
.vendorUuid.toString());
88
values.put(GenericSoundModelContract.KEY_DATA,
soundModel
.data);
130
GenericSoundModel
soundModel
= getGenericSoundModel(model_uuid);
131
if (
soundModel
== null) {
137
+ "='" +
soundModel
.uuid.toString() + "'";
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DatabaseHelper.java
148
public boolean updateKeyphraseSoundModel(KeyphraseSoundModel
soundModel
) {
152
values.put(SoundModelContract.KEY_MODEL_UUID,
soundModel
.uuid.toString());
153
if (
soundModel
.vendorUuid != null) {
154
values.put(SoundModelContract.KEY_VENDOR_UUID,
soundModel
.vendorUuid.toString());
156
values.put(SoundModelContract.KEY_TYPE, SoundTrigger.
SoundModel
.TYPE_KEYPHRASE);
157
values.put(SoundModelContract.KEY_DATA,
soundModel
.data);
159
if (
soundModel
.keyphrases != null &&
soundModel
.keyphrases.length == 1) {
160
values.put(SoundModelContract.KEY_KEYPHRASE_ID,
soundModel
.keyphrases[0].id);
162
soundModel
.keyphrases[0].recognitionModes)
[
all
...]
VoiceInteractionManagerService.java
[
all
...]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
SoundTriggerTestService.java
249
GenericSoundModel
soundModel
= createNewSoundModel(modelInfo);
251
boolean status = mSoundTriggerUtil.addOrUpdateSoundModel(
soundModel
);
253
postToast("Successfully loaded " + modelInfo.name + ", UUID=" +
soundModel
.uuid);
256
postErrorToast("Failed to load " + modelInfo.name + ", UUID=" +
soundModel
.uuid + "!");
270
GenericSoundModel
soundModel
= mSoundTriggerUtil.getSoundModel(modelUuid);
271
if (
soundModel
== null) {
278
postToast("Successfully unloaded " + modelInfo.name + ", UUID=" +
soundModel
.uuid);
282
modelInfo.name + ", UUID=" +
soundModel
.uuid + "!");
294
GenericSoundModel
soundModel
= mSoundTriggerUtil.getSoundModel(modelUuid);
295
if (
soundModel
== null)
[
all
...]
Completed in 248 milliseconds