Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +5 −7 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.UserManager; import android.util.DisplayUtils; import android.util.Log; import android.util.RotationUtils; import android.util.SparseBooleanArray; Loading Loading @@ -118,8 +119,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba private final Provider<UdfpsController> mUdfpsControllerFactory; private final Provider<SidefpsController> mSidefpsControllerFactory; @NonNull private Point mStableDisplaySize = new Point(); private final Display mDisplay; private float mScaleFactor = 1f; // sensor locations without any resolution scaling nor rotation adjustments: Loading Loading @@ -508,10 +507,11 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba */ private void updateSensorLocations() { mDisplay.getDisplayInfo(mCachedDisplayInfo); final Display.Mode maxDisplayMode = DisplayUtils.getMaximumResolutionDisplayMode(mCachedDisplayInfo.supportedModes); final float scaleFactor = android.util.DisplayUtils.getPhysicalPixelDisplaySizeRatio( mStableDisplaySize.x, mStableDisplaySize.y, mCachedDisplayInfo.getNaturalWidth(), mCachedDisplayInfo.getNaturalHeight()); maxDisplayMode.getPhysicalWidth(), maxDisplayMode.getPhysicalHeight(), mCachedDisplayInfo.getNaturalWidth(), mCachedDisplayInfo.getNaturalHeight()); if (scaleFactor == Float.POSITIVE_INFINITY) { mScaleFactor = 1f; } else { Loading Loading @@ -768,7 +768,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba mFingerprintAuthenticatorsRegisteredCallback); } mStableDisplaySize = mDisplayManager.getStableDisplaySize(); mActivityTaskManager.registerTaskStackListener(mTaskStackListener); mOrientationListener.enable(); updateSensorLocations(); Loading Loading @@ -1148,7 +1147,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba @Override public void dump(@NonNull PrintWriter pw, @NonNull String[] args) { final AuthDialog dialog = mCurrentDialog; pw.println(" stableDisplaySize=" + mStableDisplaySize); pw.println(" mCachedDisplayInfo=" + mCachedDisplayInfo); pw.println(" mScaleFactor=" + mScaleFactor); pw.println(" faceAuthSensorLocationDefault=" + mFaceSensorLocationDefault); Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +5 −7 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.UserManager; import android.util.DisplayUtils; import android.util.Log; import android.util.RotationUtils; import android.util.SparseBooleanArray; Loading Loading @@ -118,8 +119,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba private final Provider<UdfpsController> mUdfpsControllerFactory; private final Provider<SidefpsController> mSidefpsControllerFactory; @NonNull private Point mStableDisplaySize = new Point(); private final Display mDisplay; private float mScaleFactor = 1f; // sensor locations without any resolution scaling nor rotation adjustments: Loading Loading @@ -508,10 +507,11 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba */ private void updateSensorLocations() { mDisplay.getDisplayInfo(mCachedDisplayInfo); final Display.Mode maxDisplayMode = DisplayUtils.getMaximumResolutionDisplayMode(mCachedDisplayInfo.supportedModes); final float scaleFactor = android.util.DisplayUtils.getPhysicalPixelDisplaySizeRatio( mStableDisplaySize.x, mStableDisplaySize.y, mCachedDisplayInfo.getNaturalWidth(), mCachedDisplayInfo.getNaturalHeight()); maxDisplayMode.getPhysicalWidth(), maxDisplayMode.getPhysicalHeight(), mCachedDisplayInfo.getNaturalWidth(), mCachedDisplayInfo.getNaturalHeight()); if (scaleFactor == Float.POSITIVE_INFINITY) { mScaleFactor = 1f; } else { Loading Loading @@ -768,7 +768,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba mFingerprintAuthenticatorsRegisteredCallback); } mStableDisplaySize = mDisplayManager.getStableDisplaySize(); mActivityTaskManager.registerTaskStackListener(mTaskStackListener); mOrientationListener.enable(); updateSensorLocations(); Loading Loading @@ -1148,7 +1147,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba @Override public void dump(@NonNull PrintWriter pw, @NonNull String[] args) { final AuthDialog dialog = mCurrentDialog; pw.println(" stableDisplaySize=" + mStableDisplaySize); pw.println(" mCachedDisplayInfo=" + mCachedDisplayInfo); pw.println(" mScaleFactor=" + mScaleFactor); pw.println(" faceAuthSensorLocationDefault=" + mFaceSensorLocationDefault); Loading