/system/sepolicy/prebuilts/api/29.0/private/ |
D | stats.te | 1 type stats, domain; 2 typeattribute stats coredomain; 5 # switch to stats domain for stats command 6 domain_auto_trans(shell, stats_exec, stats) 8 # allow stats access to stdout from its parent shell. 9 allow stats shell:fd use; 11 # allow stats to communicate use, read and write over the adb 13 allow stats adbd:fd use; 14 allow stats adbd:unix_stream_socket { read write }; 16 # allow adbd to reap stats [all …]
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | stats.te | 1 type stats, domain; 2 typeattribute stats coredomain; 5 # switch to stats domain for stats command 6 domain_auto_trans(shell, stats_exec, stats) 8 # allow stats access to stdout from its parent shell. 9 allow stats shell:fd use; 11 # allow stats to communicate use, read and write over the adb 13 allow stats adbd:fd use; 14 allow stats adbd:unix_stream_socket { read write }; 16 # allow adbd to reap stats [all …]
|
/system/sepolicy/private/ |
D | stats.te | 1 type stats, domain; 2 typeattribute stats coredomain; 5 # switch to stats domain for stats command 6 domain_auto_trans(shell, stats_exec, stats) 8 # allow stats access to stdout from its parent shell. 9 allow stats shell:fd use; 11 # allow stats to communicate use, read and write over the adb 13 allow stats adbd:fd use; 14 allow stats adbd:unix_stream_socket { read write }; 16 # allow adbd to reap stats [all …]
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | stats.te | 1 type stats, domain; 2 typeattribute stats coredomain; 5 # switch to stats domain for stats command 6 domain_auto_trans(shell, stats_exec, stats) 8 # allow stats access to stdout from its parent shell. 9 allow stats shell:fd use; 11 # allow stats to communicate use, read and write over the adb 13 allow stats adbd:fd use; 14 allow stats adbd:unix_stream_socket { read write }; 16 # allow adbd to reap stats [all …]
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | stats.te | 1 type stats, domain; 2 typeattribute stats coredomain; 5 # switch to stats domain for stats command 6 domain_auto_trans(shell, stats_exec, stats) 8 # allow stats access to stdout from its parent shell. 9 allow stats shell:fd use; 11 # allow stats to communicate use, read and write over the adb 13 allow stats adbd:fd use; 14 allow stats adbd:unix_stream_socket { read write }; 16 # allow adbd to reap stats [all …]
|
D | statsd.te | 25 # Create, read, and write into /data/misc/stats-data, /data/misc/stats-system. 63 # Allow pipes from (and only from) stats. 64 allow statsd stats:fd use; 65 allow statsd stats:fifo_file write; 71 # Allow statsd to call back to stats with status updates. 72 binder_call(statsd, stats) 74 # Allow access to with hardware layer and process stats. 97 # Only system_server, system_app, traceur_app, and stats command can find the stats service. 103 -stats 111 # can get to the files in /data/misc/stats-data, /data/misc/stats-service.
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 53 void log_event_disk_stats(struct disk_stats* stats, const char* type) { in log_event_disk_stats() argument 55 if (stats == NULL || stats->is_zero()) return; in log_event_disk_stats() 58 << type << stats->start_time << stats->end_time in log_event_disk_stats() 59 << stats->read_ios << stats->read_merges in log_event_disk_stats() 60 << stats->read_sectors << stats->read_ticks in log_event_disk_stats() 61 << stats->write_ios << stats->write_merges in log_event_disk_stats() 62 << stats->write_sectors << stats->write_ticks in log_event_disk_stats() 63 << (uint64_t)stats->io_avg << stats->io_ticks << stats->io_in_queue in log_event_disk_stats() 80 void init_disk_stats_other(const struct timespec& ts, struct disk_stats* stats) { in init_disk_stats_other() argument 81 stats->start_time = 0; in init_disk_stats_other() [all …]
|
/system/extras/showslab/ |
D | showslab.c | 60 static struct slab_info * get_slabinfo(struct slab_stat *stats) in get_slabinfo() argument 88 stats->min_obj_size = INT_MAX; in get_slabinfo() 103 if (stats->nr_caches++ == 0) in get_slabinfo() 121 if (p->obj_size < stats->min_obj_size) in get_slabinfo() 122 stats->min_obj_size = p->obj_size; in get_slabinfo() 123 if (p->obj_size > stats->max_obj_size) in get_slabinfo() 124 stats->max_obj_size = p->obj_size; in get_slabinfo() 130 stats->nr_active_caches++; in get_slabinfo() 134 stats->nr_objs += p->nr_objs; in get_slabinfo() 135 stats->nr_active_objs += p->nr_active_objs; in get_slabinfo() [all …]
|
/system/netd/server/ |
D | TcpSocketMonitor.cpp | 118 for (const std::pair<const uint32_t, TcpStats>& stats : mNetworkStats) { in dump() local 119 if (stats.second.nSockets == 0) { in dump() 123 stats.first, in dump() 124 stats.second.sent, in dump() 125 stats.second.lost, in dump() 126 stats.second.rttUs / 1000.0 / stats.second.nSockets, in dump() 127 stats.second.sentAckDiffMs / stats.second.nSockets); in dump() 134 for (const std::pair<const uint64_t, SocketEntry>& stats : mSocketEntries) { in dump() local 135 dw.println("netId=%u uid=%u cookie=%" PRIu64, stats.second.mark.netId, stats.second.uid, in dump() 136 stats.first); in dump() [all …]
|
/system/extras/taskstats/ |
D | taskstats.c | 42 struct taskstats stats; member 52 struct TaskStatistics* stats) { in parse_aggregate_task_stats() argument 56 stats->pid = nla_get_u32(attr); in parse_aggregate_task_stats() 59 stats->tgid = nla_get_u32(attr); in parse_aggregate_task_stats() 62 nla_memcpy(&stats->stats, attr, sizeof(stats->stats)); in parse_aggregate_task_stats() 71 struct TaskStatistics* stats = (struct TaskStatistics*)arg; in parse_task_stats() local 81 stats); in parse_task_stats() 92 struct TaskStatistics* stats) { in query_task_stats() argument 93 memset(stats, 0, sizeof(*stats)); in query_task_stats() 107 nl_cb_set(callbacks, NL_CB_VALID, NL_CB_CUSTOM, &parse_task_stats, stats); in query_task_stats() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_main.cc | 67 memset(&rw_cb.stats, 0, sizeof(tRW_STATS)); in rw_main_reset_stats() 70 rw_cb.stats.start_tick = GKI_get_tick_count(); in rw_main_reset_stats() 83 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats() 84 rw_cb.stats.num_ops++; in rw_main_update_tx_stats() 86 if (is_retry) rw_cb.stats.num_retries++; in rw_main_update_tx_stats() 98 void rw_main_update_fail_stats(void) { rw_cb.stats.num_fail++; } in rw_main_update_fail_stats() 109 void rw_main_update_crc_error_stats(void) { rw_cb.stats.num_crc++; } in rw_main_update_crc_error_stats() 120 void rw_main_update_trans_error_stats(void) { rw_cb.stats.num_trans_err++; } in rw_main_update_trans_error_stats() 132 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats() 147 ticks = GKI_get_tick_count() - rw_cb.stats.start_tick; in rw_main_log_stats() [all …]
|
/system/extras/iotop/ |
D | taskstats.cpp | 61 taskstats stats; member 64 static pid_t ParseAggregateTaskStats(nlattr* attr, int attr_size, taskstats* stats) { in ParseAggregateTaskStats() argument 73 int len = static_cast<int>(sizeof(*stats)); in ParseAggregateTaskStats() 75 nla_memcpy(stats, attr, len); in ParseAggregateTaskStats() 98 taskstats stats; in ParseTaskStats() local 101 ret = ParseAggregateTaskStats(nested_attr, nla_len(attr), &stats); in ParseTaskStats() 105 taskstats_request->stats = stats; in ParseTaskStats() 121 bool TaskstatsSocket::GetStats(int pid, int type, TaskStatistics& stats) { in GetStats() argument 146 stats = TaskStatistics(taskstats_request.stats); in GetStats() 151 bool TaskstatsSocket::GetPidStats(int pid, TaskStatistics& stats) { in GetPidStats() argument [all …]
|
/system/bt/btif/src/ |
D | btif_a2dp_source.cc | 196 stats.Reset(); in Reset() 222 BtifMediaStats stats; member in BtifA2dpSource 265 static void update_scheduling_stats(SchedulingStats* stats, uint64_t now_us, 799 btif_a2dp_source_cb.stats.Reset(); in btif_a2dp_source_audio_tx_start_event() 803 btif_a2dp_source_cb.stats.session_start_us = in btif_a2dp_source_audio_tx_start_event() 805 if (btif_a2dp_source_cb.stats.session_start_us == 0) { in btif_a2dp_source_audio_tx_start_event() 806 btif_a2dp_source_cb.stats.session_start_us = 1; in btif_a2dp_source_audio_tx_start_event() 808 btif_a2dp_source_cb.stats.session_end_us = 0; in btif_a2dp_source_audio_tx_start_event() 811 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event() 824 btif_a2dp_source_cb.stats.session_end_us = in btif_a2dp_source_audio_tx_stop_event() [all …]
|
/system/core/storaged/include/ |
D | storaged_diskstats.h | 89 disk_stats& operator+= (const disk_stats& stats) { 90 read_ios += stats.read_ios; 91 read_merges += stats.read_merges; 92 read_sectors += stats.read_sectors; 93 read_ticks += stats.read_ticks; 94 write_ios += stats.write_ios; 95 write_merges += stats.write_merges; 96 write_sectors += stats.write_sectors; 97 write_ticks += stats.write_ticks; 99 io_ticks += stats.io_ticks; [all …]
|
/system/memory/libmeminfo/tools/ |
D | procmem.cpp | 86 static void print_stats(std::stringstream& ss, const MemUsage& stats) { in print_stats() argument 88 ss << ::android::base::StringPrintf("%6" PRIu64 "K ", stats.vss / 1024); in print_stats() 94 stats.rss / 1024, stats.pss / 1024, stats.uss / 1024, stats.shared_clean / 1024, in print_stats() 95 stats.shared_dirty / 1024, stats.private_clean / 1024, stats.private_dirty / 1024, in print_stats() 96 stats.thp / 1024); in print_stats()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabuf_sysfs_stats.cpp | 55 bool GetDmabufSysfsStats(DmabufSysfsStats* stats, const std::string& dmabuf_sysfs_stats_path) { in GetDmabufSysfsStats() argument 64 *stats = {}; in GetDmabufSysfsStats() 97 stats->total_.size += info.size; in GetDmabufSysfsStats() 98 stats->total_.buffer_count++; in GetDmabufSysfsStats() 100 stats->buffer_stats_.emplace_back(info); in GetDmabufSysfsStats() 103 auto exp_stats = stats->exporter_info_.find(info.exp_name); in GetDmabufSysfsStats() 104 if (exp_stats != stats->exporter_info_.end()) { in GetDmabufSysfsStats() 109 stats->exporter_info_[info.exp_name] = total; in GetDmabufSysfsStats()
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 70 static bool parse_smaps_field(const char* line, MemUsage* stats) { in parse_smaps_field() argument 78 stats->pss = strtoull(c, nullptr, 10); in parse_smaps_field() 81 stats->private_clean = prcl; in parse_smaps_field() 82 stats->uss += prcl; in parse_smaps_field() 85 stats->private_dirty = prdi; in parse_smaps_field() 86 stats->uss += prdi; in parse_smaps_field() 88 stats->private_hugetlb = strtoull(c, nullptr, 10); in parse_smaps_field() 93 stats->vss = strtoull(c, nullptr, 10); in parse_smaps_field() 95 stats->shared_clean = strtoull(c, nullptr, 10); in parse_smaps_field() 97 stats->shared_dirty = strtoull(c, nullptr, 10); in parse_smaps_field() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_vendor_aptx_hd_encoder.cc | 100 a2dp_aptx_hd_encoder_stats_t stats; member 175 a2dp_aptx_hd_encoder_cb.stats.session_start_us = in a2dp_vendor_aptx_hd_encoder_init() 384 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_packets++; in a2dp_vendor_aptx_hd_send_frames() 385 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_reads_count++; in a2dp_vendor_aptx_hd_send_frames() 386 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_read_bytes += in a2dp_vendor_aptx_hd_send_frames() 392 a2dp_aptx_hd_encoder_cb.stats.media_read_total_actual_read_bytes += in a2dp_vendor_aptx_hd_send_frames() 397 a2dp_aptx_hd_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_hd_send_frames() 401 a2dp_aptx_hd_encoder_cb.stats.media_read_total_actual_reads_count++; in a2dp_vendor_aptx_hd_send_frames() 430 a2dp_aptx_hd_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_hd_send_frames() 485 a2dp_aptx_hd_encoder_stats_t* stats = &a2dp_aptx_hd_encoder_cb.stats; in debug_codec_dump() local [all …]
|
D | a2dp_vendor_aptx_encoder.cc | 100 a2dp_aptx_encoder_stats_t stats; member 175 a2dp_aptx_encoder_cb.stats.session_start_us = in a2dp_vendor_aptx_encoder_init() 398 a2dp_aptx_encoder_cb.stats.media_read_total_expected_packets++; in a2dp_vendor_aptx_send_frames() 399 a2dp_aptx_encoder_cb.stats.media_read_total_expected_reads_count++; in a2dp_vendor_aptx_send_frames() 400 a2dp_aptx_encoder_cb.stats.media_read_total_expected_read_bytes += in a2dp_vendor_aptx_send_frames() 406 a2dp_aptx_encoder_cb.stats.media_read_total_actual_read_bytes += bytes_read; in a2dp_vendor_aptx_send_frames() 410 a2dp_aptx_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_send_frames() 414 a2dp_aptx_encoder_cb.stats.media_read_total_actual_reads_count++; in a2dp_vendor_aptx_send_frames() 441 a2dp_aptx_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_send_frames() 488 a2dp_aptx_encoder_stats_t* stats = &a2dp_aptx_encoder_cb.stats; in debug_codec_dump() local [all …]
|
/system/bt/osi/src/ |
D | alarm.cc | 102 alarm_stats_t stats; member 147 static void update_scheduling_stats(alarm_stats_t* stats, uint64_t now_ms, 178 ret->stats.name = osi_strdup(name); in alarm_new_internal() 194 osi_free((void*)alarm->stats.name); in alarm_free() 241 alarm->stats.scheduled_count++; in alarm_set_internal() 271 alarm->stats.canceled_count++; in alarm_cancel_internal() 568 << ": timer callback is NULL! Name=" << alarm->stats.name; in alarm_ready_generic() 591 update_scheduling_stats(&alarm->stats, now_ms(), deadline_ms); in alarm_ready_generic() 643 alarm->stats.rescheduled_count++; in callback_dispatch() 651 alarm->stats.name); in callback_dispatch() [all …]
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | SuspendControlService.cpp | 277 SuspendStats stats = res.value(); in dump() local 289 "success", stats.success, in dump() 290 "fail", stats.fail, in dump() 291 "failed_freeze", stats.failedFreeze, in dump() 292 "failed_prepare", stats.failedPrepare, in dump() 293 "failed_suspend", stats.failedSuspend, in dump() 294 "failed_suspend_late", stats.failedSuspendLate, in dump() 295 "failed_suspend_noirq", stats.failedSuspendNoirq, in dump() 296 "failed_resume", stats.failedResume, in dump() 297 "failed_resume_early", stats.failedResumeEarly, in dump() [all …]
|
D | SystemSuspend.cpp | 377 SuspendStats stats; in getSuspendStats() local 380 return stats; in getSuspendStats() 413 stats.lastFailedDev = valStr; in getSuspendStats() 415 stats.lastFailedStep = valStr; in getSuspendStats() 419 stats.success = statVal; in getSuspendStats() 421 stats.fail = statVal; in getSuspendStats() 423 stats.failedFreeze = statVal; in getSuspendStats() 425 stats.failedPrepare = statVal; in getSuspendStats() 427 stats.failedSuspend = statVal; in getSuspendStats() 429 stats.failedSuspendLate = statVal; in getSuspendStats() [all …]
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStats.cpp | 47 int bpfGetUidStatsInternal(uid_t uid, Stats* stats, in bpfGetUidStatsInternal() argument 51 stats->rxPackets = statsEntry.value().rxPackets; in bpfGetUidStatsInternal() 52 stats->txPackets = statsEntry.value().txPackets; in bpfGetUidStatsInternal() 53 stats->rxBytes = statsEntry.value().rxBytes; in bpfGetUidStatsInternal() 54 stats->txBytes = statsEntry.value().txBytes; in bpfGetUidStatsInternal() 60 int bpfGetUidStats(uid_t uid, Stats* stats) { in bpfGetUidStats() argument 68 return bpfGetUidStatsInternal(uid, stats, appUidStatsMap); in bpfGetUidStats() 71 int bpfGetIfaceStatsInternal(const char* iface, Stats* stats, in bpfGetIfaceStatsInternal() argument 75 stats->tcpRxPackets = -1; in bpfGetIfaceStatsInternal() 76 stats->tcpTxPackets = -1; in bpfGetIfaceStatsInternal() [all …]
|
/system/chre/apps/wifi_offload/ |
D | flatbuffers_serialization.cc | 23 size_t Serialize(const wifi_offload::ScanStats &stats, uint8_t *buffer, in Serialize() argument 25 return Serialize(stats, buffer, buffer_len, "ScanStats"); in Serialize() 29 wifi_offload::ScanStats *stats) { in Deserialize() argument 30 return Deserialize<wifi_offload::ScanStats>(buffer, buffer_len, stats, in Deserialize()
|
/system/chre/apps/wifi_offload/test/ |
D | utility.cc | 100 void init(wifi_offload::ScanStats &stats, RandomGenerator &rand_gen) { in init() argument 101 init(stats.num_scans_requested_by_nanoapp_, rand_gen); in init() 102 init(stats.num_scans_serviced_by_hardware_, rand_gen); in init() 103 init(stats.num_scans_serviced_by_cache_, rand_gen); in init() 104 init(stats.updated_at_chre_ms_, rand_gen); in init() 105 init(stats.sent_at_chre_ms_, rand_gen); in init() 106 init(stats.last_subscription_duration_ms_, rand_gen); in init() 107 init(stats.channel_histogram_, rand_gen); in init() 108 init<wifi_offload::ScanRecord>(stats.scan_records_, rand_gen); in init() 109 init<wifi_offload::RpcLogRecord>(stats.rpc_log_records_, rand_gen); in init()
|