/system/update_engine/payload_generator/ |
H A D | topological_sort_unittest.cc | 53 int counter = 0; local 54 const Vertex::Index n_a = counter++; 55 const Vertex::Index n_b = counter++; 56 const Vertex::Index n_c = counter++; 57 const Vertex::Index n_d = counter++; 58 const Vertex::Index n_e = counter++; 59 const Vertex::Index n_f = counter++; 60 const Vertex::Index n_g = counter++; 61 const Vertex::Index n_h = counter++; 62 const Vertex::Index n_i = counter [all...] |
H A D | cycle_breaker_unittest.cc | 49 int counter = 0; local 50 const Vertex::Index n_a = counter++; 51 const Vertex::Index n_b = counter++; 52 const Vertex::Index n_c = counter++; 53 const Vertex::Index n_d = counter++; 54 const Vertex::Index n_e = counter++; 55 const Vertex::Index n_f = counter++; 56 const Vertex::Index n_g = counter++; 57 const Vertex::Index n_h = counter++; 58 const Graph::size_type kNodeCount = counter 130 size_t counter = 0; local 179 size_t counter = 0; local 228 size_t counter = 0; local 256 size_t counter = 0; local [all...] |
H A D | cycle_breaker.cc | 162 static int counter = 0; local 163 counter++; 164 if (counter == 10000) { 165 counter = 0;
|
/system/core/base/ |
H A D | quick_exit_test.cpp | 48 static int counter = 4; local 50 ASSERT_EQ(0, android::base::at_quick_exit([]() { _exit(counter); })); 51 ASSERT_EQ(0, android::base::at_quick_exit([]() { counter += 2; })); 52 ASSERT_EQ(0, android::base::at_quick_exit([]() { counter *= 10; }));
|
/system/tpm/tpm_manager/server/ |
H A D | tpm_status.h | 34 virtual bool GetDictionaryAttackInfo(int* counter,
|
H A D | mock_tpm_status.cc | 25 bool GetDefaultDictionaryAttackInfo(int* counter, argument 29 *counter = 0;
|
H A D | tpm2_status_impl.cc | 48 bool Tpm2StatusImpl::GetDictionaryAttackInfo(int* counter, argument 55 if (counter) { 56 *counter = trunks_tpm_state_->GetLockoutCounter();
|
H A D | mock_tpm_status.h | 34 bool(int* counter,
|
H A D | tpm_status_impl.cc | 44 bool TpmStatusImpl::GetDictionaryAttackInfo(int* counter, argument 60 if (counter) { 61 *counter = da_info.currentCount;
|
H A D | tpm2_status_impl.h | 39 bool GetDictionaryAttackInfo(int* counter,
|
H A D | tpm_status_impl.h | 41 bool GetDictionaryAttackInfo(int* counter,
|
/system/security/keystore/ |
H A D | confirmationui_rate_limiting.h | 38 Slot() : previous_start{}, prompt_start{}, counter(0) {} 41 uint32_t counter; member in struct:keystore::RateLimiting::Slot 48 static std::chrono::seconds getBackoff(uint32_t counter) { argument 50 switch (counter) { 60 return 60s * (1ULL << (counter - 6)); 66 // about used counter slots. 89 if (!slot.counter || slot.prompt_start <= now - getBackoff(slot.counter)) { 91 slot.counter += 1; 102 // reset the counter slo [all...] |
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/ |
H A D | SleepActivity.java | 17 volatile int counter = 0; 24 counter = callFunction(counter);
|
/system/keymaster/km_openssl/ |
H A D | iso18033kdf.cpp | 41 UniquePtr<uint8_t[]> counter(new (std::nothrow) uint8_t[4]); 43 if (!counter.get() || !digest_result.get()) return false; 57 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || 58 !EVP_DigestUpdate(&ctx, counter.get(), 4))
|
/system/extras/simpleperf/ |
H A D | event_fd.cpp | 109 PerfCounter counter; local 110 if (InnerReadCounter(&counter)) { 111 id_ = counter.id; 126 bool EventFd::InnerReadCounter(PerfCounter* counter) const { 127 CHECK(counter != nullptr); 128 if (!android::base::ReadFully(perf_event_fd_, counter, sizeof(*counter))) { 135 bool EventFd::ReadCounter(PerfCounter* counter) { argument 136 if (!InnerReadCounter(counter)) { 143 cpu_).c_str(), counter [all...] |
H A D | record_lib_test.cpp | 39 TEST(counter, add_event) { 56 for (auto& counter : counters) { 57 ASSERT_GE(counter.value, 0u); 58 ASSERT_GE(counter.time_enabled_in_ns, 0u); 59 ASSERT_GE(counter.time_running_in_ns, 0u); 60 ASSERT_LE(counter.time_running_in_ns, counter.time_enabled_in_ns); 64 TEST(counter, different_targets) { 95 TEST(counter, start_stop_multiple_times) { 124 TEST(counter, no_change_after_sto [all...] |
H A D | record_lib_interface.cpp | 118 // Add counter b to a. 120 // Sub counter b from a. 161 Counter counter; local 162 counter.event = name; 163 counter.value = 0; 164 counter.time_enabled_in_ns = 0; 165 counter.time_running_in_ns = 0; 166 accumulated_counters_.push_back(counter); 189 sum.value += c.counter.value; 190 sum.time_enabled_in_ns += c.counter [all...] |
H A D | cmd_list.cpp | 64 PerfCounter counter; local 65 if (!event_fd->ReadCounter(&counter)) { 68 return (counter.value != 0u);
|
H A D | event_fd.h | 63 bool ReadCounter(PerfCounter* counter); 102 bool InnerReadCounter(PerfCounter* counter) const;
|
H A D | cmd_stat.cpp | 271 : Command("stat", "gather performance counter information", 274 " Gather performance counter information of running [command].\n" 275 " And -a/-p/-t option can be used to change target of counter information.\n" 621 fprintf(fp, "Performance counter statistics,\n"); 623 fprintf(fp, "Performance counter statistics:\n\n"); 633 counter_info.cpu, counter_info.counter.value, 634 counter_info.counter.time_enabled, 635 counter_info.counter.time_running, counter_info.counter.id); 641 counter_info.cpu, counter_info.counter [all...] |
/system/bt/test/suite/core/ |
H A D | thread_performance_test.cc | 20 volatile static int counter = 0; variable 30 counter++; 53 counter = 0; 85 while (counter < NUM_MESSAGES_TO_SEND) { 99 counter = 0; 113 while (counter < NUM_MESSAGES_TO_SEND) {
|
/system/bt/osi/test/ |
H A D | semaphore_test.cc | 16 int counter; member in struct:SemaphoreTestSequenceHelper 26 ++helper->counter; 81 EXPECT_EQ(sequence_helper.counter, 1) 82 << "semaphore_wait() did not wait for counter to increment";
|
/system/core/storaged/ |
H A D | storaged_diskstats.cpp | 83 stats->counter = 1; 191 inc->counter = 1; 206 if (dst->counter + src->counter) { 208 ((dst->io_avg * dst->counter) + (src->io_avg * src->counter)) / 209 (dst->counter + src->counter); 211 dst->counter += src->counter; [all...] |
/system/bt/stack/a2dp/ |
H A D | a2dp_aac_encoder.cc | 63 uint32_t counter; member in struct:__anon891 483 a2dp_aac_encoder_cb.aac_feeding_state.counter = 0; 499 for (uint8_t counter = 0; counter < nb_iterations; counter++) { 529 a2dp_aac_encoder_cb.aac_feeding_state.counter += 533 result = a2dp_aac_encoder_cb.aac_feeding_state.counter / pcm_bytes_per_frame; 534 a2dp_aac_encoder_cb.aac_feeding_state.counter -= result * pcm_bytes_per_frame; 634 a2dp_aac_encoder_cb.aac_feeding_state.counter +=
|
H A D | a2dp_vendor_ldac_encoder.cc | 126 uint32_t counter; member in struct:__anon912 533 a2dp_ldac_encoder_cb.ldac_feeding_state.counter = 0; 549 for (uint8_t counter = 0; counter < nb_iterations; counter++) { 592 a2dp_ldac_encoder_cb.ldac_feeding_state.counter += 597 a2dp_ldac_encoder_cb.ldac_feeding_state.counter / pcm_bytes_per_frame; 598 a2dp_ldac_encoder_cb.ldac_feeding_state.counter -= 682 a2dp_ldac_encoder_cb.ldac_feeding_state.counter += 711 // don't increment the "media_read_total_dropped_packets" counter [all...] |