/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
D | text_editing_value.cpp | 120 void TextEditingValue::UpdateSelection(int32_t start, int32_t end) in UpdateSelection() argument 122 if (start < 0) { in UpdateSelection() 123 start = 0; in UpdateSelection() 128 selection.Update(start, end); in UpdateSelection() 132 void TextEditingValue::UpdateCompose(int32_t start, int32_t end) in UpdateCompose() argument 134 compose.Update(start, end); in UpdateCompose() 146 int32_t start = selection.GetStart(); in SelectionAwareTextManipulation() local 148 if (static_cast<size_t>(end) > wideText.length() || start > end) { in SelectionAwareTextManipulation() 149 LOGD("Illegal selection for manipulate: start %{public}d, end %{public}d", start, end); in SelectionAwareTextManipulation() 153 if ((start <= 0) && (end <= 0)) { in SelectionAwareTextManipulation() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
D | animatable_data.cpp | 22 const Dimension& start, const Dimension& end, float process) in Blend() argument 29 return start * scaleB + end * scaleA; in Blend() 34 const Color& start, const Color& end, float process) in Blend() argument 36 float startA = start.GetAlpha(); in Blend() 37 float startR = start.GetRed(); in Blend() 38 float startG = start.GetGreen(); in Blend() 39 float startB = start.GetBlue(); in Blend() 48 BorderStyle AnimatableData<BorderStyle>::Blend(const BorderStyle& start, const BorderStyle& end, fl… in Blend() argument 53 return start; in Blend() 57 Shadow AnimatableData<Shadow>::Blend(const Shadow& start, const Shadow& end, float process) in Blend() argument [all …]
|
D | animatable_data.h | 32 static T Blend(const T& start, const T& end, float process) in Blend() argument 34 return start + (end - start) * process; in Blend() 41 virtual T Animate(const T& start, const T& end, float process) in Animate() argument 43 return Blend(start, end, process); in Animate() 61 BorderStyle AnimatableData<BorderStyle>::Blend(const BorderStyle& start, const BorderStyle& end, fl… 64 Shadow AnimatableData<Shadow>::Blend(const Shadow& start, const Shadow& end, float process); 68 const BackgroundImageSize& start, const BackgroundImageSize& end, float process); 71 Dimension AnimatableData<Dimension>::Blend(const Dimension& start, const Dimension& end, float proc… 74 Color AnimatableData<Color>::Blend(const Color& start, const Color& end, float process);
|
/foundation/ai/intelligent_voice_framework/utils/ |
D | time_util.h | 59 static void GetTime(timespec &start); 60 static uint32_t TimeElapse(const timespec &start); 61 static void TimeElapse(const timespec &start, const timespec &end); 62 static long TimeElapseUs(const timespec &start, const timespec &end); 66 inline void TimeUtil::GetTime(timespec &start) in GetTime() argument 68 if (clock_gettime(CLOCK_MONOTONIC, &start) == -1) { in GetTime() 73 inline uint32_t TimeUtil::TimeElapse(const timespec &start) in TimeElapse() argument 80 return (current.tv_sec > start.tv_sec) ? (current.tv_sec - start.tv_sec) : 0; in TimeElapse() 83 inline void TimeUtil::TimeElapse(const timespec &start, const timespec &end) in TimeElapse() argument 85 long secs = end.tv_sec - start.tv_sec; in TimeElapse() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
D | char_groups.cpp | 28 os << "[" << range.start << ", " << range.end << ")"; in operator <<() 54 for (auto i = range_.start; i < range_.end; i++) { in GetNumberOfGlyph() 66 return range_.end - range_.start; in GetNumberOfCharGroup() 102 if (range_.start > range_.end || range_.start < 0 || range_.end < 0 || in IsValid() 103 … range_.end > static_cast<int>(pcgs_->size()) || range_.start > static_cast<int>(pcgs_->size())) { in IsValid() 133 return range_.start < right.range_.end && right.range_.start < range_.end; in IsIntersect() 142 return GetSplitAll(index + range_.start); in GetSplit() 151 if (index <= range_.start || index >= range_.end) { in GetSplitAll() 158 retval[1].range_.start = index; in GetSplitAll() 162 CharGroups CharGroups::GetSub(const int &start, const int &end) const in GetSub() argument [all …]
|
/foundation/communication/dsoftbus/core/common/bitmap/ |
D | softbus_bitmap.c | 37 void SoftbusBitmapSetBits(uint32_t *bitmap, const uint8_t start, const uint8_t nums) in SoftbusBitmapSetBits() argument 39 if (bitmap == NULL || start > UINT32_BITNUM || (start + nums) > UINT32_BITNUM || nums == 0) { in SoftbusBitmapSetBits() 42 …*bitmap |= (UINT32_MAX - ((((1U << ((start + nums - 1U))) - 1U)) & (~((1U << ((start - 1U))) - 1U)… in SoftbusBitmapSetBits() 45 void SoftbusBitmapClrBits(uint32_t *bitmap, const uint8_t start, const uint8_t nums) in SoftbusBitmapClrBits() argument 47 if (bitmap == NULL || start > UINT32_BITNUM || (start + nums) > UINT32_BITNUM || nums == 0) { in SoftbusBitmapClrBits() 50 *bitmap &= ((((1U << ((start + nums - 1U))) - 1U)) & (~((1U << ((start - 1U))) - 1U))); in SoftbusBitmapClrBits()
|
/foundation/arkui/ui_lite/frameworks/components/ |
D | ui_circle_progress.cpp | 48 void UICircleProgress::GetStartEndAngle(int16_t& start, int16_t& end) const in GetStartEndAngle() argument 51 start = endAngle_; in GetStartEndAngle() 54 start = startAngle_; in GetStartEndAngle() 59 void UICircleProgress::GetAngleRange(int16_t& start, int16_t& end) const in GetAngleRange() argument 61 GetStartEndAngle(start, end); in GetAngleRange() 62 DrawArc::GetInstance()->GetDrawRange(start, end); in GetAngleRange() 65 void UICircleProgress::GetRedrawAngle(int16_t& start, int16_t& end) const in GetRedrawAngle() argument 67 GetStartEndAngle(start, end); in GetRedrawAngle() 73 int16_t angleRange = end - start; in GetRedrawAngle() 78 start = end - angle; in GetRedrawAngle() [all …]
|
D | ui_chart.cpp | 261 Point start; in RefreshInvalidateRect() local 262 GetPoint(startIndex, start); in RefreshInvalidateRect() 266 int16_t xMin = MATH_MIN(start.x, end.x); in RefreshInvalidateRect() 267 int16_t xMax = MATH_MAX(start.x, end.x); in RefreshInvalidateRect() 558 Point& start, in Smooth() argument 566 …if (((end.y - start.y <= 0) && (current.y - end.y <= 0)) || ((end.y - start.y >= 0) && (current.y … in Smooth() 567 …slope = (current.x == start.x) ? QUARTER_IN_DEGREE : FastAtan2(current.x - start.x, current.y - st… in Smooth() 583 Point start; in GetDataBySmooth() local 587 data->GetPoint(startIndex, start); in GetDataBySmooth() 591 …uint16_t preSlope = (start.x == end.x) ? QUARTER_IN_DEGREE : FastAtan2(end.x - start.x, end.y - st… in GetDataBySmooth() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
D | date_picker_dialog_composed_element.cpp | 69 auto start = render->GetStartDate(); in GetStart() local 71 startDate += std::to_string(start.GetYear()); in GetStart() 73 startDate += std::to_string(start.GetMonth()); in GetStart() 75 startDate += std::to_string(start.GetDay()); in GetStart() 85 auto start = render->GetEndDate(); in GetEnd() local 87 endDate += std::to_string(start.GetYear()); in GetEnd() 89 endDate += std::to_string(start.GetMonth()); in GetEnd() 91 endDate += std::to_string(start.GetDay()); in GetEnd() 101 auto start = render->GetSelectedDate(); in GetSelected() local 103 selectedDate += std::to_string(start.GetYear()); in GetSelected() [all …]
|
D | date_picker_composed_element.cpp | 80 auto start = render->GetStartDate(); in GetStart() local 82 startDate += std::to_string(start.GetYear()); in GetStart() 84 startDate += std::to_string(start.GetMonth()); in GetStart() 86 startDate += std::to_string(start.GetDay()); in GetStart() 96 auto start = render->GetEndDate(); in GetEnd() local 98 endDate += std::to_string(start.GetYear()); in GetEnd() 100 endDate += std::to_string(start.GetMonth()); in GetEnd() 102 endDate += std::to_string(start.GetDay()); in GetEnd() 112 auto start = render->GetSelectedDate(); in GetSelected() local 114 selectedDate += std::to_string(start.GetYear()); in GetSelected() [all …]
|
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
D | net_stats_history.cpp | 21 int32_t NetStatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, uint64_t start, uint64_t end) in GetHistory() argument 24 return handler->ReadStatsData(recv, start, end); in GetHistory() 27 int32_t NetStatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, uint32_t uid, uint64_t start, … in GetHistory() argument 30 return handler->ReadStatsData(recv, uid, start, end); in GetHistory() 33 …StatsHistory::GetHistory(std::vector<NetStatsInfo> &recv, const std::string &iface, uint64_t start, in GetHistory() argument 37 return handler->ReadStatsData(recv, iface, start, end); in GetHistory() 41 uint64_t start, uint64_t end) in GetHistory() argument 44 return handler->ReadStatsData(recv, iface, uid, start, end); in GetHistory()
|
D | net_stats_data_handler.cpp | 29 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, uint64_t start, uint64… in ReadStatsData() argument 32 return helper->SelectData(infos, UID_TABLE, start, end); in ReadStatsData() 35 …andler::ReadStatsData(std::vector<NetStatsInfo> &infos, uint64_t uid, uint64_t start, uint64_t end) in ReadStatsData() argument 38 return helper->SelectData(uid, start, end, infos); in ReadStatsData() 41 …aHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, const std::string &iface, uint64_t start, in ReadStatsData() argument 49 return helper->SelectData(iface, start, end, infos); in ReadStatsData() 53 const uint32_t uid, uint64_t start, uint64_t end) in ReadStatsData() argument 60 return helper->SelectData(iface, uid, start, end, infos); in ReadStatsData() 90 int32_t NetStatsDataHandler::DeleteByDate(const std::string &tableName, uint64_t start, uint64_t en… in DeleteByDate() argument 93 return helper->DeleteData(tableName, start, end); in DeleteByDate()
|
/foundation/communication/dsoftbus/tests/core/common/bitmap/ |
D | bitmap_test.cpp | 96 uint8_t start = BITNUM + 1; variable 98 SoftbusBitmapSetBits(nullptr, start, nums); 101 SoftbusBitmapClrBits(nullptr, start, nums); 105 SoftbusBitmapSetBits(&bitmap, start, nums); 109 SoftbusBitmapClrBits(&bitmap, start, nums); 112 start = TEST_POS; 115 SoftbusBitmapSetBits(&bitmap, start, nums); 119 SoftbusBitmapClrBits(&bitmap, start, nums); 124 SoftbusBitmapSetBits(&bitmap, start, nums); 128 SoftbusBitmapClrBits(&bitmap, start, nums); [all …]
|
/foundation/communication/dsoftbus/core/connection/wifi_direct/utils/ |
D | wifi_direct_perf_recorder.c | 70 uint64_t start = self->timePoints[TP_P2P_CONNECT_START]; in Calculate() local 72 if (end && start) { in Calculate() 73 self->timeCosts[TC_TOTAL] = end - start; in Calculate() 76 start = self->timePoints[TP_P2P_CREATE_GROUP_START]; in Calculate() 78 if (end && start) { in Calculate() 79 self->timeCosts[TC_CREATE_GROUP] = end - start; in Calculate() 82 start = self->timePoints[TP_P2P_CONNECT_GROUP_START]; in Calculate() 84 if (end && start) { in Calculate() 85 self->timeCosts[TC_CONNECT_GROUP] = end - start; in Calculate() 88 start = self->timePoints[TP_P2P_GET_WIFI_CONFIG_START]; in Calculate() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/kvdelegatemanager_fuzzer/ |
D | kvdelegatemanager_fuzzer.cpp | 31 std::string GetRandomString(const uint8_t* data, size_t size, size_t len, uint32_t &start) in GetRandomString() argument 37 if (start >= size || start + len >= size) { in GetRandomString() 40 res = std::string(data + start, data + start + len - 1); in GetRandomString() 41 start += len; in GetRandomString() 61 uint32_t start = 0; in CombineTest() local 62 std::string appId = GetRandomString(data, size, len, start); in CombineTest() 63 std::string userId = GetRandomString(data, size, len, start); in CombineTest() 64 std::string storeId = GetRandomString(data, size, len, start); in CombineTest()
|
/foundation/multimedia/histreamer/engine/plugin/common/ |
D | share_memory.cpp | 55 size_t start = 0; in Write() local 57 start = size; in Write() 59 start = std::min(position, capacity); in Write() 61 size_t length = std::min(writeSize, capacity - start); in Write() 62 if (!sharedMem_->WriteToAshmem(in, (int32_t)writeSize, (int32_t)start)) { in Write() 66 size = start + length; in Write() 72 size_t start = 0; in Read() local 75 start = std::min(position, size); in Read() 76 maxLength = size - start; in Read() 79 …if (memcpy_s(out, length, sharedMem_->ReadFromAshmem((int32_t)readSize, (int32_t)start), length) !… in Read()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
D | packet.c | 246 static Payload *PacketMoveToOffset(const Packet *pkt, Payload *start, const Payload *end, uint32_t … in PacketMoveToOffset() argument 253 while (BufferGetSize(start->buf) + currOffset <= *offset) { in PacketMoveToOffset() 254 if (start == end) { in PacketMoveToOffset() 257 currOffset += BufferGetSize(start->buf); in PacketMoveToOffset() 258 start = start->next; in PacketMoveToOffset() 263 return start; in PacketMoveToOffset() 266 static uint32_t PacketCopyToBuffer(Payload *start, const Payload *end, uint8_t *buffer, uint32_t of… in PacketCopyToBuffer() argument 269 uint32_t remain = BufferGetSize(start->buf) - offset; in PacketCopyToBuffer() 271 if (memcpy_s(buffer, size, (uint8_t *)BufferPtr(start->buf) + offset, size) != EOK) { in PacketCopyToBuffer() 278 (void)memcpy_s(buffer, remain, (uint8_t *)BufferPtr(start->buf) + offset, remain); in PacketCopyToBuffer() [all …]
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
D | text_component.cpp | 41 backgroundColorSpan_.start = -1; in TextComponent() 43 foregroundColorSpan_.start = -1; in TextComponent() 45 lineBackgroundColorSpan_.start = -1; in TextComponent() 135 backgroundColorSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 151 foregroundColorSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 167 lineBackgroundColorSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 175 absoluteSizeSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 187 relativeSizeSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 212 stringStyleSpan_.start = styleItem->GetNumValue(); in ApplyPrivateStyle() 375 if (backgroundColorSpan_.start != -1 && backgroundColorSpan_.end != -1) { in SetRichTextSpan() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
D | rich_editor_controller.cpp | 63 int32_t start, int32_t end, TextStyle textStyle, ImageSpanAttribute imageStyle) in UpdateSpanStyle() argument 68 start = std::max(0, start); in UpdateSpanStyle() 72 if (start > end) { in UpdateSpanStyle() 73 std::swap(start, end); in UpdateSpanStyle() 75 if (start > length || end < 0 || start == end) { in UpdateSpanStyle() 80 richEditorPattern->UpdateSpanStyle(start, end, textStyle, imageStyle); in UpdateSpanStyle() 95 RichEditorSelection RichEditorController::GetSpansInfo(int32_t start, int32_t end) in GetSpansInfo() argument 100 value = richEditorPattern->GetSpansInfo(start, end, GetSpansMethod::GETSPANS); in GetSpansInfo()
|
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_renderer/test/unittest/audio_renderer_interrupt_test/ |
D | AudioRendererInterruptRareTypeUnitTest.js | 128 async function start(render,done) { function 130 await render.start() 143 await render.start() 194 await start(render1, done) 198 await start(render2, done) 216 await start(render1, done) 220 await start(render2, done) 239 await start(render1, done) 243 await start(render2, done) 262 await start(render1, done) [all …]
|
D | AudioRendererInterruptCommonTypeUnitTest.js | 128 async function start(render,done) { function 130 await render.start() 143 await render.start() 193 await start(render1, done) 197 await start(render2, done) 215 await start(render1, done) 219 await start(render2, done) 238 await start(render1, done) 242 await start(render2, done) 261 await start(render1, done) [all …]
|
/foundation/multimedia/av_codec/services/utils/ |
D | avsharedmemorybase.cpp | 151 int32_t start = 0; in Write() local 153 start = size_; in Write() 155 start = std::min(position, capacity_); in Write() 157 int32_t unusedSize = capacity_ - start; in Write() 159 …AVCODEC_LOGD("write data,length:%{public}d, start:%{public}d, name:%{public}s", length, start, nam… in Write() 160 …CHECK_AND_RETURN_RET_LOG((length + start) <= capacity_, 0, "Write out of bounds, length:%{public}d… in Write() 161 "start:%{public}d, capacity_:%{public}d", length, start, capacity_); in Write() 162 uint8_t *dstPtr = base_ + start; in Write() 168 size_ = start + length; in Write() 176 int32_t start = 0; in Read() local [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/opentype_parser/ |
D | ranges.cpp | 26 if (range.end - range.start == 1) { in AddRange() 27 singles_[range.start] = range.gid; in AddRange() 39 for (const auto &[start, end, gid] : ranges_) { in GetGlyphId() 44 if (codepoint >= start) { in GetGlyphId() 55 for (const auto &[start, end, gid] : ranges_) { in Dump() 57 …FUNC_LINE(INFO) << "0x" << std::uppercase << std::hex << std::setw(4) << std::setfill('0') << start in Dump()
|
/foundation/ability/ability_base/interfaces/kits/native/uri/src/ |
D | uri.cpp | 119 size_t start = (ssi == NOT_FOUND) ? 0 : (ssi + 1); in ParseSsp() local 124 if (end > start) { in ParseSsp() 125 ssp = uriString_.substr(start, end - start); in ParseSsp() 155 size_t start = ssi + POS_INC_AGAIN; in ParseAuthority() local 156 size_t end = start; in ParseAuthority() 168 return uriString_.substr(start, end - start); in ParseAuthority() 218 size_t start = (userInfoSeparator == NOT_FOUND) ? 0 : (userInfoSeparator + 1); in ParseHost() local 219 size_t portSeparator = authority.find_first_of(PORT_SEPARATOR, start); in ParseHost() 223 if (start < end) { in ParseHost() 224 host = authority.substr(start, end - start); in ParseHost() [all …]
|
/foundation/filemanagement/dfs_service/utils/dentry/include/ |
D | meta_file.h | 111 static uint32_t FindNextBit(const uint8_t addr[], uint32_t maxSlots, uint32_t start) in FindNextBit() 113 while (start < maxSlots) { in FindNextBit() 114 if (BitOps::TestBit(start, addr)) { in FindNextBit() 115 return start; in FindNextBit() 117 start++; in FindNextBit() 122 static uint32_t FindNextZeroBit(const uint8_t addr[], uint32_t maxSlots, uint32_t start) in FindNextZeroBit() 124 while (start < maxSlots) { in FindNextZeroBit() 125 if (!BitOps::TestBit(start, addr)) { in FindNextZeroBit() 126 return start; in FindNextZeroBit() 128 start++; in FindNextZeroBit()
|