diff options
author | Chris Wren <cwren@android.com> | 2015-08-06 14:53:32 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-08-06 15:11:42 -0400 |
commit | a35c96eb90f3be5980797b160da3780f2b8f35e6 (patch) | |
tree | 181999212059b7f0e248616e38bfb45303db7765 /services/voiceinteraction/java | |
parent | 375c792c176be43720da47db2cfced23613f537c (diff) | |
download | frameworks_base-a35c96eb90f3be5980797b160da3780f2b8f35e6.zip frameworks_base-a35c96eb90f3be5980797b160da3780f2b8f35e6.tar.gz frameworks_base-a35c96eb90f3be5980797b160da3780f2b8f35e6.tar.bz2 |
add metrics to assistant
long press
screenshot enabled
context enabled
Bug: 22949579
Change-Id: Iac178207fa7149cda03c9a817a0d1450e46e1c59
Diffstat (limited to 'services/voiceinteraction/java')
-rw-r--r-- | services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java index 04d6d98..1788e88 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java @@ -48,6 +48,7 @@ import android.view.WindowManager; import com.android.internal.app.IAssistScreenshotReceiver; import com.android.internal.app.IVoiceInteractionSessionShowCallback; import com.android.internal.app.IVoiceInteractor; +import com.android.internal.logging.MetricsLogger; import com.android.internal.os.IResultReceiver; import com.android.server.LocalServices; import com.android.server.statusbar.StatusBarManagerInternal; @@ -225,6 +226,7 @@ final class VoiceInteractionSessionConnection implements ServiceConnection { mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED && structureEnabled) { try { + MetricsLogger.count(mContext, "assist_with_context", 1); if (mAm.requestAssistContextExtras(ActivityManager.ASSIST_CONTEXT_FULL, mAssistReceiver, activityToken)) { needDisclosure = true; @@ -249,6 +251,7 @@ final class VoiceInteractionSessionConnection implements ServiceConnection { mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED && screenshotEnabled) { try { + MetricsLogger.count(mContext, "assist_with_screen", 1); needDisclosure = true; mIWindowManager.requestAssistScreenshot(mScreenshotReceiver); } catch (RemoteException e) { |