/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 | 77 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel() argument 100 int deleteKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in deleteKeyphraseSoundModel() argument 125 boolean isEnrolledForKeyphrase(int keyphraseId, String bcp47Locale); in isEnrolledForKeyphrase() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | TestModelEnrollmentDatabase.java | 43 EnrollmentKey(int keyphraseId, in EnrollmentKey() argument 45 mKeyphraseId = keyphraseId; in EnrollmentKey() 50 int keyphraseId() { in keyphraseId() method in TestModelEnrollmentDatabase.EnrollmentKey 108 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 109 return mModelMap.keySet().removeIf(key -> (key.keyphraseId() == keyphraseId) in deleteKeyphraseSoundModel() 115 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument 119 .filter((entry) -> (entry.getKey().keyphraseId() == keyphraseId) in getKeyphraseSoundModel()
|
D | DatabaseHelper.java | 193 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 197 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle, in deleteKeyphraseSoundModel() 216 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument 223 + " WHERE " + SoundModelContract.KEY_KEYPHRASE_ID + "= '" + keyphraseId in getKeyphraseSoundModel() 274 int keyphraseId = c.getInt( in getValidKeyphraseSoundModelForUser() local 313 keyphraseId, recognitionModes, modelLocale, text, users); in getValidKeyphraseSoundModelForUser() 372 public final int keyphraseId; field in DatabaseHelper.SoundModelRecord 387 keyphraseId = c.getInt(c.getColumnIndex(SoundModelContract.KEY_KEYPHRASE_ID)); in SoundModelRecord() 397 return keyphraseId == record.keyphraseId && stringComparisonHelper(locale, record.locale) in V6PrimaryKeyMatches() 437 values.put(SoundModelContract.KEY_KEYPHRASE_ID, keyphraseId); in writeToDatabase()
|
D | IEnrolledModelDb.java | 54 boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale); in deleteKeyphraseSoundModel() argument 68 KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle, in getKeyphraseSoundModel() argument
|
D | VoiceInteractionManagerService.java | 1654 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in getKeyphraseSoundModel() argument 1664 return mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUserId, bcp47Locale); in getKeyphraseSoundModel() 1696 public int deleteKeyphraseSoundModel(int keyphraseId, String bcp47Locale) { in deleteKeyphraseSoundModel() argument 1708 SoundTriggerSession session = mLoadedKeyphraseIds.get(keyphraseId); in deleteKeyphraseSoundModel() 1710 int unloadStatus = session.unloadKeyphraseModel(keyphraseId); in deleteKeyphraseSoundModel() 1715 deleted = mDbHelper.deleteKeyphraseSoundModel(keyphraseId, callingUserId, in deleteKeyphraseSoundModel() 1725 mLoadedKeyphraseIds.remove(keyphraseId); in deleteKeyphraseSoundModel() 1770 public boolean isEnrolledForKeyphrase(int keyphraseId, String bcp47Locale) { in isEnrolledForKeyphrase() argument 1783 mDbHelper.getKeyphraseSoundModel(keyphraseId, callingUserId, bcp47Locale); in isEnrolledForKeyphrase() 1857 public int startRecognition(int keyphraseId, String bcp47Locale, in startRecognition() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | SoundTriggerInternal.java | 75 int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startRecognition() argument 89 int stopRecognition(int keyphraseId, IRecognitionStatusCallback listener); in stopRecognition() argument 111 int setParameter(int keyphraseId, @ModelParams int modelParam, int value); in setParameter() argument 130 int getParameter(int keyphraseId, @ModelParams int modelParam); in getParameter() argument 143 ModelParamRange queryParameter(int keyphraseId, in queryParameter() argument
|
/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/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 185 public int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startKeyphraseRecognition() argument 198 ModelData model = getKeyphraseModelDataLocked(keyphraseId); in startKeyphraseRecognition() 211 removeKeyphraseModelLocked(keyphraseId); in startKeyphraseRecognition() 218 model = createKeyphraseModelDataLocked(soundModel.getUuid(), keyphraseId); in startKeyphraseRecognition() 222 keyphraseId, runInBatterySaverMode); in startKeyphraseRecognition() 277 int keyphraseId, boolean runInBatterySaverMode) { in startRecognition() argument 402 public int stopKeyphraseRecognition(int keyphraseId, IRecognitionStatusCallback callback) { in stopKeyphraseRecognition() argument 407 keyphraseId); in stopKeyphraseRecognition() 413 ModelData modelData = getKeyphraseModelDataLocked(keyphraseId); in stopKeyphraseRecognition() 415 Slog.w(TAG, "No model exists for given keyphrase Id " + keyphraseId); in stopKeyphraseRecognition() [all …]
|
D | SoundTriggerService.java | 1731 public int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, in startRecognition() argument 1734 mModelUuid.put(keyphraseId, soundModel.getUuid()); in startRecognition() 1737 return mSoundTriggerHelper.startKeyphraseRecognition(keyphraseId, soundModel, in startRecognition() 1742 public synchronized int stopRecognition(int keyphraseId, in stopRecognition() argument 1744 var uuid = mModelUuid.get(keyphraseId); in stopRecognition() 1746 return mSoundTriggerHelper.stopKeyphraseRecognition(keyphraseId, listener); in stopRecognition() 1756 public int setParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setParameter() argument 1757 var uuid = mModelUuid.get(keyphraseId); in setParameter() 1759 return mSoundTriggerHelper.setKeyphraseParameter(keyphraseId, modelParam, value); in setParameter() 1763 public int getParameter(int keyphraseId, @ModelParams int modelParam) { in getParameter() argument [all …]
|
/frameworks/base/media/java/android/media/voice/ |
D | KeyphraseModelManager.java | 85 public SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in getKeyphraseSoundModel() argument 89 return mVoiceInteractionManagerService.getKeyphraseSoundModel(keyphraseId, in getKeyphraseSoundModel() 147 public void deleteKeyphraseSoundModel(int keyphraseId, @NonNull Locale locale) { in deleteKeyphraseSoundModel() argument 150 int status = mVoiceInteractionManagerService.deleteKeyphraseSoundModel(keyphraseId, in deleteKeyphraseSoundModel()
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewareLoggingLatencyTest.java | 183 @RecognitionStatus int triggerEventStatus, int keyphraseId) throws RemoteException { in triggerPhraseRecognitionEvent() argument 188 if (keyphraseId > 0) { in triggerPhraseRecognitionEvent() 190 recognitionExtra.id = keyphraseId; in triggerPhraseRecognitionEvent()
|