Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 95) sorted by relevance

1234

/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphFriNfc_NdefMap.h122 uint8_t internalBuf[PH_FRINFC_NDEFMAP_MIFARESTD_ST15_BYTES];
126 uint8_t currentBlock;
128 uint8_t NdefBlocks;
132 uint8_t internalBufFlag;
134 uint8_t RemainingBufFlag;
136 uint8_t ReadWriteCompleteFlag;
138 uint8_t ReadCompleteFlag;
140 uint8_t WriteFlag;
142 uint8_t ReadFlag;
144 uint8_t RdBeforeWrFlag;
[all …]
DphFriNfc_SmtCrdFmt.h66 uint8_t Default_KeyA_OR_B[6]; /* Stores the Default KeyA and KeyB values */
67 uint8_t MADSect_KeyA[6]; /* Key A of MAD sector */
68 uint8_t NFCForumSect_KeyA[6]; /* Key A of NFC Forum Sector sector */
69 uint8_t MADSect_AccessBits[3]; /* Access Bits of MAD sector */
70 uint8_t NFCForumSect_AccessBits[3]; /* Access Bits of NFC Forum sector */
71 uint8_t ScrtKeyB[6]; /* Secret key B to given by the application */
72 uint8_t AuthState; /* Status of the different authentication */
74 uint8_t NoOfDevices; /* Stores the current block */
75 uint8_t SectCompl[40]; /* Store the compliant sectors */
76 uint8_t WrMADBlkFlag; /* Flag to know that MAD sector */
[all …]
DphNxpExtns_MifareStd.h28 extern uint8_t current_key[];
125 uint8_t*
138 uint8_t bParamsNumsPresent; /* Holds number of params available for this
140 uint8_t bParam[2]; /* Req/Res: Param[0] = Param1, Param[1] = Param2 */
147 uint8_t NdefContinueRead;
155 uint8_t is_ndef;
177 uint8_t p_data[NCI_MAX_DATA_LEN];
205 uint8_t writecmdFlag;
206 uint8_t RawWriteCallBack;
212 uint8_t incrdecflag;
[all …]
DphFriNfc_MifStdFormat.cpp50 const uint8_t* RecvBuf,
51 const uint8_t AcsBits1[],
52 const uint8_t AcsBits2[]);
55 static void phFriNfc_MfStd_H_NdefComplSect(uint8_t CardTypes, uint8_t Sector[]);
97 uint8_t NfcForSectArray[] = PH_FRINFC_SMTCRDFMT_NFCFORUMSECT_KEYA_ACS_BIT, in phFriNfc_MfStd_Reset()
133 (uint8_t)PH_FRINFC_MFSTD_FMT_VAL_0; in phFriNfc_MfStd_Reset()
135 (uint8_t)PH_FRINFC_MFSTD_FMT_NOT_A_MAD_BLK; in phFriNfc_MfStd_Reset()
153 const uint8_t* ScrtKeyB) { in phFriNfc_MfStd_Format()
156 uint8_t index = PH_FRINFC_MFSTD_FMT_VAL_0; in phFriNfc_MfStd_Format()
296 uint8_t MADSectTr1k[] = in phFriNfc_MfStd_H_FillSendBuf()
[all …]
DphNxpExtns_MifareStd.cpp38 uint8_t current_key[6] = {0};
41 uint8_t* buff, uint16_t* buffSz);
58 phNfc_sTransceiveInfo_t* pTransceiveInfo, uint8_t* bKey);
59 static NFCSTATUS phLibNfc_GetKeyNumberMFC(uint8_t* buffer, uint8_t* bKey);
60 static void phLibNfc_CalSectorAddress(uint8_t* Sector_Address);
62 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t bBlockAddr, uint8_t* buff,
65 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t* buff, uint16_t* buffSz);
71 static NFCSTATUS nativeNfcExtns_doTransceive(uint8_t* buff, uint16_t buffSz);
73 phFriNfc_sNdefSmtCrdFmt_t* NdefSmtCrdFmt, uint8_t* SendRecvBuffer,
75 static NFCSTATUS phFriNfc_ValidateParams(uint8_t* PacketData,
[all …]
DphFriNfc_MifareStdMap.cpp33 static uint8_t phFriNfc_MifStd_H_GetSect(uint8_t BlockNumber);
40 uint8_t* Flag,
41 uint8_t* Temp16Bytes);
44 uint8_t* Flag,
45 uint8_t* TempintBytes);
46 static uint8_t phFriNfc_MifStd_H_UpdateTLV(phFriNfc_NdefMap_t* NdefMap);
53 uint8_t* CRFlag);
56 uint8_t* TL4bytesFlag);
60 uint8_t* CRFlag,
61 uint8_t* NDEFFlag);
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/common/
DphNciNfcTypes.h161 uint8_t bFormatByte; /* Format Byte */
162 uint8_t bIByteTA; /* Interface Byte TA(1) */
163 uint8_t bIByteTB; /* Interface Byte TB(1) */
164 uint8_t bIByteTC; /* Interface Byte TC(1) */
165 uint8_t bHistByte[PH_NCINFCTYPES_MAX_HIST_BYTES]; /* Historical Bytes - Max
175 uint8_t Uid[PH_NCINFCTYPES_MAX_UID_LENGTH]; /* UID information of the TYPE A
178 uint8_t UidLength; /* UID information length, shall not be greater
180 uint8_t AppData[PH_NCINFCTYPES_MAX_ATR_LENGTH]; /* Application data
183 uint8_t AppDataLength; /* Application data length */
184 uint8_t Sak; /* SAK information of the TYPE ATag Discovered
[all …]
DphNfcTypes.h32 typedef uint8_t utf8_t; /* UTF8 Character String */
33 typedef uint8_t bool_t; /* boolean data type */
46 uint8_t* buffer; /* Buffer to store data */
97 uint8_t* pLogFile; /* Log File Name*/
180 uint8_t Uid[PHNFC_MAX_UID_LENGTH]; /* UID information of the TYPE A
182 uint8_t UidLength; /* UID information length */
183 uint8_t
187 uint8_t AppDataLength; /* Application data length */
188 uint8_t Sak; /* SAK information of the TYPE A
190 uint8_t AtqA[PHNFC_ATQA_LENGTH]; /* ATQA informationof the TYPE A
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, in writeUintAndAdvancePosition()
63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { in readUint32()
68 static AK_FORCE_INLINE uint32_t readUint24(const uint8_t *const buffer, const int pos) { in readUint24()
72 static AK_FORCE_INLINE uint16_t readUint16(const uint8_t *const buffer, const int pos) { in readUint16()
76 static AK_FORCE_INLINE uint8_t readUint8(const uint8_t *const buffer, const int pos) { in readUint8()
81 const uint8_t *const buffer, int *const pos) { in readUint32AndAdvancePosition()
88 const uint8_t *const buffer, int *const pos) { in readSint24AndAdvancePosition()
89 const uint8_t value = readUint8(buffer, *pos); in readSint24AndAdvancePosition()
99 const uint8_t *const buffer, int *const pos) { in readUint24AndAdvancePosition()
106 const uint8_t *const buffer, int *const pos) { in readUint16AndAdvancePosition()
[all …]
/packages/services/Car/evs/sampleDriver/
DbufferCopy.cpp68 void fillNV21FromNV21(const BufferDesc& tgtBuff, uint8_t* tgt, void* imgData, unsigned) { in fillNV21FromNV21()
85 void fillNV21FromYUYV(const BufferDesc& tgtBuff, uint8_t* tgt, void* imgData, unsigned imgStride) { in fillNV21FromYUYV()
96 uint8_t Y1; in fillNV21FromYUYV()
97 uint8_t U; in fillNV21FromYUYV()
98 uint8_t Y2; in fillNV21FromYUYV()
99 uint8_t V; in fillNV21FromYUYV()
117 uint8_t* yTopRow = tgt + (cellRow*2) * strideLum; in fillNV21FromYUYV()
118 uint8_t* yBotRow = yTopRow + strideLum; in fillNV21FromYUYV()
119 uint8_t* uvRow = (tgt + sizeY) + cellRow * strideColor; in fillNV21FromYUYV()
127 const uint8_t uValue = (pTopMacroPixel->U + pBotMacroPixel->U) >> 1; in fillNV21FromYUYV()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.h39 bool addAidRouting(const uint8_t* aid, uint8_t aidLen, int route,
41 bool removeAidRouting(const uint8_t* aid, uint8_t aidLen);
43 int registerT3tIdentifier(uint8_t* t3tId, uint8_t t3tIdLen);
56 void handleData(uint8_t technology, const uint8_t* data, uint32_t dataLen,
58 void notifyActivated(uint8_t technology);
59 void notifyDeactivated(uint8_t technology);
76 static void stackCallback(uint8_t event, tNFA_CONN_EVT_DATA* eventData);
77 static void nfcFCeCallback(uint8_t event, tNFA_CONN_EVT_DATA* eventData);
91 std::vector<uint8_t> mRxDataBuffer;
98 vector<uint8_t> mOffHostRouteUicc;
[all …]
DHciEventManager.cpp26 uint8_t HciEventManager::sEsePipe;
27 uint8_t HciEventManager::sSimPipe;
49 void HciEventManager::notifyTransactionListenersOfAid(std::vector<uint8_t> aid, in notifyTransactionListenersOfAid()
50 std::vector<uint8_t> data, in notifyTransactionListenersOfAid()
96 std::vector<uint8_t> HciEventManager::getDataFromBerTlv( in getDataFromBerTlv()
97 std::vector<uint8_t> berTlv) { in getDataFromBerTlv()
99 return std::vector<uint8_t>(); in getDataFromBerTlv()
108 return std::vector<uint8_t>(berTlv.begin() + 1, berTlv.end()); in getDataFromBerTlv()
112 return std::vector<uint8_t>(berTlv.begin() + 2, berTlv.end()); in getDataFromBerTlv()
117 return std::vector<uint8_t>(berTlv.begin() + 3, berTlv.end()); in getDataFromBerTlv()
[all …]
DRoutingManager.cpp59 static const uint8_t SYS_CODE_PWR_STATE_HOST = 0x01;
62 static const uint8_t AID_ROUTE_QUAL_PREFIX = 0x10;
97 std::vector<uint8_t> pSysCode = NfcConfig::getBytes(NAME_DEFAULT_SYS_CODE); in RoutingManager()
265 bool RoutingManager::addAidRouting(const uint8_t* aid, uint8_t aidLen, in addAidRouting()
269 uint8_t powerState = 0x01; in addAidRouting()
276 NFA_EeAddAidRouting(route, aidLen, (uint8_t*)aid, powerState, aidInfo); in addAidRouting()
289 bool RoutingManager::removeAidRouting(const uint8_t* aid, uint8_t aidLen) { in removeAidRouting()
294 tNFA_STATUS nfaStat = NFA_EeRemoveAidRouting(aidLen, (uint8_t*)aid); in removeAidRouting()
330 uint8_t actualNumEe = MAX_NUM_EE; in onNfccShutdown()
340 for (uint8_t xx = 0; xx < actualNumEe; xx++) { in onNfccShutdown()
[all …]
DNativeNfcTag.cpp90 static std::basic_string<uint8_t> sRxDataBuffer;
96 static uint8_t* sReadData = NULL;
233 sReadData = (uint8_t*)malloc(sReadDataLen); in ndefHandlerCallback()
289 sReadData = (uint8_t*)malloc(1); in nativeNfcTag_doRead()
355 uint8_t buffer[maxBufferSize] = {0}; in nativeNfcTag_doWrite()
359 uint8_t* p_data = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>( in nativeNfcTag_doWrite()
382 static uint8_t mfc_key1[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; in nativeNfcTag_doWrite()
383 static uint8_t mfc_key2[6] = {0xD3, 0xF7, 0xD3, 0xF7, 0xD3, 0xF7}; in nativeNfcTag_doWrite()
827 void nativeNfcTag_doTransceiveStatus(tNFA_STATUS status, uint8_t* buf, in nativeNfcTag_doTransceiveStatus()
904 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>( in nativeNfcTag_doTransceive()
[all …]
/packages/services/Car/evs/app/
DFormatConvert.cpp61 uint8_t* src, in copyNV21toRGB32()
72 uint8_t* srcY = src; in copyNV21toRGB32()
73 uint8_t* srcUV = src+offsetUV; in copyNV21toRGB32()
77 uint8_t* rowY = srcY + r*strideLum; in copyNV21toRGB32()
78 uint8_t* rowUV = srcUV + (r/2 * strideColor); in copyNV21toRGB32()
92 uint8_t* src, in copyYV12toRGB32()
106 uint8_t* srcY = src; in copyYV12toRGB32()
107 uint8_t* srcU = src+offsetU; in copyYV12toRGB32()
108 uint8_t* srcV = src+offsetV; in copyYV12toRGB32()
112 uint8_t* rowY = srcY + r*strideLum; in copyYV12toRGB32()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp48 std::array<uint8_t, Uuid::kNumBytes128> uu; in from_java_uuid()
100 static std::vector<uint8_t> toVector(JNIEnv* env, jbyteArray ba) { in toVector()
103 std::vector<uint8_t> data_vec(data_data, data_data + data_len); in toVector()
208 void btgattc_scan_result_cb(uint16_t event_type, uint8_t addr_type, in btgattc_scan_result_cb()
209 RawAddress* bda, uint8_t primary_phy, in btgattc_scan_result_cb()
210 uint8_t secondary_phy, uint8_t advertising_sid, in btgattc_scan_result_cb()
213 std::vector<uint8_t> adv_data) { in btgattc_scan_result_cb()
296 uint8_t value = 0; in btgattc_read_characteristic_cb()
374 int num_records, std::vector<uint8_t> data) { in btgattc_batchscan_reports_cb()
514 void btgattc_phy_updated_cb(int conn_id, uint8_t tx_phy, uint8_t rx_phy, in btgattc_phy_updated_cb()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp148 const RawAddress& bd_addr, uint8_t accepted) { in btavrcp_setplayerapplicationsetting_rsp_callback()
172 const RawAddress& bd_addr, uint8_t num_attr, in btavrcp_playerapplicationsetting_callback()
173 btrc_player_app_attr_t* app_attrs, uint8_t num_ext_attr, in btavrcp_playerapplicationsetting_callback()
269 uint8_t abs_vol, uint8_t label) { in btavrcp_set_abs_vol_cmd_callback()
293 const RawAddress& bd_addr, uint8_t label) { in btavrcp_register_notification_absvol_callback()
318 uint8_t num_attr, in btavrcp_track_changed_callback()
425 const btrc_folder_items_t* folder_items, uint8_t count) { in btavrcp_get_folder_items_callback()
560 sizeof(uint8_t))); in btavrcp_get_folder_items_callback()
567 sizeof(uint8_t) * BTRC_FEATURE_BIT_MASK_SIZE, in btavrcp_get_folder_items_callback()
630 uint8_t num_items, in btavrcp_set_browsed_player_callback()
[all …]
Dcom_android_bluetooth_hid_device.cpp93 static void get_report_callback(uint8_t type, uint8_t id, in get_report_callback()
101 static void set_report_callback(uint8_t type, uint8_t id, uint16_t len, in set_report_callback()
102 uint8_t* p_data) { in set_report_callback()
117 static void set_protocol_callback(uint8_t protocol) { in set_protocol_callback()
123 static void intr_data_callback(uint8_t report_id, uint16_t len, in intr_data_callback()
124 uint8_t* p_data) { in intr_data_callback()
248 out->service_type = (uint8_t)buf[0]; in fill_qos()
274 uint8_t* data; in registerAppNative()
277 data = (uint8_t*)malloc(size); in registerAppNative()
345 uint8_t* buf; in sendReportNative()
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dutf8_utils.h40 static const uint8_t FIRST_BYTE_MARKER_MASKS[];
41 static const uint8_t FIRST_BYTE_MARKERS[];
42 static const uint8_t FIRST_BYTE_CODE_POINT_BITS_MASKS[];
45 static const uint8_t TRAILING_BYTE_CODE_POINT_BITS_MASK;
46 static const uint8_t TRAILING_BYTE_MARKER;
49 static int getSequenceSizeByCheckingFirstByte(const uint8_t firstByte);
50 static int maskFirstByte(const uint8_t firstByte, const int encodeSize);
51 static int maskTrailingByte(const uint8_t secondOrLaterByte);
Dutf8_utils.cpp25 const uint8_t Utf8Utils::FIRST_BYTE_MARKER_MASKS[] = {0, 0x80, 0xE0, 0xF0, 0xF8};
26 const uint8_t Utf8Utils::FIRST_BYTE_MARKERS[] = {0, 0x00, 0xC0, 0xE0, 0xF0};
27 const uint8_t Utf8Utils::FIRST_BYTE_CODE_POINT_BITS_MASKS[] = {0, 0x7F, 0x1F, 0x0F, 0x03};
30 const uint8_t Utf8Utils::TRAILING_BYTE_CODE_POINT_BITS_MASK = 0x3F;
31 const uint8_t Utf8Utils::TRAILING_BYTE_MARKER = 0x80;
65 /* static */ int Utf8Utils::getSequenceSizeByCheckingFirstByte(const uint8_t firstByte) { in getSequenceSizeByCheckingFirstByte()
75 /* static */ AK_FORCE_INLINE int Utf8Utils::maskFirstByte(const uint8_t firstByte, in maskFirstByte()
80 /* static */ AK_FORCE_INLINE int Utf8Utils::maskTrailingByte(const uint8_t secondOrLaterByte) { in maskTrailingByte()
/packages/apps/Nfc/nci/jni/extns/pn54x/inc/
DphNxpExtns.h31 NFCSTATUS EXTNS_MfcWriteNDef(uint8_t* pBuf, uint32_t len);
32 NFCSTATUS EXTNS_MfcFormatTag(uint8_t* key, uint8_t len);
35 NFCSTATUS EXTNS_MfcTransceive(uint8_t* p_data, uint32_t len);
38 NFCSTATUS EXTNS_MfcCallBack(uint8_t* buf, uint32_t buflen);
39 NFCSTATUS EXTNS_MfcSetReadOnly(uint8_t* key, uint8_t len);
46 NFCSTATUS EXTNS_CheckMfcResponse(uint8_t** sTransceiveData,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.h31 typedef uint8_t NodeFlags;
33 static int getPtNodeArraySizeAndAdvancePosition(const uint8_t *const buffer, int *const pos);
35 static NodeFlags getFlagsAndAdvancePosition(const uint8_t *const buffer, int *const pos);
37 static int getCodePointAndAdvancePosition(const uint8_t *const buffer,
41 static int getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags,
46 static int skipCharacters(const uint8_t *const buffer, const NodeFlags flags,
49 static int readProbabilityAndAdvancePosition(const uint8_t *const buffer, int *const pos);
51 static int readChildrenPositionAndAdvancePosition(const uint8_t *const buffer,
108 static void readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos,
Dpatricia_trie_reading_utils.cpp48 const uint8_t *const buffer, int *const pos) { in getPtNodeArraySizeAndAdvancePosition()
49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getPtNodeArraySizeAndAdvancePosition()
59 const uint8_t *const buffer, int *const pos) { in getFlagsAndAdvancePosition()
63 /* static */ int PtReadingUtils::getCodePointAndAdvancePosition(const uint8_t *const buffer, in getCodePointAndAdvancePosition()
69 /* static */ int PtReadingUtils::getCharsAndAdvancePosition(const uint8_t *const buffer, in getCharsAndAdvancePosition()
95 /* static */ int PtReadingUtils::skipCharacters(const uint8_t *const buffer, const NodeFlags flags, in skipCharacters()
109 /* static */ int PtReadingUtils::readProbabilityAndAdvancePosition(const uint8_t *const buffer, in readProbabilityAndAdvancePosition()
115 const uint8_t *const buffer, const NodeFlags flags, int *const pos) { in readChildrenPositionAndAdvancePosition()
136 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, in readPtNodeInfo()
/packages/apps/Nfc/nci/jni/extns/pn54x/src/
DphNxpExtns.cpp111 NFCSTATUS EXTNS_MfcCallBack(uint8_t* buf, uint32_t buflen) { in EXTNS_MfcCallBack()
243 NFCSTATUS EXTNS_MfcSetReadOnly(uint8_t* key, uint8_t len) { in EXTNS_MfcSetReadOnly()
276 NFCSTATUS EXTNS_MfcWriteNDef(uint8_t* p_data, uint32_t len) { in EXTNS_MfcWriteNDef()
307 NFCSTATUS EXTNS_MfcFormatTag(uint8_t* key, uint8_t len) { in EXTNS_MfcFormatTag()
389 NFCSTATUS EXTNS_MfcTransceive(uint8_t* p_data, uint32_t len) { in EXTNS_MfcTransceive()
450 status = Mfc_RecvPacket((uint8_t*)msg->pMsgData, msg->Size); in phNxpExtns_ProcessSysMessage()
466 status = Mfc_WriteNdef((uint8_t*)msg->pMsgData, msg->Size); in phNxpExtns_ProcessSysMessage()
470 status = Mfc_FormatNdef((uint8_t*)msg->pMsgData, msg->Size); in phNxpExtns_ProcessSysMessage()
482 status = Mfc_Transceive((uint8_t*)msg->pMsgData, msg->Size); in phNxpExtns_ProcessSysMessage()
486 status = Mfc_SetReadOnly((uint8_t*)msg->pMsgData, msg->Size); in phNxpExtns_ProcessSysMessage()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dallocatorstest.cpp25 uint8_t* p = (uint8_t*)a.Malloc(100); in TestAllocator()
28 p[i] = (uint8_t)i; in TestAllocator()
31 uint8_t* q = (uint8_t*)a.Realloc(p, 100, 200); in TestAllocator()
36 q[i] = (uint8_t)i; in TestAllocator()
39 uint8_t *r = (uint8_t*)a.Realloc(q, 200, 150); in TestAllocator()

1234