Home
last modified time | relevance | path

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

12

/system/update_engine/payload_generator/
Dcycle_breaker_unittest.cc49 int counter = 0; in TEST() local
50 const Vertex::Index n_a = counter++; in TEST()
51 const Vertex::Index n_b = counter++; in TEST()
52 const Vertex::Index n_c = counter++; in TEST()
53 const Vertex::Index n_d = counter++; in TEST()
54 const Vertex::Index n_e = counter++; in TEST()
55 const Vertex::Index n_f = counter++; in TEST()
56 const Vertex::Index n_g = counter++; in TEST()
57 const Vertex::Index n_h = counter++; in TEST()
58 const Graph::size_type kNodeCount = counter++; in TEST()
[all …]
Dtopological_sort_unittest.cc53 int counter = 0; in TEST() local
54 const Vertex::Index n_a = counter++; in TEST()
55 const Vertex::Index n_b = counter++; in TEST()
56 const Vertex::Index n_c = counter++; in TEST()
57 const Vertex::Index n_d = counter++; in TEST()
58 const Vertex::Index n_e = counter++; in TEST()
59 const Vertex::Index n_f = counter++; in TEST()
60 const Vertex::Index n_g = counter++; in TEST()
61 const Vertex::Index n_h = counter++; in TEST()
62 const Vertex::Index n_i = counter++; in TEST()
[all …]
Dcycle_breaker.cc162 static int counter = 0; in Circuit() local
163 counter++; in Circuit()
164 if (counter == 10000) { in Circuit()
165 counter = 0; in Circuit()
/system/extras/simpleperf/
Devent_fd.cpp91 PerfCounter counter; in Id() local
92 if (ReadCounter(&counter)) { in Id()
93 id_ = counter.id; in Id()
99 bool EventFd::ReadCounter(PerfCounter* counter) const { in ReadCounter()
100 CHECK(counter != nullptr); in ReadCounter()
101 if (!android::base::ReadFully(perf_event_fd_, counter, sizeof(*counter))) { in ReadCounter()
Dcmd_stat.cpp359 ReadableCountValue(counter_info.counter.value, *event_type).c_str(), in ShowCounters()
360 counter_info.counter.time_enabled, counter_info.counter.time_running, in ShowCounters()
361 counter_info.counter.id); in ShowCounters()
372 value_sum += counter_info.counter.value; in ShowCounters()
373 time_enabled_sum += counter_info.counter.time_enabled; in ShowCounters()
374 time_running_sum += counter_info.counter.time_running; in ShowCounters()
Devent_fd.h57 bool ReadCounter(PerfCounter* counter) const;
Devent_selection_set.h35 PerfCounter counter; member
/system/keymaster/
Diso18033kdf.cpp44 UniquePtr<uint8_t[]> counter(new uint8_t[4]); in GenerateKey() local
46 if (counter.get() == nullptr || digest_result.get() == nullptr) in GenerateKey()
63 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || in GenerateKey()
64 !EVP_DigestUpdate(&ctx, counter.get(), 4)) in GenerateKey()
/system/tpm/tpm_manager/server/
Dtpm2_status_impl.cc53 bool Tpm2StatusImpl::GetDictionaryAttackInfo(int* counter, in GetDictionaryAttackInfo() argument
60 if (counter) { in GetDictionaryAttackInfo()
61 *counter = trunks_tpm_state_->GetLockoutCounter(); in GetDictionaryAttackInfo()
Dmock_tpm_status.cc25 bool GetDefaultDictionaryAttackInfo(int* counter, in GetDefaultDictionaryAttackInfo() argument
29 *counter = 0; in GetDefaultDictionaryAttackInfo()
Dtpm_status_impl.cc44 bool TpmStatusImpl::GetDictionaryAttackInfo(int* counter, in GetDictionaryAttackInfo() argument
60 if (counter) { *counter = da_info.currentCount; } in GetDictionaryAttackInfo()
Dtpm_status.h34 virtual bool GetDictionaryAttackInfo(int* counter,
Dmock_tpm_status.h34 bool(int* counter,
Dtpm_status_impl.h41 bool GetDictionaryAttackInfo(int* counter,
Dtpm2_status_impl.h40 bool GetDictionaryAttackInfo(int* counter,
Dtpm_manager_service.cc78 int counter; in GetTpmStatusTask() local
82 if (tpm_status_->GetDictionaryAttackInfo(&counter, &threshold, &lockout, in GetTpmStatusTask()
84 result->set_dictionary_attack_counter(counter); in GetTpmStatusTask()
/system/bt/osi/test/
Dsemaphore_test.cpp17 int counter; member
27 ++helper->counter; in sleep_then_increment_counter()
82 EXPECT_EQ(sequence_helper.counter, 1) << in TEST_F()
/system/core/adb/
Dsysdeps_test.cpp30 std::atomic<int> counter(0); in TEST() local
33 ASSERT_TRUE(adb_thread_create(increment_atomic_int, &counter)); in TEST()
37 ASSERT_EQ(100, counter.load()); in TEST()
41 std::atomic<int> counter(0); in TEST() local
44 ASSERT_TRUE(adb_thread_create(increment_atomic_int, &counter, &threads[i])); in TEST()
47 int current = counter.load(); in TEST()
58 ASSERT_EQ(500, counter.load()); in TEST()
/system/bt/stack/gatt/
Dgatt_cl.c164 if (!p_clcb->counter) in gatt_act_read()
331 p_rsp_value->len != p_clcb->counter || in gatt_check_write_long_terminate()
395 p_clcb->counter = to_send; in gatt_send_prepare_write()
865 p_clcb->counter = len - 2; in gatt_process_read_by_type_rsp()
867 if ( p_clcb->counter == (p_clcb->p_tcb->payload_size -4)) in gatt_process_read_by_type_rsp()
872 if (p_clcb->counter <= GATT_MAX_ATTR_LEN) { in gatt_process_read_by_type_rsp()
873 memcpy(p_clcb->p_attr_buf, p, p_clcb->counter); in gatt_process_read_by_type_rsp()
874 gatt_act_read(p_clcb, p_clcb->counter); in gatt_process_read_by_type_rsp()
954 UINT16 offset = p_clcb->counter; in gatt_process_read_rsp()
963 p_clcb->counter = len; in gatt_process_read_rsp()
[all …]
Dgatt_auth.c98 UINT32 counter; in gatt_verify_signature() local
107 STREAM_TO_UINT32(counter, p); in gatt_verify_signature()
109 if (BTM_BleVerifySignature(p_tcb->peer_bda, p_orig, cmd_len, counter, p)) in gatt_verify_signature()
148 gatt_act_read(p_clcb, p_clcb->counter); in gatt_sec_check_complete()
/system/core/libsync/tests/
Dsync_test.cpp443 int counter = 0; in TEST() local
458 ASSERT_EQ(counter, i * 2 + threadId); in TEST()
459 counter++; in TEST()
472 ASSERT_EQ(counter, iterations * 2); in TEST()
479 int counter = 0; in TEST_P() local
505 counter++; in TEST_P()
536 ASSERT_EQ(counter, GetParam()*i); in TEST_P()
/system/tpm/trunks/
Dhmac_authorization_delegate.cc251 std::string counter; in CreateKey() local
253 if (Serialize_uint32_t(1, &counter) != TPM_RC_SUCCESS || in CreateKey()
258 CHECK_EQ(counter.size(), sizeof(uint32_t)); in CreateKey()
263 data.append(counter); in CreateKey()
Dmock_tpm.cc134 UINT16* counter, in CommitSync() argument
137 l, e, counter, authorization_delegate); in CommitSync()
/system/tpm/tpm_manager/common/
Dtpm_ownership_interface.proto39 // The current dictionary attack counter value.
41 // The current dictionary attack counter threshold.
/system/bt/stack/btm/
Dbtm_ble.c1116 p_dev_rec->ble.keys.counter++; in btm_ble_increment_sign_ctr()
1120 p_dev_rec->ble.keys.counter); in btm_ble_increment_sign_ctr()
1251 p_rec->ble.keys.counter = p_keys->pcsrk_key.counter; in btm_sec_save_le_key()
1263 p_rec->ble.keys.counter ); in btm_sec_save_le_key()
1284 p_rec->ble.keys.local_counter = p_keys->lcsrk_key.counter; in btm_sec_save_le_key()
2246 BOOLEAN BTM_BleVerifySignature (BD_ADDR bd_addr, UINT8 *p_orig, UINT16 len, UINT32 counter, in BTM_BleVerifySignature() argument
2258 else if (counter < p_rec->ble.keys.counter) in BTM_BleVerifySignature()
2268 BTM_TRACE_DEBUG ("%s rcv_cnt=%d >= expected_cnt=%d", __func__, counter, in BTM_BleVerifySignature()
2269 p_rec->ble.keys.counter); in BTM_BleVerifySignature()

12