/aosp_15_r20/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | AidRoutingManager.java | 58 //Let mDefaultRoute as default aid route 83 // Easy look-up what the route is for a certain AID 85 // Easy look-up what the power is for a certain AID 131 String aid = aidEntry.getKey(); in calculateAidRouteSize() local 133 if(aid.endsWith("*")) { in calculateAidRouteSize() 134 routeTableSize += ((aid.length() - 0x01) / 0x02) + AID_HDR_LENGTH; in calculateAidRouteSize() 136 routeTableSize += (aid.length() / 0x02)+ AID_HDR_LENGTH; in calculateAidRouteSize() 145 String aid = aidEntry.getKey(); in clearNfcRoutingTableLocked() local 146 if (aid.endsWith("*")) { in clearNfcRoutingTableLocked() 148 Log.e(TAG, "Device does not support prefix AIDs but AID [" + aid in clearNfcRoutingTableLocked() [all …]
|
D | RegisteredAidCache.java | 87 // mAidCache is a lookup table for quickly mapping an exact or prefix or subset AID 94 // Represents a single AID registration of a service 97 String aid; field in RegisteredAidCache.ServiceAidInfo 104 ", aid='" + aid + '\'' + in toString() 116 if (!aid.equals(that.aid)) return false; in equals() 126 result = 31 * result + aid.hashCode(); in hashCode() 133 // an AID was resolved to. 138 boolean mustRoute = true; // Whether this AID should be routed at all 198 if (DBG) Log.d(TAG, "Controller supports AID prefix routing"); in RegisteredAidCache() 201 if (DBG) Log.d(TAG, "Controller supports AID subset routing"); in RegisteredAidCache() [all …]
|
/aosp_15_r20/build/make/tools/fs_config/ |
H A D | fs_config_generator.py | 94 def get_login_and_uid_cleansed(aid): argument 97 This checks that the logon and uid of the AID do not 101 aid (AID): The aid to check 104 logon, uid of the AID after checking its safe. 109 logon = aid.friendly 110 uid = aid.normalized_value 121 class AID(object): class 122 """This class represents an Android ID or an AID. 129 friendly (str): The friendly name of aid. 147 value: The value of the AID, aka the uid. [all …]
|
H A D | test_fs_config_generator.py | 8 from fs_config_generator import AID 46 """Test AID class constructor""" 48 aid = AID('AID_FOO_BAR', '0xFF', 'myfakefile', '/system/bin/sh') 49 self.assertEqual(aid.identifier, 'AID_FOO_BAR') 50 self.assertEqual(aid.value, '0xFF') 51 self.assertEqual(aid.found, 'myfakefile') 52 self.assertEqual(aid.normalized_value, '255') 53 self.assertEqual(aid.friendly, 'foo_bar') 54 self.assertEqual(aid.login_shell, '/system/bin/sh') 56 aid = AID('AID_MEDIA_EX', '1234', 'myfakefile', '/vendor/bin/sh') [all …]
|
/aosp_15_r20/frameworks/base/nfc/java/android/nfc/cardemulation/ |
H A D | AidGroup.java | 77 throw new IllegalArgumentException("No AIDS in AID group."); in AidGroup() 80 throw new IllegalArgumentException("Too many AIDs in AID group."); in AidGroup() 82 for (String aid : aids) { in AidGroup() 83 if (!isValidAid(aid)) { in AidGroup() 84 throw new IllegalArgumentException("AID " + aid + " is not a valid AID."); in AidGroup() 93 for (String aid : aids) { in AidGroup() 94 this.mAids.add(aid.toUpperCase(Locale.US)); in AidGroup() 113 * @return the category of this AID group 136 for (String aid : mAids) { in toString() 137 out.append(aid); in toString() [all …]
|
H A D | ApduServiceInfo.java | 124 * Mapping from category to static AID group 129 * Mapping from category to dynamic AID group 371 // Parsed values for the current AID group in ApduServiceInfo() 375 if (eventType == XmlPullParser.START_TAG && "aid-group".equals(tagName) && in ApduServiceInfo() 379 // Get category of AID group in ApduServiceInfo() 390 Log.e(TAG, "Not allowing multiple aid-groups in the " + in ApduServiceInfo() 398 } else if (eventType == XmlPullParser.END_TAG && "aid-group".equals(tagName) && in ApduServiceInfo() 405 Log.e(TAG, "Not adding <aid-group> with empty or invalid AIDs"); in ApduServiceInfo() 408 } else if (eventType == XmlPullParser.START_TAG && "aid-filter".equals(tagName) && in ApduServiceInfo() 412 String aid = a.getString(com.android.internal.R.styleable.AidFilter_name). in ApduServiceInfo() local [all …]
|
H A D | HostApduService.java | 60 * "SELECT AID" APDU as defined in the ISO/IEC 7816-4 specification. 61 * The AID is an application identifier defined in ISO/IEC 7816-4. 65 * AID, you are free to use AIDs in the proprietary range: 67 * "0xF00102030405" is a proprietary AID. If you do use proprietary 68 * AIDs, it is recommended to choose an AID of at least 6 bytes, 72 * <h3>AID groups</h3> 78 * <p>An AID group is a list of AIDs that should be considered as 79 * belonging together by the OS. For all AIDs in an AID group, the 87 * <h3>AID groups and categories</h3> 88 * <p>Each AID group can be associated with a category. This allows [all …]
|
H A D | OffHostApduService.java | 47 * "SELECT AID" APDU as defined in the ISO/IEC 7816-4 specification. 48 * The AID is an application identifier defined in ISO/IEC 7816-4. 52 * AID, you are free to use AIDs in the proprietary range: 54 * "0xF00102030405" is a proprietary AID. If you do use proprietary 55 * AIDs, it is recommended to choose an AID of at least 6 bytes, 59 * <h3>AID groups</h3> 65 * <p>An AID group is a list of AIDs that should be considered as 66 * belonging together by the OS. For all AIDs in an AID group, the 75 * <h3>AID groups and categories</h3> 76 * <p>Each AID group can be associated with a category. This allows [all …]
|
H A D | CardEmulation.java | 146 * or {@link OffHostApduService}, whenever an Application ID (AID) of this category 157 * if the Application ID (AID) selected by the reader has been registered by multiple 158 * services. If there is only one service that has registered for the AID, 251 * to share the same AID routing priority when this application is the role holder. 329 * is the default for a specific AID. 349 * @param aid The ISO7816-4 Application ID 350 * @return whether the service is the default handler for the specified AID 354 public boolean isDefaultServiceForAid(ComponentName service, String aid) { in isDefaultServiceForAid() argument 357 mContext.getUser().getIdentifier(), service, aid), false); in isDefaultServiceForAid() 621 * @param offHostSecureElement Secure Element to register the AID to. Only accept strings with [all …]
|
/aosp_15_r20/hardware/interfaces/secure_element/aidl/default/ |
H A D | main.cpp | 35 using Aid = std::vector<uint8_t>; typedef 165 virtual RawApdu Select(Aid const& aid, uint8_t p2) = 0; 182 se::RawApdu Select(se::Aid const& aid, uint8_t /*p2*/) override { in Select() argument 183 if (aid[aid.size() - 1] == 0x31) { in Select() 184 // AID: A000000476416E64726F696443545331 in Select() 187 // AID: A000000476416E64726F696443545332 in Select() 412 applets_.push_back(std::pair{se::Aid{0xA0, 0x00, 0x00, 0x04, 0x76, 0x41, 0x6E, 0x64, 0x72, in EmulatedSecureElement() 416 applets_.push_back(std::pair{se::Aid{0xA0, 0x00, 0x00, 0x04, 0x76, 0x41, 0x6E, 0x64, 0x72, in EmulatedSecureElement() 466 ScopedAStatus openBasicChannel(const std::vector<uint8_t>& aid, int8_t p2, in openBasicChannel() argument 468 LOG(INFO) << __func__ << " aid: " << HexString(aid.data(), aid.size()) << " (" << aid.size() in openBasicChannel() [all …]
|
/aosp_15_r20/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 478 * is performed with the default access control aid. 494 private void select(byte[] aid) throws IOException { in select() argument 495 int commandSize = (aid == null ? 0 : aid.length) + 5; in select() 501 if (aid != null && aid.length != 0) { in select() 502 selectCommand[4] = (byte) aid.length; in select() 503 System.arraycopy(aid, 0, selectCommand, 5, aid.length); in select() 521 * Opens a Basic Channel with the given AID and P2 paramters 524 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument 528 if (aid != null && aid.length == 0) { in openBasicChannel() 529 aid = null; in openBasicChannel() [all …]
|
/aosp_15_r20/frameworks/base/omapi/java/android/se/omapi/ |
H A D | Session.java | 142 * If the AID is null, it means no Applet is to be selected on this channel and the default 143 * Applet is used. If the AID is defined then the corresponding Applet is selected. 181 * @param aid the AID of the Applet to be selected on this channel, as a 188 * @throws IllegalArgumentException if the aid's length is not within 5 to 191 * access to this AID or the default Applet on this 193 * @throws NoSuchElementException if the AID on the Secure Element is not available or cannot be 199 public @Nullable Channel openBasicChannel(@Nullable byte[] aid, @Nullable byte p2) in openBasicChannel() argument 207 ISecureElementChannel channel = mSession.openBasicChannel(aid, p2, in openBasicChannel() 230 * This method is equivalent to openBasicChannel(aid, P2=0x00) 232 * @param aid the AID of the Applet to be selected on this channel, as a [all …]
|
/aosp_15_r20/frameworks/rs/support/java/src/androidx/renderscript/ |
H A D | ScriptIntrinsicBLAS.java | 337 long aID = A.getID(mRS); in SGEMV() local 341 aID = getDummyAlloc(A); in SGEMV() 345 …cBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, in… in SGEMV() local 369 long aID = A.getID(mRS); in DGEMV() local 373 aID = getDummyAlloc(A); in DGEMV() 377 …cBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, in… in DGEMV() local 401 long aID = A.getID(mRS); in CGEMV() local 405 aID = getDummyAlloc(A); in CGEMV() 409 …x(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, aID, xID, beta.x, beta.… in CGEMV() local 433 long aID = A.getID(mRS); in ZGEMV() local [all …]
|
/aosp_15_r20/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RadioSimProxy.java | 105 * @param aid Application ID 108 public void changeIccPin2ForApp(int serial, String oldPin2, String newPin2, String aid) in changeIccPin2ForApp() argument 112 mSimProxy.changeIccPin2ForApp(serial, oldPin2, newPin2, aid); in changeIccPin2ForApp() 114 mRadioProxy.changeIccPin2ForApp(serial, oldPin2, newPin2, aid); in changeIccPin2ForApp() 123 * @param aid Application ID 126 public void changeIccPinForApp(int serial, String oldPin, String newPin, String aid) in changeIccPinForApp() argument 130 mSimProxy.changeIccPinForApp(serial, oldPin, newPin, aid); in changeIccPinForApp() 132 mRadioProxy.changeIccPinForApp(serial, oldPin, newPin, aid); in changeIccPinForApp() 232 * @param aid Application ID 235 public void getImsiForApp(int serial, String aid) throws RemoteException { in getImsiForApp() argument [all …]
|
/aosp_15_r20/out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V4-java-source/gen/android/hardware/radio/sim/ |
D | IRadioSim.java | 52 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 58 …rial, java.lang.String oldPin2, java.lang.String newPin2, java.lang.String aid) throws android.os.… in changeIccPin2ForApp() argument 67 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 73 …serial, java.lang.String oldPin, java.lang.String newPin, java.lang.String aid) throws android.os.… in changeIccPinForApp() argument 147 * @param appId is AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 173 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 179 …@Override public void getImsiForApp(int serial, java.lang.String aid) throws android.os.RemoteExce… in getImsiForApp() argument 252 * @param aid AID value, See ETSI 102.221 and 101.220. 259 …@Override public void iccOpenLogicalChannel(int serial, java.lang.String aid, int p2) throws andro… in iccOpenLogicalChannel() argument 266 * name commands. "sessionId" field is always 0 (for aid="") and may be ignored. [all …]
|
/aosp_15_r20/external/libese/apps/boot/card/src/com/android/verifiedboot/storage/ |
H A D | GlobalStateImpl.java | 21 import javacard.framework.AID; 57 * Returns the index of the given AID in clientApplets 60 * @param aid The client applet AID to find. 62 private short findClientApplet(AID aid) { in findClientApplet() argument 67 if (((AID)clientApplets[i]).equals(aid)) { in findClientApplet() 80 * @param unregister If true, will remove the caller's AID from the registered store. 81 * If false, will add the caller's AID to the register store. 85 final AID aid = JCSystem.getPreviousContextAID(); in notifyOnDataClear() local 94 if (((AID)clientApplets[i]).equals(aid)) { in notifyOnDataClear() 116 clientApplets[firstFreeSlot] = aid; in notifyOnDataClear() [all …]
|
/aosp_15_r20/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | AID_REF_DO.java | 42 * The AID-REF-DO is used for retrieving and storing the corresponding access rules for an SE 43 * application (which is identified by its AID) from and to the ARA. Two different AID reference 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() 102 * <p>Value: AID: identifies a specific application Empty: refers to all SE applications 104 * <p>Length: 5-16 for an AID according to ISO/IEC7816-5 0 for empty value field 113 throw new ParserException("Invalid value length for AID-REF-DO!"); in interpret() 119 throw new ParserException("Invalid value length for AID-REF-DO!"); in interpret() 123 throw new ParserException("Not enough data for AID-REF-DO!"); in interpret() [all …]
|
/aosp_15_r20/hardware/interfaces/radio/aidl/android/hardware/radio/sim/ |
H A D | IRadioSim.aidl | 63 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 69 void changeIccPin2ForApp(in int serial, in String oldPin2, in String newPin2, in String aid); in changeIccPin2ForApp() argument 77 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 83 void changeIccPinForApp(in int serial, in String oldPin, in String newPin, in String aid); in changeIccPinForApp() argument 152 * @param appId is AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 177 * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. 183 void getImsiForApp(in int serial, in String aid); in getImsiForApp() argument 251 * @param aid AID value, See ETSI 102.221 and 101.220. 258 void iccOpenLogicalChannel(in int serial, in String aid, in int p2); in iccOpenLogicalChannel() argument 264 * name commands. "sessionId" field is always 0 (for aid="") and may be ignored. [all …]
|
/aosp_15_r20/packages/apps/SecureElement/src/com/android/se/security/ |
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() 242 /** Find Access Rule for the given AID and Application */ 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 281 /* Search Rule A ( Certificate(s); AID ) */ in findAccessRuleInternal() 282 AID_REF_DO aid_ref_do = getAidRefDo(aid); in findAccessRuleInternal() 298 // now we have to check if the given AID in findAccessRuleInternal() [all …]
|
/aosp_15_r20/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowSecureElementService.java | 44 if (getMockApplet(applet.readerName, applet.aid) != null) { in addMockApplet() 45 throw new IllegalStateException("Applet with that reader name and aid already exists"); in addMockApplet() 50 private static MockApplet getMockApplet(String readerName, byte[] aid) { in getMockApplet() argument 52 if (applet.readerName.equals(readerName) && Arrays.equals(aid, applet.aid)) { in getMockApplet() 61 private final byte[] aid; field in ShadowSecureElementService.MockApplet 67 public MockApplet(String readerName, byte[] aid) { in MockApplet() argument 69 this.aid = aid; in MockApplet() 115 String reader, byte[] aid, String[] packageNames, int userId) { in isNfcEventAllowed() argument 154 private MockApplet getMockApplet(byte[] aid) { in getMockApplet() argument 155 return ShadowSecureElementService.getMockApplet(name, aid); in getMockApplet() [all …]
|
/aosp_15_r20/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/ |
H A D | MockSimService.java | 139 // Key: AID Value: list of SIM IO (command-respond) data 185 private void initSimAppData(int simappid, String aid, String path, boolean status) { in initSimAppData() argument 187 mAid = aid; in initSimAppData() 194 public SimAppData(int simappid, String aid, String path) { in SimAppData() argument 195 initSimAppData(simappid, aid, path, false); in SimAppData() 198 public SimAppData(int simappid, String aid, String path, boolean status) { in SimAppData() argument 199 initSimAppData(simappid, aid, path, status); in SimAppData() 564 private int getSimAppDataIndexByAid(String aid) { in getSimAppDataIndexByAid() argument 567 if (aid.equals(mSimAppList.get(idx).getAid())) { in getSimAppDataIndexByAid() 600 String aid, String name, String id, String command, String[] value) { in storeEfData() argument [all …]
|
/aosp_15_r20/prebuilts/vndk/v33/x86/include/generated-headers/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-ndk-source/gen/include/aidl/android/hardware/radio/sim/ |
D | SimRefreshResult.h | 27 std::string aid; variable 33 return std::tie(type, efId, aid) != std::tie(rhs.type, rhs.efId, rhs.aid); 36 return std::tie(type, efId, aid) < std::tie(rhs.type, rhs.efId, rhs.aid); 39 return std::tie(type, efId, aid) <= std::tie(rhs.type, rhs.efId, rhs.aid); 42 return std::tie(type, efId, aid) == std::tie(rhs.type, rhs.efId, rhs.aid); 45 return std::tie(type, efId, aid) > std::tie(rhs.type, rhs.efId, rhs.aid); 48 return std::tie(type, efId, aid) >= std::tie(rhs.type, rhs.efId, rhs.aid); 60 os << ", aid: " << ::android::internal::ToString(aid); in toString()
|
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/generated-headers/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-ndk-source/gen/include/aidl/android/hardware/radio/sim/ |
D | SimRefreshResult.h | 27 std::string aid; variable 33 return std::tie(type, efId, aid) != std::tie(rhs.type, rhs.efId, rhs.aid); 36 return std::tie(type, efId, aid) < std::tie(rhs.type, rhs.efId, rhs.aid); 39 return std::tie(type, efId, aid) <= std::tie(rhs.type, rhs.efId, rhs.aid); 42 return std::tie(type, efId, aid) == std::tie(rhs.type, rhs.efId, rhs.aid); 45 return std::tie(type, efId, aid) > std::tie(rhs.type, rhs.efId, rhs.aid); 48 return std::tie(type, efId, aid) >= std::tie(rhs.type, rhs.efId, rhs.aid); 60 os << ", aid: " << ::android::internal::ToString(aid); in toString()
|
/aosp_15_r20/prebuilts/vndk/v33/arm/include/generated-headers/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-ndk-source/gen/include/aidl/android/hardware/radio/sim/ |
D | SimRefreshResult.h | 27 std::string aid; variable 33 return std::tie(type, efId, aid) != std::tie(rhs.type, rhs.efId, rhs.aid); 36 return std::tie(type, efId, aid) < std::tie(rhs.type, rhs.efId, rhs.aid); 39 return std::tie(type, efId, aid) <= std::tie(rhs.type, rhs.efId, rhs.aid); 42 return std::tie(type, efId, aid) == std::tie(rhs.type, rhs.efId, rhs.aid); 45 return std::tie(type, efId, aid) > std::tie(rhs.type, rhs.efId, rhs.aid); 48 return std::tie(type, efId, aid) >= std::tie(rhs.type, rhs.efId, rhs.aid); 60 os << ", aid: " << ::android::internal::ToString(aid); in toString()
|
/aosp_15_r20/prebuilts/vndk/v33/x86_64/include/generated-headers/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-ndk-source/gen/include/aidl/android/hardware/radio/sim/ |
D | SimRefreshResult.h | 27 std::string aid; variable 33 return std::tie(type, efId, aid) != std::tie(rhs.type, rhs.efId, rhs.aid); 36 return std::tie(type, efId, aid) < std::tie(rhs.type, rhs.efId, rhs.aid); 39 return std::tie(type, efId, aid) <= std::tie(rhs.type, rhs.efId, rhs.aid); 42 return std::tie(type, efId, aid) == std::tie(rhs.type, rhs.efId, rhs.aid); 45 return std::tie(type, efId, aid) > std::tie(rhs.type, rhs.efId, rhs.aid); 48 return std::tie(type, efId, aid) >= std::tie(rhs.type, rhs.efId, rhs.aid); 60 os << ", aid: " << ::android::internal::ToString(aid); in toString()
|