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

Commit 32fed123 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Switch to HexEncoding from ByteStringUtils"

parents 81696f44 f3f6f167
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;