Merge "Add logging for actions around gear behind notifications" into nyc-dev
am: e36fb2b733
* commit 'e36fb2b733ef86d0941481a7c506e903df81901d':
Add logging for actions around gear behind notifications
This commit is contained in:
@@ -1094,6 +1094,8 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onGearDisplayed(ExpandableNotificationRow row) {
|
public void onGearDisplayed(ExpandableNotificationRow row) {
|
||||||
|
MetricsLogger.action(mContext, MetricsEvent.ACTION_REVEAL_GEAR,
|
||||||
|
row.getStatusBarNotification().getPackageName());
|
||||||
mNotificationGearDisplayed = row;
|
mNotificationGearDisplayed = row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ import android.view.animation.AnimationUtils;
|
|||||||
import android.view.animation.Interpolator;
|
import android.view.animation.Interpolator;
|
||||||
import android.widget.OverScroller;
|
import android.widget.OverScroller;
|
||||||
|
|
||||||
|
import com.android.internal.logging.MetricsLogger;
|
||||||
|
import com.android.internal.logging.MetricsProto.MetricsEvent;
|
||||||
import com.android.systemui.ExpandHelper;
|
import com.android.systemui.ExpandHelper;
|
||||||
import com.android.systemui.Interpolators;
|
import com.android.systemui.Interpolators;
|
||||||
import com.android.systemui.R;
|
import com.android.systemui.R;
|
||||||
@@ -363,6 +365,8 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
@Override
|
@Override
|
||||||
public void onGearTouched(ExpandableNotificationRow row, int x, int y) {
|
public void onGearTouched(ExpandableNotificationRow row, int x, int y) {
|
||||||
if (mLongPressListener != null) {
|
if (mLongPressListener != null) {
|
||||||
|
MetricsLogger.action(mContext, MetricsEvent.ACTION_TOUCH_GEAR,
|
||||||
|
row.getStatusBarNotification().getPackageName());
|
||||||
mLongPressListener.onLongPress(row, x, y);
|
mLongPressListener.onLongPress(row, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1927,6 +1927,14 @@ message MetricsEvent {
|
|||||||
// access before; action pass package name of calling package.
|
// access before; action pass package name of calling package.
|
||||||
ACTION_SCOPED_DIRECTORY_ACCESS_ALREADY_GRANTED_BY_PACKAGE = 331;
|
ACTION_SCOPED_DIRECTORY_ACCESS_ALREADY_GRANTED_BY_PACKAGE = 331;
|
||||||
|
|
||||||
|
// Logged when the user slides a notification and
|
||||||
|
// reveals the gear beneath it.
|
||||||
|
ACTION_REVEAL_GEAR = 332;
|
||||||
|
|
||||||
|
// Logged when the user taps on the gear beneath
|
||||||
|
// a notification.
|
||||||
|
ACTION_TOUCH_GEAR = 333;
|
||||||
|
|
||||||
// Add new aosp constants above this line.
|
// Add new aosp constants above this line.
|
||||||
// END OF AOSP CONSTANTS
|
// END OF AOSP CONSTANTS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user