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

Commit 247456d9 authored by Cole Faust's avatar Cole Faust Committed by Android (Google) Code Review
Browse files

Merge "[conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf1...

Merge "[conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf1 am: 44f85760 am: 91d6c5b5 am: 6a79ae25 am: 9b3a5fc0"
parents 6cf42344 9acf46f6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -428,6 +428,15 @@ java_library {
    name: "framework-minus-apex-intdefs",
    defaults: ["framework-minus-apex-defaults"],
    plugins: ["intdef-annotation-processor"],

    // Errorprone and android lint will already run on framework-minus-apex, don't rerun them on
    // the intdefs version in order to speed up the build.
    errorprone: {
        enabled: false,
    },
    lint: {
        enabled: false,
    },
}

// This "framework" module is NOT installed to the device. It's
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ public class BlobStorePerfTests {
        runShellCommand(String.format(
                "cmd blob_store delete-blob --algo %s --digest %s --label %s --expiry %d --tag %s",
                blobHandle.algorithm,
                Base64.getEncoder().encode(blobHandle.digest),
                Base64.getEncoder().encodeToString(blobHandle.digest),
                blobHandle.label,
                blobHandle.expiryTimeMillis,
                blobHandle.tag));
+5 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import java.util.concurrent.Executor;

@@ -1103,7 +1104,10 @@ public final class VoiceInteractor {
        }
        try {
            boolean[] res = mInteractor.supportsCommands(mContext.getOpPackageName(), commands);
            if (DEBUG) Log.d(TAG, "supportsCommands: cmds=" + commands + " res=" + res);
            if (DEBUG) {
                Log.d(TAG, "supportsCommands: cmds=" + Arrays.toString(commands) + " res="
                        + Arrays.toString(res));
            }
            return res;
        } catch (RemoteException e) {
            throw new RuntimeException("Voice interactor has died", e);
+4 −7
Original line number Diff line number Diff line
@@ -203,17 +203,14 @@ public final class PreferentialNetworkServiceConfig implements Parcelable {
        return mIsEnabled == that.mIsEnabled
                && mAllowFallbackToDefaultConnection == that.mAllowFallbackToDefaultConnection
                && mNetworkId == that.mNetworkId
                && Objects.equals(mIncludedUids, that.mIncludedUids)
                && Objects.equals(mExcludedUids, that.mExcludedUids);
                && Arrays.equals(mIncludedUids, that.mIncludedUids)
                && Arrays.equals(mExcludedUids, that.mExcludedUids);
    }

    @Override
    public int hashCode() {
        return ((Objects.hashCode(mIsEnabled) * 17)
                + (Objects.hashCode(mAllowFallbackToDefaultConnection) * 19)
                + (Objects.hashCode(mIncludedUids) * 23)
                + (Objects.hashCode(mExcludedUids) * 29)
                + mNetworkId * 31);
        return Objects.hash(mIsEnabled, mAllowFallbackToDefaultConnection,
                Arrays.hashCode(mIncludedUids), Arrays.hashCode(mExcludedUids), mNetworkId);
    }

    /**
+4 −3
Original line number Diff line number Diff line
@@ -204,9 +204,10 @@ public final class BluetoothLeDeviceFilter implements DeviceFilter<ScanResult> {

    @Override
    public int hashCode() {
        return Objects.hash(mNamePattern, mScanFilter, mRawDataFilter, mRawDataFilterMask,
                mRenamePrefix, mRenameSuffix, mRenameBytesFrom, mRenameBytesLength,
                mRenameNameFrom, mRenameNameLength, mRenameBytesReverseOrder);
        return Objects.hash(mNamePattern, mScanFilter, Arrays.hashCode(mRawDataFilter),
                Arrays.hashCode(mRawDataFilterMask), mRenamePrefix, mRenameSuffix,
                mRenameBytesFrom, mRenameBytesLength, mRenameNameFrom, mRenameNameLength,
                mRenameBytesReverseOrder);
    }

    @Override
Loading