Searched defs:keyphraseId (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerInternal.java48 * Starts recognition for the given keyphraseId.
50 * @param keyphraseId The identifier of the keyphrase for which
56 public abstract int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, argument
63 * @param keyphraseId The identifier of the keyphrase for which
69 public abstract int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener); argument
74 * Unloads (and stops if running) the given keyphraseId
H A DSoundTriggerHelper.java157 INVALID_VALUE /* keyphraseId */);
162 * Starts recognition for the given keyphraseId.
164 * @param keyphraseId The identifier of the keyphrase for which
170 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel, argument
179 Slog.d(TAG, "startKeyphraseRecognition for keyphraseId=" + keyphraseId
186 ModelData model = getKeyphraseModelDataLocked(keyphraseId);
199 removeKeyphraseModelLocked(keyphraseId);
206 model = createKeyphraseModelDataLocked(soundModel.uuid, keyphraseId);
210 keyphraseId);
238 startRecognition(SoundModel soundModel, ModelData modelData, IRecognitionStatusCallback callback, RecognitionConfig recognitionConfig, int keyphraseId) argument
376 stopKeyphraseRecognition(int keyphraseId, IRecognitionStatusCallback callback) argument
496 unloadKeyphraseSoundModel(int keyphraseId) argument
1013 removeKeyphraseModelLocked(int keyphraseId) argument
1022 getKeyphraseModelDataLocked(int keyphraseId) argument
1032 createKeyphraseModelDataLocked(UUID modelId, int keyphraseId) argument
[all...]
H A DSoundTriggerService.java1202 public int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, argument
1205 return mSoundTriggerHelper.startKeyphraseRecognition(keyphraseId, soundModel, listener,
1210 public synchronized int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener) { argument
1212 return mSoundTriggerHelper.stopKeyphraseRecognition(keyphraseId, listener);
1222 public int unloadKeyphraseModel(int keyphraseId) { argument
1224 return mSoundTriggerHelper.unloadKeyphraseSoundModel(keyphraseId);
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
H A DEnrollmentUtil.java110 * @param keyphraseId The keyphrase ID to look-up the sound model for.
115 public KeyphraseSoundModel getSoundModel(int keyphraseId, String bcp47Locale) { argument
116 if (keyphraseId <= 0) {
123 model = mModelManagementService.getKeyphraseSoundModel(keyphraseId, bcp47Locale);
139 * @param keyphraseId The keyphrase ID to look-up the sound model for.
142 public boolean deleteSoundModel(int keyphraseId, String bcp47Locale) { argument
143 if (keyphraseId <= 0) {
150 status = mModelManagementService.deleteKeyphraseSoundModel(keyphraseId, bcp47Locale);
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java181 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { argument
185 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle,
209 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, argument
216 + " WHERE " + SoundModelContract.KEY_KEYPHRASE_ID + "= '" + keyphraseId
279 keyphraseId, recognitionModes, modelLocale, text, users);
331 public final int keyphraseId; field in class:DatabaseHelper.SoundModelRecord
346 keyphraseId = c.getInt(c.getColumnIndex(SoundModelContract.KEY_KEYPHRASE_ID));
356 return keyphraseId == record.keyphraseId && stringComparisonHelper(locale, record.locale)
396 values.put(SoundModelContract.KEY_KEYPHRASE_ID, keyphraseId);
[all...]
H A DVoiceInteractionManagerService.java802 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { argument
812 return mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale);
844 public int deleteKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { argument
856 int unloadStatus = mSoundTriggerInternal.unloadKeyphraseModel(keyphraseId);
860 deleted = mDbHelper.deleteKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale);
869 mLoadedKeyphraseIds.remove(keyphraseId);
878 public boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, argument
896 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale);
923 public int startRecognition(IVoiceInteractionService service, int keyphraseId, argument
943 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUi
964 stopRecognition(IVoiceInteractionService service, int keyphraseId, IRecognitionStatusCallback callback) argument
[all...]
/frameworks/base/core/java/android/service/voice/
H A DAlwaysOnHotwordDetector.java746 private boolean internalGetIsEnrolled(int keyphraseId, Locale locale) { argument
749 mVoiceInteractionService, keyphraseId, locale.toLanguageTag());

Completed in 155 milliseconds