/ohos5.0/drivers/peripheral/codec/test/demo/jpeg/src/ |
H A D | codec_jpeg_helper.cpp | 39 curPos = PutInt16(buffer, curPos, 0xffd8); in JpegAssemble() 78 curPos = JpegDataAssemble(buffer, curPos, fd); in JpegAssemble() 84 curPos = PutInt16(buffer, curPos, 0xffd9); in JpegAssemble() 147 curPos = PutInt16(buffer, curPos, 0xffdb); in JpegDqtAssemble() 164 curPos = PutInt8(buffer, curPos, index); in JpegDqtAssemble() 190 curPos = PutInt16(buffer, curPos, 0xffdd); in JpegDriAssemble() 229 curPos = PutInt16(buffer, curPos, 0xffc4); in JpegDhtAssemble() 281 curPos = PutInt16(buffer, curPos, 0xffc0); in JpegSofAssemble() 288 curPos = PutInt16(buffer, curPos, len); in JpegSofAssemble() 303 curPos = PutInt16(buffer, curPos, width); in JpegSofAssemble() [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | json_flatten_parser.cpp | 59 curPos = 0; in Parse() 61 while (curPos < json.length()) { in Parse() 63 ++curPos; in Parse() 88 ++curPos; // eat left quotation in ParseKey() 94 ++curPos; in ParseKey() 120 ++curPos; in ParseValue() 139 ++curPos; in ParseNumer() 147 txt.push_back(json[curPos++]); in ParseString() 154 ++curPos; in ParseString() 156 txt.push_back(json[curPos++]); in ParseString() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/connectivity/bluetooth/ |
H A D | ble-development-guide.md | 230 let curPos = 0; 232 let length = advData[curPos++]; 244 localName = advData.slice(curPos, curPos + advDataLength).toString(); 288 curPos += advDataLength; 295 let tmpData: Uint8Array = advData.slice(curPos, curPos + uuidLength); 298 curPos += uuidLength; 305 let tmpData: Uint8Array = advData.slice(curPos, curPos + uuidLength); 308 curPos += uuidLength; 336 let tmpUuid: Uint8Array = advData.slice(curPos, curPos + uuidLength); 337 let tmpValue: Uint8Array = advData.slice(curPos + uuidLength, curPos + advDataLength); [all …]
|
/ohos5.0/docs/en/application-dev/connectivity/bluetooth/ |
H A D | ble-development-guide.md | 232 let curPos = 0; 234 let length = advData[curPos++]; 246 localName = advData.slice(curPos, curPos + advDataLength).toString(); 290 curPos += advDataLength; 297 let tmpData: Uint8Array = advData.slice(curPos, curPos + uuidLength); 300 curPos += uuidLength; 307 let tmpData: Uint8Array = advData.slice(curPos, curPos + uuidLength); 310 curPos += uuidLength; 338 let tmpUuid: Uint8Array = advData.slice(curPos, curPos + uuidLength); 339 let tmpValue: Uint8Array = advData.slice(curPos + uuidLength, curPos + advDataLength); [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/ |
H A D | hisysevent_c_wrapper.cpp | 42 size_t curPos = 0; // The current position is initialized to be 0. in SplitStringToArray() local 47 while (curPos < srcMaxLen && src[curPos] != '\0') { in SplitStringToArray() 48 if (src[curPos] != '|') { in SplitStringToArray() 49 ++curPos; in SplitStringToArray() 52 sliceEnd = static_cast<int>(curPos) - 1; in SplitStringToArray() 57 sliceBegin = static_cast<int>(curPos + 1); in SplitStringToArray() 58 ++curPos; in SplitStringToArray() 61 sliceBegin = static_cast<int>(curPos + 1); in SplitStringToArray() 62 ++curPos; in SplitStringToArray() 68 if (curPos >= srcMaxLen || src[curPos] == '\0') { in SplitStringToArray() [all …]
|
/ohos5.0/drivers/peripheral/codec/test/demo/jpeg/include/ |
H A D | codec_jpeg_helper.h | 46 int32_t JpegDqtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos); 47 int32_t JpegDriAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos); 48 int32_t JpegDhtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos); 49 …t32_t JpegDhtAssemble(const std::vector<CodecJpegHuffTable> &table, int8_t *buffer, int32_t curPos, 51 int32_t JpegSofAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos); 52 int32_t JpegSosAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos); 53 int32_t JpegDataAssemble(int8_t *buffer, int32_t curPos, int32_t fd); 59 int32_t PutInt16(int8_t *buffer, int32_t curPos, int16_t value); 60 int32_t PutInt8(int8_t *buffer, int32_t curPos, int8_t value);
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/ |
H A D | jpeg_hw_decoder.cpp | 348 curPos += JpegMarker::MARKER_LEN; in JumpOverCurrentJpegMarker() 349 if (curPos + JpegMarker::MARKER_LEN > totalLen) { in JumpOverCurrentJpegMarker() 351 curPos, totalLen, marker); in JumpOverCurrentJpegMarker() 358 curPos += static_cast<unsigned int>(CombineTwoBytes(data, curPos)); in JumpOverCurrentJpegMarker() 359 if (curPos > totalLen) { in JumpOverCurrentJpegMarker() 361 "for marker(%{public}u)", curPos, totalLen, marker); in JumpOverCurrentJpegMarker() 378 unsigned int curPos = 0; in GetCompressedDataStart() local 380 while (curPos + JpegMarker::MARKER_LEN <= totalLen) { in GetCompressedDataStart() 381 uint16_t potentialMarker = CombineTwoBytes(data, curPos); in GetCompressedDataStart() 383 ++curPos; in GetCompressedDataStart() [all …]
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_locale.cpp | 162 RState ProcessSubtag(const char *curPos, int32_t subTagLen, uint16_t &nextType, ParseResult &r) in ProcessSubtag() argument 165 r.tempLanguage = curPos; in ProcessSubtag() 170 if ((ResLocale::SCRIPT_TYPE & nextType) && LocaleMatcher::IsScriptTag(curPos, subTagLen)) { in ProcessSubtag() 171 r.tempScript = curPos; in ProcessSubtag() 177 r.tempRegion = curPos; in ProcessSubtag() 213 const char *curPos = nextPos; in DoParse() local 220 curPos = nextPos; in DoParse() 228 int16_t subTagLen = pSep - curPos; in DoParse() 230 rState = ProcessSubtag(curPos, subTagLen, nextType, r); in DoParse() 238 rState = ProcessSubtag(curPos, subTagLen, nextType, r); in DoParse() [all …]
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_locale.cpp | 168 RState ProcessSubtag(const char *curPos, int32_t subTagLen, uint16_t &nextType, ParseResult &r) in ProcessSubtag() argument 171 r.tempLanguage = curPos; in ProcessSubtag() 176 if ((ResLocale::SCRIPT_TYPE & nextType) && LocaleMatcher::IsScriptTag(curPos, subTagLen)) { in ProcessSubtag() 177 r.tempScript = curPos; in ProcessSubtag() 183 r.tempRegion = curPos; in ProcessSubtag() 219 const char *curPos = nullptr; in DoParse() local 226 curPos = nextPos; in DoParse() 234 int16_t subTagLen = pSep - curPos; in DoParse() 236 rState = ProcessSubtag(curPos, subTagLen, nextType, r); in DoParse() 244 rState = ProcessSubtag(curPos, subTagLen, nextType, r); in DoParse() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/event_store/utility/reader/ |
H A D | sys_event_doc_reader.cpp | 65 auto curPos = in_.tellg(); in Init() local 68 in_.seekg(curPos, std::ios::beg); in Init() 208 uint32_t curPos = static_cast<uint32_t>(in_.tellg()); in HasReadPageEnd() local 209 if (curPos <= docHeaderSize_) { in HasReadPageEnd() 212 if (curPos == docHeaderSize_ + pageSize_ * (pageIndex + 1)) { in HasReadPageEnd() 219 return ((curPos - docHeaderSize_) % pageSize_ + BLOCK_SIZE) >= pageSize_; in HasReadPageEnd()
|
H A D | content_reader.cpp | 56 auto curPos = docStream.tellg(); in ReadFmtVersion() local 60 docStream.seekg(curPos, std::ios::beg); in ReadFmtVersion()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/events/ |
H A D | event.cpp | 22 Event::Event(const Point& curPos) : timeStamp_(HALTick::GetInstance().GetTime()), curPos_(curPos) {} in Event() argument
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_tcp_client.c | 85 char *curPos = data; in ProcData() local 97 int64_t length = func(sock, curPos, leftSize); in ProcData() 109 curPos += length; in ProcData()
|
H A D | netsys_udp_transfer.cpp | 32 char *curPos = data; in ProcUdpData() local 37 length = func(udpBuffer.sock, curPos, leftSize, udpBuffer.addr, lenAddr); in ProcUdpData()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | schema_utils.cpp | 403 for (size_t curPos = 1; curPos < tempInPathString.size();) { in ParseAndCheckFieldPath() local 404 if (curPos + 1 == tempInPathString.size()) { in ParseAndCheckFieldPath() 408 size_t nextPointPos = tempInPathString.find_first_of(".", curPos + 1); in ParseAndCheckFieldPath() 409 outPath.push_back(tempInPathString.substr(curPos + 1, nextPointPos - curPos - 1)); in ParseAndCheckFieldPath() 410 curPos = nextPointPos; in ParseAndCheckFieldPath()
|
H A D | flatbuffer_schema.cpp | 734 for (uint32_t curPos = 0; curPos < rawIndexStr.size();) { in ParseCheckIndexes() local 735 uint32_t nextCommaPos = rawIndexStr.find_first_of(',', curPos); in ParseCheckIndexes() 736 std::string eachIndexField = rawIndexStr.substr(curPos, nextCommaPos - curPos); in ParseCheckIndexes() 744 curPos = nextCommaPos + 1; in ParseCheckIndexes()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/ |
H A D | drag_animation_helper.cpp | 63 … OffsetF curPos = {child.offset.GetX() + child.halfWidth, child.offset.GetY() + child.halfHeight}; in CalcDistanceBeforeLifting() local 64 float dis = sqrt(pow(gatherNodeCenter.GetX() - curPos.GetX(), 2) + in CalcDistanceBeforeLifting() 65 pow(gatherNodeCenter.GetY() - curPos.GetY(), 2)); in CalcDistanceBeforeLifting() 79 OffsetF DragAnimationHelper::CalcOffsetToTarget(OffsetF curPos, OffsetF targetPos, CalcResult& calc… in CalcOffsetToTarget() argument 85 float xDis = targetPos.GetX() - curPos.GetX(); in CalcOffsetToTarget() 86 float yDis = targetPos.GetY() - curPos.GetY(); in CalcOffsetToTarget() 120 auto curPos = child.offset + OffsetF(child.halfWidth, child.halfHeight); in PlayGatherNodeTranslateAnimation() local 121 auto offset = CalcOffsetToTarget(curPos, gatherNodeCenter, calcResult); in PlayGatherNodeTranslateAnimation()
|
H A D | drag_animation_helper.h | 37 static OffsetF CalcOffsetToTarget(OffsetF curPos, OffsetF targetrPos, CalcResult& calcResult);
|
/ohos5.0/base/startup/appspawn/util/src/ |
H A D | appspawn_utils.c | 144 char *curPos = strchr(path, slash); in MakeDirRec() local 145 while (curPos != NULL) { in MakeDirRec() 146 int len = curPos - p; in MakeDirRec() 147 p = curPos + 1; in MakeDirRec() 149 curPos = strchr(p, slash); in MakeDirRec() 158 curPos = strchr(p, slash); in MakeDirRec()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | render_grid.cpp | 536 Offset curPos = GetCenterPosition(child->GetPosition(), child->GetLayoutSize()); in FocusMove() local 537 double curDis = sqrt((position.GetX() - curPos.GetX()) * (position.GetX() - curPos.GetX()) + in FocusMove() 538 (position.GetY() - curPos.GetY()) * (position.GetY() - curPos.GetY())); in FocusMove() 567 Offset curPos = GetCenterPosition(child->GetPosition(), child->GetLayoutSize()); in focusMoveUp() local 568 double curDis = sqrt((position.GetX() - curPos.GetX()) * (position.GetX() - curPos.GetX()) + in focusMoveUp() 569 (position.GetY() - curPos.GetY()) * (position.GetY() - curPos.GetY())); in focusMoveUp()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/sink/ |
H A D | calc_max_amplitude.cpp | 70 char *curPos = frame + (i * SAMPLE_S24_BYTE_NUM); in CalculateMaxAmplitudeForPCM24Bit() local 73 curValue += (*(curPos + j) << (ONE_BYTE_BITS * j)); in CalculateMaxAmplitudeForPCM24Bit()
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
H A D | dlp_file_kits.cpp | 126 off_t curPos = lseek(dlpFd, 0, SEEK_CUR); in IsDlpFile() local 127 if (curPos < 0) { in IsDlpFile() 142 if (lseek(dlpFd, curPos, SEEK_SET) < 0) { in IsDlpFile()
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/events/ |
H A D | event.h | 66 Event(const Point& curPos);
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_decoder.cpp | 691 uint32_t curPos = srcMgr_.inputStream->Tell(); in DecodeHeader() local 694 srcMgr_.inputStream->Seek(curPos); in DecodeHeader() 697 srcMgr_.inputStream->Seek(curPos); in DecodeHeader() 752 uint32_t curPos = srcMgr_.inputStream->Tell(); in ParseExifData() local 766 srcMgr_.inputStream->Seek(curPos); in ParseExifData() 1078 uint32_t curPos = srcMgr_.inputStream->Tell(); in GetFilterArea() local 1103 srcMgr_.inputStream->Seek(curPos); in GetFilterArea()
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/include/ |
H A D | json_flatten_parser.h | 53 size_t curPos {0};
|