1 package com.google.attestationexample; 2 3 import android.util.Log; 4 5 import java.util.Arrays; 6 7 public class Utils { 8 public static final String FAIL = "AttestationFail"; 9 public static final String FAIL_INFO = "AttestationFailInfo"; 10 logError(String message, int expected, int actual)11 public static void logError(String message, int expected, int actual) { 12 Log.e(FAIL, message); 13 Log.e(FAIL_INFO, "Expected: " + expected); 14 Log.e(FAIL_INFO, "Actual: " + actual); 15 } 16 logError(String message, byte[] expected, byte[] actual)17 public static void logError(String message, byte[] expected, byte[] actual) { 18 Log.e(FAIL, message); 19 Log.e(FAIL_INFO, "Expected: " + Arrays.toString(expected)); 20 Log.e(FAIL_INFO, "Actual: " + Arrays.toString(actual)); 21 } 22 } 23