Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 63) sorted by relevance

123

/system/iorap/src/common/
Ddebug.h48 return counter;
52 counter = value;
55 size_t counter{1}; // Don't start with 0.
87 friend std::ostream& operator<<(std::ostream& os, DebugCounter counter);
90 inline std::ostream& operator<<(std::ostream& os, DebugCounter counter) {
91 os << counter.value();
/system/extras/simpleperf/
Drecord_lib_test.cpp39 TEST(counter, add_event) { in TEST() argument
56 for (auto& counter : counters) { in TEST() local
57 ASSERT_GE(counter.value, 0u); in TEST()
58 ASSERT_GE(counter.time_enabled_in_ns, 0u); in TEST()
59 ASSERT_GE(counter.time_running_in_ns, 0u); in TEST()
60 ASSERT_LE(counter.time_running_in_ns, counter.time_enabled_in_ns); in TEST()
64 TEST(counter, different_targets) { in TEST() argument
90 TEST(counter, start_stop_multiple_times) { in TEST() argument
119 TEST(counter, no_change_after_stop) { in TEST() argument
Devent_fd.cpp104 PerfCounter counter; in Id() local
105 if (InnerReadCounter(&counter)) { in Id()
106 id_ = counter.id; in Id()
129 bool EventFd::InnerReadCounter(PerfCounter* counter) const { in InnerReadCounter()
130 CHECK(counter != nullptr); in InnerReadCounter()
131 if (!android::base::ReadFully(perf_event_fd_, counter, sizeof(*counter))) { in InnerReadCounter()
138 bool EventFd::ReadCounter(PerfCounter* counter) { in ReadCounter() argument
139 if (!InnerReadCounter(counter)) { in ReadCounter()
146 counter->value - last_counter_value_); in ReadCounter()
149 counter->value - last_counter_value_); in ReadCounter()
[all …]
Drecord_lib_interface.cpp163 Counter counter; in InitAccumulatedCounters() local
164 counter.event = name; in InitAccumulatedCounters()
165 counter.value = 0; in InitAccumulatedCounters()
166 counter.time_enabled_in_ns = 0; in InitAccumulatedCounters()
167 counter.time_running_in_ns = 0; in InitAccumulatedCounters()
168 accumulated_counters_.push_back(counter); in InitAccumulatedCounters()
191 sum.value += c.counter.value; in ReadRawCounters()
192 sum.time_enabled_in_ns += c.counter.time_enabled; in ReadRawCounters()
193 sum.time_running_in_ns += c.counter.time_running; in ReadRawCounters()
Dcmd_stat_test.cpp353 PerfCounter counter; in TEST() local
354 counter.value = 1; in TEST()
355 counter.time_enabled = 2; in TEST()
356 counter.time_running = 3; in TEST()
358 a.FromCounter(counter); in TEST()
370 b.ToCounter(counter); in TEST()
371 ASSERT_EQ(counter.value, 2); in TEST()
372 ASSERT_EQ(counter.time_enabled, 4); in TEST()
373 ASSERT_EQ(counter.time_running, 6); in TEST()
402 CounterInfo& counter = info.counters.back(); in AddCounter() local
[all …]
Dcmd_stat_impl.h41 void FromCounter(const PerfCounter& counter) { in FromCounter()
42 value = counter.value; in FromCounter()
43 time_enabled = counter.time_enabled; in FromCounter()
44 time_running = counter.time_running; in FromCounter()
47 void ToCounter(PerfCounter& counter) const { in ToCounter()
48 counter.value = value; in ToCounter()
49 counter.time_enabled = time_enabled; in ToCounter()
50 counter.time_running = time_running; in ToCounter()
216 for (const auto& counter : info.counters) { in AddCountersForOneEventType() local
219 key |= counter.tid; in AddCountersForOneEventType()
[all …]
Dtest_util.cpp67 PerfCounter counter; in HasNonZeroInstructionEventCount() local
68 if (event_fd->ReadCounter(&counter)) { in HasNonZeroInstructionEventCount()
69 return counter.value != 0; in HasNonZeroInstructionEventCount()
Dcmd_list.cpp79 PerfCounter counter; in IsEventTypeSupported() local
80 if (!event_fd->ReadCounter(&counter)) { in IsEventTypeSupported()
84 return (counter.value != 0u) ? EventTypeStatus::SUPPORTED : EventTypeStatus::MAY_NOT_SUPPORTED; in IsEventTypeSupported()
Dcmd_stat.cpp794 PerfCounter& counter = counters_per_event[j].counter; in AdjustToIntervalOnlyValues() local
796 new_sum.FromCounter(counter); in AdjustToIntervalOnlyValues()
798 delta.ToCounter(counter); in AdjustToIntervalOnlyValues()
820 counter_info.counter.value, counter_info.counter.time_enabled, in ShowCounters()
821 counter_info.counter.time_running, counter_info.counter.id); in ShowCounters()
827 counter_info.counter.value, counter_info.counter.time_enabled, in ShowCounters()
828 counter_info.counter.time_running, counter_info.counter.id); in ShowCounters()
Devent_fd.h66 bool ReadCounter(PerfCounter* counter);
128 bool InnerReadCounter(PerfCounter* counter) const;
/system/core/trusty/coverage/
Dcoverage_test.cpp60 auto counter = record_->TotalEdgeCounts(); in TEST_F() local
61 ASSERT_EQ(counter, 0); in TEST_F()
86 auto counter = record_->TotalEdgeCounts(); in TEST_F() local
88 ASSERT_GE(counter, high_watermark); in TEST_F()
89 high_watermark = counter; in TEST_F()
/system/bt/gd/os/linux_generic/
Drepeating_alarm_unittest.cc49 int counter = 0; in VerifyMultipleDelayedTasks() local
54 common::Unretained(&counter), in VerifyMultipleDelayedTasks()
66 int* counter, in verify_delayed_tasks() argument
72 *counter = *counter + 1; in verify_delayed_tasks()
75 if (*counter == scheduled_tasks) { in verify_delayed_tasks()
78 …ASSERT_NEAR(time_delta.count(), interval_between_tasks_ms * 1000000 * *counter, error_ms * 1000000… in verify_delayed_tasks()
/system/keymaster/km_openssl/
Diso18033kdf.cpp41 UniquePtr<uint8_t[]> counter(new (std::nothrow) uint8_t[4]); in GenerateKey() local
43 if (!counter.get() || !digest_result.get()) return false; in GenerateKey()
57 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || in GenerateKey()
58 !EVP_DigestUpdate(&ctx, counter.get(), 4)) in GenerateKey()
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/app/src/main/java/com/example/simpleperf/simpleperfexampleofkotlin/
DSleepActivity.kt16 var counter = 0 in createRunSleepThread() variable
24 counter = callFunction(counter) in createRunSleepThread()
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/
DSleepActivity.java17 volatile int counter = 0; in createRunSleepThread()
24 counter = callFunction(counter); in createRunSleepThread()
/system/core/storaged/
Dstoraged_diskstats.cpp83 stats->counter = 1; in init_disk_stats_other()
195 inc->counter = 1; in get_inc_disk_stats()
210 if (dst->counter + src->counter) { in add_disk_stats()
212 ((dst->io_avg * dst->counter) + (src->io_avg * src->counter)) / in add_disk_stats()
213 (dst->counter + src->counter); in add_disk_stats()
215 dst->counter += src->counter; in add_disk_stats()
/system/bt/osi/test/
Dsemaphore_test.cc18 int counter; member
28 ++helper->counter; in sleep_then_increment_counter()
85 EXPECT_EQ(sequence_helper.counter, 1) in TEST_F()
/system/security/fsverity_init/
Dfsverity_init.cpp67 int counter = 0; in LoadKeyFromDirectory() local
70 std::string keyname = keyname_prefix + std::to_string(counter); in LoadKeyFromDirectory()
71 counter++; in LoadKeyFromDirectory()
/system/bt/stack/a2dp/
Da2dp_sbc_encoder.cc73 float counter; member
391 a2dp_sbc_encoder_cb.feeding_state.counter = 0.0f; in a2dp_sbc_feeding_flush()
408 for (uint8_t counter = 0; counter < nb_iterations; counter++) { in a2dp_sbc_send_frames() local
437 a2dp_sbc_encoder_cb.feeding_state.counter += in a2dp_sbc_get_num_frame_iteration()
443 a2dp_sbc_encoder_cb.feeding_state.counter / pcm_bytes_per_frame; in a2dp_sbc_get_num_frame_iteration()
479 a2dp_sbc_encoder_cb.feeding_state.counter = in a2dp_sbc_get_num_frame_iteration()
501 a2dp_sbc_encoder_cb.feeding_state.counter = in a2dp_sbc_get_num_frame_iteration()
506 a2dp_sbc_encoder_cb.feeding_state.counter -= noi * nof * pcm_bytes_per_frame; in a2dp_sbc_get_num_frame_iteration()
554 a2dp_sbc_encoder_cb.feeding_state.counter += in a2dp_sbc_encode_frames()
Da2dp_aac_encoder.cc58 float counter; member
519 a2dp_aac_encoder_cb.aac_feeding_state.counter = 0.0f; in a2dp_aac_feeding_flush()
535 for (uint8_t counter = 0; counter < nb_iterations; counter++) { in a2dp_aac_send_frames() local
564 a2dp_aac_encoder_cb.aac_feeding_state.counter += in a2dp_aac_get_num_frame_iteration()
568 result = a2dp_aac_encoder_cb.aac_feeding_state.counter / pcm_bytes_per_frame; in a2dp_aac_get_num_frame_iteration()
569 a2dp_aac_encoder_cb.aac_feeding_state.counter -= result * pcm_bytes_per_frame; in a2dp_aac_get_num_frame_iteration()
668 a2dp_aac_encoder_cb.aac_feeding_state.counter += in a2dp_aac_encode_frames()
Da2dp_vendor_ldac_encoder.cc127 float counter; member
531 a2dp_ldac_encoder_cb.ldac_feeding_state.counter = 0.0f; in a2dp_vendor_ldac_feeding_flush()
547 for (uint8_t counter = 0; counter < nb_iterations; counter++) { in a2dp_vendor_ldac_send_frames() local
589 a2dp_ldac_encoder_cb.ldac_feeding_state.counter += in a2dp_ldac_get_num_frame_iteration()
594 a2dp_ldac_encoder_cb.ldac_feeding_state.counter / pcm_bytes_per_frame; in a2dp_ldac_get_num_frame_iteration()
595 a2dp_ldac_encoder_cb.ldac_feeding_state.counter -= in a2dp_ldac_get_num_frame_iteration()
679 a2dp_ldac_encoder_cb.ldac_feeding_state.counter += in a2dp_ldac_encode_frames()
/system/security/keystore2/src/
Dapc.rs130 counter: u32, field
138 let back_off = match self.counter { in get_remaining_back_off()
146 .checked_mul(1u32 << (self.counter - 6)) in get_remaining_back_off()
162 Self { counter: 0u32, timestamp: Instant::now() } in default()
243 rate_info.counter += 1; in result()
/system/bt/common/
Drepeating_timer_unittest.cc211 int counter = counter_; in TEST_F() local
214 ASSERT_EQ(counter, counter_); in TEST_F()
248 int counter = counter_; in TEST_F() local
251 ASSERT_EQ(counter, counter_); in TEST_F()
/system/libziparchive/
Dzip_archive_benchmark.cpp97 int counter = 0; in StartAlignedEntry() local
99 writer.StartAlignedEntry(name + std::to_string(counter++), 0, alignment); in StartAlignedEntry()
/system/bt/stack/gatt/
Dgatt_cl.cc168 if (!p_clcb->counter) { in gatt_act_read()
315 p_rsp_value->len != p_clcb->counter || in gatt_check_write_long_terminate()
363 p_clcb->counter = to_send; in gatt_send_prepare_write()
851 p_clcb->counter = len - 2; in gatt_process_read_by_type_rsp()
853 if (p_clcb->counter == (payload_size - 4)) { in gatt_process_read_by_type_rsp()
857 if (p_clcb->counter <= GATT_MAX_ATTR_LEN) { in gatt_process_read_by_type_rsp()
858 memcpy(p_clcb->p_attr_buf, p, p_clcb->counter); in gatt_process_read_by_type_rsp()
859 gatt_act_read(p_clcb, p_clcb->counter); in gatt_process_read_by_type_rsp()
944 uint16_t offset = p_clcb->counter; in gatt_process_read_rsp()
951 p_clcb->counter = len; in gatt_process_read_rsp()
[all …]

123