Home
last modified time | relevance | path

Searched refs:cardIndex (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Disodep_card_handler.cpp185 cardIndex = index; in IsSupportedTransportCard()
199 checkCmdApdu = cardInfoVec_[cardIndex].checkApdus[i]; in MatchCity()
206 if (!CheckApduResponse(rspApdu, cardIndex)) { in MatchCity()
221 if (cardInfoVec_[cardIndex].rspContain == "") { in CheckApduResponse()
247 if (cardIndex >= cardInfoVec_.size()) { in GetBalance()
248 ErrorLog("invalid input cardIndex[%{public}u]", cardIndex); in GetBalance()
254 uint8_t apduNum = cardInfoVec_[cardIndex].balanceApdus.size(); in GetBalance()
256 getBalanceCmdApdu = cardInfoVec_[cardIndex].balanceApdus[i]; in GetBalance()
295 if (cardIndex >= cardInfoVec_.size()) { in GetCardName()
296 ErrorLog("invalid input cardIndex[%{public}u]", cardIndex); in GetCardName()
[all …]
H A Dtag_dispatcher.cpp314 uint8_t cardIndex = INVALID_CARD_INDEX; in PublishTagNotification() local
318 if (isodepCardHandler_->IsSupportedTransportCard(tagDiscId, cardIndex)) { in PublishTagNotification()
319 isodepCardHandler_->GetBalance(tagDiscId, cardIndex, balance); in PublishTagNotification()
323 isodepCardHandler_->GetCardName(cardIndex, cardName); in PublishTagNotification()
/ohos5.0/foundation/communication/nfc/test/unittest/services/isodep_card_handler_test/
H A Disodep_card_handler_test.cpp75 uint8_t cardIndex = 0; variable
77 bool res = isodepCardHandler->IsSupportedTransportCard(rfDiscId, cardIndex);
90 uint8_t cardIndex = 0; variable
93 isodepCardHandler->GetBalance(rfDiscId, cardIndex, balance);
105 uint8_t cardIndex = 0; variable
108 isodepCardHandler->GetCardName(cardIndex, cardName);
/ohos5.0/foundation/communication/nfc/services/include/
H A Disodep_card_handler.h59 bool IsSupportedTransportCard(uint32_t rfDiscId, uint8_t &cardIndex);
60 void GetBalance(uint32_t rfDiscId, uint8_t cardIndex, int &balance);
61 void GetCardName(uint8_t cardIndex, std::string &cardName);
64 bool MatchCity(uint32_t rfDiscId, uint8_t cardIndex);
65 bool CheckApduResponse(const std::string &response, uint8_t cardIndex);
/ohos5.0/foundation/communication/nfc/test/fuzztest/services_test/isodepcardhandler_test/isodepcardhandler/isodepcardhandler_fuzzer/
H A Disodepcardhandler_fuzzer.cpp48 uint8_t cardIndex = static_cast<uint8_t>(data[0]); in FuzzGetCardName() local
52 isodepCardHandler->GetCardName(cardIndex, cardName); in FuzzGetCardName()