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

Commit f9b19b9c authored by Alexander Roederer's avatar Alexander Roederer Committed by Android (Google) Code Review
Browse files

Merge "Remove new TestAPI in NotificationRankingUpdate" into main

parents b901daf1 c410509f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2957,10 +2957,6 @@ package android.service.notification {
    method @Deprecated public boolean isBound();
  }

  public class NotificationRankingUpdate implements android.os.Parcelable {
    method public final boolean isFdNotNullAndClosed();
  }

}

package android.service.quickaccesswallet {
+1 −4
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ package android.service.notification;

import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.TestApi;
import android.app.Notification;
import android.os.Bundle;
import android.os.Parcel;
@@ -40,7 +39,6 @@ import java.util.List;
 * @hide
 */
@SuppressLint({"ParcelNotFinal", "ParcelCreator"})
@TestApi
public class NotificationRankingUpdate implements Parcelable {
    private final NotificationListenerService.RankingMap mRankingMap;

@@ -101,7 +99,7 @@ public class NotificationRankingUpdate implements Parcelable {
                throw new RuntimeException(e);
            } finally {
                mapParcel.recycle();
                if (buffer != null) {
                if (buffer != null && mRankingMapFd != null) {
                    mRankingMapFd.unmap(buffer);
                    mRankingMapFd.close();
                }
@@ -140,7 +138,6 @@ public class NotificationRankingUpdate implements Parcelable {
     *
     * @hide
     */
    @TestApi
    public final boolean isFdNotNullAndClosed() {
        return mRankingMapFd != null && mRankingMapFd.getFd() == -1;
    }