Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ed742a4 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8704577 from 07534831 to tm-d1-release

Change-Id: I34b3eeb95773961c1c04aad9ab7d5b6a16453889
parents 6e1dcd0b 07534831
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -514,9 +514,6 @@ public final class TaskViewUtils {
            for (SurfaceControl leash: openingTargets) {
                t.setAlpha(leash, progress);
            }
            for (SurfaceControl leash: closingTargets) {
                t.setAlpha(leash, 1 - progress);
            }
            t.apply();
        });
        animator.addListener(new AnimatorListenerAdapter() {
+9 −1
Original line number Diff line number Diff line
@@ -462,6 +462,7 @@ public class StatsLogCompatManager extends StatsLogManager {
        private LatencyType mType = LatencyType.UNKNOWN;
        private int mPackageId = 0;
        private long mLatencyInMillis;
        private int mQueryLength = -1;

        StatsCompatLatencyLogger(Context context, ActivityContext activityContext) {
            mContext = context;
@@ -492,6 +493,12 @@ public class StatsLogCompatManager extends StatsLogManager {
            return this;
        }

        @Override
        public StatsLatencyLogger withQueryLength(int queryLength) {
            this.mQueryLength = queryLength;
            return this;
        }

        @Override
        public void log(EventEnum event) {
            if (IS_VERBOSE) {
@@ -508,7 +515,8 @@ public class StatsLogCompatManager extends StatsLogManager {
                    mInstanceId.getId(), // instance_id
                    mPackageId, // package_id
                    mLatencyInMillis, // latency_in_millis
                    mType.getId() //type
                    mType.getId(), //type
                    mQueryLength // query_length
            );
        }
    }
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.quickstep.util;

import android.content.Context;
import android.hardware.display.DisplayManager;
import android.view.Display;

import com.android.launcher3.util.window.WindowManagerProxy;
@@ -43,4 +44,10 @@ public class SystemWindowManagerProxy extends WindowManagerProxy {
    public int getRotation(Context context) {
        return context.getResources().getConfiguration().windowConfiguration.getRotation();
    }

    @Override
    protected Display[] getDisplays(Context context) {
        return context.getSystemService(DisplayManager.class).getDisplays(
                DisplayManager.DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED);
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ public class FloatingHeaderView extends LinearLayout implements
        int oldMaxHeight = mMaxTranslation;
        updateExpectedHeight();

        if (mMaxTranslation != oldMaxHeight) {
        if (mMaxTranslation != oldMaxHeight || mCollapsed) {
            BaseAllAppsContainerView<?> parent = (BaseAllAppsContainerView<?>) getParent();
            if (parent != null) {
                parent.setupHeader();
+7 −0
Original line number Diff line number Diff line
@@ -771,6 +771,13 @@ public class StatsLogManager implements ResourceBasedOverride {
            return this;
        }

        /**
         * Sets query length of the event.
         */
        default StatsLatencyLogger withQueryLength(int queryLength) {
            return this;
        }

        /**
         * Sets packageId of log message.
         */
Loading