Loading core/java/android/service/voice/VoiceInteractionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ public class VoiceInteractionService extends Service { @Deprecated public final AlwaysOnHotwordDetector createAlwaysOnHotwordDetector( String keyphrase, String locale, AlwaysOnHotwordDetector.Callback callback) { return createAlwaysOnHotwordDetector(keyphrase, new Locale(locale), callback); return createAlwaysOnHotwordDetector(keyphrase, Locale.forLanguageTag(locale), callback); } /** Loading tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public class MainInteractionService extends VoiceInteractionService { + Arrays.toString(getKeyphraseEnrollmentInfo().listKeyphraseMetadata())); mHotwordDetector = createAlwaysOnHotwordDetector( "Hello There", new Locale("en-US"), mHotwordCallback); "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); } @Override Loading Loading
core/java/android/service/voice/VoiceInteractionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ public class VoiceInteractionService extends Service { @Deprecated public final AlwaysOnHotwordDetector createAlwaysOnHotwordDetector( String keyphrase, String locale, AlwaysOnHotwordDetector.Callback callback) { return createAlwaysOnHotwordDetector(keyphrase, new Locale(locale), callback); return createAlwaysOnHotwordDetector(keyphrase, Locale.forLanguageTag(locale), callback); } /** Loading
tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public class MainInteractionService extends VoiceInteractionService { + Arrays.toString(getKeyphraseEnrollmentInfo().listKeyphraseMetadata())); mHotwordDetector = createAlwaysOnHotwordDetector( "Hello There", new Locale("en-US"), mHotwordCallback); "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); } @Override Loading