/ohos5.0/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 | 78 if (**pos >= '0' && **pos <= '7') { in DealDigital() 81 if (**pos >= '0' && **pos <= '7') { in DealDigital() 221 ret = HdiTxtPrintf(pos, end - pos, "-"); in HdiGetCipherTxt() 225 pos += ret; in HdiGetCipherTxt() 230 pos += ret; in HdiGetCipherTxt() 652 ret = HdiTxtPrintf(pos, end - pos, "[%s-", proto); in HdiGetIeTxt() 659 ret = HdiTxtPrintf(pos, end - pos, "?]"); in HdiGetIeTxt() 684 ret = HdiTxtPrintf(pos, end - pos, "-preauth"); in HdiGetIeTxt() 691 ret = HdiTxtPrintf(pos, end - pos, "]"); in HdiGetIeTxt() 858 ret = HdiTxtPrintf(pos, end - pos, "[WAPI-"); in HdiGetWapiTxt() [all …]
|
H A D | wifi_hdi_util.c | 1058 pos = HdiGetWifiCategoryTxt(pos, end, elems); in GetScanResultText() 1071 pos = HdiGetWapiTxt(pos, end, wapi); in GetScanResultText() 1095 ret = HdiTxtPrintf(pos, end - pos, in GetScanResultText() 1103 ret = HdiTxtPrintf(pos, end - pos, "[WEP]"); in GetScanResultText() 1110 ret = HdiTxtPrintf(pos, end - pos, "[MESH]"); in GetScanResultText() 1127 ret = HdiTxtPrintf(pos, end - pos, "[DMG]"); in GetScanResultText() 1146 ret = HdiTxtPrintf(pos, end - pos, "%s", s); in GetScanResultText() 1168 ret = HdiTxtPrintf(pos, end - pos, "[P2P]"); in GetScanResultText() 1208 ret = HdiTxtPrintf(pos, end - pos, "]"); in GetScanResultText() 1233 ret = HdiTxtPrintf(pos, end - pos, "]"); in GetScanResultText() [all …]
|
/ohos5.0/foundation/filemanagement/user_file_service/test/fuzztest/fileaccessextstub_fuzzer/ |
H A D | fileaccessextstub_fuzzer.cpp | 36 if (pos) { in TypeCast() 143 msg.WriteString(string(reinterpret_cast<const char*>(data + pos + pos), size - pos - pos)); in CmdCopyFileFuzzTest() 172 fileInfo.mode = TypeCast<int32_t>(data + pos, &pos); in CmdListFileFuzzTest() 173 fileInfo.size = TypeCast<int64_t>(data + pos, &pos); in CmdListFileFuzzTest() 174 fileInfo.mtime = TypeCast<int64_t>(data + pos, &pos); in CmdListFileFuzzTest() 178 bool excludeMedia = TypeCast<bool>(data + pos, &pos); in CmdListFileFuzzTest() 179 bool hasFilter = TypeCast<bool>(data + pos, &pos); in CmdListFileFuzzTest() 223 fileInfo.mode = TypeCast<int32_t>(data + pos, &pos); in CmdScanFileFuzzTest() 224 fileInfo.size = TypeCast<int64_t>(data + pos, &pos); in CmdScanFileFuzzTest() 230 bool hasFilter = TypeCast<bool>(data + pos, &pos); in CmdScanFileFuzzTest() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/event_raw/decoded/ |
H A D | raw_data_decoder.cpp | 25 if (rawData == nullptr || pos >= maxLen) { in FloatingNumberDecoded() 32 if ((pos + valByteCnt) > maxLen) { in FloatingNumberDecoded() 50 pos += valByteCnt; in FloatingNumberDecoded() 56 if (rawData == nullptr || pos >= maxLen) { in SignedVarintDecoded() 70 if (rawData == nullptr || pos >= maxLen) { in StringValueDecoded() 76 ((pos + valByteCnt) > maxLen)) { in StringValueDecoded() 83 pos += valByteCnt; in StringValueDecoded() 94 if ((pos + 1) > maxLen) { in UnsignedVarintDecoded() 97 if (rawData[pos++] & TAG_BYTE_BOUND) { in UnsignedVarintDecoded() 99 if (pos >= maxLen) { in UnsignedVarintDecoded() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | trans_session_manager.c | 52 SoftBusTransDumpRegisterSession(fd, pos->pkgName, pos->sessionName, pos->uid, pos->pid); in TransSessionForEachShowInfo() 148 if ((pos->uid == newNode->uid) && (pos->pid == newNode->pid)) { in TransSessionServerAddItem() 154 if (CheckServiceIsRegistered(pos->pkgName, pos->pid) == SOFTBUS_OK) { in TransSessionServerAddItem() 205 SoftBusFree(pos); in TransSessionServerDelItem() 234 pos->uid == callingUid && pos->pid == callingPid) { in CheckUidAndPid() 257 if ((strcmp(pos->pkgName, pkgName) == 0) && (pos->pid == pid)) { in TransDelItemByPackageName() 265 pos = NULL; in TransDelItemByPackageName() 333 tmpName, pos->uid, pos->pid); in TransGetUidAndPid() 353 SoftBusFree(pos); in TransListDelete() 378 *newPos = *pos; in TransListCopy() [all …]
|
/ohos5.0/base/tee/tee_client/frameworks/include/ |
H A D | tee_client_list.h | 19 #define CONTAINER_OF(pos, type, member) (type *)(((char *)(pos)) - OFFSET_OF(type, member)) argument 82 #define LIST_FOR_EACH(pos, list) \ argument 83 for ((pos) = (list)->next; (pos) != (list); (pos) = (pos)->next) 85 #define LIST_FOR_EACH_SAFE(pos, n, list) \ argument 86 for ((pos) = (list)->next, (n) = (pos)->next; (pos) != (list); (pos) = (n), (n) = (pos)->next) 88 #define LIST_FOR_EACH_ENTRY(pos, list, member) … argument 90 … for ((pos) = LIST_ENTRY((list)->next, typeof(*(pos)), (member)); &(pos)->(member) != (list); \ 91 … (pos) = LIST_ENTRY((pos)->(member).next, typeof(*(pos)), (member))) \ 96 …for ((pos) = LIST_ENTRY((list)->next, typeof(*(pos)), (member)), … 97 …(n) = LIST_ENTRY((pos)->(member).next, typeof(*(pos)), (member)); … [all …]
|
/ohos5.0/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 | 657 pos[3] = 1; 660 pos[3] = 2; 669 pos[4] = 0; 672 pos[4] = 1; 675 pos[4] = 2; 678 pos[4] = 3; 681 pos[3] = 4; 698 pos[3] = 9; 753 pos[3] = 0; 756 pos[3] = 1; [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/animator/ |
H A D | animator_manager.cpp | 40 while (pos != list_.End()) { in Add() 41 if (pos->data_ == animator) { in Add() 44 pos = pos->next_; in Add() 56 while (pos != list_.End()) { in Remove() 57 if (pos->data_ == animator) { in Remove() 58 pos->data_ = nullptr; in Remove() 61 pos = pos->next_; in Remove() 70 while (pos != list_.End()) { in AnimatorTask() 71 animator = pos->data_; in AnimatorTask() 74 pos = list_.Remove(pos); in AnimatorTask() [all …]
|
/ohos5.0/base/request/request/test/unittest/cpp_test/fwkTest/src/ |
H A D | response_message_receiver_test.cpp | 398 int pos = 0; variable 408 pos += sizeof(msgId); 460 int pos = 0; variable 468 pos += sizeof(tid); 513 int pos = 0; variable 558 int pos = 0; variable 576 pos += sizeof(type); 584 pos += sizeof(state); 588 pos += sizeof(index); 610 pos += ketValueLen; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/ |
H A D | wifi_wpa_common.c | 219 switch (**pos) { in DealDigital() 229 if (**pos >= '0' && **pos <= '7') { in DealDigital() 232 if (**pos >= '0' && **pos <= '7') { in DealDigital() 245 switch (**pos) { in DealSymbol() 248 (*pos)++; in DealSymbol() 252 (*pos)++; in DealSymbol() 256 (*pos)++; in DealSymbol() 260 (*pos)++; in DealSymbol() 264 (*pos)++; in DealSymbol() 268 (*pos)++; in DealSymbol() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/ |
H A D | backupservicestub_fuzzer.cpp | 36 if (pos) { in TypeCast() 68 int pos = 0; in OnRemoteRequestFuzzTest() local 168 int32_t errCode = TypeCast<int32_t>(data + pos, &pos); in CmdAppFileReadyFuzzTest() 169 bool fdFlag = TypeCast<bool>(data + pos, &pos); in CmdAppFileReadyFuzzTest() 214 int32_t errCode = TypeCast<int32_t>(data + pos, &pos); in CmdResultReportFuzzTest() 253 int32_t type = TypeCast<int32_t>(data + pos, &pos); in CmdAppendBundlesRestoreSessionFuzzTest() 254 int32_t userId = TypeCast<int32_t>(data + pos, &pos); in CmdAppendBundlesRestoreSessionFuzzTest() 280 int32_t type = TypeCast<int32_t>(data + pos, &pos); in CmdAppendBundlesDetailsRestoreSessionFuzzTest() 281 int32_t userId = TypeCast<int32_t>(data + pos, &pos); in CmdAppendBundlesDetailsRestoreSessionFuzzTest() 500 int fd2 = TypeCast<int>(data + pos, &pos); in CmdAppIncrementalFileReadyFuzzTest() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
H A D | hfp_hf_command_parser.cpp | 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 = 0; pos < len; pos++) { in Parse() local 88 if (data[pos] == '\0') { in Parse() 92 if (pos + 1 < len && (data[pos] == '\r' && data[pos + 1] == '\n')) { in Parse() 94 pos += AT_HEAD_SIZE; in Parse() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkshadereffect_fuzzer/ |
H A D | shadereffect_fuzzer.cpp | 77 if (pos != nullptr) { in NativeShaderEffectTest001() 78 delete[] pos; in NativeShaderEffectTest001() 79 pos = nullptr; in NativeShaderEffectTest001() 124 delete[] pos; in NativeShaderEffectTest002() 125 pos = nullptr; in NativeShaderEffectTest002() 169 delete[] pos; in NativeShaderEffectTest003() 170 pos = nullptr; in NativeShaderEffectTest003() 226 delete[] pos; in NativeShaderEffectTest004() 227 pos = nullptr; in NativeShaderEffectTest004() 275 delete[] pos; in NativeShaderEffectTest005() [all …]
|
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
H A D | account_dump_helper_test.cpp | 132 EXPECT_NE(std::string::npos, pos); 163 EXPECT_NE(std::string::npos, pos); 165 EXPECT_NE(std::string::npos, pos); 167 EXPECT_NE(std::string::npos, pos); 169 EXPECT_NE(std::string::npos, pos); 171 EXPECT_NE(std::string::npos, pos); 190 auto pos = out.find("ID:", 0); variable 191 EXPECT_NE(std::string::npos, pos); 229 EXPECT_NE(std::string::npos, pos); 247 EXPECT_EQ(std::string::npos, pos); [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | clatd_packet_converter.cpp | 107 iovBufs_[pos + 1].assign(reinterpret_cast<const char *>(&ip6FragHeader), iovBufLens_[pos + 1]); in ConvertV4Packet() 114 iovBufs_[pos].assign(reinterpret_cast<const char *>(&ip6Header), iovBufLens_[pos]); in ConvertV4Packet() 151 iovBufs_[pos].assign(reinterpret_cast<const char *>(ip6Header), iovBufLens_[pos]); in ConvertV4TpPacket() 168 iovBufLens_[pos] = sizeof(iphdr); in ConvertV6Packet() 191 iovBufs_[pos].assign(reinterpret_cast<const char *>(&ipHeader), iovBufLens_[pos]); in ConvertV6Packet() 230 iovBufs_[pos].assign(reinterpret_cast<const char *>(ipHeader), iovBufLens_[pos]); in ConvertV6TpPacket() 438 iovBufs_[pos].assign(reinterpret_cast<const char *>(&icmp6Header), iovBufLens_[pos]); in ConvertIcmpPacket() 440 iovBufs_[pos].assign(reinterpret_cast<const char *>(&icmp6Header), iovBufLens_[pos]); in ConvertIcmpPacket() 527 iovBufs_[pos].assign(reinterpret_cast<const char *>(&icmpHeader), iovBufLens_[pos]); in ConvertIcmpv6Packet() 529 iovBufs_[pos].assign(reinterpret_cast<const char *>(&icmpHeader), iovBufLens_[pos]); in ConvertIcmpv6Packet() [all …]
|
/ohos5.0/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() local 63 if (data[pos] == '\0') { in Parse() 68 pos += cmdLen; in Parse() 90 cmdLen = position.pos; in Extract() 131 for (position.pos = 0; position.pos < len; position.pos++) { in GetCommandPosition() 132 if (data[position.pos] == 'A' || data[position.pos] == 'a') { in GetCommandPosition() 134 ((data[position.pos + 1] == 'T') || (data[position.pos + 1] == 't'))) { in GetCommandPosition() 140 if (data[position.pos] == '=') { in GetCommandPosition() 141 position.setPos = position.pos; in GetCommandPosition() 143 if (data[position.pos] == '?') { in GetCommandPosition() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/filesystemcrypto_fuzzer/ |
H A D | filesystemcrypto_fuzzer.cpp | 28 if (pos) { in TypeCast() 43 int pos = 0; in GenerateUserKeysFuzzTest() local 61 int pos = 0; in DeleteUserKeysFuzzTest() local 78 int pos = 0; in UpdateUserAuthFuzzTest() local 103 int pos = 0; in ActiveUserKeyFuzzTest() local 125 int pos = 0; in InactiveUserKeyFuzzTest() local 142 int pos = 0; in UpdateKeyContextFuzzTest() local 159 int pos = 0; in LockUserScreenFuzzTest() local 176 int pos = 0; in UnlockUserScreenFuzzTest() local 193 int pos = 0; in GetLockScreenStatusFuzzTest() local [all …]
|
/ohos5.0/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 RENDER_BEGIN_NAMESPACE() local 29 return pos->second.createNode(); in RENDER_BEGIN_NAMESPACE() 36 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in Destroy() local 37 return pos->second.destroyNode(aInstance); in Destroy() 44 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in CreateRenderNode() local 45 return { pos->second.createNode(), pos->second.destroyNode }; in CreateRenderNode() 52 if (auto const pos = factories_.find(nodeType); pos != factories_.end()) { in GetRenderNodeTypeInfoFlags() local 53 return { pos->second.renderNodeBackendFlags, pos->second.renderNodeClassType }; in GetRenderNodeTypeInfoFlags()
|
/ohos5.0/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() 77 int pos = 0; in IntervalCapKeyStringiness() local 82 pos += ret; in IntervalCapKeyStringiness() 88 pos += ret; in IntervalCapKeyStringiness() 90 pos += ret; in IntervalCapKeyStringiness() 92 pos += ret; in IntervalCapKeyStringiness() 101 int pos = 0; in DiscreteCapKeyStringiness() local 106 pos += ret; in DiscreteCapKeyStringiness() 477 pos += ret; in Capability2String() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 582 if (pos >= length() || (pos + str.length() > length())) { in find() 645 if ((pos == npos) || (pos > len)) { in rfind() 646 pos = len; in rfind() 649 return pos; in rfind() 654 if (pos < 0) { in rfind() 676 if (pos >= len) { in find_first_of() 682 for (; pos < len; pos++, s1++) { in find_first_of() 700 if (pos >= len) { in find_first_of() 704 for (; pos < len; pos++, s1++) { in find_first_of() 735 pos--; in find_last_of() [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/ |
H A D | js_uri.cpp | 91 AnalysisFragment(pos); in AnalysisUri() 98 AnalysisQuery(pos); in AnalysisUri() 105 AnalysisScheme(pos); in AnalysisUri() 118 if (pos != std::string::npos && pos == 0) { in AnalysisUri() 164 if (pos == 0) { in AnalysisFragment() 251 AnalysisPath(pos); in AnalysisHostAndPath() 258 pos = data_.find('@'); in AnalysisHostAndPath() 260 AnalysisUserInfo(pos); in AnalysisHostAndPath() 267 pos = data_.rfind(':'); in AnalysisHostAndPath() 510 size_t pos = 0; in Normalize() local [all …]
|
/ohos5.0/foundation/ai/intelligent_voice_framework/utils/ |
H A D | string_util.cpp | 55 string::size_type pos; in StringSplit() local 61 pos = str.find(pattern, i); in StringSplit() 62 if (pos < size) { in StringSplit() 65 i = pos + pattern.size() - 1; in StringSplit() 106 string::size_type pos = 0; in CalSubStrNum() local 107 pos = str.find(subStr, pos); in CalSubStrNum() 108 while (pos != string::npos) { in CalSubStrNum() 110 pos = pos + subStr.size(); in CalSubStrNum() 111 pos = str.find(subStr, pos); in CalSubStrNum() 125 if (string::npos == pos || (line.length() - 1) == pos) { in SplitLineToPair() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | auto_sync_matrix.cpp | 112 mask.Set(pos); in AddStore() 115 mask.Set(pos); in AddStore() 135 mask.Delete(pos); in DelStore() 138 mask.Delete(pos); in DelStore() 144 if (pos >= MAX_SIZE) { in Delete() 153 data >>= pos + 1; in Delete() 154 data <<= pos; in Delete() 164 data.set(pos); in Set() 184 data.reset(pos); in Reset() 240 mask.Set(pos); in OnChanged() [all …]
|
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_configuration.cpp | 489 const auto &device = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseDevice() 500 const auto &bootProto = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseBootProto() 521 ipAddresses = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 527 netMasks = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 533 gateways = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 539 routes = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 545 routeMasks = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 551 dnsServers = fileContent.substr(pos, fileContent.find(WRAP, pos) - pos); in ParseStaticConfig() 567 cfg->httpProxy_.SetHost(fileContent.substr(pos, fileContent.find(WRAP, pos) - pos)); in ParserFileHttpProxy() 573 …uint32_t port = CommonUtils::StrToUint(fileContent.substr(pos, fileContent.find(WRAP, pos) - pos)); in ParserFileHttpProxy() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/regulator/ |
H A D | regulator_core.c | 42 if ((pos->ops->open != NULL) && pos->ops->open(pos) != HDF_SUCCESS) { in RegulatorNodeOpen() 48 return pos; in RegulatorNodeOpen() 78 pos->regulatorInfo.name, pos->regulatorInfo.status, in RegulatorNodeListPrint() 79 pos->regulatorInfo.constraints.alwaysOn, pos->regulatorInfo.constraints.mode, in RegulatorNodeListPrint() 80 pos->regulatorInfo.constraints.minUv, pos->regulatorInfo.constraints.maxUv, in RegulatorNodeListPrint() 81 pos->regulatorInfo.constraints.minUa, pos->regulatorInfo.constraints.maxUa); in RegulatorNodeListPrint() 150 if (RegulatorTreeSet(pos->regulatorInfo.name, pos, parent) != HDF_SUCCESS) { in RegulatorNodeSetChild() 293 if ((pos->ops->release != NULL) && pos->ops->release(pos) != HDF_SUCCESS) { in RegulatorNodeRemove() 298 OsalMemFree(pos); in RegulatorNodeRemove() 329 if ((pos->ops->release != NULL) && pos->ops->release(pos) != HDF_SUCCESS) { in RegulatorNodeRemoveAll() [all …]
|