Lines Matching refs:channel
86 std::shared_ptr<aidl::android::se::omapi::ISecureElementChannel> channel; in testSelectableAid() local
103 res = session->openLogicalChannel(aid, 0x00, seListener, &channel); in testSelectableAid()
105 ASSERT_NE(channel, nullptr) << "Could not open channel"; in testSelectableAid()
107 res = channel->getSelectResponse(&selectResponse); in testSelectableAid()
111 if (channel != nullptr) channel->close(); in testSelectableAid()
127 std::shared_ptr<aidl::android::se::omapi::ISecureElementChannel> channel; in testUnauthorisedAid() local
143 res = session->openLogicalChannel(aid, 0x00, seListener, &channel); in testUnauthorisedAid()
145 if (channel != nullptr) channel->close(); in testUnauthorisedAid()
162 std::shared_ptr<aidl::android::se::omapi::ISecureElementChannel> channel; in testTransmitAPDU() local
179 res = session->openLogicalChannel(aid, 0x00, seListener, &channel); in testTransmitAPDU()
181 ASSERT_NE(channel, nullptr) << "Could not open channel"; in testTransmitAPDU()
183 res = channel->getSelectResponse(&selectResponse); in testTransmitAPDU()
191 res = channel->transmit(apdu, &transmitResponse); in testTransmitAPDU()
194 if (channel != nullptr) channel->close(); in testTransmitAPDU()
207 std::shared_ptr<aidl::android::se::omapi::ISecureElementChannel> channel; in testUnauthorisedAPDU() local
224 res = session->openLogicalChannel(aid, 0x00, seListener, &channel); in testUnauthorisedAPDU()
226 ASSERT_NE(channel, nullptr) << "Could not open channel"; in testUnauthorisedAPDU()
228 res = channel->getSelectResponse(&selectResponse); in testUnauthorisedAPDU()
236 res = channel->transmit(apdu, &transmitResponse); in testUnauthorisedAPDU()
240 if (channel != nullptr) channel->close(); in testUnauthorisedAPDU()