Loading src/java/com/android/internal/telephony/uicc/UiccPkcs15.java +10 −3 Original line number Diff line number Diff line Loading @@ -106,14 +106,21 @@ public class UiccPkcs15 extends Handler { mCallback.sendToTarget(); return; } IccIoResult response; switch (msg.what) { case EVENT_SELECT_FILE_DONE: response = (IccIoResult) ar.result; if (response.getException() == null) { readBinary(); } else { log("Select file error : " + response.getException()); AsyncResult.forMessage(mCallback, null, response.getException()); mCallback.sendToTarget(); } break; case EVENT_READ_BINARY_DONE: IccIoResult response = (IccIoResult) ar.result; response = (IccIoResult) ar.result; String result = IccUtils.bytesToHexString(response.payload) .toUpperCase(Locale.US); log("IccIoResult: " + response + " payload: " + result); Loading tests/telephonytests/src/com/android/internal/telephony/uicc/UiccCarrierPrivilegeRulesTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -570,7 +570,7 @@ public class UiccCarrierPrivilegeRulesTest extends TelephonyTest { public Void answer(InvocationOnMock invocation) throws Throwable { currentFileId.set((String) invocation.getArguments()[6]); Message message = (Message) invocation.getArguments()[8]; AsyncResult ar = new AsyncResult(null, new int[]{2}, null); AsyncResult ar = new AsyncResult(null, new IccIoResult(0x90, 0x00, ""), null); message.obj = ar; message.sendToTarget(); return null; Loading Loading @@ -668,7 +668,7 @@ public class UiccCarrierPrivilegeRulesTest extends TelephonyTest { public Void answer(InvocationOnMock invocation) throws Throwable { currentFileId.set((String) invocation.getArguments()[6]); Message message = (Message) invocation.getArguments()[8]; AsyncResult ar = new AsyncResult(null, new int[]{2}, null); AsyncResult ar = new AsyncResult(null, new IccIoResult(0x90, 0x00, ""), null); message.obj = ar; message.sendToTarget(); return null; Loading Loading
src/java/com/android/internal/telephony/uicc/UiccPkcs15.java +10 −3 Original line number Diff line number Diff line Loading @@ -106,14 +106,21 @@ public class UiccPkcs15 extends Handler { mCallback.sendToTarget(); return; } IccIoResult response; switch (msg.what) { case EVENT_SELECT_FILE_DONE: response = (IccIoResult) ar.result; if (response.getException() == null) { readBinary(); } else { log("Select file error : " + response.getException()); AsyncResult.forMessage(mCallback, null, response.getException()); mCallback.sendToTarget(); } break; case EVENT_READ_BINARY_DONE: IccIoResult response = (IccIoResult) ar.result; response = (IccIoResult) ar.result; String result = IccUtils.bytesToHexString(response.payload) .toUpperCase(Locale.US); log("IccIoResult: " + response + " payload: " + result); Loading
tests/telephonytests/src/com/android/internal/telephony/uicc/UiccCarrierPrivilegeRulesTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -570,7 +570,7 @@ public class UiccCarrierPrivilegeRulesTest extends TelephonyTest { public Void answer(InvocationOnMock invocation) throws Throwable { currentFileId.set((String) invocation.getArguments()[6]); Message message = (Message) invocation.getArguments()[8]; AsyncResult ar = new AsyncResult(null, new int[]{2}, null); AsyncResult ar = new AsyncResult(null, new IccIoResult(0x90, 0x00, ""), null); message.obj = ar; message.sendToTarget(); return null; Loading Loading @@ -668,7 +668,7 @@ public class UiccCarrierPrivilegeRulesTest extends TelephonyTest { public Void answer(InvocationOnMock invocation) throws Throwable { currentFileId.set((String) invocation.getArguments()[6]); Message message = (Message) invocation.getArguments()[8]; AsyncResult ar = new AsyncResult(null, new int[]{2}, null); AsyncResult ar = new AsyncResult(null, new IccIoResult(0x90, 0x00, ""), null); message.obj = ar; message.sendToTarget(); return null; Loading