/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | AidRoutingManager.java | 126 String aid = aidEntry.getKey(); in calculateAidRouteSize() local 128 if(aid.endsWith("*")) { in calculateAidRouteSize() 129 routeTableSize += ((aid.length() - 0x01) / 0x02) + AID_HDR_LENGTH; in calculateAidRouteSize() 131 routeTableSize += (aid.length() / 0x02)+ AID_HDR_LENGTH; in calculateAidRouteSize() 140 String aid = aidEntry.getKey(); in clearNfcRoutingTableLocked() local 141 if (aid.endsWith("*")) { in clearNfcRoutingTableLocked() 143 Log.e(TAG, "Device does not support prefix AIDs but AID [" + aid in clearNfcRoutingTableLocked() 146 if (DBG) Log.d(TAG, "Unrouting prefix AID " + aid); in clearNfcRoutingTableLocked() 148 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked() 151 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked() [all …]
|
D | RegisteredAidCache.java | 79 String aid; field in RegisteredAidCache.ServiceAidInfo 86 ", aid='" + aid + '\'' + in toString() 98 if (!aid.equals(that.aid)) return false; in equals() 108 result = 31 * result + aid.hashCode(); in hashCode() 162 public AidResolveInfo resolveAid(String aid) { in resolveAid() argument 164 if (DBG) Log.d(TAG, "resolveAid: resolving AID " + aid); in resolveAid() 165 if (aid.length() < 10) { in resolveAid() 174 String shortestAidMatch = aid.substring(0, 10); // Minimum AID length is 5 bytes in resolveAid() 175 String longestAidMatch = String.format("%-32s", aid).replace(' ', 'F'); in resolveAid() 189 if (entryAid.equalsIgnoreCase(aid) || (isPrefix && aid.startsWith(entryAid)) in resolveAid() [all …]
|
D | PreferredServices.java | 256 for (String aid : otherAids) { in isForegroundAllowedLocked() 257 RegisteredAidCache.AidResolveInfo resolveInfo = mAidCache.resolveAid(aid); in isForegroundAllowedLocked() 260 if (DBG) Log.d(TAG, "AID " + aid + " is handled by the default payment app," in isForegroundAllowedLocked()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 407 private void select(byte[] aid) throws IOException { in select() argument 408 int commandSize = (aid == null ? 0 : aid.length) + 5; in select() 414 if (aid != null && aid.length != 0) { in select() 415 selectCommand[4] = (byte) aid.length; in select() 416 System.arraycopy(aid, 0, selectCommand, 5, aid.length); in select() 436 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument 439 if (aid != null && aid.length == 0) { in openBasicChannel() 440 aid = null; in openBasicChannel() 441 } else if (aid != null && (aid.length < 5 || aid.length > 16)) { in openBasicChannel() 458 channelAccess = setUpChannelAccess(aid, packageName, pid, true); in openBasicChannel() [all …]
|
D | SecureElementService.java | 87 public synchronized boolean[] isNFCEventAllowed(String reader, byte[] aid, 90 if (aid == null || aid.length == 0) { 91 aid = new byte[]{0x00, 0x00, 0x00, 0x00, 0x00}; 93 if (aid.length < 5 || aid.length > 16) { 100 return terminal.isNfcEventAllowed(getPackageManager(), aid, packageNames); 301 public ISecureElementChannel openBasicChannel(byte[] aid, byte p2, in openBasicChannel() argument 305 + ByteArrayConverter.byteArrayToHexString(aid) + ", P2 = " + p2); in openBasicChannel() 321 channel = mReader.getTerminal().openBasicChannel(this, aid, p2, listener, in openBasicChannel() 343 public ISecureElementChannel openLogicalChannel(byte[] aid, byte p2, in openLogicalChannel() argument 347 + ByteArrayConverter.byteArrayToHexString(aid) + ", P2 = " + p2); in openLogicalChannel() [all …]
|
D | Channel.java | 57 byte[] selectResponse, byte[] aid, ISecureElementListener listener) { in Channel() argument 66 mAid = aid; in Channel()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | BrowseTree.java | 145 AvrcpItem.Builder aid = new AvrcpItem.Builder(); in BrowseNode() local 146 aid.setDevice(player.getDevice()); in BrowseNode() 147 aid.setUid(player.getId()); in BrowseNode() 148 aid.setUuid(UUID.randomUUID().toString()); in BrowseNode() 149 aid.setDisplayableName(player.getName()); in BrowseNode() 150 aid.setTitle(player.getName()); in BrowseNode() 151 aid.setBrowsable(player.supportsFeature(AvrcpPlayer.FEATURE_BROWSING)); in BrowseNode() 152 mItem = aid.build(); in BrowseNode() 159 AvrcpItem.Builder aid = new AvrcpItem.Builder(); in BrowseNode() local 160 aid.setDevice(device); in BrowseNode() [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | AID_REF_DO.java | 60 public AID_REF_DO(int tag, byte[] aid) { in AID_REF_DO() argument 61 super(aid, tag, 0, (aid == null ? 0 : aid.length)); in AID_REF_DO() 62 if (aid != null) mAid = aid; in AID_REF_DO()
|
/packages/apps/Nfc/nci/jni/ |
D | HciEventManager.cpp | 49 void HciEventManager::notifyTransactionListenersOfAid(std::vector<uint8_t> aid, in notifyTransactionListenersOfAid() argument 52 if (aid.empty()) { in notifyTransactionListenersOfAid() 60 ScopedLocalRef<jobject> aidJavaArray(e, e->NewByteArray(aid.size())); in notifyTransactionListenersOfAid() 62 e->SetByteArrayRegion((jbyteArray)aidJavaArray.get(), 0, aid.size(), in notifyTransactionListenersOfAid() 63 (jbyte*)&aid[0]); in notifyTransactionListenersOfAid() 163 std::vector<uint8_t> aid(event_buff.begin() + 2, in nfaHciCallback() local 175 getInstance().notifyTransactionListenersOfAid(aid, data, evtSrc); in nfaHciCallback()
|
D | RouteDataSet.cpp | 51 AidBuffer::AidBuffer(std::string& aid) : mBuffer(NULL), mBufferLen(0) { in AidBuffer() argument 55 std::string::size_type pos2 = aid.find_first_of(delimiter); in AidBuffer() 58 mBuffer = new uint8_t[aid.length()]; in AidBuffer() 62 sscanf(aid.substr(pos1).c_str(), "%x", &num); in AidBuffer() 67 sscanf(aid.substr(pos1, pos2 - pos1 + 1).c_str(), "%x", &num); in AidBuffer() 71 pos2 = aid.find_first_of(delimiter, pos1); in AidBuffer()
|
D | RoutingManager.h | 39 bool addAidRouting(const uint8_t* aid, uint8_t aidLen, int route, int aidInfo, 41 bool removeAidRouting(const uint8_t* aid, uint8_t aidLen);
|
D | HciEventManager.h | 34 void notifyTransactionListenersOfAid(std::vector<uint8_t> aid,
|
D | RoutingManager.cpp | 301 bool RoutingManager::addAidRouting(const uint8_t* aid, uint8_t aidLen, in addAidRouting() argument 317 NFA_EeAddAidRouting(route, aidLen, (uint8_t*)aid, powerState, aidInfo); in addAidRouting() 330 bool RoutingManager::removeAidRouting(const uint8_t* aid, uint8_t aidLen) { in removeAidRouting() argument 335 tNFA_STATUS nfaStat = NFA_EeRemoveAidRouting(aidLen, (uint8_t*)aid); in removeAidRouting()
|
/packages/apps/SecureElement/src/com/android/se/security/ |
D | AccessControlEnforcer.java | 274 public ChannelAccess setUpChannelAccess(byte[] aid, String packageName, boolean checkRefreshTag) in setUpChannelAccess() argument 284 channelAccess = internal_setUpChannelAccess(aid, packageName, in setUpChannelAccess() 301 private synchronized ChannelAccess internal_setUpChannelAccess(byte[] aid, in internal_setUpChannelAccess() argument 318 return getAccessRule(aid, appCertHashes); in internal_setUpChannelAccess() 328 byte[] aid, List<byte []> appCertHashes) in getAccessRule() argument 340 channelAccess = mAccessRuleCache.findAccessRule(aid, appCertHashes); in getAccessRule() 385 public synchronized boolean[] isNfcEventAllowed(byte[] aid, in isNfcEventAllowed() argument 388 return internal_isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed() 401 private synchronized boolean[] internal_isNfcEventAllowed(byte[] aid, in internal_isNfcEventAllowed() argument 413 ChannelAccess channelAccess = getAccessRule(aid, appCertHashes); in internal_isNfcEventAllowed()
|
D | AccessRuleCache.java | 71 private static AID_REF_DO getAidRefDo(byte[] aid) { in getAidRefDo() argument 73 if (aid == null || Arrays.equals(aid, defaultAid)) { in getAidRefDo() 76 return new AID_REF_DO(AID_REF_DO.TAG, aid); in getAidRefDo() 243 public ChannelAccess findAccessRule(byte[] aid, List<byte[]> appCertHashes) in findAccessRule() argument 245 ChannelAccess ca = findAccessRuleInternal(aid, appCertHashes); in findAccessRule() 269 private ChannelAccess findAccessRuleInternal(byte[] aid, List<byte[]> appCertHashes) in findAccessRuleInternal() argument 282 AID_REF_DO aid_ref_do = getAidRefDo(aid); in findAccessRuleInternal() 313 aid_ref_do = getAidRefDo(aid); in findAccessRuleInternal()
|
/packages/apps/SecureElement/src/com/android/se/security/arf/PKCS15/ |
D | EFACRules.java | 80 byte[] aid = null; in decodeDER() 91 aid = der.getTLVData(); in decodeDER() 95 aid = null; in decodeDER() 99 aid = DEFAULT_APP; in decodeDER() 111 EFACConditions temp = new EFACConditions(mSEHandle, new AID_REF_DO(tag, aid)); in decodeDER()
|
D | EFDIR.java | 71 private byte[] decodeDER(byte[] buffer, byte[] aid) throws PKCS15Exception { in decodeDER() argument 76 if (!Arrays.equals(der.getTLVData(), aid)) return null; // Record for another AID in decodeDER() 97 public byte[] lookupAID(byte[] aid) throws IOException, PKCS15Exception, in lookupAID() argument 107 if ((ODFPath = decodeDER(data, aid)) != null) break; in lookupAID()
|
D | PKCS15Handler.java | 202 private boolean selectACRulesContainer(byte[] aid) throws IOException, MissingResourceException, in selectACRulesContainer() argument 204 if (aid == null) { in selectACRulesContainer() 227 mArfChannel = mSEHandle.openLogicalArfChannel(aid); in selectACRulesContainer()
|
/packages/apps/SecureElement/src/com/android/se/security/ara/ |
D | AraController.java | 109 byte[] aid = null; in initialize() 114 aid = ByteArrayConverter.hexStringToByteArray(araAid); in initialize() 116 aid = null; in initialize() 119 channel = mTerminal.openLogicalChannelWithoutChannelAccess(aid); in initialize() 123 mAccessControlAid = aid; in initialize()
|
/packages/services/Car/procfs-inspector/server/ |
D | server.cpp | 25 uid_t aid = uid % AID_USER_OFFSET; in isSystemUser() local 26 switch (aid) { in isSystemUser() 32 ALOGE("aid %u (uid %u) is not root nor system - access denied", aid, uid); in isSystemUser()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | DeviceHost.java | 51 public void onNfcTransactionEvent(byte[] aid, byte[] data, String seName); in onNfcTransactionEvent() argument 193 public boolean routeAid(byte[] aid, int route, int aidInfo, int power); in routeAid() argument 195 public boolean unrouteAid(byte[] aid); in unrouteAid() argument
|
D | NfcService.java | 432 public void onNfcTransactionEvent(byte[] aid, byte[] data, String seName) { in onNfcTransactionEvent() argument 433 byte[][] dataObj = {aid, data, seName.getBytes()}; in onNfcTransactionEvent() 2367 public void routeAids(String aid, int route, int aidInfo, int power) { in routeAids() argument 2371 msg.obj = aid; in routeAids() 2381 public void unrouteAids(String aid) { in unrouteAids() argument 2382 sendMessage(MSG_UNROUTE_AID, aid); in unrouteAids() 2450 String aid = (String) msg.obj; in handleMessage() local 2458 mDeviceHost.routeAid(hexStringToBytes(aid), route, aidInfo, power); in handleMessage() 2463 String aid = (String) msg.obj; in handleMessage() local 2464 mDeviceHost.unrouteAid(hexStringToBytes(aid)); in handleMessage() [all …]
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 133 public native boolean routeAid(byte[] aid, int route, int aidInfo, int power); in routeAid() argument 136 public native boolean unrouteAid(byte[] aid); in unrouteAid() argument 455 private void notifyTransactionListeners(byte[] aid, byte[] data, String evtSrc) { in notifyTransactionListeners() argument 456 mListener.onNfcTransactionEvent(aid, data, evtSrc); in notifyTransactionListeners()
|
/packages/apps/SecureElement/src/com/android/se/security/arf/ |
D | SecureElement.java | 103 public Channel openLogicalArfChannel(byte[] aid) throws IOException, MissingResourceException, in openLogicalArfChannel() argument 106 mArfChannel = mTerminalHandle.openLogicalChannelWithoutChannelAccess(aid); in openLogicalArfChannel()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phFriNfc_MifareStdMap.cpp | 231 NdefMap->StdMifareContainer.aid[index] = in phFriNfc_MifareStdMap_H_Reset() 1279 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] = in phFriNfc_MifStd_H_fillAIDarray() 1293 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] = in phFriNfc_MifStd_H_fillAIDarray() 1297 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] = in phFriNfc_MifStd_H_fillAIDarray() 1327 NdefMap->StdMifareContainer.aid[byteindex] = in phFriNfc_MifStd_H_fillAIDarray() 1337 NdefMap->StdMifareContainer.aid[byteindex] = in phFriNfc_MifStd_H_fillAIDarray() 1348 NdefMap->StdMifareContainer.aid[byteindex] = in phFriNfc_MifStd_H_fillAIDarray() 1445 if (NdefMap->StdMifareContainer.aid[SectorID] == in phFriNfc_MifStd_H_BlkChk() 1747 (NdefMap->StdMifareContainer.aid[index] == in phFriNfc_MifStd_H_ChkNdefCmpltSects() 1755 if (NdefMap->StdMifareContainer.aid[index] == in phFriNfc_MifStd_H_ChkNdefCmpltSects() [all …]
|