diff options
| author | 2013-04-19 16:25:35 -0700 | |
|---|---|---|
| committer | 2013-04-19 16:25:35 -0700 | |
| commit | 924f1b962c3a8e700a695cb65cb07c17cf90c696 (patch) | |
| tree | 0542b210c4ba31b0bcc525ce5401603e352a5cc1 | |
| parent | 9b3ebb124eba3d9f80ae299e0cbcfcd9c0a8653d (diff) | |
Identify in logs launch of voice search from key events
Clearly identify in the logs when AudioService starts one of
the following two intents in response to long-press on
the KEYCODE_HEADSETHOOK key: ACTION_WEB_SEARCH and
ACTION_VOICE_SEARCH_HANDS_FREE.
Bug 8095981
Change-Id: I14ca99533dfb011cdc530c0bafd8104ff2436c7d
| -rw-r--r-- | media/java/android/media/AudioService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index 0df4f822393b..76d811e1b4b3 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -4699,10 +4699,12 @@ public class AudioService extends IAudioService.Stub implements OnFinished { boolean isLocked = mKeyguardManager != null && mKeyguardManager.isKeyguardLocked(); if (!isLocked && pm.isScreenOn()) { voiceIntent = new Intent(android.speech.RecognizerIntent.ACTION_WEB_SEARCH); + Log.i(TAG, "voice-based interactions: about to use ACTION_WEB_SEARCH"); } else { voiceIntent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE); voiceIntent.putExtra(RecognizerIntent.EXTRA_SECURE, isLocked && mKeyguardManager.isKeyguardSecure()); + Log.i(TAG, "voice-based interactions: about to use ACTION_VOICE_SEARCH_HANDS_FREE"); } // start the search activity if (needWakeLock) { |