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

Commit fdf40460 authored by Andreas Miko's avatar Andreas Miko Committed by Android (Google) Code Review
Browse files

Merge "Fix deprecated build warnings in Sysui-studio" into main

parents 5d800a30 ab4866ed
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1250,6 +1250,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     * @deprecated This is being migrated to use modern architecture, this method is visible purely
     * for bridging the gap while the migration is active.
     */
    @Deprecated
    private void handleFaceAuthFailed() {
        Assert.isMainThread();
        String reason =
@@ -1278,6 +1279,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     * @deprecated This is being migrated to use modern architecture, this method is visible purely
     * for bridging the gap while the migration is active.
     */
    @Deprecated
    private void handleFaceAcquired(int acquireInfo) {
        Assert.isMainThread();
        for (int i = 0; i < mCallbacks.size(); i++) {
@@ -1299,6 +1301,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     * @deprecated This is being migrated to use modern architecture, this method is visible purely
     * for bridging the gap while the migration is active.
     */
    @Deprecated
    private void handleFaceAuthenticated(int authUserId, boolean isStrongBiometric) {
        Trace.beginSection("KeyGuardUpdateMonitor#handlerFaceAuthenticated");
        try {
@@ -1327,6 +1330,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     * @deprecated This is being migrated to use modern architecture, this method is visible purely
     * for bridging the gap while the migration is active.
     */
    @Deprecated
    private void handleFaceHelp(int msgId, String helpString) {
        if (mFaceAcquiredInfoIgnoreList.contains(msgId)) {
            return;
@@ -1344,6 +1348,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     * @deprecated This is being migrated to use modern architecture, this method is visible purely
     * for bridging the gap while the migration is active.
     */
    @Deprecated
    private void handleFaceError(int msgId, final String originalErrMsg) {
        Assert.isMainThread();
        String errString = originalErrMsg;
+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ public class GlobalModule {
     * @deprecated Deprecdated because {@link Display#getMetrics} is deprecated.
     */
    @Provides
    @Deprecated
    public DisplayMetrics provideDisplayMetrics(Context context) {
        DisplayMetrics displayMetrics = new DisplayMetrics();
        context.getDisplay().getMetrics(displayMetrics);
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ public interface NotifCollectionListener {
     *
     * @deprecated Use {@link #onRankingApplied()} instead.
     */
    @Deprecated
    default void onRankingUpdate(NotificationListenerService.RankingMap rankingMap) {
    }

+1 −0
Original line number Diff line number Diff line
@@ -1088,6 +1088,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
     * @deprecated use {@link
     * WindowRootViewVisibilityInteractor.isLockscreenOrShadeVisible} instead.
     */    @VisibleForTesting
    @Deprecated
    void initShadeVisibilityListener() {
        mShadeController.setVisibilityListener(new ShadeController.ShadeVisibilityListener() {
            @Override
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ public class Utils {
     *   list, then list.get(i) could throw an IndexOutOfBoundsException. This method should not be
     *   used; try using `synchronized` or making a copy of the list instead.
     */
    @Deprecated
    public static <T> void safeForeach(List<T> list, Consumer<T> c) {
        for (int i = list.size() - 1; i >= 0; i--) {
            T item = list.get(i);