Home
last modified time | relevance | path

Searched refs:remain (Results 1 - 25 of 39) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_algorithm.cpp145 double remain = left_.ShrinkWidth(diff / HALF); in ShrinkWidth() local
146 remain = right_.ShrinkWidth(remain + (diff / HALF)); in ShrinkWidth()
147 remain = left_.ShrinkWidth(remain); in ShrinkWidth()
148 if (NearEqual(remain, 0.0)) { in ShrinkWidth()
154 remain = middle_.ShrinkWidth(remain); in ShrinkWidth()
155 if (NearEqual(remain, 0.0)) { in ShrinkWidth()
165 double textRemain = text_.ShrinkWidth(remain); in ShrinkWidth()
192 double remain = left_.EnlargeWidth(diff / HALF); EnlargeWidth() local
205 double remain = top_.ShrinkHeight(diff / HALF); ShrinkHeight() local
251 double remain = top_.EnlargeHeight(diff / HALF); EnlargeHeight() local
[all...]
H A Dsecurity_component_layout_element.h112 double remain = reduceSize - (width_ - minPadddingSize_); variable
114 return remain;
126 double remain = reduceSize - (height_ - minPadddingSize_); variable
128 return remain;
H A Dsecurity_component_layout_element.cpp72 int remain = reduceSize - (width_ - minIconSize_); in ShrinkWidth() local
74 return remain; in ShrinkWidth()
88 double remain = reduceSize - (height_ - minIconSize_); in ShrinkHeight() local
90 return remain; in ShrinkHeight()
322 int remain = reduceSize - (width_ - minTextWidth); in ShrinkWidth() local
325 return remain; in ShrinkWidth()
344 double remain = reduceSize - (height_ - minTextHeight); in ShrinkHeight() local
347 return remain; in ShrinkHeight()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
H A Dpacket.c269 uint32_t remain = BufferGetSize(start->buf) - offset; in PacketCopyToBuffer() local
270 if (remain >= size) { in PacketCopyToBuffer()
277 retSize = remain; in PacketCopyToBuffer()
278 (void)memcpy_s(buffer, remain, (uint8_t *)BufferPtr(start->buf) + offset, remain); in PacketCopyToBuffer()
280 buffer += remain; in PacketCopyToBuffer()
281 remain = size - remain; in PacketCopyToBuffer()
285 if (remain == 0) { in PacketCopyToBuffer()
289 uint32_t copySize = ((remain < in PacketCopyToBuffer()
303 uint32_t remain = BufferGetSize(start->buf) - offset; PacketCopyFromBuffer() local
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_extractor_util.cpp236 uint64_t remain = size; in HasCopiedData() local
237 uint64_t reading = (remain > READ_SIZE) ? READ_SIZE : remain; in HasCopiedData()
254 while (remain > 0) { in HasCopiedData()
269 remain = remain - reading; in HasCopiedData()
270 reading = (remain > READ_SIZE) ? READ_SIZE : remain; in HasCopiedData()
/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/timerthread/
H A Dtimer_thread.cpp78 if (info->remain > 0) { in Traverse()
79 info->remain -= TIMER_STEP; in Traverse()
84 info->remain = info->delay; in Traverse()
105 info->remain = delay; in StartTimerTaskInner()
H A Dtimer_thread.h34 int32_t remain = 0; member
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dstream_depacketizer.cpp61 int remain = static_cast<int>(bufferSize - (ptr - buffer)); in DepacketizeBuffer() local
62 if (remain < dataLength_) { in DepacketizeBuffer()
63 TRANS_LOGE(TRANS_STREAM, "Data out of bounds, remain=%{public}d, dataLen=%{public}d", remain, dataLength_); in DepacketizeBuffer()
/foundation/arkui/ace_engine/test/unittest/core/pattern/refresh/
H A Drefresh_nested_test_ng.cpp283 EXPECT_EQ(res.remain, 0.f); in HWTEST_F()
288 EXPECT_EQ(res.remain, 0.f); in HWTEST_F()
293 EXPECT_EQ(res.remain, 5.f); in HWTEST_F()
316 .WillOnce(Return(ScrollResult { .remain = -5.f, .reachEdge = true })); in HWTEST_F()
318 EXPECT_EQ(res.remain, 0.f); in HWTEST_F()
323 EXPECT_EQ(res.remain, 0.f); in HWTEST_F()
329 .WillOnce(Return(ScrollResult { .remain = 0.f, .reachEdge = true })); in HWTEST_F()
331 EXPECT_EQ(res.remain, 0.f); in HWTEST_F()
356 .WillOnce(Return(ScrollResult { .remain = 0.f, .reachEdge = true })); in HWTEST_F()
358 EXPECT_EQ(res.remain, in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/tests/core/connection/manager/
H A Dconnection_flow_control_test.cpp106 int32_t remain = quotaInBytes - got;
108 got = controller->apply(controller, remain + 1);
110 EXPECT_EQ(remain, got);
/foundation/communication/dsoftbus/adapter/common/bus_center/network/
H A Dlnn_linkwatch.c64 int32_t remain = bufLen; in ProcessNetlinkAnswer() local
66 for (hdr = (struct nlmsghdr *)answer; remain >= (int32_t)sizeof(*hdr);) { in ProcessNetlinkAnswer()
68 if ((hdr->nlmsg_len - sizeof(*hdr)) < 0 || len > (uint32_t)remain) { in ProcessNetlinkAnswer()
74 remain -= NLMSG_ALIGN(len); in ProcessNetlinkAnswer()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dlf_ring.c276 FILLP_ULONG remain; in FillpRingFreeEntries() local
287 remain = (r->size + consTail - prodHead); in FillpRingFreeEntries()
288 cnt = (int)remain; in FillpRingFreeEntries()
290 FILLP_LOGERR("cnt is %d, real size:%lu", cnt, remain); in FillpRingFreeEntries()
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_event_test_ng.cpp550 EXPECT_EQ(res.remain, 0.0f); in HWTEST_F()
555 EXPECT_EQ(res.remain, 5.0f); in HWTEST_F()
577 EXPECT_EQ(res.remain, 0.0f); in HWTEST_F()
595 .WillOnce(Return(ScrollResult { .remain = 5.0f, .reachEdge = true })); in HWTEST_F()
598 .WillOnce(Return(ScrollResult { .remain = 5.0f, .reachEdge = true })); in HWTEST_F()
606 EXPECT_EQ(res.remain, 5.0f); in HWTEST_F()
625 .WillOnce(Return(ScrollResult { .remain = 5.0f, .reachEdge = true })); in HWTEST_F()
628 .WillOnce(Return(ScrollResult { .remain = 5.0f, .reachEdge = true })); in HWTEST_F()
637 EXPECT_EQ(res.remain, 0.0f); in HWTEST_F()
656 EXPECT_EQ(res.remain, 4. in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/core/connection/manager/
H A Dsoftbus_conn_flow_control.c62 int32_t remain = self->quotaInBytes - appliedTotal; in Apply() local
63 int32_t amount = remain > expect ? expect : remain; in Apply()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/store/
H A Dauto_cache.cpp336 size_t remain = watchers.size(); in OnChange() local
338 remain--; in OnChange()
342 watcher->OnChange(origin, primaryFields, (remain != 0) ? ChangeInfo(values) : std::move(values)); in OnChange()
359 size_t remain = watchers.size(); in OnChange() local
361 remain--; in OnChange()
365 watcher->OnChange(origin, fields, (remain != 0) ? ChangeData(datas) : std::move(datas)); in OnChange()
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/http/
H A Dhttp_media_downloader.cpp364 uint64_t remain = fileContentLength - mediaOffset; in ReadRingBuffer() local
365 readDataInfo.wantReadLength_ = remain < readDataInfo.wantReadLength_ ? remain : in ReadRingBuffer()
415 size_t remain = cacheMediaBuffer_->GetBufferSize(readOffset_); in ReadCacheBuffer() local
417 ", expectedLen: " + std::to_string(readDataInfo.wantReadLength_) + ", bufferSize: " + std::to_string(remain)); in ReadCacheBuffer()
474 size_t remain = GetCurrentBufferSize(); in CheckDownloadPos() local
478 if (remain < wantReadLength && isServerAcceptRange_ && in CheckDownloadPos()
479 (writeOffsetTmp < readOffset_ || writeOffsetTmp > readOffset_ + remain)) { in CheckDownloadPos()
481 ChangeDownloadPos(remain > 0); in CheckDownloadPos()
709 size_t remain in SeekCacheBuffer() local
[all...]
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dtar_file.cpp327 off_t remain = size; in WriteFileContent() local
328 while (remain > 0) { in WriteFileContent()
330 if (remain < read) { in WriteFileContent()
331 read = remain; in WriteFileContent()
344 remain -= read; in WriteFileContent()
348 if (remain == 0) { in WriteFileContent()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_notification.cpp456 uint16_t remain = mtu_ - (AVRC_TG_VENDOR_FIXED_OPERAND_SIZE + AVRC_TG_GCPASV_NUM_OF_VALUES_SIZE); in GetAvailableParameterSize() local
457 if (remain > (AVRC_TG_GCPASV_MAX_NUM_OF_ATTRIBUTES + AVRC_TG_GCPASV_MAX_NUM_OF_VALUES)) { in GetAvailableParameterSize()
458 remain = (AVRC_TG_GCPASV_MAX_NUM_OF_ATTRIBUTES + AVRC_TG_GCPASV_MAX_NUM_OF_VALUES); in GetAvailableParameterSize()
462 return (remain / unitsOfParam) * unitsOfParam; in GetAvailableParameterSize()
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Dsamgr_small_ipc_adapter.c131 int remain = RegisterRemoteFeatures(registerEpArg->endpoint); in Receive() local
132 HILOG_INFO(HILOG_MODULE_SAMGR, "Register endpoint<%s> and iunknown finished! remain<%d> iunknown!", in Receive()
133 registerEpArg->endpoint->name, remain); in Receive()
309 int remain = RegisterRemoteFeatures(endpoint); in OnSamgrServerExit() local
310 HILOG_INFO(HILOG_MODULE_SAMGR, "Reconnect and register finished! remain<%d> iunknown!", remain); in OnSamgrServerExit()
H A Dendpoint.c384 int remain = RegisterRemoteFeatures(endpoint); in Receive() local
385 HILOG_INFO(HILOG_MODULE_SAMGR, "Register endpoint<%s> and iunknown finished! remain<%d> iunknown!", in Receive()
386 endpoint->name, remain); in Receive()
614 int remain = RegisterRemoteFeatures(endpoint); in OnSamgrServerExit() local
615 HILOG_INFO(HILOG_MODULE_SAMGR, "Reconnect and register finished! remain<%d> iunknown!", remain); in OnSamgrServerExit()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscrollable.cpp401 offset = result.remain; in HandleScrollParentFirst()
435 if (NearZero(result.remain)) { in HandleScrollSelfFirst()
456 if (NearZero(result.remain)) { in HandleScrollSelfFirst()
464 auto overRes = parent->HandleScroll(result.remain, source, NestedState::CHILD_OVER_SCROLL); in HandleScrollSelfFirst()
465 offset += std::abs(overOffset) < std::abs(result.remain) ? overOffset : overRes.remain; in HandleScrollSelfFirst()
505 remainOffset = result.remain; in HandleScrollParallel()
525 parent->HandleScroll(result.remain, source, NestedState::CHILD_OVER_SCROLL); in HandleScrollParallel()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dip_tools.cpp135 int remain = prefixLength % BIT_NUM_PER_BYTE; in ConvertIpv4Mask() local
140 mask[quot] = (MAX_BYTE + 1) - (1 << (BIT_NUM_PER_BYTE - remain)); in ConvertIpv4Mask()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Ddb_common.h74 static std::string StringMasking(const std::string &oriStr, size_t remain = 3); // remain 3 unmask
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_pattern.cpp1174 result = HandleDragUpdate(result.remain, velocity); in HandleScroll()
1177 result = parent->HandleScroll(result.remain, source, NestedState::CHILD_SCROLL, velocity); in HandleScroll()
1195 if (!NearZero(result.remain)) { in HandleScroll()
1196 result = HandleDragUpdate(result.remain, velocity); in HandleScroll()
/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Drender_grid.cpp843 int32_t remain = maxCount_ - (index_ + count_); in RequestChildIfNeeded() local
844 if (remain > 0 && callback_) { in RequestChildIfNeeded()
845 callback_(index_ + count_, std::min(cachedCount_ - cachedNum, remain)); in RequestChildIfNeeded()

Completed in 20 milliseconds

12