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

Commit d68bee27 authored by Adrian Roos's avatar Adrian Roos Committed by Automerger Merge Worker
Browse files

API: Suppress existing NullableCollections lints am: 6a6aa5e2 am: 4da67dd2 am: 98eb82a6

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I314b97d2677f26b0a9c09a52918df49096450aea
parents 514ec50c 98eb82a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package android.content;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.TestApi;
import android.app.ActivityThread;
import android.os.Parcel;
@@ -62,6 +63,7 @@ public final class AutofillOptions implements Parcelable {
     * List of allowlisted activities.
     */
    @Nullable
    @SuppressLint("NullableCollection")
    public ArraySet<ComponentName> whitelistedActivitiesForAugmentedAutofill;

    /**
@@ -73,6 +75,7 @@ public final class AutofillOptions implements Parcelable {
     * The disabled Activities of the package. key is component name string, value is when they
     * will be enabled.
     */
    @SuppressLint("NullableCollection")
    @Nullable
    public ArrayMap<String, Long> disabledActivities;

+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package android.content;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.TestApi;
import android.app.ActivityThread;
import android.os.Parcel;
@@ -73,6 +74,7 @@ public final class ContentCaptureOptions implements Parcelable {
     * for all acitivites in the package).
     */
    @Nullable
    @SuppressLint("NullableCollection")
    public final ArraySet<ComponentName> whitelistedComponents;

    /**
@@ -96,6 +98,7 @@ public final class ContentCaptureOptions implements Parcelable {
     */
    public ContentCaptureOptions(int loggingLevel, int maxBufferSize, int idleFlushingFrequencyMs,
            int textChangeFlushingFrequencyMs, int logHistorySize,
            @SuppressLint("NullableCollection")
            @Nullable ArraySet<ComponentName> whitelistedComponents) {
        this(/* lite= */ false, loggingLevel, maxBufferSize, idleFlushingFrequencyMs,
                textChangeFlushingFrequencyMs, logHistorySize, whitelistedComponents);
+1 −1
Original line number Diff line number Diff line
@@ -5552,7 +5552,7 @@ public abstract class PackageManager {
     *
     * @hide
     */
    @SuppressWarnings("HiddenAbstractMethod")
    @SuppressWarnings({"HiddenAbstractMethod", "NullableCollection"})
    @TestApi
    public abstract @Nullable String[] getNamesForUids(int[] uids);

+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ public final class InlineSuggestionInfo implements Parcelable {
    public static InlineSuggestionInfo newInlineSuggestionInfo(
            @NonNull InlinePresentationSpec presentationSpec,
            @NonNull @Source String source,
            @SuppressLint("NullableCollection")
            @Nullable String[] autofillHints, @NonNull @Type String type, boolean isPinned) {
        return new InlineSuggestionInfo(presentationSpec, source, autofillHints, type, isPinned);
    }
+1 −0
Original line number Diff line number Diff line
@@ -1905,6 +1905,7 @@ public class LocationManager {
    @Deprecated
    @RequiresPermission(Manifest.permission.READ_DEVICE_CONFIG)
    @Nullable
    @SuppressWarnings("NullableCollection")
    public List<String> getProviderPackages(@NonNull String provider) {
        try {
            return mService.getProviderPackages(provider);
Loading