Searched defs:counter (Results 1 - 25 of 28) sorted by relevance

12

/system/core/base/
H A Dquick_exit_test.cpp48 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/bt/osi/test/
H A Dsemaphore_test.cc16 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/tpm/tpm_manager/server/
H A Dmock_tpm_status.cc25 bool GetDefaultDictionaryAttackInfo(int* counter, argument
29 *counter = 0;
H A Dtpm2_status_impl.cc48 bool Tpm2StatusImpl::GetDictionaryAttackInfo(int* counter, argument
55 if (counter) {
56 *counter = trunks_tpm_state_->GetLockoutCounter();
H A Dtpm_status_impl.cc44 bool TpmStatusImpl::GetDictionaryAttackInfo(int* counter, argument
60 if (counter) {
61 *counter = da_info.currentCount;
H A Dtpm_manager_service.cc80 int counter; local
84 if (tpm_status_->GetDictionaryAttackInfo(&counter, &threshold, &lockout,
86 reply->set_dictionary_attack_counter(counter);
/system/update_engine/payload_generator/
H A Dcycle_breaker.cc162 static int counter = 0; local
163 counter++;
164 if (counter == 10000) {
165 counter = 0;
H A Dtopological_sort_unittest.cc53 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 Dcycle_breaker_unittest.cc49 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...]
/system/bt/stack/gatt/
H A Dgatt_auth.cc98 uint32_t counter; local
107 STREAM_TO_UINT32(counter, p);
109 if (BTM_BleVerifySignature(p_tcb->peer_bda, p_orig, cmd_len, counter, p)) {
141 gatt_act_read(p_clcb, p_clcb->counter);
H A Dgatt_int.h315 uint16_t counter; /* used as offset, attribute length, num of prepare write */ member in struct:__anon923
/system/extras/simpleperf/
H A Devent_fd.cpp105 PerfCounter counter; local
106 if (ReadCounter(&counter)) {
107 id_ = counter.id;
122 bool EventFd::ReadCounter(PerfCounter* counter) const {
123 CHECK(counter != nullptr);
124 uint64_t pre_counter = counter->value;
125 if (!android::base::ReadFully(perf_event_fd_, counter, sizeof(*counter))) {
133 cpu_).c_str(), counter->value - pre_counter);
137 cpu_).c_str(), counter
[all...]
H A Devent_selection_set.h42 PerfCounter counter; member in struct:CounterInfo
H A Devent_selection_set.cpp453 static bool ReadCounter(const EventFd* event_fd, CounterInfo* counter) { argument
454 if (!event_fd->ReadCounter(&counter->counter)) {
457 counter->tid = event_fd->ThreadId();
458 counter->cpu = event_fd->Cpu();
472 CounterInfo counter; local
473 if (!ReadCounter(event_fd.get(), &counter)) {
476 counters_info.counters.push_back(counter);
728 CounterInfo counter; local
729 if (!ReadCounter(it->get(), &counter)) {
[all...]
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp899 int counter = 0; local
903 tag++, counter++) {
916 data_int32[2] = counter;
921 data_float[2] = counter / (float)total_tag_count;
926 data_int64[2] = counter;
931 data_double[2] = counter / (double)total_tag_count;
938 data_rational[2].numerator = counter;
/system/tpm/trunks/
H A Dhmac_authorization_delegate.cc248 std::string counter; local
250 if (Serialize_uint32_t(1, &counter) != TPM_RC_SUCCESS ||
255 CHECK_EQ(counter.size(), sizeof(uint32_t));
260 data.append(counter);
H A Dmock_tpm.cc126 UINT16* counter,
129 e, counter, authorization_delegate);
116 CommitSync(const TPMI_DH_OBJECT& sign_handle, const std::string& sign_handle_name, const UINT32& param_size, const TPM2B_ECC_POINT& p1, const TPM2B_SENSITIVE_DATA& s2, const TPM2B_ECC_PARAMETER& y2, UINT32* param_size_out, TPM2B_ECC_POINT* k, TPM2B_ECC_POINT* l, TPM2B_ECC_POINT* e, UINT16* counter, AuthorizationDelegate* authorization_delegate) argument
/system/core/libsync/tests/
H A Dsync_test.cpp453 int counter = 0; local
458 // hammmering on the same counter.
468 ASSERT_EQ(counter, i * 2 + threadId);
469 counter++;
482 ASSERT_EQ(counter, iterations * 2);
489 int counter = 0; local
513 // Every producer increments the counter, the consumer checks + erases it.
515 counter++;
546 ASSERT_EQ(counter, GetParam()*i);
/system/bt/stack/a2dp/
H A Da2dp_aac_encoder.cc57 uint32_t counter; member in struct:__anon799
460 a2dp_aac_encoder_cb.aac_feeding_state.counter = 0;
476 for (uint8_t counter = 0; counter < nb_iterations; counter++) {
506 a2dp_aac_encoder_cb.aac_feeding_state.counter +=
510 result = a2dp_aac_encoder_cb.aac_feeding_state.counter / pcm_bytes_per_frame;
511 a2dp_aac_encoder_cb.aac_feeding_state.counter -= result * pcm_bytes_per_frame;
609 a2dp_aac_encoder_cb.aac_feeding_state.counter +=
H A Da2dp_sbc_encoder.cc77 uint32_t counter; member in struct:__anon805
397 a2dp_sbc_encoder_cb.feeding_state.counter = 0;
414 for (uint8_t counter = 0; counter < nb_iterations; counter++) {
444 a2dp_sbc_encoder_cb.feeding_state.counter +=
450 a2dp_sbc_encoder_cb.feeding_state.counter / pcm_bytes_per_frame;
489 a2dp_sbc_encoder_cb.feeding_state.counter =
512 a2dp_sbc_encoder_cb.feeding_state.counter =
517 a2dp_sbc_encoder_cb.feeding_state.counter
[all...]
H A Da2dp_vendor_ldac_encoder.cc122 uint32_t counter; member in struct:__anon819
522 a2dp_ldac_encoder_cb.ldac_feeding_state.counter = 0;
538 for (uint8_t counter = 0; counter < nb_iterations; counter++) {
578 a2dp_ldac_encoder_cb.ldac_feeding_state.counter +=
583 a2dp_ldac_encoder_cb.ldac_feeding_state.counter / pcm_bytes_per_frame;
584 a2dp_ldac_encoder_cb.ldac_feeding_state.counter -=
664 a2dp_ldac_encoder_cb.ldac_feeding_state.counter +=
691 // don't increment the "media_read_total_dropped_packets" counter
[all...]
/system/bt/stack/smp/
H A Dsmp_keys.cc1176 * N2, A1, A2 and the internal parameters counter, keyID,
1182 * internal parameter counter:
1225 counter is 0 for MacKey,
1317 bool smp_calculate_f5_mackey_or_long_term_key(uint8_t* t, uint8_t* counter, argument
1339 p_prnt = counter;
1368 ARRAY_TO_STREAM(p, counter, 1);
/system/core/storaged/include/
H A Dstoraged.h86 uint32_t counter; // private counter for accumulate calculations member in struct:disk_stats
/system/keymaster/
H A Dsoft_keymaster_device.cpp102 PushbackCounter counter; local
104 std::back_inserter(counter));
105 return counter.count == full_digest_list.size();
/system/bt/stack/btm/
H A Dbtm_ble.cc167 * Description Local local identity key, encryption root or sign counter.
1024 * Description This function is to increment local sign counter
1038 p_dev_rec->ble.keys.counter++;
1039 BTM_TRACE_DEBUG("is_local=%d local sign counter=%d peer sign counter=%d",
1041 p_dev_rec->ble.keys.counter);
1167 p_rec->ble.keys.counter = p_keys->pcsrk_key.counter;
1179 p_rec->ble.keys.srk_sec_level, p_rec->ble.keys.counter);
1200 p_rec->ble.keys.local_counter = p_keys->lcsrk_key.counter;
2062 BTM_BleVerifySignature(BD_ADDR bd_addr, uint8_t* p_orig, uint16_t len, uint32_t counter, uint8_t* p_comp) argument
[all...]

Completed in 7759 milliseconds

12