/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | itoa.h | 39 inline char* u32toa(uint32_t value, char* buffer) { in u32toa() 43 const uint32_t d1 = (value / 100) << 1; in u32toa() 44 const uint32_t d2 = (value % 100) << 1; in u32toa() 56 const uint32_t b = value / 10000; in u32toa() 57 const uint32_t c = value % 10000; in u32toa() 59 const uint32_t d1 = (b / 100) << 1; in u32toa() 60 const uint32_t d2 = (b % 100) << 1; in u32toa() 62 const uint32_t d3 = (c / 100) << 1; in u32toa() 63 const uint32_t d4 = (c % 100) << 1; in u32toa() 81 const uint32_t a = value / 100000000; // 1 to 42 in u32toa() [all …]
|
D | dtoa.h | 43 inline unsigned CountDecimalDigit32(uint32_t n) { in CountDecimalDigit32() 60 …static const uint32_t kPow10[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, … in DigitGen() 63 uint32_t p1 = static_cast<uint32_t>(Mp.f >> -one.e); in DigitGen() 69 uint32_t d = 0; in DigitGen()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.h | 230 const uint32_t mData0; 231 const uint32_t mData1; 233 Entry(const uint32_t data0, const uint32_t data1) : mData0(data0), mData1(data1) {} in Entry() 244 AK_FORCE_INLINE uint32_t getKey() const { in getKey() 249 AK_FORCE_INLINE uint32_t getValue() const { in getValue() 259 AK_FORCE_INLINE uint32_t getValueEntryIndex() const { in getValueEntryIndex() 264 AK_FORCE_INLINE uint32_t getBitmap() const { in getBitmap() 284 static const uint32_t VALUE_FLAG; 285 static const uint32_t VALUE_MASK; 286 static const uint32_t INVALID_VALUE_IN_KEY_VALUE_ENTRY; [all …]
|
D | trie_map.cpp | 27 const uint32_t TrieMap::VALUE_FLAG = 0x400000; 28 const uint32_t TrieMap::VALUE_MASK = 0x3FFFFF; 29 const uint32_t TrieMap::INVALID_VALUE_IN_KEY_VALUE_ENTRY = VALUE_MASK; 30 const uint32_t TrieMap::TERMINAL_LINK_FLAG = 0x800000; 31 const uint32_t TrieMap::TERMINAL_LINK_MASK = 0x7FFFFF; 33 const uint32_t TrieMap::LABEL_MASK = 0x1F; 69 const uint32_t unsignedKey = static_cast<uint32_t>(key); in getNextLevelBitmapEntryIndex() 98 const uint32_t unsignedKey = static_cast<uint32_t>(key); in get() 107 const uint32_t unsignedKey = static_cast<uint32_t>(key); in put() 118 const uint32_t unsignedKey = static_cast<uint32_t>(key); in remove() [all …]
|
D | byte_array_utils.h | 37 const uint32_t data, const int size, int *const pos) { 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() 80 static AK_FORCE_INLINE uint32_t readUint32AndAdvancePosition( in readUint32AndAdvancePosition() 82 const uint32_t value = readUint32(buffer, *pos); in readUint32AndAdvancePosition() 98 static AK_FORCE_INLINE uint32_t readUint24AndAdvancePosition( in readUint24AndAdvancePosition() 100 const uint32_t value = readUint24(buffer, *pos); in readUint24AndAdvancePosition() 117 static AK_FORCE_INLINE uint32_t readUint(const uint8_t *const buffer, in readUint() 264 const uint32_t data, int *const pos) { in writeUint32AndAdvancePosition() 272 const uint32_t data, int *const pos) { in writeUint24AndAdvancePosition()
|
D | buffer_with_extendable_buffer.cpp | 26 uint32_t BufferWithExtendableBuffer::readUint(const int size, const int pos) const { in readUint() 32 uint32_t BufferWithExtendableBuffer::readUintAndAdvancePosition(const int size, in readUintAndAdvancePosition() 34 const uint32_t value = readUint(size, *pos); in readUintAndAdvancePosition() 58 bool BufferWithExtendableBuffer::writeUint(const uint32_t data, const int size, const int pos) { in writeUint() 63 bool BufferWithExtendableBuffer::writeUintAndAdvancePosition(const uint32_t data, const int size, in writeUintAndAdvancePosition() 156 const int maxDataChunkSize = sizeof(uint32_t); in copy() 161 const uint32_t data = sourceBuffer->readUint(copyingSize, copyingPos); in copy()
|
D | buffer_with_extendable_buffer.h | 73 uint32_t readUint(const int size, const int pos) const; 75 uint32_t readUintAndAdvancePosition(const int size, int *const pos) const; 97 bool writeUint(const uint32_t data, const int size, const int pos); 99 bool writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos);
|
/packages/services/Car/evs/sampleDriver/ |
D | bufferCopy.cpp | 47 static uint32_t yuvToRgbx(const unsigned char Y, const unsigned char Uin, const unsigned char Vin) { in yuvToRgbx() 94 uint32_t *srcDataYUYV = (uint32_t*)imgData; in fillNV21FromYUYV() 110 uint32_t* topSrcRow = srcDataYUYV; in fillNV21FromYUYV() 111 uint32_t* botSrcRow = srcDataYUYV + srcRowPixels; in fillNV21FromYUYV() 149 uint32_t* src = (uint32_t*)imgData; in fillRGBAFromYUYV() 150 uint32_t* dst = (uint32_t*)tgt; in fillRGBAFromYUYV() 160 uint32_t srcPixel = *src++; in fillRGBAFromYUYV() 198 uint32_t* src = (uint32_t*)imgData; in fillYUYVFromUYVY() 199 uint32_t* dst = (uint32_t*)tgt; in fillYUYVFromUYVY() 209 uint32_t srcPixel = *src++; in fillYUYVFromUYVY()
|
D | EvsV4lCamera.h | 46 Return <EvsResult> setMaxFramesInFlight(uint32_t bufferCount) override; 50 Return <int32_t> getExtendedInfo(uint32_t opaqueIdentifier) override; 51 Return <EvsResult> setExtendedInfo(uint32_t opaqueIdentifier, int32_t opaqueValue) override; 73 uint32_t mFormat = 0; // Values from android_pixel_format_t 74 uint32_t mUsage = 0; // Values from from Gralloc.h 75 uint32_t mStride = 0; // Pixels per row (may be greater than image width)
|
/packages/services/Car/evs/app/ |
D | FormatConvert.cpp | 39 static uint32_t yuvToRgbx(const unsigned char Y, const unsigned char Uin, const unsigned char Vin) { in yuvToRgbx() 62 uint32_t* dst, unsigned dstStridePixels) in copyNV21toRGB32() 80 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 93 uint32_t* dst, unsigned dstStridePixels) in copyYV12toRGB32() 116 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 127 uint32_t* dst, unsigned dstStridePixels) in copyYUYVtoRGB32() 129 uint32_t* srcWords = (uint32_t*)src; in copyYUYVtoRGB32() 137 uint32_t srcPixel = *srcWords++; in copyYUYVtoRGB32()
|
D | FormatConvert.h | 30 uint32_t* dst, unsigned dstStridePixels); 40 uint32_t* dst, unsigned dstStridePixels); 49 uint32_t* dst, unsigned dstStrideBytes);
|
/packages/modules/NetworkStack/jni/ |
D | network_stack_utils_jni.cpp | 41 static const uint32_t kEtherTypeOffset = offsetof(ether_header, ether_type); 42 static const uint32_t kEtherHeaderLen = sizeof(ether_header); 43 static const uint32_t kIPv4Protocol = kEtherHeaderLen + offsetof(iphdr, protocol); 44 static const uint32_t kIPv4FlagsOffset = kEtherHeaderLen + offsetof(iphdr, frag_off); 45 static const uint32_t kIPv6NextHeader = kEtherHeaderLen + offsetof(ip6_hdr, ip6_nxt); 46 static const uint32_t kIPv6PayloadStart = kEtherHeaderLen + sizeof(ip6_hdr); 47 static const uint32_t kICMPv6TypeOffset = kIPv6PayloadStart + offsetof(icmp6_hdr, icmp6_type); 48 static const uint32_t kUDPSrcPortIndirectOffset = kEtherHeaderLen + offsetof(udphdr, source); 49 static const uint32_t kUDPDstPortIndirectOffset = kEtherHeaderLen + offsetof(udphdr, dest);
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | itoatest.cpp | 30 struct Traits<uint32_t> { 33 static uint32_t Negate(uint32_t x) { return x; }; in Negate() 77 for (uint32_t power = 2; power <= 10; power += 8) { in Verify() 92 static void u32toa_naive(uint32_t value, char* buffer) { in u32toa_naive() 108 uint32_t u = static_cast<uint32_t>(value); in i32toa_naive()
|
D | bigintegertest.cpp | 87 a *= static_cast <uint32_t>(0); in TEST() 89 a *= static_cast <uint32_t>(123); in TEST() 93 b *= static_cast<uint32_t>(1); in TEST() 95 b *= static_cast<uint32_t>(0); in TEST() 99 c *= static_cast<uint32_t>(456u); in TEST()
|
/packages/modules/NetworkStack/tests/unit/jni/ |
D | apf_jni.cpp | 38 uint32_t packet_len = (uint32_t)packet.size(); in com_android_server_ApfTest_apfSimulate() 39 uint32_t program_len = env->GetArrayLength(jprogram); in com_android_server_ApfTest_apfSimulate() 40 uint32_t data_len = jdata ? env->GetArrayLength(jdata) : 0; in com_android_server_ApfTest_apfSimulate() 113 for (uint32_t i = 0; i < bpf.bf_len; i++) { in com_android_server_ApfTest_compileToBpf() 189 uint32_t apf_program_len = (uint32_t)apf_program.size(); in com_android_server_ApfTest_dropsAllPackets() 190 uint32_t data_len = env->GetArrayLength(jdata); in com_android_server_ApfTest_dropsAllPackets()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.h | 146 uint32_t NdefActualSize; 147 uint32_t AppWrLength; 151 uint32_t dwWrLength; 152 uint32_t NdefLength; 220 NFCSTATUS Mfc_WriteNdef(uint8_t* p_data, uint32_t len); 224 NFCSTATUS Mfc_Transceive(uint8_t* p_data, uint32_t len);
|
D | phNxpExtns_MifareStd.cpp | 76 uint32_t* PacketDataLength, 204 NdefMap->SendRecvBuf = (uint8_t*)malloc((uint32_t)(MAX_BUFF_SIZE * 2)); in phNxpExtns_MfcModuleInit() 229 tNciTranscvInfo.tSendData.pBuff = (uint8_t*)malloc((uint32_t)MAX_BUFF_SIZE); in phNxpExtns_MfcModuleInit() 236 (uint8_t*)malloc((uint32_t)MAX_BUFF_SIZE); in phNxpExtns_MfcModuleInit() 244 (uint32_t)MAX_BUFF_SIZE); /* size should be same as sRecvData */ in phNxpExtns_MfcModuleInit() 270 gAuthCmdBuf.pauth_cmd->buffer = (uint8_t*)malloc((uint32_t)NCI_MAX_DATA_LEN); in phNxpExtns_MfcModuleInit() 345 NdefMap, (uint32_t*)&(conn_evt_data.ndef_detect.max_size), in Mfc_CheckNdef_Completion_Routine() 346 (uint32_t*)&(conn_evt_data.ndef_detect.cur_size)); in Mfc_CheckNdef_Completion_Routine() 471 uint32_t* PacketDataLength, in phFriNfc_ValidateParams() 611 uint32_t* PacketDataLength = NULL; in Mfc_ReadNdef() [all …]
|
D | phFriNfc_MifareStdMap.h | 228 uint32_t* PacketDataLength, 232 uint32_t* PacketDataLength, 238 const phFriNfc_NdefMap_t* NdefMap, uint32_t* maxSize, uint32_t* actualSize);
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 331 uint32_t oldPseudoSum = ipv4_pseudo_header_checksum(ipHeader, transport_len); in translateIpv4Packet() 340 uint32_t newPseudoSum = ipv4_pseudo_header_checksum(ipHeader, transport_len); in translateIpv4Packet() 365 uint32_t oldPseudoSum = in translateIpv6Packet() 374 uint32_t newPseudoSum = in translateIpv6Packet() 392 void TunForwarder::translateUdpPacket(Slice udpPacket, uint32_t oldPseudoSum, in translateUdpPacket() 393 uint32_t newPseudoSum) const { in translateUdpPacket() 398 uint32_t tmp = ip_checksum_add(newPseudoSum, udpPacket.base(), udpPacket.size()); in translateUdpPacket() 409 void TunForwarder::translateTcpPacket(Slice tcpPacket, uint32_t oldPseudoSum, in translateTcpPacket() 410 uint32_t newPseudoSum) const { in translateTcpPacket()
|
D | tun_forwarder.h | 91 void translateUdpPacket(netdutils::Slice udpPacket, uint32_t oldPseudoSum, 92 uint32_t newPseudoSum) const; 93 void translateTcpPacket(netdutils::Slice tcpPacket, uint32_t oldPseudoSum, 94 uint32_t newPseudoSum) const;
|
/packages/services/Car/procfs-inspector/server/ |
D | server.cpp | 45 remote()->transact((uint32_t)IProcfsInspector::Call::READ_PROCESS_TABLE, data, &reply); in readProcessTable() 56 status_t Impl::onTransact(uint32_t code, in onTransact() 57 const Parcel& data, Parcel* reply, uint32_t flags) { in onTransact() 59 if (code == (uint32_t)IProcfsInspector::Call::READ_PROCESS_TABLE) { in onTransact()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/inc/ |
D | phNxpExtns.h | 31 NFCSTATUS EXTNS_MfcWriteNDef(uint8_t* pBuf, uint32_t len); 35 NFCSTATUS EXTNS_MfcTransceive(uint8_t* p_data, uint32_t len); 38 NFCSTATUS EXTNS_MfcCallBack(uint8_t* buf, uint32_t buflen); 47 uint32_t* sTransceiveDataLen);
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | buffer_with_extendable_buffer_test.cpp | 30 const uint32_t data_1 = 0xFF; in TEST() 35 const uint32_t data_2 = 0xFFFF; in TEST() 40 const uint32_t data_3 = 0xFFFFFF; in TEST() 45 const uint32_t data_4 = 0xFFFFFFFF; in TEST()
|
/packages/modules/DnsResolver/ |
D | resolv_cache_unit_test.cpp | 157 [[nodiscard]] bool cacheLookup(ResolvCacheStatus expectedCacheStatus, uint32_t netId, in cacheLookup() 158 const CacheEntry& ce, uint32_t flags = 0) { in cacheLookup() 179 int cacheCreate(uint32_t netId) { in cacheCreate() 183 void cacheDelete(uint32_t netId) { in cacheDelete() 187 int cacheAdd(uint32_t netId, const CacheEntry& ce) { in cacheAdd() 192 int cacheAdd(uint32_t netId, const std::vector<char>& query, const std::vector<char>& answer) { in cacheAdd() 196 int cacheGetExpiration(uint32_t netId, const std::vector<char>& query, time_t* expiration) { in cacheGetExpiration() 200 void cacheQueryFailed(uint32_t netId, const CacheEntry& ce, uint32_t flags) { in cacheQueryFailed() 204 int cacheSetupResolver(uint32_t netId, const SetupParams& setup) { in cacheSetupResolver() 209 void cacheAddStats(uint32_t netId, int revision_id, const IPSockAddr& ipsa, in cacheAddStats() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/common/ |
D | phNfcTypes.h | 47 uint32_t length; /* Buffer length */ 109 uint32_t eMsgType; /* Type of the message to be posted*/ 111 uint32_t Size; /* Size of the datablock*/ 280 uint32_t dwWordPtr; /* Word address for the memory write */
|