/frameworks/base/core/java/com/android/internal/app/ |
D | IVoiceInteractionSoundTriggerSession.aidl | 43 int startRecognition(int keyphraseId, in String bcp47Locale, in startRecognition() argument 52 int stopRecognition(int keyphraseId, in IHotwordRecognitionStatusCallback callback); in stopRecognition() argument 70 int setParameter(int keyphraseId, in ModelParams modelParam, int value); in setParameter() argument 84 int getParameter(int keyphraseId, in ModelParams modelParam); in getParameter() argument 95 @nullable SoundTrigger.ModelParamRange queryParameter(int keyphraseId, in queryParameter() argument
|
D | IVoiceInteractionManagerService.aidl | 72 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel() argument 95 int deleteKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in deleteKeyphraseSoundModel() argument 105 boolean isEnrolledForKeyphrase(int keyphraseId, String bcp47Locale); in isEnrolledForKeyphrase() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerInternal.java | 69 int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startRecognition() argument 83 int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener); in stopRecognition() argument 105 int setParameter(int keyphraseId, @ModelParams int modelParam, int value); in setParameter() argument 124 int getParameter(int keyphraseId, @ModelParams int modelParam); in getParameter() argument 137 ModelParamRange queryParameter(int keyphraseId, in queryParameter() argument
|
D | SoundTriggerHelper.java | 234 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startKeyphraseRecognition() argument 244 Slog.d(TAG, "startKeyphraseRecognition for keyphraseId=" + keyphraseId in startKeyphraseRecognition() 252 ModelData model = getKeyphraseModelDataLocked(keyphraseId); in startKeyphraseRecognition() 265 removeKeyphraseModelLocked(keyphraseId); in startKeyphraseRecognition() 272 model = createKeyphraseModelDataLocked(soundModel.getUuid(), keyphraseId); in startKeyphraseRecognition() 276 keyphraseId, runInBatterySaverMode); in startKeyphraseRecognition() 337 int keyphraseId, boolean runInBatterySaverMode) { in startRecognition() argument 446 int stopKeyphraseRecognition(int keyphraseId, IRecognitionStatusCallback callback) { in stopKeyphraseRecognition() argument 451 keyphraseId); in stopKeyphraseRecognition() 455 ModelData modelData = getKeyphraseModelDataLocked(keyphraseId); in stopKeyphraseRecognition() [all …]
|
D | SoundTriggerService.java | 1567 public int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, 1570 return mSoundTriggerHelper.startKeyphraseRecognition(keyphraseId, soundModel, 1575 public synchronized int stopRecognition(int keyphraseId, 1577 return mSoundTriggerHelper.stopKeyphraseRecognition(keyphraseId, listener); 1586 public int setParameter(int keyphraseId, @ModelParams int modelParam, int value) { 1587 return mSoundTriggerHelper.setKeyphraseParameter(keyphraseId, modelParam, value); 1591 public int getParameter(int keyphraseId, @ModelParams int modelParam) { 1592 return mSoundTriggerHelper.getKeyphraseParameter(keyphraseId, modelParam); 1597 public ModelParamRange queryParameter(int keyphraseId, @ModelParams int modelParam) { 1598 return mSoundTriggerHelper.queryKeyphraseParameter(keyphraseId, modelParam); [all …]
|
/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() 142 public boolean deleteSoundModel(int keyphraseId, String bcp47Locale) { in deleteSoundModel() argument 143 if (keyphraseId <= 0) { in deleteSoundModel() 150 status = mModelManagementService.deleteKeyphraseSoundModel(keyphraseId, bcp47Locale); in deleteSoundModel()
|
/frameworks/base/media/java/android/media/voice/ |
D | KeyphraseModelManager.java | 83 public SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in getKeyphraseSoundModel() argument 87 return mVoiceInteractionManagerService.getKeyphraseSoundModel(keyphraseId, in getKeyphraseSoundModel() 145 public void deleteKeyphraseSoundModel(int keyphraseId, @NonNull Locale locale) { in deleteKeyphraseSoundModel() argument 148 int status = mVoiceInteractionManagerService.deleteKeyphraseSoundModel(keyphraseId, in deleteKeyphraseSoundModel()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 199 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 203 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle, in deleteKeyphraseSoundModel() 227 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument 234 + " WHERE " + SoundModelContract.KEY_KEYPHRASE_ID + "= '" + keyphraseId in getKeyphraseSoundModel() 290 int keyphraseId = c.getInt( in getValidKeyphraseSoundModelForUser() local 329 keyphraseId, recognitionModes, modelLocale, text, users); in getValidKeyphraseSoundModelForUser() 388 public final int keyphraseId; field in DatabaseHelper.SoundModelRecord 403 keyphraseId = c.getInt(c.getColumnIndex(SoundModelContract.KEY_KEYPHRASE_ID)); in SoundModelRecord() 413 return keyphraseId == record.keyphraseId && stringComparisonHelper(locale, record.locale) in V6PrimaryKeyMatches() 453 values.put(SoundModelContract.KEY_KEYPHRASE_ID, keyphraseId); in writeToDatabase()
|
D | VoiceInteractionManagerService.java | 1390 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in getKeyphraseSoundModel() argument 1400 return mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUserId, bcp47Locale); in getKeyphraseSoundModel() 1432 public int deleteKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 1444 SoundTriggerSession session = mLoadedKeyphraseIds.get(keyphraseId); in deleteKeyphraseSoundModel() 1446 int unloadStatus = session.unloadKeyphraseModel(keyphraseId); in deleteKeyphraseSoundModel() 1451 deleted = mDbHelper.deleteKeyphraseSoundModel(keyphraseId, callingUserId, in deleteKeyphraseSoundModel() 1461 mLoadedKeyphraseIds.remove(keyphraseId); in deleteKeyphraseSoundModel() 1470 public boolean isEnrolledForKeyphrase(int keyphraseId, String bcp47Locale) { in isEnrolledForKeyphrase() argument 1483 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUserId, bcp47Locale); in isEnrolledForKeyphrase() 1555 public int startRecognition(int keyphraseId, String bcp47Locale, in startRecognition() argument [all …]
|