/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
D | SoundTriggerTest.java | 41 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/ |
D | EnrollmentUtil.java | 174 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/ |
D | KeyphraseEnrollmentInfo.java | 337 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()
|
D | KeyphraseMetadata.java | 49 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/ |
D | VoiceInteractionService.java | 314 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/ |
D | IVoiceInteractionManagerService.aidl | 117 KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, String bcp47Locale); in getEnrolledKeyphraseMetadata() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 246 public KeyphraseSoundModel getKeyphraseSoundModel(String keyphrase, int userHandle, in getKeyphraseSoundModel() argument 253 + " WHERE " + SoundModelContract.KEY_HINT_TEXT + "= '" + keyphrase in getKeyphraseSoundModel()
|
D | VoiceInteractionManagerService.java | 1060 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/ |
D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |