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

Commit c410509f authored by Alexander Roederer's avatar Alexander Roederer
Browse files

Remove new TestAPI in NotificationRankingUpdate

Only a single testAPI function was added; no other part of this class is
in the public API surface.

For simplicity, as such, I think it's probably best that I just remove
the function from the TestAPI.

Bug: 304478750
Test: Annotation only change; atest NotificationRankingUpdate
to ensure we're not breaking unit tests

Change-Id: I1e3860adf44f25bdfe43efe7f3ad432c9f1b04e6
parent 1ade2aac
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;
    }