diff options
author | yueg <yueg@google.com> | 2017-07-31 15:34:51 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-01 08:40:47 -0700 |
commit | 37450d807ce5cd8df18acc72fb74b256fc8a58b1 (patch) | |
tree | 3ef307aaa319bc7538d3454caba637f6b8f60c67 /java | |
parent | 281d2407619efeeb95e96a12291fa2b3cec61c1f (diff) |
Log bubble expansion and return to call.
Test: BubbleTest
PiperOrigin-RevId: 163758306
Change-Id: I391fe411822f01cf29075eab7cf42aeb676fd424
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/logging/dialer_impression.proto | 5 | ||||
-rw-r--r-- | java/com/android/dialershared/bubble/Bubble.java | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/java/com/android/dialer/logging/dialer_impression.proto b/java/com/android/dialer/logging/dialer_impression.proto index 8ccaf2dea..92ff0a675 100644 --- a/java/com/android/dialer/logging/dialer_impression.proto +++ b/java/com/android/dialer/logging/dialer_impression.proto @@ -478,5 +478,10 @@ message DialerImpression { // In in call UI UPGRADE_TO_VIDEO_CALL_BUTTON_SHOWN = 1236; + + // Bubble primary button first click to expand bubble + BUBBLE_PRIMARY_BUTTON_EXPAND = 1237; + // Bubble prinary button second click to return to call + BUBBLE_PRIMARY_BUTTON_RETURN_TO_CALL = 1238; } } diff --git a/java/com/android/dialershared/bubble/Bubble.java b/java/com/android/dialershared/bubble/Bubble.java index cbc64dd4e..9ce356a76 100644 --- a/java/com/android/dialershared/bubble/Bubble.java +++ b/java/com/android/dialershared/bubble/Bubble.java @@ -61,6 +61,8 @@ import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; import android.widget.ViewAnimator; +import com.android.dialer.logging.DialerImpression; +import com.android.dialer.logging.Logger; import com.android.dialershared.bubble.BubbleInfo.Action; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -418,6 +420,7 @@ public class Bubble { void primaryButtonClick() { if (expanded || textShowing || currentInfo.getActions().isEmpty()) { + Logger.get(context).logImpression(DialerImpression.Type.BUBBLE_PRIMARY_BUTTON_RETURN_TO_CALL); try { currentInfo.getPrimaryIntent().send(); } catch (CanceledException e) { @@ -426,6 +429,7 @@ public class Bubble { return; } + Logger.get(context).logImpression(DialerImpression.Type.BUBBLE_PRIMARY_BUTTON_EXPAND); doResize( () -> { onLeftRightSwitch(isDrawingFromRight()); |