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

Commit 5c85ac53 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Switch to HexEncoding from ByteStringUtils" am: efbd81e1

am: d3e234ea

Change-Id: I80cc39c1d35ccc56582e1c948d16284f6fb133c8
parents 29372531 d3e234ea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import android.os.Process;
import android.os.SystemProperties;
import android.os.UserManager;
import android.test.mock.MockContentResolver;
import android.util.ByteStringUtils;
import android.util.Log;

import androidx.test.InstrumentationRegistry;
@@ -46,6 +45,8 @@ import com.android.bluetooth.R;
import com.android.bluetooth.TestUtils;
import com.android.bluetooth.Utils;

import libcore.util.HexEncoding;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -685,7 +686,7 @@ public class AdapterServiceTest {
            Log.e(TAG, "Salt256Bit is null: " + metricsSection.toString());
            return null;
        }
        byte[] metricsSalt = ByteStringUtils.fromHexToByteArray(saltString);
        byte[] metricsSalt = HexEncoding.decode(saltString, false /* allowSingleChar */);
        if (metricsSalt.length != 32) {
            Log.e(TAG, "Salt length is not 32 bit, but is " + metricsSalt.length);
            return null;