Search in sources :

Example 31 with Asn1Node

use of com.android.internal.telephony.uicc.asn1.Asn1Node in project android_frameworks_opt_telephony by LineageOS.

the class Asn1NodeTest method testAsBoolean_InvalidData.

@SmallTest
@Test(expected = InvalidAsn1DataException.class)
public void testAsBoolean_InvalidData() throws TagNotFoundException, InvalidAsn1DataException {
    Asn1Node node = Asn1Node.newBuilder(0xBF37).addChildAsString(1, "1").build();
    node.getChild(1).asBoolean();
}
Also used : Asn1Node(com.android.internal.telephony.uicc.asn1.Asn1Node) SmallTest(android.test.suitebuilder.annotation.SmallTest) Test(org.junit.Test) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

Asn1Node (com.android.internal.telephony.uicc.asn1.Asn1Node)31 Test (org.junit.Test)23 SmallTest (android.test.suitebuilder.annotation.SmallTest)22 Asn1Decoder (com.android.internal.telephony.uicc.asn1.Asn1Decoder)10 RequestBuilder (com.android.internal.telephony.uicc.euicc.apdu.RequestBuilder)6 InvalidAsn1DataException (com.android.internal.telephony.uicc.asn1.InvalidAsn1DataException)3 EuiccProfileInfo (android.service.euicc.EuiccProfileInfo)2 EuiccNotification (android.telephony.euicc.EuiccNotification)2 TagNotFoundException (com.android.internal.telephony.uicc.asn1.TagNotFoundException)2 Nullable (android.annotation.Nullable)1 CarrierIdentifier (android.service.carrier.CarrierIdentifier)1 UiccAccessRule (android.telephony.UiccAccessRule)1 EuiccRulesAuthTable (android.telephony.euicc.EuiccRulesAuthTable)1 TelephonyTest (com.android.internal.telephony.TelephonyTest)1