/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()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 396 private void select(byte[] aid) throws IOException { in select() argument 397 int commandSize = (aid == null ? 0 : aid.length) + 5; in select() 403 if (aid != null && aid.length != 0) { in select() 404 selectCommand[4] = (byte) aid.length; in select() 405 System.arraycopy(aid, 0, selectCommand, 5, aid.length); in select() 425 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument 428 if (aid != null && aid.length == 0) { in openBasicChannel() 429 aid = null; in openBasicChannel() 430 } else if (aid != null && (aid.length < 5 || aid.length > 16)) { in openBasicChannel() 447 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 | 142 AvrcpItem.Builder aid = new AvrcpItem.Builder(); in BrowseNode() local 143 aid.setDevice(player.getDevice()); in BrowseNode() 144 aid.setUid(player.getId()); in BrowseNode() 145 aid.setUuid(UUID.randomUUID().toString()); in BrowseNode() 146 aid.setDisplayableName(player.getName()); in BrowseNode() 147 aid.setTitle(player.getName()); in BrowseNode() 148 aid.setBrowsable(player.supportsFeature(AvrcpPlayer.FEATURE_BROWSING)); in BrowseNode() 149 mItem = aid.build(); in BrowseNode() 156 AvrcpItem.Builder aid = new AvrcpItem.Builder(); in BrowseNode() local 157 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/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/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 | 919 static jboolean nfcManager_routeAid(JNIEnv* e, jobject, jbyteArray aid, in nfcManager_routeAid() argument 924 if (aid == NULL) { in nfcManager_routeAid() 930 ScopedByteArrayRO bytes(e, aid); in nfcManager_routeAid() 948 static jboolean nfcManager_unrouteAid(JNIEnv* e, jobject, jbyteArray aid) { in nfcManager_unrouteAid() argument 952 if (aid == NULL) { in nfcManager_unrouteAid() 957 ScopedByteArrayRO bytes(e, aid); in nfcManager_unrouteAid()
|
D | RoutingManager.cpp | 301 bool RoutingManager::addAidRouting(const uint8_t* aid, uint8_t aidLen, in addAidRouting() argument 312 NFA_EeAddAidRouting(route, aidLen, (uint8_t*)aid, powerState, aidInfo); in addAidRouting() 325 bool RoutingManager::removeAidRouting(const uint8_t* aid, uint8_t aidLen) { in removeAidRouting() argument 330 tNFA_STATUS nfaStat = NFA_EeRemoveAidRouting(aidLen, (uint8_t*)aid); in removeAidRouting()
|
/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/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 | 405 public void onNfcTransactionEvent(byte[] aid, byte[] data, String seName) { in onNfcTransactionEvent() argument 406 byte[][] dataObj = {aid, data, seName.getBytes()}; in onNfcTransactionEvent() 2052 public void routeAids(String aid, int route, int aidInfo) { in routeAids() argument 2056 msg.obj = aid; in routeAids() 2061 public void unrouteAids(String aid) { in unrouteAids() argument 2062 sendMessage(MSG_UNROUTE_AID, aid); in unrouteAids() 2130 String aid = (String) msg.obj; in handleMessage() local 2131 mDeviceHost.routeAid(hexStringToBytes(aid), route, aidInfo); in handleMessage() 2136 String aid = (String) msg.obj; in handleMessage() local 2137 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() 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 …]
|