/ohos5.0/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/netsys_bpf_stats_test/ |
H A D | netsys_bpf_stats_test.cpp | 80 uint64_t stats = 0; variable 82 EXPECT_GE(stats, 0); 84 EXPECT_GE(stats, 0); 86 EXPECT_GE(stats, 0); 88 EXPECT_GE(stats, 0); 94 uint64_t stats = 0; variable 97 EXPECT_GE(stats, 0); 99 EXPECT_GE(stats, 0); 101 EXPECT_GE(stats, 0); 118 uint64_t stats = 0; variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/utils/ |
H A D | js_heap_stats_dumper.cpp | 35 JSHeapStatus stats; in Dump() local 36 if (!JSI::GetJSHeapStatus(stats)) { in Dump() 40 if (HasChanged(stats)) { in Dump() 41 HandleChange(stats); in Dump() 47 return stats.allocBytes != stats_.allocBytes || stats.peakAllocBytes != stats_.peakAllocBytes; in HasChanged() 52 UpdateStats(stats); in HandleChange() 53 LogStats(stats); in HandleChange() 54 SaveStats(stats); in HandleChange() 59 stats_.allocBytes = stats.allocBytes; in UpdateStats() 68 stats.allocBytes, stats.peakAllocBytes, stats.totalBytes); in LogStats() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_service_proxy_test.cpp | 276 uint64_t stats = 0; variable 288 uint64_t stats = 0; variable 301 uint64_t stats = 0; variable 315 uint64_t stats = 0; variable 327 uint64_t stats = 0; variable 340 uint64_t stats = 0; variable 354 uint64_t stats = 0; variable 366 uint64_t stats = 0; variable 379 uint64_t stats = 0; variable 393 uint64_t stats = 0; variable [all …]
|
H A D | net_stats_service_test.cpp | 129 uint64_t stats = 0; variable 131 EXPECT_GE(stats, static_cast<uint64_t>(0)); 142 uint64_t stats = 0; variable 156 uint64_t stats = 0; variable 174 uint64_t stats = 0; variable 191 uint64_t stats = 0; variable 204 uint64_t stats = 0; variable 217 uint64_t stats = 0; variable 230 uint64_t stats = 0; variable 317 uint64_t stats = 0; variable [all …]
|
H A D | net_stats_client_test.cpp | 105 uint64_t stats = 0; variable 107 EXPECT_GE(stats, static_cast<uint64_t>(0)); 118 uint64_t stats = 0; variable 120 EXPECT_GE(stats, static_cast<uint64_t>(0)); 132 uint64_t stats = 0; variable 150 uint64_t stats = 0; variable 167 uint64_t stats = 0; variable 180 uint64_t stats = 0; variable 193 uint64_t stats = 0; variable 206 uint64_t stats = 0; variable [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bpf_stats.cpp | 36 stats = value.rxBytes; in GetNumberFromStatsValue() 39 stats = value.rxPackets; in GetNumberFromStatsValue() 42 stats = value.txBytes; in GetNumberFromStatsValue() 45 stats = value.txPackets; in GetNumberFromStatsValue() 56 stats = 0; in GetTotalStats() 82 stats = 0; in GetUidStats() 102 stats.clear(); in GetAllSimStatsInfo() 131 auto findRet = std::find_if(stats.begin(), stats.end(), in GetAllSimStatsInfo() 150 stats.clear(); in GetAllStatsInfo() 204 stats = 0; in GetIfaceStats() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netstatsclient/src/ |
H A D | net_stats_info.cpp | 55 if (!parcel.WriteUint32(stats.uid_)) { in Marshalling() 58 if (!parcel.WriteString(stats.iface_)) { in Marshalling() 61 if (!parcel.WriteString(stats.ident_)) { in Marshalling() 64 if (!parcel.WriteUint64(stats.date_)) { in Marshalling() 67 if (!parcel.WriteUint64(stats.rxBytes_)) { in Marshalling() 70 if (!parcel.WriteUint64(stats.txBytes_)) { in Marshalling() 162 if (!parcel.ReadUint32(stats.uid_)) { in Unmarshalling() 165 if (!parcel.ReadString(stats.iface_)) { in Unmarshalling() 168 if (!parcel.ReadString(stats.ident_)) { in Unmarshalling() 171 if (!parcel.ReadUint64(stats.date_)) { in Unmarshalling() [all …]
|
H A D | net_stats_client.cpp | 187 return proxy->GetCellularRxBytes(stats); in GetCellularRxBytes() 197 return proxy->GetCellularTxBytes(stats); in GetCellularTxBytes() 200 int32_t NetStatsClient::GetAllRxBytes(uint64_t &stats) in GetAllRxBytes() argument 207 return proxy->GetAllRxBytes(stats); in GetAllRxBytes() 217 return proxy->GetAllTxBytes(stats); in GetAllTxBytes() 227 return proxy->GetUidRxBytes(stats, uid); in GetUidRxBytes() 237 return proxy->GetUidTxBytes(stats, uid); in GetUidTxBytes() 389 return proxy->GetCookieRxBytes(stats, optrval); in GetSockfdRxBytes() 412 return proxy->GetCookieTxBytes(stats, optrval); in GetSockfdTxBytes() 418 if (!stats) { in GetUidTxBytesEx() [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_instr_statistic.cpp | 48 std::shared_ptr<std::vector<std::pair<uint64_t, uint64_t>>> stats; in AddInstrStatistic() local 51 stats = iter->second; in AddInstrStatistic() 53 stats = std::make_shared<std::vector<std::pair<uint64_t, uint64_t>>>(); in AddInstrStatistic() 54 statisticInfo_[type] = stats; in AddInstrStatistic() 56 if (stats != nullptr) { in AddInstrStatistic() 57 stats->push_back(std::make_pair(val, err)); in AddInstrStatistic() 68 if (stats == nullptr) { in DumpInstrStatResult() 76 LOGU("\t Type: %u, Count: %" PRIu64 "", type, (uint64_t) stats->size()); in DumpInstrStatResult() 77 for (size_t i = 0; i < stats->size(); ++i) { in DumpInstrStatResult() 78 LOGU("\t Value: %" PRIx64 "", (uint64_t) stats->at(i).first); in DumpInstrStatResult() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/ |
H A D | js-apis-net-statistics.md | 50 console.log(JSON.stringify(stats)); 92 console.log(JSON.stringify(stats)); 132 console.log(JSON.stringify(stats)); 174 console.log(JSON.stringify(stats)); 212 console.log(JSON.stringify(stats)); 247 console.log(JSON.stringify(stats)); 285 console.log(JSON.stringify(stats)); 320 console.log(JSON.stringify(stats)); 357 console.log(JSON.stringify(stats)); 391 console.log(JSON.stringify(stats)); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/ |
H A D | bms_install_daemon_test.cpp | 833 std::vector<int64_t> stats; variable 848 EXPECT_EQ(stats[0], 0); 849 EXPECT_NE(stats[1], 0); 850 EXPECT_EQ(stats[2], 0); 851 EXPECT_EQ(stats[3], 0); 852 EXPECT_EQ(stats[4], 0); 866 EXPECT_NE(stats[1], 0); 885 EXPECT_EQ(stats[0], 0); 886 EXPECT_NE(stats[1], 0); 888 EXPECT_EQ(stats[3], 0); [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streammsgmanager_fuzzer/ |
H A D | streammsgmanager_fuzzer.cpp | 30 Communication::SoftBus::HistoryStats stats; in SendTest() local 31 stats.periodFrameNum = size; in SendTest() 34 streamMsgManager.Send((const Communication::SoftBus::HistoryStats &)stats); in SendTest() 42 Communication::SoftBus::HistoryStats stats; in RecvTest() local 43 stats.periodFrameNum = size; in RecvTest() 46 streamMsgManager.Recv((const Communication::SoftBus::HistoryStats &)stats); in RecvTest() 54 Communication::SoftBus::HistoryStats stats; in UpdateTest() local 55 stats.periodFrameNum = size; in UpdateTest() 58 streamMsgManager.Update((const Communication::SoftBus::HistoryStats &)stats); in UpdateTest()
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/proxy/ |
H A D | i_net_stats_service.h | 37 virtual int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) = 0; 38 virtual int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) = 0; 39 virtual int32_t GetCellularRxBytes(uint64_t &stats) = 0; 40 virtual int32_t GetCellularTxBytes(uint64_t &stats) = 0; 41 virtual int32_t GetAllRxBytes(uint64_t &stats) = 0; 42 virtual int32_t GetAllTxBytes(uint64_t &stats) = 0; 43 virtual int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) = 0; 44 virtual int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) = 0; 59 const NetStatsInfo &stats) = 0; 62 virtual int32_t GetCookieRxBytes(uint64_t &stats, uint64_t cookie) = 0; [all …]
|
H A D | net_stats_service_proxy.h | 30 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) override; 31 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) override; 32 int32_t GetCellularRxBytes(uint64_t &stats) override; 33 int32_t GetCellularTxBytes(uint64_t &stats) override; 34 int32_t GetAllRxBytes(uint64_t &stats) override; 35 int32_t GetAllTxBytes(uint64_t &stats) override; 36 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) override; 37 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) override; 50 const NetStatsInfo &stats) override; 53 int32_t GetCookieRxBytes(uint64_t &stats, uint64_t cookie) override; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/network/ |
H A D | net-statistics.md | 56 console.log(JSON.stringify(stats)); 61 console.log(JSON.stringify(stats)); 66 console.log(JSON.stringify(stats)); 71 console.log(JSON.stringify(stats)); 75 statistics.getAllRxBytes().then((stats: number) => { 76 console.log(JSON.stringify(stats)); 81 console.log(JSON.stringify(stats)); 87 console.log(JSON.stringify(stats)); 93 console.log(JSON.stringify(stats)); 100 console.log(JSON.stringify(stats)); [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netstatsmanager/src/stub/ |
H A D | net_stats_service_stub.cpp | 146 uint64_t stats = 0; in OnGetIfaceRxBytes() local 168 uint64_t stats = 0; in OnGetIfaceTxBytes() local 191 uint64_t stats = 0; in OnGetCellularRxBytes() local 208 uint64_t stats = 0; in OnGetCellularTxBytes() local 225 uint64_t stats = 0; in OnGetAllRxBytes() local 226 int32_t ret = GetAllRxBytes(stats); in OnGetAllRxBytes() 243 uint64_t stats = 0; in OnGetAllTxBytes() local 262 uint64_t stats = 0; in OnGetUidRxBytes() local 285 uint64_t stats = 0; in OnGetUidTxBytes() local 565 uint64_t stats = 0; in OnGetCookieRxBytes() local [all …]
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/ |
H A D | net_stats_client.h | 67 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName); 78 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName); 88 int32_t GetCellularRxBytes(uint64_t &stats); 98 int32_t GetCellularTxBytes(uint64_t &stats); 108 int32_t GetAllRxBytes(uint64_t &stats); 118 int32_t GetAllTxBytes(uint64_t &stats); 129 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid); 140 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid); 236 …dateIfacesStats(const std::string &iface, uint64_t start, uint64_t end, const NetStatsInfo &stats); 265 int32_t GetSockfdRxBytes(uint64_t &stats, int32_t sockfd); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | io_collector_impl.cpp | 244 if (!it->second.stats.deviceName.empty() && !filter(it->second.stats)) { in GetDiskStats() 301 DiskStats& stats = device.stats; in CalculateDeviceDiskStats() local 302 stats.deviceName = deviceName; in CalculateDeviceDiskStats() 336 for (auto &stats : diskStats) { in ExportDiskStats() local 338 … stats.deviceName.c_str(), stats.sectorReadRate, stats.sectorWriteRate, stats.operReadRate, in ExportDiskStats() 339 stats.operWriteRate, stats.readTimeRate, stats.writeTimeRate, stats.ioWait); in ExportDiskStats() 492 if (it->second.stats.pid != 0 && !ProcIoStatsFilter(it->second.stats)) { in GetProcIoStats() 533 …return (stats.rcharRate == 0 && stats.wcharRate == 0 && stats.syscrRate == 0 && stats.syscwRate ==… in ProcIoStatsFilter() 534 stats.readBytesRate == 0 && stats.writeBytesRate == 0); in ProcIoStatsFilter() 558 ProcessIoStats& stats = statsInfo.stats; in CalculateProcIoStats() local [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netstatsmanager/include/ |
H A D | net_stats_service.h | 45 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) override; 46 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) override; 47 int32_t GetCellularRxBytes(uint64_t &stats) override; 48 int32_t GetCellularTxBytes(uint64_t &stats) override; 49 int32_t GetAllRxBytes(uint64_t &stats) override; 50 int32_t GetAllTxBytes(uint64_t &stats) override; 51 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) override; 52 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) override; 67 const NetStatsInfo &stats) override; 70 int32_t GetCookieRxBytes(uint64_t &stats, uint64_t cookie) override; [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bpf_stats.h | 48 int32_t GetTotalStats(uint64_t &stats, StatsType type); 58 int32_t GetUidStats(uint64_t &stats, StatsType type, uint32_t uid); 68 int32_t GetIfaceStats(uint64_t &stats, StatsType type, const std::string &interfaceName); 76 int32_t GetAllSimStatsInfo(std::vector<OHOS::NetManagerStandard::NetStatsInfo> &stats); 84 int32_t GetAllStatsInfo(std::vector<OHOS::NetManagerStandard::NetStatsInfo> &stats); 94 int32_t GetCookieStats(uint64_t &stats, StatsType statsType, uint64_t cookie); 97 …static int32_t GetNumberFromStatsValue(uint64_t &stats, StatsType statsType, const stats_value &va…
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_msg_manager.cpp | 29 bool StreamMsgManager::Send(const HistoryStats &stats) in Send() argument 31 static_cast<void>(stats); in Send() 35 void StreamMsgManager::Update(const HistoryStats &stats) in Update() argument 37 historyStatsSet_.push_back(stats); in Update() 40 void StreamMsgManager::Recv(const HistoryStats &stats) in Recv() argument 42 static_cast<void>(stats); in Recv()
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netstatsclient/src/proxy/ |
H A D | net_stats_service_proxy.cpp | 117 if (!reply.ReadUint64(stats)) { in GetIfaceRxBytes() 145 if (!reply.ReadUint64(stats)) { in GetIfaceTxBytes() 169 if (!reply.ReadUint64(stats)) { in GetCellularRxBytes() 193 if (!reply.ReadUint64(stats)) { in GetCellularTxBytes() 215 if (!reply.ReadUint64(stats)) { in GetAllRxBytes() 238 if (!reply.ReadUint64(stats)) { in GetAllTxBytes() 266 if (!reply.ReadUint64(stats)) { in GetUidRxBytes() 292 if (!reply.ReadUint64(stats)) { in GetUidTxBytes() 363 if (!stats.Marshalling(data)) { in UpdateIfacesStats() 545 if (!reply.ReadUint64(stats)) { in GetCookieRxBytes() [all …]
|
/ohos5.0/base/powermgr/battery_statistics/frameworks/napi/src/ |
H A D | battery_stats_module.cpp | 45 BatteryStats stats(env); in GetBatteryStats() local 50 stats.StatsAsyncCallBack(argv[ARGV_IND_0]); in GetBatteryStats() 54 return stats.StatsPromise(); in GetBatteryStats() 59 BatteryStats stats(env); in GetAppStatsMah() local 60 return stats.GetAppStatsMah(info, MAX_ARGC, ARGV_IND_0); in GetAppStatsMah() 65 BatteryStats stats(env); in GetAppStatsPercent() local 66 return stats.GetAppStatsPercent(info, MAX_ARGC, ARGV_IND_0); in GetAppStatsPercent() 71 BatteryStats stats(env); in GetPartStatsMah() local 72 return stats.GetPartStatsMah(info, MAX_ARGC, ARGV_IND_0); in GetPartStatsMah() 77 BatteryStats stats(env); in GetPartStatsPercent() local [all …]
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | service_controller.cpp | 280 StatsEntry2StatsRsp(it.second.stats, dStats[i].stats); in SendDomainStats() 335 if (!stats.IsTagEnable()) { in SendProcStats() 773 if (!stats.IsEnable()) { in HandleStatsQueryRqst() 780 SendOverallStats(stats); in HandleStatsQueryRqst() 781 SendLogTypeDomainStats(stats); in HandleStatsQueryRqst() 782 SendDomainStats(stats); in HandleStatsQueryRqst() 783 if (stats.IsTagEnable()) { in HandleStatsQueryRqst() 786 SendProcStats(stats); in HandleStatsQueryRqst() 787 SendProcLogTypeStats(stats); in HandleStatsQueryRqst() 788 if (stats.IsTagEnable()) { in HandleStatsQueryRqst() [all …]
|
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/ |
H A D | bundle_active_stats_combiner.cpp | 22 …const std::shared_ptr<BundleActivePeriodStats>& stats, std::vector<BundleActivePackageStats>& accu… in combine() argument 26 for (auto it : stats->bundleStats_) { in combine() 33 …iveStatsCombiner<BundleActiveEvent>::combine(const std::shared_ptr<BundleActivePeriodStats>& stats, in combine() argument 37 int32_t startIndex = stats->events_.FindBestIndex(beginTime); in combine() 38 int32_t size = static_cast<int32_t>(stats->events_.events_.size()); in combine() 40 accumulatedResult.push_back(stats->events_.events_[i]); in combine()
|