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

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

Merge "Switch to HexEncoding from ByteStringUtils"

am: efbd81e1

Change-Id: I19de22143f45a1eb1fb74bc6c847f191bffaf7b5
parents d4443a5a efbd81e1
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;