Home
last modified time | relevance | path

Searched refs:keyphrase (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java174 Keyphrase keyphrase = soundModel.getKeyphrases()[0]; in verifyKeyphraseSoundModel() local
175 if (keyphrase.getId() <= 0) { in verifyKeyphraseSoundModel()
179 if (keyphrase.getRecognitionModes() < 0) { in verifyKeyphraseSoundModel()
183 if (keyphrase.getLocale() == null) { in verifyKeyphraseSoundModel()
187 if (keyphrase.getText() == null) { in verifyKeyphraseSoundModel()
191 if (keyphrase.getUsers() == null || keyphrase.getUsers().length == 0) { in verifyKeyphraseSoundModel()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/
DSoundTriggerTest.java44 Keyphrase keyphrase = new Keyphrase(1, 0, in testKeyphraseParcelUnparcel_noUsers() local
49 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_noUsers()
56 assertEquals(keyphrase, unparceled); in testKeyphraseParcelUnparcel_noUsers()
61 Keyphrase keyphrase = new Keyphrase(1, 0, in testKeyphraseParcelUnparcel_zeroUsers() local
66 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_zeroUsers()
73 assertEquals(keyphrase.getId(), unparceled.getId()); in testKeyphraseParcelUnparcel_zeroUsers()
74 assertTrue(Arrays.equals(keyphrase.getUsers(), unparceled.getUsers())); in testKeyphraseParcelUnparcel_zeroUsers()
75 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_zeroUsers()
76 assertEquals(keyphrase.getText(), unparceled.getText()); in testKeyphraseParcelUnparcel_zeroUsers()
81 Keyphrase keyphrase = new Keyphrase(1, 0, in testKeyphraseParcelUnparcel_pos() local
[all …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionService.java481 @SuppressLint("MissingNullability") String keyphrase, // TODO: nullability properly in createAlwaysOnHotwordDetector()
484 return createAlwaysOnHotwordDetectorInternal(keyphrase, locale,
519 @NonNull String keyphrase, @SuppressLint("UseIcu") @NonNull Locale locale, in createAlwaysOnHotwordDetector()
524 Objects.requireNonNull(keyphrase); in createAlwaysOnHotwordDetector()
528 return createAlwaysOnHotwordDetectorInternal(keyphrase, locale, in createAlwaysOnHotwordDetector()
544 @NonNull String keyphrase, @SuppressLint("UseIcu") @NonNull Locale locale, in createAlwaysOnHotwordDetectorForTest()
549 Objects.requireNonNull(keyphrase); in createAlwaysOnHotwordDetectorForTest()
554 return createAlwaysOnHotwordDetectorInternal(keyphrase, locale, in createAlwaysOnHotwordDetectorForTest()
609 @SuppressLint("MissingNullability") String keyphrase, // TODO: nullability properly in createAlwaysOnHotwordDetector()
614 return createAlwaysOnHotwordDetectorInternal(keyphrase, locale,
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DTestModelEnrollmentDatabase.java99 final Keyphrase keyphrase = soundModel.getKeyphrases()[0]; in updateKeyphraseSoundModel() local
100 mModelMap.put(new EnrollmentKey(keyphrase.getId(), in updateKeyphraseSoundModel()
101 Arrays.stream(keyphrase.getUsers()).boxed().toList(), in updateKeyphraseSoundModel()
102 keyphrase.getLocale().toLanguageTag()), in updateKeyphraseSoundModel()
128 public KeyphraseSoundModel getKeyphraseSoundModel(String keyphrase, int userHandle, in getKeyphraseSoundModel() argument
132 .filter((entry) -> (entry.getValue().getKeyphrases()[0].getText().equals(keyphrase) in getKeyphraseSoundModel()
DIEnrolledModelDb.java83 KeyphraseSoundModel getKeyphraseSoundModel(String keyphrase, int userHandle, in getKeyphraseSoundModel() argument
DDatabaseHelper.java230 public KeyphraseSoundModel getKeyphraseSoundModel(String keyphrase, int userHandle, in getKeyphraseSoundModel() argument
237 + " WHERE " + SoundModelContract.KEY_HINT_TEXT + "= '" + keyphrase in getKeyphraseSoundModel()
DDetectorSession.java950 for (SoundTrigger.KeyphraseRecognitionExtra keyphrase : recognitionEvent.keyphraseExtras) { in enforceExtraKeyphraseIdNotLeaked()
951 if (keyphrase.getKeyphraseId() == result.getHotwordPhraseId()) { in enforceExtraKeyphraseIdNotLeaked()
DVoiceInteractionManagerService.java1791 public KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, in getEnrolledKeyphraseMetadata() argument
1805 mDbHelper.getKeyphraseSoundModel(keyphrase, callingUserId, bcp47Locale); in getEnrolledKeyphraseMetadata()
1811 if (keyphrase.equals(phrase.getText())) { in getEnrolledKeyphraseMetadata()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java337 public Intent getManageKeyphraseIntent(@ManageActions int action, @NonNull String keyphrase, in getManageKeyphraseIntent() argument
339 Objects.requireNonNull(keyphrase); in getManageKeyphraseIntent()
346 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale); in getManageKeyphraseIntent()
350 .putExtra(EXTRA_VOICE_KEYPHRASE_HINT_TEXT, keyphrase) in getManageKeyphraseIntent()
368 public KeyphraseMetadata getKeyphraseMetadata(@NonNull String keyphrase, in getKeyphraseMetadata() argument
370 Objects.requireNonNull(keyphrase); in getKeyphraseMetadata()
376 if (keyphraseMetadata.supportsPhrase(keyphrase) in getKeyphraseMetadata()
383 + keyphrase + "'/" + locale); in getKeyphraseMetadata()
DKeyphraseMetadata.java49 public KeyphraseMetadata(int id, @NonNull String keyphrase, in KeyphraseMetadata() argument
52 this.mKeyphrase = keyphrase; in KeyphraseMetadata()
176 String keyphrase = in.readString(); in KeyphraseMetadata() local
181 this.mKeyphrase = keyphrase; in KeyphraseMetadata()
/frameworks/proto_logging/stats/atoms/hotword/
Dhotword_atoms.proto100 * Logs information related to keyphrase trigger.
108 // Indicates that the system got the keyphrase from DSP.
111 // Deprecated. Indicates that the system can not inform the service to verify the keyphrase.
124 // Indicates that the keyphrase was detected.
127 // Indicates that the keyphrase was not detected.
143 // Indicates keyphrase was classified as training data.
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionManagerService.aidl138 KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, String bcp47Locale); in getEnrolledKeyphraseMetadata() argument
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt22032 Landroid/hardware/soundtrigger/KeyphraseMetadata;->keyphrase:Ljava/lang/String;