Home
last modified time | relevance | path

Searched refs:keyphraseId (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java115 public KeyphraseSoundModel getSoundModel(int keyphraseId, String bcp47Locale) { in getSoundModel() argument
116 if (keyphraseId <= 0) { in getSoundModel()
123 model = mModelManagementService.getKeyphraseSoundModel(keyphraseId, bcp47Locale); in getSoundModel()
143 public boolean deleteSoundModel(int keyphraseId, String bcp47Locale) { in deleteSoundModel() argument
144 if (keyphraseId <= 0) { in deleteSoundModel()
151 status = mModelManagementService.deleteKeyphraseSoundModel(keyphraseId, bcp47Locale); in deleteSoundModel()
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionManagerService.aidl51 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel() argument
62 int deleteKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in deleteKeyphraseSoundModel() argument
76 boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, in isEnrolledForKeyphrase() argument
81 int startRecognition(in IVoiceInteractionService service, int keyphraseId, in startRecognition() argument
87 int stopRecognition(in IVoiceInteractionService service, int keyphraseId, in stopRecognition() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java167 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startKeyphraseRecognition() argument
176 Slog.d(TAG, "startKeyphraseRecognition for keyphraseId=" + keyphraseId in startKeyphraseRecognition()
183 ModelData model = getKeyphraseModelDataLocked(keyphraseId); in startKeyphraseRecognition()
196 removeKeyphraseModelLocked(keyphraseId); in startKeyphraseRecognition()
203 model = createKeyphraseModelDataLocked(soundModel.uuid, keyphraseId); in startKeyphraseRecognition()
207 keyphraseId); in startKeyphraseRecognition()
237 int keyphraseId) { in startRecognition() argument
369 int stopKeyphraseRecognition(int keyphraseId, IRecognitionStatusCallback callback) { in stopKeyphraseRecognition() argument
374 keyphraseId); in stopKeyphraseRecognition()
378 ModelData modelData = getKeyphraseModelDataLocked(keyphraseId); in stopKeyphraseRecognition()
[all …]
DSoundTriggerService.java195 public int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startRecognition() argument
198 return mSoundTriggerHelper.startKeyphraseRecognition(keyphraseId, soundModel, listener, in startRecognition()
203 … public synchronized int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener) { in stopRecognition() argument
205 return mSoundTriggerHelper.stopKeyphraseRecognition(keyphraseId, listener); in stopRecognition()
215 public int unloadKeyphraseModel(int keyphraseId) { in unloadKeyphraseModel() argument
217 return mSoundTriggerHelper.unloadKeyphraseSoundModel(keyphraseId); in unloadKeyphraseModel()
DSoundTriggerInternal.java56 public abstract int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startRecognition() argument
69 public abstract int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener); in stopRecognition() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java121 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { in deleteKeyphraseSoundModel() argument
125 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle, in deleteKeyphraseSoundModel()
149 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument
156 + " WHERE " + SoundModelContract.KEY_KEYPHRASE_ID + "= '" + keyphraseId in getKeyphraseSoundModel()
214 keyphraseId, recognitionModes, modelLocale, text, users); in getKeyphraseSoundModel()
DVoiceInteractionManagerService.java726 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in getKeyphraseSoundModel() argument
736 return mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in getKeyphraseSoundModel()
768 public int deleteKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in deleteKeyphraseSoundModel() argument
780 int unloadStatus = mSoundTriggerInternal.unloadKeyphraseModel(keyphraseId); in deleteKeyphraseSoundModel()
784 deleted = mDbHelper.deleteKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in deleteKeyphraseSoundModel()
793 mLoadedKeyphraseIds.remove(keyphraseId); in deleteKeyphraseSoundModel()
802 public boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, in isEnrolledForKeyphrase() argument
820 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in isEnrolledForKeyphrase()
847 public int startRecognition(IVoiceInteractionService service, int keyphraseId, in startRecognition() argument
867 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in startRecognition()
[all …]
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java748 private boolean internalGetIsEnrolled(int keyphraseId, Locale locale) { in internalGetIsEnrolled() argument
751 mVoiceInteractionService, keyphraseId, locale.toLanguageTag()); in internalGetIsEnrolled()