Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 55) sorted by relevance

123

/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphFriNfc_NdefMap.h124 uint16_t internalLength;
130 uint16_t NoOfNdefCompBlocks;
165 uint16_t remainingSize;
170 uint16_t aidCompleteFlag;
173 uint16_t NFCforumSectFlag;
176 uint16_t ProprforumSectFlag;
178 uint16_t ChkNdefCompleteFlag;
184 uint16_t WrLength;
220 uint16_t NdefTLVByte;
244 uint16_t prevLenByteValue;
[all …]
DphNxpExtns_MifareStd.cpp41 uint8_t* buff, uint16_t* buffSz);
63 uint16_t* buffSz);
65 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t* buff, uint16_t* buffSz);
71 static NFCSTATUS nativeNfcExtns_doTransceive(uint8_t* buff, uint16_t buffSz);
74 uint16_t* SendRecvBuffLen);
210 NdefMap->SendRecvLength = (uint16_t*)malloc(sizeof(uint16_t)); in phNxpExtns_MfcModuleInit()
214 memset(NdefMap->SendRecvLength, 0, sizeof(uint16_t)); in phNxpExtns_MfcModuleInit()
216 NdefMap->DataCount = (uint16_t*)malloc(sizeof(uint16_t)); in phNxpExtns_MfcModuleInit()
220 memset(NdefMap->DataCount, 0, sizeof(uint16_t)); in phNxpExtns_MfcModuleInit()
802 uint16_t* SendRecvBuffLen) { in phFriNfc_NdefSmtCrd_Reset__()
[all …]
DphNxpExtns_MifareStd.h125 uint16_t wLen; /* Buffer length*/
149 uint16_t NdefSendRecvLen;
174 uint16_t len;
181 typedef void (*CallBackMifare_t)(void*, uint16_t);
216 uint16_t SendLength,
217 uint16_t* SendRecvLength);
DphFriNfc_SmtCrdFmt.h73 uint16_t CurrentBlock; /* Stores the current block */
107 uint16_t* SendRecvLength; /* Holds the length of the received data */
109 uint16_t SendLength; /* Holds the length of the data to be sent */
123 uint8_t* SendRecvBuffer, uint16_t* SendRecvBuffLen);
DphFriNfc_MifareStdMap.cpp55 uint16_t* TempLength,
58 uint16_t TempLength);
630 (NdefMap->ApduBuffIndex < (uint16_t)NdefMap->ApduBufferSize)) { in phFriNfc_MifareStdMap_Process()
942 if (NdefMap->ApduBuffIndex < (uint16_t)NdefMap->ApduBufferSize) { in phFriNfc_MifStd_H_RdABlock()
994 uint16_t RemainingBytes = 0, BytesRemained = 0, index = 0; in phFriNfc_MifStd_H_WrABlock()
1004 if (NdefMap->ApduBuffIndex < (uint16_t)NdefMap->ApduBufferSize) { in phFriNfc_MifStd_H_WrABlock()
1006 (((uint16_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) < in phFriNfc_MifStd_H_WrABlock()
1008 ? (uint16_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) in phFriNfc_MifStd_H_WrABlock()
1105 } else if (NdefMap->ApduBuffIndex == (uint16_t)NdefMap->ApduBufferSize) { in phFriNfc_MifStd_H_WrABlock()
1796 uint16_t RemainingBytes = 0; in phFriNfc_MifStd_H_RemainTLV()
[all …]
/packages/modules/DnsResolver/
Dres_mkquery.cpp90 constexpr uint16_t kEdns0Padding = 128;
143 *reinterpret_cast<uint16_t*>(cp) = htons(type); in res_nmkquery()
145 *reinterpret_cast<uint16_t*>(cp) = htons(cl); in res_nmkquery()
156 *reinterpret_cast<uint16_t*>(cp) = htons(ns_t_null); in res_nmkquery()
158 *reinterpret_cast<uint16_t*>(cp) = htons(cl); in res_nmkquery()
162 *reinterpret_cast<uint16_t*>(cp) = htons(0); in res_nmkquery()
173 *reinterpret_cast<uint16_t*>(cp) = htons(type); in res_nmkquery()
175 *reinterpret_cast<uint16_t*>(cp) = htons(cl); in res_nmkquery()
179 *reinterpret_cast<uint16_t*>(cp) = htons(datalen); in res_nmkquery()
201 uint16_t flags = 0; in res_nopt()
[all …]
DDnsTlsQueryMap.cpp43 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery()
58 void DnsTlsQueryMap::markTried(uint16_t newId) { in markTried()
83 uint16_t maxId = mQueries.rbegin()->first; in getFreeId()
92 uint16_t nextId = 0; in getFreeId()
94 uint16_t id = pair.first; in getFreeId()
133 uint16_t id = response[0] << 8 | response[1]; in onResponse()
DDnsTlsSocket.cpp405 bool DnsTlsSocket::query(uint16_t id, const Slice query) { in query()
410 uint16_t len = query.size() + 2; // + 2 for the ID. in query()
497 constexpr uint16_t MAX_SIZE = 8192; in readResponse()
498 const uint16_t responseSize = (responseHeader[0] << 8) | responseHeader[1]; in readResponse()
505 uint16_t remainingBytes = responseSize - response.size(); in readResponse()
507 constexpr uint16_t CHUNK_SIZE = 2048; in readResponse()
DDnsTlsQueryMap.h41 uint16_t newId;
75 void markTried(uint16_t newId);
98 std::map<uint16_t, QueryPromise> mQueries GUARDED_BY(mLock);
Dresolv_tls_unit_test.cpp89 bytevec make_query(uint16_t id, size_t size) { in make_query()
102 const uint16_t ID = 52;
103 const uint16_t SIZE = 22;
119 bytevec make_echo(uint16_t id, const Slice query) { in make_echo()
132 bool query(uint16_t id, const Slice query) override { in query()
158 bool query(uint16_t id, const Slice query ATTRIBUTE_UNUSED) override { in query()
223 bool query(uint16_t id, const Slice query) override { in query()
255 std::set<uint16_t> mIds GUARDED_BY(mLock);
443 bool query(uint16_t id ATTRIBUTE_UNUSED, in query()
491 bool query(uint16_t id, const Slice query) override { in query()
[all …]
Dres_send.cpp359 int ttype = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
361 int tclass = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
401 int ttype = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_queriesmatch()
403 int tclass = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_queriesmatch()
758 uint16_t len = htons(static_cast<uint16_t>(buflen)); in send_vc()
798 uint16_t resplen = ntohs(*reinterpret_cast<const uint16_t*>(ans)); in send_vc()
/packages/apps/Nfc/nci/jni/
DPeerToPeer.h184 bool createClient(tJNI_HANDLE jniHandle, uint16_t miu, uint8_t rw);
224 bool send(tJNI_HANDLE jniHandle, uint8_t* buffer, uint16_t bufferLen);
239 bool receive(tJNI_HANDLE jniHandle, uint8_t* buffer, uint16_t bufferLen,
240 uint16_t& actualLen);
264 uint16_t getRemoteMaxInfoUnit(tJNI_HANDLE jniHandle);
380 uint16_t mRemoteWKS; // Peer's well known services
565 uint16_t mMaxInfoUnit;
567 uint16_t mRemoteMaxInfoUnit;
DDataQueue.h62 bool enqueue(uint8_t* data, uint16_t dataLen);
76 bool dequeue(uint8_t* buffer, uint16_t bufferMaxLen, uint16_t& actualLen);
91 uint16_t mDataLen; // number of octets of data
92 uint16_t mOffset; // offset of the first octet of data
DDataQueue.cpp78 bool DataQueue::enqueue(uint8_t* data, uint16_t dataLen) { in enqueue()
113 bool DataQueue::dequeue(uint8_t* buffer, uint16_t bufferMaxLen, in dequeue()
114 uint16_t& actualLen) { in dequeue()
DRoutingManager.h92 map<int, uint16_t> mMapScbrHandle;
106 uint16_t mDefaultSysCode;
107 uint16_t mDefaultSysCodeRoute;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_properties.h41 const uint16_t depth, const uint16_t leavingDepth, const WordIdArrayView prevWordIds) { in init()
93 uint16_t getDepth() const { in getDepth()
98 uint16_t getLeavingDepth() const { in getLeavingDepth()
125 uint16_t mDepth;
126 uint16_t mLeavingDepth;
Ddic_node_state_output.h77 void addMergedNodeCodePoints(const uint16_t mergedNodeCodePointCount, in addMergedNodeCodePoints()
85 mOutputtedCodePointCount = static_cast<uint16_t>( in addMergedNodeCodePoints()
138 uint16_t mOutputtedCodePointCount;
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h73 uint16_t rtype;
74 uint16_t rclass;
76 uint16_t rdlen;
106 uint16_t id;
109 uint16_t qdcount;
110 uint16_t ancount;
111 uint16_t nscount;
112 uint16_t arcount;
Ddns_responder.cpp233 if (cur + 2 * sizeof(uint16_t) > buffer_end) { in read()
237 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read()
238 qclass = ntohs(*reinterpret_cast<const uint16_t*>(cur + sizeof(uint16_t))); in read()
239 return cur + 2 * sizeof(uint16_t); in read()
245 if (buffer_cur + 2 * sizeof(uint16_t) > buffer_end) { in write()
249 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write()
250 *reinterpret_cast<uint16_t*>(buffer_cur + sizeof(uint16_t)) = htons(qclass); in write()
251 return buffer_cur + 2 * sizeof(uint16_t); in write()
1026 reinterpret_cast<uint16_t*>(response)[0] = htons(header->id); // bytes 0-1: id in makeResponseFromBinaryPacket()
1093 const uint16_t qlen = (queryMessageLengthField[0] << 8) | queryMessageLengthField[1]; in handleQuery()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp101 uint16_t data_len = (uint16_t)env->GetArrayLength(ba); in toVector()
207 void btgattc_scan_result_cb(uint16_t event_type, uint8_t addr_type, in btgattc_scan_result_cb()
211 uint16_t periodic_adv_int, in btgattc_scan_result_cb()
260 int status, uint16_t handle) { in btgattc_register_for_notification_cb()
304 void btgattc_write_characteristic_cb(int conn_id, int status, uint16_t handle) { in btgattc_write_characteristic_cb()
338 void btgattc_write_descriptor_cb(int conn_id, int status, uint16_t handle) { in btgattc_write_descriptor_cb()
522 void btgattc_conn_updated_cb(int conn_id, uint16_t interval, uint16_t latency, in btgattc_conn_updated_cb()
523 uint16_t timeout, uint8_t status) { in btgattc_conn_updated_cb()
731 void btgatts_conn_updated_cb(int conn_id, uint16_t interval, uint16_t latency, in btgatts_conn_updated_cb()
732 uint16_t timeout, uint8_t status) { in btgatts_conn_updated_cb()
[all …]
Dcom_android_bluetooth_avrcp_target.cpp47 static uint16_t getCurrentPlayerId();
50 static void setBrowsedPlayer(uint16_t player_id, SetBrowsedPlayerCb);
52 static void getFolderItems(uint16_t player_id, std::string media_id,
54 static void playItem(uint16_t player_id, bool now_playing,
100 uint16_t current_player = getCurrentPlayerId(); in GetMediaPlayerList()
105 void GetFolderItems(uint16_t player_id, std::string media_id, in GetFolderItems()
110 void SetBrowsedPlayer(uint16_t player_id, in SetBrowsedPlayer()
124 void PlayItem(uint16_t player_id, bool now_playing, in PlayItem()
535 static uint16_t getCurrentPlayerId() { in getCurrentPlayerId()
608 static void setBrowsedPlayer(uint16_t player_id, SetBrowsedPlayerCb cb) { in setBrowsedPlayer()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node.h140 uint16_t newDepth = static_cast<uint16_t>(dicNode->getNodeCodePointCount() + 1); in initAsChild()
142 const uint16_t newLeavingDepth = static_cast<uint16_t>( in initAsChild()
223 const uint16_t currentDepth = getNodeCodePointCount(); in shouldBeFilteredBySafetyNetForBigram()
397 inline uint16_t getNodeCodePointCount() const { in getNodeCodePointCount()
402 inline uint16_t getTotalNodeCodePointCount() const { in getTotalNodeCodePointCount()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/msinttypes/
Dstdint.h125 typedef unsigned short uint16_t; typedef
132 typedef unsigned __int16 uint16_t; typedef
145 typedef uint16_t uint_least16_t;
155 typedef uint16_t uint_fast16_t;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h72 static AK_FORCE_INLINE uint16_t readUint16(const uint8_t *const buffer, const int pos) { in readUint16()
105 static AK_FORCE_INLINE uint16_t readUint16AndAdvancePosition( in readUint16AndAdvancePosition()
107 const uint16_t value = readUint16(buffer, *pos); in readUint16AndAdvancePosition()
279 const uint16_t data, int *const pos) { in writeUint16AndAdvancePosition()
/packages/apps/Nfc/nci/jni/extns/pn54x/src/common/
DphNfcTypes.h34 typedef uint16_t NFCSTATUS; /* Return values */
275 uint16_t* ServiceCodeList; /* 2 Byte service Code List */
276 uint16_t* Blocklist; /* 2 Byte Block list */

123