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

Commit 8d17d366 authored by Milton Wu's avatar Milton Wu Committed by Automerger Merge Worker
Browse files

Merge "Upate face sensor loc as resolution" into tm-dev am: 0ad655dd am:...

Merge "Upate face sensor loc as resolution" into tm-dev am: 0ad655dd am: bed68d04 am: f86a573e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18343888



Change-Id: Ie6703b977baaa540f21874a1ed3fd453ffb89dc0
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 08480167 f86a573e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -484,7 +484,13 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba
        if (mFaceProps == null || mFaceAuthSensorLocation == null) {
            return null;
        }
        return new PointF(mFaceAuthSensorLocation.x, mFaceAuthSensorLocation.y);
        DisplayInfo displayInfo = new DisplayInfo();
        mContext.getDisplay().getDisplayInfo(displayInfo);
        final float scaleFactor = android.util.DisplayUtils.getPhysicalPixelDisplaySizeRatio(
                mStableDisplaySize.x, mStableDisplaySize.y, displayInfo.getNaturalWidth(),
                displayInfo.getNaturalHeight());
        return new PointF(mFaceAuthSensorLocation.x * scaleFactor,
                mFaceAuthSensorLocation.y * scaleFactor);
    }

    /**