/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common.c | 58 static void DealDigital(u8 *buf, const char **pos, size_t *len) in DealDigital() argument 61 switch (**pos) { in DealDigital() 70 val = **pos++ - '0'; in DealDigital() 71 if (**pos >= '0' && **pos <= '7') { in DealDigital() 72 val = val * HDI_POS_EIGHT + (**pos++ - '0'); in DealDigital() 74 if (**pos >= '0' && **pos <= '7') { in DealDigital() 75 val = val * HDI_POS_EIGHT + (**pos++ - '0'); in DealDigital() 84 static void DealSymbol(u8 *buf, const char **pos, size_ argument 135 const char *pos = str; PrintfDecode() local 174 char *pos = start; HdiGetCipherInfo() local 211 HdiGetCipherTxt(char *pos, char *end, int cipher) HdiGetCipherTxt() argument 412 const uint8_t *pos; HdiConvertIe() local 503 const uint8_t *pos; HdiConvertIeRsn() local 646 HdiGetIeTxt(char *pos, char *end, const char *proto, const uint8_t *ie, size_t ieLen) HdiGetIeTxt() argument 780 HdiGetWifiCategoryTxt(char *pos, char* end, const struct HdiElems *elems) HdiGetWifiCategoryTxt() argument 850 HdiGetWapiTxt(char *pos, char *end, const uint8_t *ie) HdiGetWapiTxt() argument [all...] |
H A D | wifi_hdi_util.c | 475 static int HdiParseExtensionInfo(const uint8_t *pos, size_t elen, in HdiParseExtensionInfo() argument 488 ext_id = *pos++; in HdiParseExtensionInfo() 496 elems->assocDelayInfo = pos; in HdiParseExtensionInfo() 502 elems->filsReqParams = pos; in HdiParseExtensionInfo() 506 elems->filsKeyConfirm = pos; in HdiParseExtensionInfo() 513 elems->filsSession = pos; in HdiParseExtensionInfo() 519 elems->filsHlp = pos; in HdiParseExtensionInfo() 526 elems->addrAssign = pos; in HdiParseExtensionInfo() 533 elems->delivery = pos; in HdiParseExtensionInfo() 537 elems->wrappedData = pos; in HdiParseExtensionInfo() 586 HdiParseVendorSpec(const uint8_t *pos, size_t elen, struct HdiElems *elems, int show_errors) HdiParseVendorSpec() argument 805 const uint8_t *pos = elem->data; Get80211ElemsFromIE() local 1039 char *pos, *end; GetScanResultText() local 1456 const uint8_t *pos = elem->data; RouterSupportHiLinkByWifiInfo() local [all...] |
/foundation/filemanagement/user_file_service/test/fuzztest/fileaccessextstub_fuzzer/ |
H A D | fileaccessextstub_fuzzer.cpp | 34 T TypeCast(const uint8_t *data, int *pos = nullptr) in TypeCast() 36 if (pos) { in TypeCast() 37 *pos += sizeof(T); in TypeCast() 77 int pos = size >> 1; in CmdCreateFileFuzzTest() local 78 msg.WriteString(string(reinterpret_cast<const char*>(data), pos)); in CmdCreateFileFuzzTest() 79 msg.WriteString(string(reinterpret_cast<const char*>(data + pos), size - pos)); in CmdCreateFileFuzzTest() 89 int pos = size >> 1; in CmdMkdirFuzzTest() local 90 msg.WriteString(string(reinterpret_cast<const char*>(data), pos)); in CmdMkdirFuzzTest() 91 msg.WriteString(string(reinterpret_cast<const char*>(data + pos), siz in CmdMkdirFuzzTest() 111 int pos = size >> 1; CmdMoveFuzzTest() local 127 int pos = (size - 1) >> 1; CmdCopyFuzzTest() local 140 int pos = size / 3; CmdCopyFileFuzzTest() local 153 int pos = size >> 1; CmdRenameFuzzTest() local 169 int pos = 0; CmdListFileFuzzTest() local 219 int pos = 0; CmdScanFileFuzzTest() local 345 int pos = (size - 1) >> 1; CmdMoveItemFuzzTest() local 358 int pos = size / 3; CmdMoveFileFuzzTest() local [all...] |
/foundation/arkui/ui_lite/frameworks/animator/ |
H A D | animator_manager.cpp | 39 ListNode<Animator*>* pos = list_.Begin(); in Add() local 40 while (pos != list_.End()) { in Add() 41 if (pos->data_ == animator) { in Add() 44 pos = pos->next_; in Add() 55 ListNode<Animator*>* pos = list_.Begin(); in Remove() local 56 while (pos != list_.End()) { in Remove() 57 if (pos->data_ == animator) { in Remove() 58 pos->data_ = nullptr; in Remove() 61 pos in Remove() 67 ListNode<Animator*>* pos = list_.Begin(); AnimatorTask() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
H A D | hfp_hf_command_parser.cpp | 51 HfpHfCommandProcessor &commandProcessor, std::vector<uint8_t> &data, size_t &pos, const size_t len) in ParseBody() 54 if (!strncmp(it.first.c_str(), (char *)(&data[pos]), it.first.length())) { in ParseBody() 56 size_t bodyPos = pos; in ParseBody() 57 while (!(data[pos] == '\r' && data[pos + 1] == '\n')) { in ParseBody() 58 pos++; in ParseBody() 61 if (pos + 1 < len) { in ParseBody() 63 size_t tailPos = pos; in ParseBody() 64 pos++; in ParseBody() 86 for (size_t pos in Parse() 50 ParseBody(HfpHfDataConnection &dataConn, HfpHfCommandProcessor &commandProcessor, std::vector<uint8_t> &data, size_t &pos, const size_t len) ParseBody() argument [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/ |
H A D | local_data_source.cpp | 55 std::shared_ptr<Cache> LocalDataSource::GetBestCache(int64_t pos) in GetBestCache() argument 60 if ((*iter)->IsMatch(pos)) { in GetBestCache() 67 cache = std::make_shared<Cache>(pos); in GetBestCache() 81 CLOGD("GetBestCache:reset:%{public}" PRId64, pos); in GetBestCache() 82 cache->Reset(pos); in GetBestCache() 86 void LocalDataSource::SolveReqData(std::shared_ptr<Cache> cache, int64_t pos) in SolveReqData() argument 103 CLOGD("request data, start:%{public}" PRId64 " end:%{public}" PRId64 " pos:%{public}" PRId64, start, end, pos); in SolveReqData() 107 int32_t LocalDataSource::ReadAt(const std::shared_ptr<Media::AVSharedMemory> &mem, uint32_t length, int64_t pos) in ReadAt() argument 109 return ReadBuffer(mem->GetBase(), length, pos); in ReadAt() 112 ReadAt(int64_t pos, uint32_t length, const std::shared_ptr<Media::AVSharedMemory> &mem) ReadAt() argument 122 ReadBuffer(uint8_t *data, uint32_t length, int64_t pos) ReadBuffer() argument 174 Cache(int64_t pos, int64_t capacity) Cache() argument 200 Reset(int64_t pos) Reset() argument 205 IsMatch(int64_t pos) IsMatch() argument 252 Init(int64_t pos) Init() argument 268 Read(uint8_t *data, uint32_t length, int64_t pos) Read() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_manager.cpp | 28 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in Create() 29 return pos->second.createNode(); in Create() 36 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in Destroy() 37 return pos->second.destroyNode(aInstance); in Destroy() 44 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in CreateRenderNode() 45 return { pos->second.createNode(), pos in CreateRenderNode() [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/ |
H A D | local_data_source.cpp | 55 std::shared_ptr<Cache> LocalDataSource::GetBestCache(int64_t pos) in GetBestCache() argument 60 if ((*iter)->IsMatch(pos)) { in GetBestCache() 67 cache = std::make_shared<Cache>(pos); in GetBestCache() 81 CLOGD("GetBestCache:reset:%{public}" PRId64, pos); in GetBestCache() 82 cache->Reset(pos); in GetBestCache() 86 void LocalDataSource::SolveReqData(std::shared_ptr<Cache> cache, int64_t pos) in SolveReqData() argument 103 CLOGD("request data, start:%{public}" PRId64 " end:%{public}" PRId64 " pos:%{public}" PRId64, start, end, pos); in SolveReqData() 107 int32_t LocalDataSource::ReadAt(const std::shared_ptr<Media::AVSharedMemory> &mem, uint32_t length, int64_t pos) in ReadAt() argument 109 return ReadBuffer(mem->GetBase(), length, pos); in ReadAt() 112 ReadAt(int64_t pos, uint32_t length, const std::shared_ptr<Media::AVSharedMemory> &mem) ReadAt() argument 122 ReadBuffer(uint8_t *data, uint32_t length, int64_t pos) ReadBuffer() argument 173 Cache(int64_t pos, int64_t capacity) Cache() argument 199 Reset(int64_t pos) Reset() argument 204 IsMatch(int64_t pos) IsMatch() argument 251 Init(int64_t pos) Init() argument 267 Read(uint8_t *data, uint32_t length, int64_t pos) Read() argument [all...] |
/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | trans_session_manager.c | 50 SessionServer *pos = NULL; in TransSessionForEachShowInfo() local 51 LIST_FOR_EACH_ENTRY(pos, &g_sessionServerList->list, SessionServer, node) { in TransSessionForEachShowInfo() 52 SoftBusTransDumpRegisterSession(fd, pos->pkgName, pos->sessionName, pos->uid, pos->pid); in TransSessionForEachShowInfo() 91 SessionServer *pos = NULL; in TransSessionServerIsExist() local 98 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransSessionServerIsExist() 99 if (strcmp(pos->sessionName, sessionName) == 0) { in TransSessionServerIsExist() 115 SessionServer *pos in ShowSessionServer() local 143 SessionServer *pos = NULL; TransSessionServerAddItem() local 192 SessionServer *pos = NULL; TransSessionServerDelItem() local 232 SessionServer *pos = NULL; CheckUidAndPid() local 251 SessionServer *pos = NULL; TransDelItemByPackageName() local 284 SessionServer *pos = NULL; TransGetPkgNameBySessionName() local 325 SessionServer *pos = NULL; TransGetUidAndPid() local 349 SessionServer *pos = NULL; TransListDelete() local 365 SessionServer *pos = NULL; TransListCopy() local 408 SessionServer *pos = NULL; TransOnLinkDown() local [all...] |
/foundation/arkui/ui_lite/frameworks/core/ |
H A D | task_manager.cpp | 34 ListNode<Task*>* pos = list_.Begin(); in Add() local 35 while (pos != list_.End()) { in Add() 36 if (pos->data_ == task) { in Add() 40 pos = pos->next_; in Add() 51 ListNode<Task*>* pos = list_.Begin(); in Remove() local 52 while (pos != list_.End()) { in Remove() 53 if (pos->data_ == task) { in Remove() 54 list_.Remove(pos); in Remove() 57 pos in Remove() [all...] |
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/ |
H A D | wifi_wpa_common.c | 218 static void DealDigital(u8 *buf, const char **pos, size_t *len) in DealDigital() argument 221 switch (**pos) { in DealDigital() 230 val = **pos++ - '0'; in DealDigital() 231 if (**pos >= '0' && **pos <= '7') { in DealDigital() 232 val = val * POS_EIGHT + (**pos++ - '0'); in DealDigital() 234 if (**pos >= '0' && **pos <= '7') { in DealDigital() 235 val = val * POS_EIGHT + (**pos++ - '0'); in DealDigital() 244 static void DealSymbol(u8 *buf, const char **pos, size_ argument 295 const char *pos = str; PrintfDecode() local [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/ |
H A D | backupservicestub_fuzzer.cpp | 34 T TypeCast(const uint8_t *data, int *pos = nullptr) in TypeCast() 36 if (pos) { in TypeCast() 37 *pos += sizeof(T); in TypeCast() 68 int pos = 0; in OnRemoteRequestFuzzTest() local 69 uint32_t code = TypeCast<uint32_t>(data, &pos); in OnRemoteRequestFuzzTest() 142 int pos = 0; in CmdPublishFileFuzzTest() local 144 info.sn = TypeCast<TmpFileSN>(data, &pos); in CmdPublishFileFuzzTest() 145 int len = (size - pos) >> 1; in CmdPublishFileFuzzTest() 146 info.owner = string(reinterpret_cast<const char*>(data + pos), len); in CmdPublishFileFuzzTest() 147 info.fileName = string(reinterpret_cast<const char*>(data + pos in CmdPublishFileFuzzTest() 166 int pos = 0; CmdAppFileReadyFuzzTest() local 212 int pos = 0; CmdResultReportFuzzTest() local 251 int pos = 0; CmdAppendBundlesRestoreSessionFuzzTest() local 278 int pos = 0; CmdAppendBundlesDetailsRestoreSessionFuzzTest() local 448 int pos = 0; CmdPublishIncrementalFileFuzzTest() local 472 int pos = 0; CmdPublishSAIncrementalFileFuzzTest() local 498 int pos = 0; CmdAppIncrementalFileReadyFuzzTest() local 576 int pos = 0; CmdUpdateTimerFuzzTest() local 597 int pos = 0; CmdUpdateSendRateFuzzTest() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkshadereffect_fuzzer/ |
H A D | shadereffect_fuzzer.cpp | 64 float* pos = new float[format]; in NativeShaderEffectTest001() local 66 pos[i] = GetObject<float>(); in NativeShaderEffectTest001() 69 OH_Drawing_ShaderEffect* shaderEffectTwo = OH_Drawing_ShaderEffectCreateLinearGradient(startPt, endPt, colors, pos, in NativeShaderEffectTest001() 72 pos, format, static_cast<OH_Drawing_TileMode>(tileMode % TILE_MODE_ENUM_SIZE)); in NativeShaderEffectTest001() 77 if (pos != nullptr) { in NativeShaderEffectTest001() 78 delete[] pos; in NativeShaderEffectTest001() 79 pos = nullptr; in NativeShaderEffectTest001() 104 float* pos = new float[format]; in NativeShaderEffectTest002() local 106 pos[i] = GetObject<float>(); in NativeShaderEffectTest002() 112 &endPoint, colors, pos, forma in NativeShaderEffectTest002() 149 float* pos = new float[format]; NativeShaderEffectTest003() local 196 float* pos = new float[format]; NativeShaderEffectTest004() local 258 float* pos = new float[format]; NativeShaderEffectTest005() local [all...] |
/foundation/filemanagement/storage_service/test/fuzztest/filesystemcrypto_fuzzer/ |
H A D | filesystemcrypto_fuzzer.cpp | 26 T TypeCast(const uint8_t *data, int *pos = nullptr) in TypeCast() 28 if (pos) { in TypeCast() 29 *pos += sizeof(T); in TypeCast() 43 int pos = 0; in GenerateUserKeysFuzzTest() local 44 uint32_t userId = TypeCast<uint32_t>(data, &pos); in GenerateUserKeysFuzzTest() 45 uint32_t flags = TypeCast<uint32_t>(data + pos); in GenerateUserKeysFuzzTest() 61 int pos = 0; in DeleteUserKeysFuzzTest() local 62 uint32_t userId = TypeCast<uint32_t>(data, &pos); in DeleteUserKeysFuzzTest() 78 int pos = 0; in UpdateUserAuthFuzzTest() local 79 uint32_t userId = TypeCast<uint32_t>(data, &pos); in UpdateUserAuthFuzzTest() 103 int pos = 0; ActiveUserKeyFuzzTest() local 125 int pos = 0; InactiveUserKeyFuzzTest() local 142 int pos = 0; UpdateKeyContextFuzzTest() local 159 int pos = 0; LockUserScreenFuzzTest() local 176 int pos = 0; UnlockUserScreenFuzzTest() local 193 int pos = 0; GetLockScreenStatusFuzzTest() local 211 int pos = 0; GenerateAppkeyFuzzTest() local [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_util_test.cpp | 377 extern "C" int HdiParseExtensionInfo(const uint8_t *pos, size_t elen, struct HdiElems *elems, int show_errors); 381 uint8_t pos[10]; in HWTEST_F() local 384 int ret = HdiParseExtensionInfo(pos, elen, &elems, show); in HWTEST_F() 388 ret = HdiParseExtensionInfo(pos, elen, &elems, show); in HWTEST_F() 396 uint8_t pos[10]; in HWTEST_F() local 397 pos[0] = HDI_EID_EXT_ASSOC_DELAY_INFO; in HWTEST_F() 399 int ret = HdiParseExtensionInfo(pos, elen, &elems, show); in HWTEST_F() 403 ret = HdiParseExtensionInfo(pos, elen, &elems, show); in HWTEST_F() 411 uint8_t pos[10]; in HWTEST_F() local 412 pos[ in HWTEST_F() 426 uint8_t pos[10]; HWTEST_F() local 437 uint8_t pos[10]; HWTEST_F() local 452 uint8_t pos[10]; HWTEST_F() local 467 uint8_t pos[10]; HWTEST_F() local 478 uint8_t pos[10]; HWTEST_F() local 493 uint8_t pos[10]; HWTEST_F() local 504 uint8_t pos[10]; HWTEST_F() local 519 uint8_t pos[10]; HWTEST_F() local 534 uint8_t pos[10]; HWTEST_F() local 549 uint8_t pos[10]; HWTEST_F() local 560 uint8_t pos[10]; HWTEST_F() local 575 uint8_t pos[10]; HWTEST_F() local 586 uint8_t pos[10]; HWTEST_F() local 638 uint8_t pos[10] = {0}; HWTEST_F() local 652 uint8_t pos[5] = {0x00, 0x50, 0xF2, 0, 0}; HWTEST_F() local 690 uint8_t pos[10] = {0}; HWTEST_F() local 725 uint8_t pos[10] = {0}; HWTEST_F() local 745 uint8_t pos[10] = {0}; HWTEST_F() local 765 uint8_t pos[10] = {0}; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/common/bitmap/ |
H A D | softbus_bitmap.c | 21 void SoftbusBitmapSet(uint32_t *bitmap, const uint8_t pos) in SoftbusBitmapSet() argument 23 if (bitmap == NULL || pos >= UINT32_BITNUM) { in SoftbusBitmapSet() 26 *bitmap |= 1U << pos; in SoftbusBitmapSet() 29 void SoftbusBitmapClr(uint32_t *bitmap, const uint8_t pos) in SoftbusBitmapClr() argument 31 if (bitmap == NULL || pos >= UINT32_BITNUM) { in SoftbusBitmapClr() 34 *bitmap &= ~(1U << pos); in SoftbusBitmapClr() 37 bool SoftbusIsBitmapSet(const uint32_t *bitmap, const uint8_t pos) in SoftbusIsBitmapSet() argument 39 if (bitmap == NULL || pos >= UINT32_BITNUM) { in SoftbusIsBitmapSet() 42 bool flag = ((1U << pos) & (*bitmap)) ? true : false; in SoftbusIsBitmapSet()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_command_parser.cpp | 61 for (size_t pos = 0; pos < len; pos++) { in Parse() 63 if (data[pos] == '\0') { in Parse() 66 std::vector<uint8_t> partData(data.begin() + pos, data.end()); in Parse() 67 cmdType = Extract(partData, cmd, arg, cmdLen, len - pos); in Parse() 68 pos += cmdLen; in Parse() 90 cmdLen = position.pos; in Extract() 131 for (position.pos = 0; position.pos < le in GetCommandPosition() [all...] |
/foundation/communication/dsoftbus/tests/core/common/bitmap/ |
H A D | bitmap_test.cpp | 53 uint8_t pos = BITNUM + 1; in HWTEST_F() local 56 SoftbusBitmapSet(nullptr, pos); in HWTEST_F() 59 SoftbusBitmapClr(nullptr, pos); in HWTEST_F() 62 bool result = SoftbusIsBitmapSet(nullptr, pos); in HWTEST_F() 66 SoftbusBitmapSet(&bitmap, pos); in HWTEST_F() 70 SoftbusBitmapClr(&bitmap, pos); in HWTEST_F() 74 result = SoftbusIsBitmapSet(&bitmap, pos); in HWTEST_F() 77 pos = TEST_POS; in HWTEST_F() 79 SoftbusBitmapSet(&bitmap, pos); in HWTEST_F() 83 SoftbusBitmapSet(&bitmap, pos); in HWTEST_F() [all...] |
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | string_util.cpp | 56 string::size_type pos; in StringSplit() local 62 pos = str.find(pattern, i); in StringSplit() 63 if (pos < size) { in StringSplit() 64 string s = str.substr(i, pos - i); in StringSplit() 66 i = pos + pattern.size() - 1; in StringSplit() 107 string::size_type pos = 0; in CalSubStrNum() local 108 pos = str.find(subStr, pos); in CalSubStrNum() 109 while (pos != string::npos) { in CalSubStrNum() 111 pos in CalSubStrNum() 124 size_t pos = line.find(DELIMITER_EQUAL_SIGN); SplitLineToPair() local [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/ |
H A D | svcrestoredepsmanager_fuzzer.cpp | 43 int pos = 0; in GetInfo() local 44 bundleInfo.name = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i % base); in GetInfo() 45 pos += len; in GetInfo() 46 bundleInfo.versionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 47 pos += len; in GetInfo() 48 bundleInfo.extensionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 49 pos += len; in GetInfo() 52 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 54 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + "," + to_string(i); in GetInfo() 57 pos in GetInfo() 92 size_t pos = size >> 1; SvcRestoreDepsManagerFuzzTest() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 79 constexpr const_reference operator[](size_type pos) const; 82 constexpr const_reference at(size_type pos) const; 116 constexpr size_type copy(CharT* dest, size_type count, size_type pos = 0) const; 119 constexpr basic_string_view substr(size_type pos = 0, size_type count = npos) const; 129 constexpr size_type find(const CharT str, size_type pos = 0) const noexcept; 130 constexpr size_type find(const basic_string_view& str, size_type pos = 0) const noexcept; 132 constexpr size_type rfind(const CharT str, size_type pos = npos) const noexcept; 133 constexpr size_type rfind(const basic_string_view& str, size_type pos = npos) const noexcept; 135 constexpr size_type find_first_of(const basic_string_view& str, size_type pos = 0) const noexcept; 136 constexpr size_type find_first_of(CharT ch, size_type pos 335 substr(size_type pos, size_type count) const substr() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | db_ability.cpp | 61 for (uint32_t pos = 0; pos < curAbility.GetAbilityBitsLen(); pos++, innerBuffOffset++) { in Serialize() 66 uint64_t value = static_cast<uint64_t>(abilityBuff[pos]) << innerBuffOffset; in Serialize() 86 for (uint32_t pos = 0; pos < targetBuff.size() && pos < SERIALIZE_BIT_SIZE * dstBuf.size(); pos++) { in DeSerialize() 91 targetBuff[pos] = (dstBuf[buffOffset] >> innerBuffOffset) & 0x1; in DeSerialize() 132 for (uint32_t pos in GetAbilityItem() 152 int pos = iter->first; SetAbilityItem() local [all...] |
/foundation/filemanagement/user_file_service/test/fuzztest/fileinfosharedmemory_fuzzer/ |
H A D | fileinfosharedmemory_fuzzer.cpp | 27 T TypeCast(const uint8_t *data, int *pos = nullptr) in TypeCast() 29 if (pos) { in TypeCast() 30 *pos += sizeof(T); in TypeCast() 41 int pos = 0; in MarshallingFuzzTest() local 43 info->memFd = TypeCast<int>(data, &pos); in MarshallingFuzzTest() 44 info->memSize = TypeCast<uint64_t>(data + pos); in MarshallingFuzzTest() 64 int pos = 0; in CreateSharedMemoryFuzzTest() local 65 uint64_t memSize = TypeCast<uint64_t>(data, &pos); in CreateSharedMemoryFuzzTest() 66 string memName(reinterpret_cast<const char*>(data + pos), size - pos); in CreateSharedMemoryFuzzTest() 80 int pos = 0; ExpandSharedMemoryFuzzTest() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | auto_sync_matrix.cpp | 110 size_t pos = metas_.size() - 1; in AddStore() local 112 mask.Set(pos); in AddStore() 115 mask.Set(pos); in AddStore() 130 size_t pos = static_cast<size_t>(it - metas_.begin()); in DelStore() local 131 if (pos == metas_.size()) { in DelStore() 135 mask.Delete(pos); in DelStore() 138 mask.Delete(pos); in DelStore() 142 void AutoSyncMatrix::Mask::Delete(size_t pos) in Delete() argument 144 if (pos >= MAX_SIZE) { in Delete() 145 ZLOGE("pos in Delete() 153 data >>= pos + 1; Delete() local 154 data <<= pos; Delete() local 158 Set(size_t pos) Set() argument 178 Reset(size_t pos) Reset() argument 238 size_t pos = static_cast<size_t>(it - metas_.begin()); OnChanged() local 254 size_t pos = static_cast<size_t>(it - metas_.begin()); OnExchanged() local [all...] |
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/ |
H A D | plugin_utils.cpp | 59 int pos = 0; in FixedCapKeyStringiness() local 64 pos += ret; in FixedCapKeyStringiness() 69 RETURN_IF_FAILED(Stringiness(buf + pos, maxLen - pos, name, *item), -1, ret); in FixedCapKeyStringiness() 70 return pos + ret; in FixedCapKeyStringiness() 77 int pos = 0; in IntervalCapKeyStringiness() local 82 pos += ret; in IntervalCapKeyStringiness() 87 RETURN_IF_FAILED(Stringiness(buf + pos, maxLen - pos, name, item->first), -1, ret); in IntervalCapKeyStringiness() 88 pos in IntervalCapKeyStringiness() 101 int pos = 0; DiscreteCapKeyStringiness() local 473 int pos = 0; Capability2String() local 508 int pos = 0; Meta2String() local [all...] |