/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
D | EnrollmentUtil.java | 115 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/ |
D | IVoiceInteractionManagerService.aidl | 52 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel() argument 63 int deleteKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in deleteKeyphraseSoundModel() argument 77 boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, in isEnrolledForKeyphrase() argument 82 int startRecognition(in IVoiceInteractionService service, int keyphraseId, in startRecognition() argument 88 int stopRecognition(in IVoiceInteractionService service, int keyphraseId, in stopRecognition() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 167 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 …]
|
D | SoundTriggerService.java | 195 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()
|
D | SoundTriggerInternal.java | 56 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/ |
D | VoiceInteractionManagerService.java | 731 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in getKeyphraseSoundModel() argument 741 return mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in getKeyphraseSoundModel() 773 public int deleteKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 785 int unloadStatus = mSoundTriggerInternal.unloadKeyphraseModel(keyphraseId); in deleteKeyphraseSoundModel() 789 deleted = mDbHelper.deleteKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in deleteKeyphraseSoundModel() 798 mLoadedKeyphraseIds.remove(keyphraseId); in deleteKeyphraseSoundModel() 807 public boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, in isEnrolledForKeyphrase() argument 825 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in isEnrolledForKeyphrase() 852 public int startRecognition(IVoiceInteractionService service, int keyphraseId, in startRecognition() argument 872 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUid, bcp47Locale); in startRecognition() [all …]
|
D | DatabaseHelper.java | 136 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 140 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle, in deleteKeyphraseSoundModel() 164 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument 171 + " WHERE " + SoundModelContract.KEY_KEYPHRASE_ID + "= '" + keyphraseId in getKeyphraseSoundModel() 234 keyphraseId, recognitionModes, modelLocale, text, users); in getKeyphraseSoundModel()
|
/frameworks/base/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 748 private boolean internalGetIsEnrolled(int keyphraseId, Locale locale) { in internalGetIsEnrolled() argument 751 mVoiceInteractionService, keyphraseId, locale.toLanguageTag()); in internalGetIsEnrolled()
|