Merge "Update OHM regions whenever other regions change" into main
This commit is contained in:
@@ -38,6 +38,8 @@ import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent
|
||||
import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent.START_RECENTS_ANIMATION;
|
||||
import static com.android.quickstep.util.QuickstepProtoLogGroup.ACTIVE_GESTURE_LOG;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.graphics.RectF;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -505,4 +507,16 @@ public class ActiveGestureProtoLogProxy {
|
||||
taskId,
|
||||
packageName);
|
||||
}
|
||||
|
||||
public static void logCreateTouchRegionForDisplay(int displayRotation,
|
||||
@NonNull Point displaySize, @NonNull RectF swipeRegion, @NonNull RectF ohmRegion,
|
||||
int gesturalHeight, int largerGesturalHeight, @NonNull String reason) {
|
||||
if (!enableActiveGestureProtoLog()) return;
|
||||
ProtoLog.d(ACTIVE_GESTURE_LOG,
|
||||
"OrientationTouchTransformer.createRegionForDisplay: "
|
||||
+ "dispRot=%d, dispSize=%s, swipeRegion=%s, ohmRegion=%s, "
|
||||
+ "gesturalHeight=%d, largerGesturalHeight=%d, reason=%s",
|
||||
displayRotation, displaySize.flattenToString(), swipeRegion.toShortString(),
|
||||
ohmRegion.toShortString(), gesturalHeight, largerGesturalHeight, reason);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user