/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/ |
H A D | gesture_group.cpp | 64 int32_t total = *plen; in Deserialize() local 65 if (total <= 0 || total >= MAX_BYTES_SIZE) { in Deserialize() 68 auto ret = total; in Deserialize() 69 total -= sizeof(int32_t); in Deserialize() 70 if (total < 0) { in Deserialize() 73 total -= sizeof(GestureType); in Deserialize() 74 if (total < 0) { in Deserialize() 79 total -= sizeof(GestureMode); in Deserialize() 80 if (total < in Deserialize() 99 int32_t total = 0; SizeofMe() local 126 auto total = SizeofMe(); Serialize() local [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_packetizer.cpp | 26 auto total = StreamPacketHeader::STREAM_HEADER_SIZE; in CalculateHeaderSize() local 28 return total; in CalculateHeaderSize() 33 auto total = 0; in CalculateExtSize() local 36 total += TwoLevelsTlv::HEADER_LEN + TwoLevelsTlv::NUMS_LEN; in CalculateExtSize() 37 total += TwoLevelsTlv::HEADER_LEN + TwoLevelsTlv::NUMS_LEN; in CalculateExtSize() 38 total += Align(extSize, SHIFT); in CalculateExtSize() 39 total += TwoLevelsTlv::CHECK_SUM_LEN; in CalculateExtSize() 42 return total; in CalculateExtSize()
|
/foundation/communication/dhcp/test/unittest/services/dhcp_client/ |
H A D | dhcp_socket_test.cpp | 160 int total = 0; in HWTEST_F() local 167 total = count + 1; in HWTEST_F() 168 EXPECT_EQ(CheckReadBytes(count, total), SOCKET_OPT_FAILED); in HWTEST_F() 170 total = count; in HWTEST_F() 171 EXPECT_EQ(CheckReadBytes(count, total), SOCKET_OPT_SUCCESS); in HWTEST_F() 179 int total = (int)sizeof(struct UdpDhcpPacket) + 1; in HWTEST_F() local 180 EXPECT_EQ(CheckUdpPacket(&packet, total), SOCKET_OPT_FAILED); in HWTEST_F() 182 total = (int)sizeof(struct UdpDhcpPacket); in HWTEST_F() 185 EXPECT_EQ(CheckUdpPacket(&packet, total), SOCKET_OPT_FAILED); in HWTEST_F() 190 EXPECT_EQ(CheckUdpPacket(&packet, total), SOCKET_OPT_FAILE in HWTEST_F() 210 int total = (int)sizeof(struct UdpDhcpPacket) + 1; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_trans.c | 49 header->total = ntohl(tmp->total); in UnpackTransHeader() 50 if ((header->size != dataLen - BLE_TRANS_HEADER_SIZE) || (header->total > MAX_DATA_LEN) || in UnpackTransHeader() 51 (header->size > header->total) || (header->total - header->size < header->offset)) { in UnpackTransHeader() 53 "unpack ble trans header failed, dataLen=%{public}u, total=%{public}u, currentPacketSize=%{public}u", in UnpackTransHeader() 54 dataLen, header->total, header->size); in UnpackTransHeader() 67 it->header.seq, it->header.total, it->header.size, it->header.offset); in DiscardBuffer() 74 buffer->total = 0; in DiscardBuffer() 93 if (header.size == header.total) { in ConnGattTransRecv() [all...] |
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/downloader/ |
H A D | operator.rs | 53 /// total: Option<u64> 71 /// the total file size. 93 fn progress<'a>(&'a mut self, downloaded: u64, total: Option<u64>) -> ProgressFuture<'a, Self> in progress() 100 total, in progress() 121 total: Option<u64>, in poll_progress() 123 Pin::new(&mut **self).poll_progress(cx, downloaded, total) in poll_progress() 149 total: Option<u64>, 160 Pin::new(&mut fut.operator).poll_progress(cx, fut.downloaded, fut.total)
|
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/uploader/ |
H A D | operator.rs | 45 /// total: Option<u64> 54 /// the total size. 65 fn progress<'a>(&'a mut self, uploaded: u64, total: Option<u64>) -> ProgressFuture<'a, Self> in progress() 72 total, in progress() 85 total: Option<u64>, in poll_progress() 87 Pin::new(&mut **self).poll_progress(cx, uploaded, total) in poll_progress() 95 total: Option<u64>, 106 Pin::new(&mut fut.operator).poll_progress(cx, fut.uploaded, fut.total)
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_progress_ffi.cpp | 34 void FfiOHOSAceFrameworkProgressCreate(double value, double total, int32_t type) in FfiOHOSAceFrameworkProgressCreate() argument 42 if (value > total) { in FfiOHOSAceFrameworkProgressCreate() 43 realValue = total; in FfiOHOSAceFrameworkProgressCreate() 48 ProgressModel::GetInstance()->Create(0.0, realValue, 0.0, total, PROGRESS_TYPES_NG[type]); in FfiOHOSAceFrameworkProgressCreate()
|
/foundation/arkui/ace_engine/frameworks/base/memory/ |
H A D | memory_monitor.cpp | 66 info.total -= it->second.size; 85 info.total += size; 95 std::string out = "total = " + std::to_string(total_) + ", count = " + std::to_string(count_); 98 if (info.total == 0) { 101 out = typeName + ": total = " + std::to_string(info.total) + ", count = " + std::to_string(info.count); 114 size_t total = 0; member
|
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/ |
H A D | lock_free_queue.c | 26 int total = size * count + 1;
in LFQUE_Create() local 27 if (total <= 0) {
in LFQUE_Create() 31 register LockFreeQueue *queue = (LockFreeQueue *)SAMGR_Malloc(sizeof(LockFreeQueue) + total);
in LFQUE_Create() 38 queue->totalSize = total;
in LFQUE_Create()
|
/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/ |
H A D | trans_mananger_test.cpp | 144 uint64_t total = 0; in HWTEST_F() local 146 transManager_->NotifyFileProgress(sessionName, total, processed); in HWTEST_F() 155 uint64_t total = 0; in HWTEST_F() local 157 TransManager::GetInstance().NotifyFileProgress(sessionName, total, processed); in HWTEST_F()
|
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/ |
H A D | cast_local_file_channel_server.cpp | 376 int total = 0; in ReadFileDataByFd() local 377 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 378 while (total < sendLen && nread > 0) { in ReadFileDataByFd() 379 total += nread; in ReadFileDataByFd() 380 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 383 return total; in ReadFileDataByFd()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/ |
H A D | cast_local_file_channel_server.cpp | 365 int total = 0; in ReadFileDataByFd() local 366 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 367 while (total < sendLen && nread > 0) { in ReadFileDataByFd() 368 total += nread; in ReadFileDataByFd() 369 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 372 return total; in ReadFileDataByFd()
|
/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/ |
H A D | storage_stats.h | 26 StorageStats(int64_t total, int64_t audio, int64_t video, int64_t image, int64_t file, int64_t app) in StorageStats() argument 27 : total_(total), audio_(audio), video_(video), image_(image), file_(file), app_(app) {} in StorageStats()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_storage_executor_extend.cpp | 331 int SQLiteSingleVerStorageExecutor::GetCountValue(sqlite3_stmt *&countStatement, uint32_t &total) const in GetCountValue() 338 total = 0; in GetCountValue() 341 total = static_cast<uint32_t>(readCount); in GetCountValue() 344 LOGD("[GetCountValue]Entry count in this result set is %" PRIu32 "", total); in GetCountValue() 352 int SQLiteSingleVerStorageExecutor::GetUnSyncTotalByTimestamp(Timestamp begin, Timestamp end, uint32_t &total) const in GetUnSyncTotalByTimestamp() 359 return GetCountValue(countStatement, total); in GetUnSyncTotalByTimestamp() 363 uint32_t &total) const in GetDeletedSyncTotalByTimestamp() 370 return GetCountValue(countStatement, total); in GetDeletedSyncTotalByTimestamp() 374 const std::pair<Timestamp, Timestamp> &timeRange, uint32_t &total) const in GetSyncTotalWithQuery() 387 return GetCountValue(queryStmt, total); in GetSyncTotalWithQuery() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | rs_skia_memory_tracer.cpp | 159 [](int total, const auto& typedValue) { return total + typedValue.second.value; }); in GetGLMemorySize() 172 TraceValue total = ConvertUnits(totalSize_); in LogTotals() local 174 log.AppendFormat(" %.0f bytes, %.2f %s (%.2f %s is purgeable)\n", totalSize_.value, total.value, in LogTotals() 175 total.units.c_str(), purgeable.value, purgeable.units.c_str()); in LogTotals()
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | ace_performance_monitor.cpp | 143 auto total = static_cast<int64_t>(duration_cast<nanoseconds>(end_ - begin_).count()); in FlushPerfMonitor() local 144 auto frameWork = total - timeSlice_[MonitorTag::COMPONENT_CREATION] - timeSlice_[MonitorTag::COMPONENT_LIFECYCLE] - in FlushPerfMonitor() 152 json->Put("total", total); in FlushPerfMonitor()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/heif_impl/heif_parser/box/ |
H A D | item_data_box.h | 43 size_t total = 0; in GetExtentsTotalSize() local 45 total += extent.data.size(); in GetExtentsTotalSize() 47 return total; in GetExtentsTotalSize()
|
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/ |
H A D | dhcp_message_sim.cpp | 48 int total = 0; in SendTotal() local 50 total = m_sendMessages.size(); in SendTotal() 52 return total; in SendTotal() 57 int total = 0; in RecvTotal() local 59 total = m_recvMessages.size(); in RecvTotal() 61 return total; in RecvTotal()
|
/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/ |
H A D | softbus_hidumper_util.c | 133 int32_t total; member 290 static void OnCompleteDisc(int32_t reason, int32_t total) in OnCompleteDisc() argument 292 COMM_LOGI(COMM_DFX, "OnCompleteDisc start, reason=%{public}d, total=%{public}d", reason, total); in OnCompleteDisc() 385 static void OnCompleteConn(int32_t reason, int32_t total) in OnCompleteConn() argument 387 COMM_LOGI(COMM_DFX, "OnCompleteConn start, reason=%{public}d, total=%{public}d", reason, total); in OnCompleteConn() 463 static void OnCompleteLnn(int32_t reason, int32_t total) in OnCompleteLnn() argument 465 COMM_LOGI(COMM_DFX, "OnCompleteLnn start, reason=%{public}d, total=%{public}d", reason, total); in OnCompleteLnn() 616 OnCompleteTrans(int32_t reason, int32_t total) OnCompleteTrans() argument 678 OnCompleteAlarm(int32_t reason, int32_t total) OnCompleteAlarm() argument 896 int32_t total = g_transStatsInfo.openSessionSuccessTotal + g_transStatsInfo.openSessionFailTotal; SoftBusProcessStatsQueryData() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_layout_wrapper_builder.cpp | 146 auto total = GetTotalCount(); in OnExpandChildLayoutWrapper() local 148 if (static_cast<int32_t>(childWrappers_.size()) == total) { in OnExpandChildLayoutWrapper() 157 for (int32_t index = 0; index < total; ++index) { in OnExpandChildLayoutWrapper() 176 endIndex_ = total - 1; in OnExpandChildLayoutWrapper()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | matrix_test.cpp | 56 OH_Drawing_Matrix* total = OH_Drawing_MatrixCreate(); in OnTestPerformance() local 62 OH_Drawing_MatrixConcat(total, matrix_a, matrix_b); in OnTestPerformance() 64 OH_Drawing_PathTransform(path, total); in OnTestPerformance() 66 OH_Drawing_MatrixDestroy(total); in OnTestPerformance()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_date.h | 111 ProgressConfiguration(float value, float total, bool enabled) in ProgressConfiguration() argument 112 : CommonConfiguration(enabled), value_(value), total_(total) {} in ProgressConfiguration()
|
/foundation/communication/dsoftbus/core/connection/ble/include/ |
H A D | softbus_conn_ble_trans.h | 46 uint32_t total; member 58 uint32_t total; member
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | trans_mananger.cpp | 29 void TransManager::NotifyFileProgress(const std::string &sessionName, uint64_t total, uint64_t processed) in NotifyFileProgress() argument 41 iter->second->OnFileReceive(total, processed); in NotifyFileProgress()
|
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/ |
H A D | raw_input_command.h | 60 auto total = (duration / eventInjectingInterval_); in SetDuration() local 61 totalCount_ = (duration % eventInjectingInterval_ != 0) ? (total + 1) : total; in SetDuration() 127 int32_t duration_ = 0; // the total time for this command can be executed
|