Add package_name to log for debugging the back gesture model.
Test: manual. Bug: 150170384 Change-Id: I94efa3ec6af62b485c45f9bf17861722b73ecca3 Merged-In: I94efa3ec6af62b485c45f9bf17861722b73ecca3
This commit is contained in:
committed by
Winson Chung
parent
832d060168
commit
8c95065cb7
@@ -3038,8 +3038,9 @@ message BackGesture {
|
|||||||
optional int32 end_y = 7; // Y coordinate for ACTION_MOVE event.
|
optional int32 end_y = 7; // Y coordinate for ACTION_MOVE event.
|
||||||
optional int32 left_boundary = 8; // left edge width + left inset
|
optional int32 left_boundary = 8; // left edge width + left inset
|
||||||
optional int32 right_boundary = 9; // screen width - (right edge width + right inset)
|
optional int32 right_boundary = 9; // screen width - (right edge width + right inset)
|
||||||
optional float ml_model_score = 10; // The score between 0 and 1 which is the prediction output
|
// The score between 0 and 1 which is the prediction output for the Back Gesture model.
|
||||||
// for the Back Gesture model.
|
optional float ml_model_score = 10;
|
||||||
|
optional string package_name = 11; // The name of the top 100 most used package by all users.
|
||||||
|
|
||||||
enum WindowHorizontalLocation {
|
enum WindowHorizontalLocation {
|
||||||
DEFAULT_LOCATION = 0;
|
DEFAULT_LOCATION = 0;
|
||||||
|
|||||||
@@ -592,6 +592,11 @@ public class EdgeBackGestureHandler extends CurrentUserTracker implements Displa
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mLogGesture = false;
|
mLogGesture = false;
|
||||||
|
String logPackageName = "";
|
||||||
|
// Due to privacy, only top 100 most used apps by all users can be logged.
|
||||||
|
if (mUseMLModel && mVocab.containsKey(mPackageName) && mVocab.get(mPackageName) < 100) {
|
||||||
|
logPackageName = mPackageName;
|
||||||
|
}
|
||||||
SysUiStatsLog.write(SysUiStatsLog.BACK_GESTURE_REPORTED_REPORTED, backType,
|
SysUiStatsLog.write(SysUiStatsLog.BACK_GESTURE_REPORTED_REPORTED, backType,
|
||||||
(int) mDownPoint.y, mIsOnLeftEdge
|
(int) mDownPoint.y, mIsOnLeftEdge
|
||||||
? SysUiStatsLog.BACK_GESTURE__X_LOCATION__LEFT
|
? SysUiStatsLog.BACK_GESTURE__X_LOCATION__LEFT
|
||||||
@@ -600,7 +605,7 @@ public class EdgeBackGestureHandler extends CurrentUserTracker implements Displa
|
|||||||
(int) mEndPoint.x, (int) mEndPoint.y,
|
(int) mEndPoint.x, (int) mEndPoint.y,
|
||||||
mEdgeWidthLeft + mLeftInset,
|
mEdgeWidthLeft + mLeftInset,
|
||||||
mDisplaySize.x - (mEdgeWidthRight + mRightInset),
|
mDisplaySize.x - (mEdgeWidthRight + mRightInset),
|
||||||
mUseMLModel ? mMLResults : -2);
|
mUseMLModel ? mMLResults : -2, logPackageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onMotionEvent(MotionEvent ev) {
|
private void onMotionEvent(MotionEvent ev) {
|
||||||
|
|||||||
Reference in New Issue
Block a user