Home
last modified time | relevance | path

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

/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java41 Keyphrase keyphrase = new Keyphrase(1, 0, in testKeyphraseParcelUnparcel_noUsers() local
46 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_noUsers()
53 assertEquals(keyphrase.getId(), unparceled.getId()); in testKeyphraseParcelUnparcel_noUsers()
55 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_noUsers()
56 assertEquals(keyphrase.getText(), unparceled.getText()); 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()
[all …]
/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/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/base/core/java/android/service/voice/
DVoiceInteractionService.java314 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) { in createAlwaysOnHotwordDetector() argument
321 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback, in createAlwaysOnHotwordDetector()
361 public final boolean isKeyphraseAndLocaleSupportedForHotword(String keyphrase, Locale locale) { in isKeyphraseAndLocaleSupportedForHotword() argument
365 return mKeyphraseEnrollmentInfo.getKeyphraseMetadata(keyphrase, locale) != null; in isKeyphraseAndLocaleSupportedForHotword()
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionManagerService.aidl117 KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, String bcp47Locale); in getEnrolledKeyphraseMetadata() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java246 public KeyphraseSoundModel getKeyphraseSoundModel(String keyphrase, int userHandle, in getKeyphraseSoundModel() argument
253 + " WHERE " + SoundModelContract.KEY_HINT_TEXT + "= '" + keyphrase in getKeyphraseSoundModel()
DVoiceInteractionManagerService.java1060 public KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, in getEnrolledKeyphraseMetadata() argument
1074 mDbHelper.getKeyphraseSoundModel(keyphrase, callingUid, bcp47Locale); in getEnrolledKeyphraseMetadata()
1080 if (keyphrase.equals(phrase.getText())) { in getEnrolledKeyphraseMetadata()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...