Lines Matching refs:aid

393     private void select(byte[] aid) throws IOException {  in select()  argument
394 int commandSize = (aid == null ? 0 : aid.length) + 5; in select()
400 if (aid != null && aid.length != 0) { in select()
401 selectCommand[4] = (byte) aid.length; in select()
402 System.arraycopy(aid, 0, selectCommand, 5, aid.length); in select()
422 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument
425 if (aid != null && aid.length == 0) { in openBasicChannel()
426 aid = null; in openBasicChannel()
427 } else if (aid != null && (aid.length < 5 || aid.length > 16)) { in openBasicChannel()
444 channelAccess = setUpChannelAccess(aid, packageName, pid, true); in openBasicChannel()
455 if (aid == null && !mDefaultApplicationSelectedOnBasicChannel) { in openBasicChannel()
464 mSEHal.openBasicChannel(byteArrayToArrayList(aid), p2, in openBasicChannel()
488 Channel basicChannel = new Channel(session, this, 0, selectResponse, aid, in openBasicChannel()
492 if (aid != null) { in openBasicChannel()
503 public Channel openLogicalChannelWithoutChannelAccess(byte[] aid) throws IOException, in openLogicalChannelWithoutChannelAccess() argument
505 return openLogicalChannel(null, aid, (byte) 0x00, null, null, 0); in openLogicalChannelWithoutChannelAccess()
511 public Channel openLogicalChannel(SecureElementSession session, byte[] aid, byte p2, in openLogicalChannel() argument
514 if (aid != null && aid.length == 0) { in openLogicalChannel()
515 aid = null; in openLogicalChannel()
516 } else if (aid != null && (aid.length < 5 || aid.length > 16)) { in openLogicalChannel()
531 channelAccess = setUpChannelAccess(aid, packageName, pid, false); in openLogicalChannel()
542 mSEHal.openLogicalChannel(byteArrayToArrayList(aid), p2, in openLogicalChannel()
570 selectResponse, aid, listener); in openLogicalChannel()
581 public boolean isAidSelectable(byte[] aid) { in isAidSelectable() argument
582 if (aid == null) { in isAidSelectable()
593 mSEHal.openLogicalChannel(byteArrayToArrayList(aid), (byte) 0x00, in isAidSelectable()
671 public boolean[] isNfcEventAllowed(PackageManager packageManager, byte[] aid, in isNfcEventAllowed() argument
689 return mAccessControlEnforcer.isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed()
737 private ChannelAccess setUpChannelAccess(byte[] aid, String packageName, int pid, in setUpChannelAccess() argument
757 && !Arrays.equals(aid, ISD_R_AID)) { in setUpChannelAccess()
776 } else if (aid == null) { in setUpChannelAccess()
786 mAccessControlEnforcer.setUpChannelAccess(aid, packageName, in setUpChannelAccess()