/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/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/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/nfc/src/nfc/tags/ |
D | rw_main.cc | 66 memset(&rw_cb.stats, 0, sizeof(tRW_STATS)); in rw_main_reset_stats() 69 rw_cb.stats.start_tick = GKI_get_tick_count(); in rw_main_reset_stats() 82 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats() 83 rw_cb.stats.num_ops++; in rw_main_update_tx_stats() 85 if (is_retry) rw_cb.stats.num_retries++; in rw_main_update_tx_stats() 97 void rw_main_update_fail_stats(void) { rw_cb.stats.num_fail++; } in rw_main_update_fail_stats() 108 void rw_main_update_crc_error_stats(void) { rw_cb.stats.num_crc++; } in rw_main_update_crc_error_stats() 119 void rw_main_update_trans_error_stats(void) { rw_cb.stats.num_trans_err++; } in rw_main_update_trans_error_stats() 131 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats() 146 ticks = GKI_get_tick_count() - rw_cb.stats.start_tick; in rw_main_log_stats() [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/hardware/interfaces/suspend/1.0/default/ |
D | SuspendControlService.cpp | 157 SuspendStats stats = res.value(); in dump() local 169 "success", stats.success, in dump() 170 "fail", stats.fail, in dump() 171 "failed_freeze", stats.failedFreeze, in dump() 172 "failed_prepare", stats.failedPrepare, in dump() 173 "failed_suspend", stats.failedSuspend, in dump() 174 "failed_suspend_late", stats.failedSuspendLate, in dump() 175 "failed_suspend_noirq", stats.failedSuspendNoirq, in dump() 176 "failed_resume", stats.failedResume, in dump() 177 "failed_resume_early", stats.failedResumeEarly, in dump() [all …]
|
D | SystemSuspend.cpp | 238 SuspendStats stats; in getSuspendStats() local 241 return stats; in getSuspendStats() 274 stats.lastFailedDev = valStr; in getSuspendStats() 276 stats.lastFailedStep = valStr; in getSuspendStats() 280 stats.success = statVal; in getSuspendStats() 282 stats.fail = statVal; in getSuspendStats() 284 stats.failedFreeze = statVal; in getSuspendStats() 286 stats.failedPrepare = statVal; in getSuspendStats() 288 stats.failedSuspend = statVal; in getSuspendStats() 290 stats.failedSuspendLate = statVal; in getSuspendStats() [all …]
|
/system/extras/iotop/ |
D | taskstats.cpp | 63 taskstats stats; member 67 taskstats* stats) { in ParseAggregateTaskStats() argument 77 int len = static_cast<int>(sizeof(*stats)); in ParseAggregateTaskStats() 79 nla_memcpy(stats, attr, len); in ParseAggregateTaskStats() 103 taskstats stats; in ParseTaskStats() local 106 ret = ParseAggregateTaskStats(nested_attr, nla_len(attr), &stats); in ParseTaskStats() 110 taskstats_request->stats = stats; in ParseTaskStats() 126 bool TaskstatsSocket::GetStats(int pid, int type, TaskStatistics& stats) { in GetStats() argument 153 stats = TaskStatistics(taskstats_request.stats); in GetStats() 158 bool TaskstatsSocket::GetPidStats(int pid, TaskStatistics& stats) { in GetPidStats() argument [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/bt/btif/src/ |
D | btif_a2dp_source.cc | 193 stats.Reset(); in Reset() 219 BtifMediaStats stats; member in BtifA2dpSource 259 static void update_scheduling_stats(SchedulingStats* stats, uint64_t now_us, 810 btif_a2dp_source_cb.stats.Reset(); in btif_a2dp_source_audio_tx_start_event() 814 btif_a2dp_source_cb.stats.session_start_us = in btif_a2dp_source_audio_tx_start_event() 816 if (btif_a2dp_source_cb.stats.session_start_us == 0) { in btif_a2dp_source_audio_tx_start_event() 817 btif_a2dp_source_cb.stats.session_start_us = 1; in btif_a2dp_source_audio_tx_start_event() 819 btif_a2dp_source_cb.stats.session_end_us = 0; in btif_a2dp_source_audio_tx_start_event() 822 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event() 835 btif_a2dp_source_cb.stats.session_end_us = in btif_a2dp_source_audio_tx_stop_event() [all …]
|
/system/memory/lmkd/ |
D | Android.bp | 60 tools: ["stats-log-api-gen"], 61 …cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_lmkd.h --module lmkd --namespace a… 69 tools: ["stats-log-api-gen"], 70 …cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_lmkd.cpp --module lmkd --namespace an…
|
D | statslog.cpp | 55 return android::lmkd::stats::stats_write(android::lmkd::stats::LMK_STATE_CHANGED, state); in stats_write_lmk_state_changed() 75 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__PRESSURE_AFTER_KILL; in map_kill_reason() 77 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__NOT_RESPONDING; in map_kill_reason() 79 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__LOW_SWAP_AND_THRASHING; in map_kill_reason() 81 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__LOW_MEM_AND_SWAP; in map_kill_reason() 83 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__LOW_MEM_AND_THRASHING; in map_kill_reason() 85 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__DIRECT_RECL_AND_THRASHING; in map_kill_reason() 87 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__LOW_MEM_AND_SWAP_UTIL; in map_kill_reason() 89 return android::lmkd::stats::LMK_KILL_OCCURRED__REASON__UNKNOWN; in map_kill_reason() 99 return android::lmkd::stats::stats_write( in stats_write_lmk_kill_occurred() [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() 93 stats.rss / 1024, stats.pss / 1024, stats.uss / 1024, in print_stats() 94 stats.shared_clean / 1024, stats.shared_dirty / 1024, in print_stats() 95 stats.private_clean / 1024, stats.private_dirty / 1024); in print_stats()
|
/system/bt/osi/src/ |
D | alarm.cc | 104 alarm_stats_t stats; member 149 static void update_scheduling_stats(alarm_stats_t* stats, uint64_t now_ms, 180 ret->stats.name = osi_strdup(name); in alarm_new_internal() 196 osi_free((void*)alarm->stats.name); in alarm_free() 242 alarm->stats.scheduled_count++; in alarm_set_internal() 272 alarm->stats.canceled_count++; in alarm_cancel_internal() 573 << ": timer callback is NULL! Name=" << alarm->stats.name; in alarm_ready_generic() 596 update_scheduling_stats(&alarm->stats, now_ms(), deadline_ms); in alarm_ready_generic() 648 alarm->stats.rescheduled_count++; in callback_dispatch() 656 alarm->stats.name); in callback_dispatch() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_vendor_aptx_encoder.cc | 100 a2dp_aptx_encoder_stats_t stats; member 178 a2dp_aptx_encoder_cb.stats.session_start_us = in a2dp_vendor_aptx_encoder_init() 402 a2dp_aptx_encoder_cb.stats.media_read_total_expected_packets++; in a2dp_vendor_aptx_send_frames() 403 a2dp_aptx_encoder_cb.stats.media_read_total_expected_reads_count++; in a2dp_vendor_aptx_send_frames() 404 a2dp_aptx_encoder_cb.stats.media_read_total_expected_read_bytes += in a2dp_vendor_aptx_send_frames() 411 a2dp_aptx_encoder_cb.stats.media_read_total_actual_read_bytes += bytes_read; in a2dp_vendor_aptx_send_frames() 416 a2dp_aptx_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_send_frames() 420 a2dp_aptx_encoder_cb.stats.media_read_total_actual_reads_count++; in a2dp_vendor_aptx_send_frames() 447 a2dp_aptx_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_send_frames() 494 a2dp_aptx_encoder_stats_t* stats = &a2dp_aptx_encoder_cb.stats; in debug_codec_dump() local [all …]
|
D | a2dp_vendor_aptx_hd_encoder.cc | 100 a2dp_aptx_hd_encoder_stats_t stats; member 178 a2dp_aptx_hd_encoder_cb.stats.session_start_us = in a2dp_vendor_aptx_hd_encoder_init() 388 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_packets++; in a2dp_vendor_aptx_hd_send_frames() 389 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_reads_count++; in a2dp_vendor_aptx_hd_send_frames() 390 a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_read_bytes += in a2dp_vendor_aptx_hd_send_frames() 397 a2dp_aptx_hd_encoder_cb.stats.media_read_total_actual_read_bytes += in a2dp_vendor_aptx_hd_send_frames() 403 a2dp_aptx_hd_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_hd_send_frames() 407 a2dp_aptx_hd_encoder_cb.stats.media_read_total_actual_reads_count++; in a2dp_vendor_aptx_hd_send_frames() 436 a2dp_aptx_hd_encoder_cb.stats.media_read_total_dropped_packets++; in a2dp_vendor_aptx_hd_send_frames() 491 a2dp_aptx_hd_encoder_stats_t* stats = &a2dp_aptx_hd_encoder_cb.stats; in debug_codec_dump() local [all …]
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 64 static bool parse_smaps_field(const char* line, MemUsage* stats) { in parse_smaps_field() argument 72 stats->pss = strtoull(c, nullptr, 10); in parse_smaps_field() 75 stats->private_clean = prcl; in parse_smaps_field() 76 stats->uss += prcl; in parse_smaps_field() 79 stats->private_dirty = prdi; in parse_smaps_field() 80 stats->uss += prdi; in parse_smaps_field() 85 stats->vss = strtoull(c, nullptr, 10); in parse_smaps_field() 87 stats->shared_clean = strtoull(c, nullptr, 10); in parse_smaps_field() 89 stats->shared_dirty = strtoull(c, nullptr, 10); in parse_smaps_field() 91 stats->swap = strtoull(c, nullptr, 10); in parse_smaps_field() [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/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()
|
/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()
|