/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 | 64 String aid; field in RegisteredAidCache.ServiceAidInfo 71 ", aid='" + aid + '\'' + in toString() 83 if (!aid.equals(that.aid)) return false; in equals() 93 result = 31 * result + aid.hashCode(); in hashCode() 147 public AidResolveInfo resolveAid(String aid) { in resolveAid() argument 149 if (DBG) Log.d(TAG, "resolveAid: resolving AID " + aid); in resolveAid() 150 if (aid.length() < 10) { in resolveAid() 159 String shortestAidMatch = aid.substring(0, 10); // Minimum AID length is 5 bytes in resolveAid() 160 String longestAidMatch = String.format("%-32s", aid).replace(' ', 'F'); in resolveAid() 174 if (entryAid.equalsIgnoreCase(aid) || (isPrefix && aid.startsWith(entryAid)) in resolveAid() [all …]
|
D | PreferredServices.java | 255 for (String aid : otherAids) { in isForegroundAllowedLocked() 256 RegisteredAidCache.AidResolveInfo resolveInfo = mAidCache.resolveAid(aid); in isForegroundAllowedLocked() 259 if (DBG) Log.d(TAG, "AID " + aid + " is handled by the default payment app," in isForegroundAllowedLocked()
|
D | RegisteredServicesCache.java | 562 for (String aid : aids) { in registerAidGroupForService() 563 if (!CardEmulation.isValidAid(aid)) { in registerAidGroupForService() 564 Log.e(TAG, "AID " + aid + " is not a valid AID"); in registerAidGroupForService()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 346 private void select(byte[] aid) throws IOException { in select() argument 347 int commandSize = (aid == null ? 0 : aid.length) + 5; in select() 353 if (aid != null && aid.length != 0) { in select() 354 selectCommand[4] = (byte) aid.length; in select() 355 System.arraycopy(aid, 0, selectCommand, 5, aid.length); in select() 375 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument 378 if (aid != null && aid.length == 0) { in openBasicChannel() 379 aid = null; in openBasicChannel() 380 } else if (aid != null && (aid.length < 5 || aid.length > 16)) { in openBasicChannel() 394 channelAccess = setUpChannelAccess(aid, packageName, pid); in openBasicChannel() [all …]
|
D | SecureElementService.java | 83 public synchronized boolean[] isNFCEventAllowed(String reader, byte[] aid, 86 if (aid == null || aid.length == 0) { 87 aid = new byte[]{0x00, 0x00, 0x00, 0x00, 0x00}; 89 if (aid.length < 5 || aid.length > 16) { 96 return terminal.isNfcEventAllowed(getPackageManager(), aid, packageNames); 254 public ISecureElementChannel openBasicChannel(byte[] aid, byte p2, in openBasicChannel() argument 258 + ByteArrayConverter.byteArrayToHexString(aid) + ", P2 = " + p2); in openBasicChannel() 277 channel = mReader.getTerminal().openBasicChannel(this, aid, p2, listener, in openBasicChannel() 297 public ISecureElementChannel openLogicalChannel(byte[] aid, byte p2, in openLogicalChannel() argument 301 + 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/SecureElement/src/com/android/se/security/ |
D | AccessControlEnforcer.java | 271 public ChannelAccess setUpChannelAccess(byte[] aid, String packageName, boolean checkRefreshTag) in setUpChannelAccess() argument 281 channelAccess = internal_setUpChannelAccess(aid, packageName, in setUpChannelAccess() 298 private synchronized ChannelAccess internal_setUpChannelAccess(byte[] aid, in internal_setUpChannelAccess() argument 315 return getAccessRule(aid, appCertHashes); in internal_setUpChannelAccess() 325 byte[] aid, List<byte []> appCertHashes) in getAccessRule() argument 337 channelAccess = mAccessRuleCache.findAccessRule(aid, appCertHashes); in getAccessRule() 382 public synchronized boolean[] isNfcEventAllowed(byte[] aid, in isNfcEventAllowed() argument 385 return internal_isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed() 398 private synchronized boolean[] internal_isNfcEventAllowed(byte[] aid, in internal_isNfcEventAllowed() argument 410 ChannelAccess channelAccess = getAccessRule(aid, appCertHashes); in internal_isNfcEventAllowed()
|
D | AccessRuleCache.java | 69 private static AID_REF_DO getAidRefDo(byte[] aid) { in getAidRefDo() argument 71 if (aid == null || Arrays.equals(aid, defaultAid)) { in getAidRefDo() 74 return new AID_REF_DO(AID_REF_DO.TAG, aid); in getAidRefDo() 258 public ChannelAccess findAccessRule(byte[] aid, List<byte[]> appCertHashes) in findAccessRule() argument 260 ChannelAccess ca = findAccessRuleInternal(aid, appCertHashes); in findAccessRule() 283 private ChannelAccess findAccessRuleInternal(byte[] aid, List<byte[]> appCertHashes) in findAccessRuleInternal() argument 296 AID_REF_DO aid_ref_do = getAidRefDo(aid); in findAccessRuleInternal() 327 aid_ref_do = getAidRefDo(aid); in findAccessRuleInternal()
|
/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, 41 bool removeAidRouting(const uint8_t* aid, uint8_t aidLen);
|
D | NativeNfcManager.cpp | 887 static jboolean nfcManager_routeAid(JNIEnv* e, jobject, jbyteArray aid, in nfcManager_routeAid() argument 892 if (aid == NULL) { in nfcManager_routeAid() 898 ScopedByteArrayRO bytes(e, aid); in nfcManager_routeAid() 916 static jboolean nfcManager_unrouteAid(JNIEnv* e, jobject, jbyteArray aid) { in nfcManager_unrouteAid() argument 920 if (aid == NULL) { in nfcManager_unrouteAid() 925 ScopedByteArrayRO bytes(e, aid); in nfcManager_unrouteAid()
|
D | RoutingManager.cpp | 265 bool RoutingManager::addAidRouting(const uint8_t* aid, uint8_t aidLen, in addAidRouting() argument 276 NFA_EeAddAidRouting(route, aidLen, (uint8_t*)aid, powerState, aidInfo); in addAidRouting() 289 bool RoutingManager::removeAidRouting(const uint8_t* aid, uint8_t aidLen) { in removeAidRouting() argument 294 tNFA_STATUS nfaStat = NFA_EeRemoveAidRouting(aidLen, (uint8_t*)aid); in removeAidRouting()
|
D | HciEventManager.h | 34 void notifyTransactionListenersOfAid(std::vector<uint8_t> aid,
|
/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/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/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 133 public native boolean routeAid(byte[] aid, int route, int aidInfo); in routeAid() argument 136 public native boolean unrouteAid(byte[] aid); in unrouteAid() argument 440 private void notifyTransactionListeners(byte[] aid, byte[] data, String evtSrc) { in notifyTransactionListeners() argument 441 mListener.onNfcTransactionEvent(aid, data, evtSrc); in notifyTransactionListeners()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | DeviceHost.java | 51 public void onNfcTransactionEvent(byte[] aid, byte[] data, String seName); in onNfcTransactionEvent() argument 191 public boolean routeAid(byte[] aid, int route, int aidInfo); in routeAid() argument 193 public boolean unrouteAid(byte[] aid); in unrouteAid() argument
|
D | NfcService.java | 380 public void onNfcTransactionEvent(byte[] aid, byte[] data, String seName) { in onNfcTransactionEvent() argument 381 byte[][] dataObj = {aid, data, seName.getBytes()}; in onNfcTransactionEvent() 1987 public void routeAids(String aid, int route, int aidInfo) { in routeAids() argument 1991 msg.obj = aid; in routeAids() 1996 public void unrouteAids(String aid) { in unrouteAids() argument 1997 sendMessage(MSG_UNROUTE_AID, aid); in unrouteAids() 2061 String aid = (String) msg.obj; in handleMessage() local 2062 mDeviceHost.routeAid(hexStringToBytes(aid), route, aidInfo); in handleMessage() 2067 String aid = (String) msg.obj; in handleMessage() local 2068 mDeviceHost.unrouteAid(hexStringToBytes(aid)); in handleMessage() [all …]
|
/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() 1449 if (NdefMap->StdMifareContainer.aid[SectorID] == in phFriNfc_MifStd_H_BlkChk() 1751 (NdefMap->StdMifareContainer.aid[index] == in phFriNfc_MifStd_H_ChkNdefCmpltSects() 1759 if (NdefMap->StdMifareContainer.aid[index] == in phFriNfc_MifStd_H_ChkNdefCmpltSects() [all …]
|