Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 590) sorted by relevance

12345678910>>...24

/system/unwinding/libunwindstack/benchmarks/
DElfBenchmark.cpp32 static void BenchmarkElfCreate(benchmark::State& state, const std::string& elf_file) { in BenchmarkElfCreate() argument
37 for (auto _ : state) { in BenchmarkElfCreate()
38 state.PauseTiming(); in BenchmarkElfCreate()
46 state.ResumeTiming(); in BenchmarkElfCreate()
53 state.PauseTiming(); in BenchmarkElfCreate()
62 state.ResumeTiming(); in BenchmarkElfCreate()
66 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
68 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
71 void BM_elf_create(benchmark::State& state) { in BM_elf_create() argument
72 BenchmarkElfCreate(state, GetElfFile()); in BM_elf_create()
[all …]
DSymbolBenchmark.cpp32 static void BenchmarkSymbolLookup(benchmark::State& state, std::vector<uint64_t> offsets, in BenchmarkSymbolLookup() argument
38 for (auto _ : state) { in BenchmarkSymbolLookup()
39 state.PauseTiming(); in BenchmarkSymbolLookup()
46 state.ResumeTiming(); in BenchmarkSymbolLookup()
66 state.PauseTiming(); in BenchmarkSymbolLookup()
75 state.ResumeTiming(); in BenchmarkSymbolLookup()
79 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
81 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
84 static void BenchmarkSymbolLookup(benchmark::State& state, uint64_t pc, std::string elf_file, in BenchmarkSymbolLookup() argument
86 BenchmarkSymbolLookup(state, std::vector<uint64_t>{pc}, elf_file, expect_found, runs); in BenchmarkSymbolLookup()
[all …]
Dlocal_unwind_benchmarks.cpp60 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) { in Run() argument
61 for (auto _ : state) { in Run()
63 state.SkipWithError("Failed to unwind."); in Run()
85 static void BM_local_unwind_uncached_process_memory(benchmark::State& state) { in BM_local_unwind_uncached_process_memory() argument
89 state.SkipWithError("Failed to parse local maps."); in BM_local_unwind_uncached_process_memory()
93 Run(state, Unwind, &data); in BM_local_unwind_uncached_process_memory()
97 static void BM_local_unwind_cached_process_memory(benchmark::State& state) { in BM_local_unwind_cached_process_memory() argument
101 state.SkipWithError("Failed to parse local maps."); in BM_local_unwind_cached_process_memory()
105 Run(state, Unwind, &data); in BM_local_unwind_cached_process_memory()
109 static void BM_local_unwind_local_updatable_maps_uncached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_uncached() argument
[all …]
DMapsBenchmark.cpp56 static void ReparseBenchmark(benchmark::State& state, const char* maps1, size_t maps1_total, in ReparseBenchmark() argument
58 for (auto _ : state) { in ReparseBenchmark()
79 void BM_local_updatable_maps_reparse_double_initial_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_small() argument
86 ReparseBenchmark(state, initial_maps.path, kNumSmallMaps / 2, reparse_maps.path, kNumSmallMaps); in BM_local_updatable_maps_reparse_double_initial_small()
90 void BM_local_updatable_maps_reparse_double_initial_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_large() argument
97 ReparseBenchmark(state, initial_maps.path, kNumLargeMaps / 2, reparse_maps.path, kNumLargeMaps); in BM_local_updatable_maps_reparse_double_initial_large()
101 void BM_local_updatable_maps_reparse_same_maps_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_small() argument
106 ReparseBenchmark(state, maps.path, kNumSmallMaps, maps.path, kNumSmallMaps); in BM_local_updatable_maps_reparse_same_maps_small()
110 void BM_local_updatable_maps_reparse_same_maps_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_large() argument
114 ReparseBenchmark(state, maps.path, kNumLargeMaps, maps.path, kNumLargeMaps); in BM_local_updatable_maps_reparse_same_maps_large()
[all …]
/system/tools/xsdc/src/com/android/xsdc/
DXsdHandler.java136 State state = stateStack.pop(); in endElement() local
137 switch (state.name) { in endElement()
139 schema = makeSchema(state); in endElement()
142 stateStack.peek().tags.add(makeElement(state)); in endElement()
145 stateStack.peek().tags.add(makeAttribute(state)); in endElement()
148 stateStack.peek().tags.add(makeAttributeGroup(state)); in endElement()
151 stateStack.peek().tags.add(makeComplexType(state)); in endElement()
154 stateStack.peek().tags.add(makeComplexContent(state)); in endElement()
157 stateStack.peek().tags.add(makeSimpleContent(state)); in endElement()
161 stateStack.peek().tags.add(makeEnumRestriction(state)); in endElement()
[all …]
/system/logging/liblog/tests/
Dliblog_benchmark.cpp58 static void BM_log_maximum_retry(benchmark::State& state) { in BM_log_maximum_retry() argument
59 while (state.KeepRunning()) { in BM_log_maximum_retry()
61 state.iterations())); in BM_log_maximum_retry()
71 static void BM_log_maximum(benchmark::State& state) { in BM_log_maximum() argument
72 while (state.KeepRunning()) { in BM_log_maximum()
73 __android_log_print(ANDROID_LOG_INFO, "BM_log_maximum", "%" PRIu64, state.iterations()); in BM_log_maximum()
89 static void BM_clock_overhead(benchmark::State& state) { in BM_clock_overhead() argument
90 while (state.KeepRunning()) { in BM_clock_overhead()
91 state.PauseTiming(); in BM_clock_overhead()
92 state.ResumeTiming(); in BM_clock_overhead()
[all …]
/system/core/init/
Dtokenizer.cpp8 int next_token(struct parse_state *state) in next_token() argument
10 char *x = state->ptr; in next_token()
13 if (state->nexttoken) { in next_token()
14 int t = state->nexttoken; in next_token()
15 state->nexttoken = 0; in next_token()
22 state->ptr = x; in next_token()
26 state->ptr = x; in next_token()
36 state->ptr = x+1; in next_token()
39 state->ptr = x; in next_token()
48 state->ptr = x; in next_token()
[all …]
/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp36 BENCHMARK_DEFINE_F(BpfBenchMark, MapWriteNewEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
37 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
39 mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST); in BENCHMARK_DEFINE_F()
43 BENCHMARK_DEFINE_F(BpfBenchMark, MapUpdateEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
48 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
50 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST); in BENCHMARK_DEFINE_F()
54 BENCHMARK_DEFINE_F(BpfBenchMark, MapDeleteAddEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
59 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
61 mBpfTestMap.deleteValue(state.range(0)); in BENCHMARK_DEFINE_F()
63 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
[all …]
Dconnect_benchmark.cpp99 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv4_loopback() argument
103 state.SkipWithError("Unable to bind server socket"); in ipv4_loopback()
108 std::vector<uint64_t> latencies(state.max_iterations); in ipv4_loopback()
111 while (state.KeepRunning()) { in ipv4_loopback()
114 state.SkipWithError(StringPrintf("socket() failed with errno=%d", errno).c_str()); in ipv4_loopback()
122 state.SkipWithError(StringPrintf("connect() failed with errno=%d", errno).c_str()); in ipv4_loopback()
129 state.SetIterationTime(static_cast<double>(latencies[iterations]) / 1.0e6L); in ipv4_loopback()
138 state.SkipWithError(StringPrintf("accept() failed with errno=%d", errno).c_str()); in ipv4_loopback()
152 state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10])); in ipv4_loopback()
156 static void ipv6_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv6_loopback() argument
[all …]
/system/bt/bta/av/
Dbta_av_ssm.cc47 uint8_t previous_state = p_scb->state; in bta_av_better_stream_state_machine()
50 switch (p_scb->state) { in bta_av_better_stream_state_machine()
54 p_scb->state = BTA_AV_OPENING_SST; in bta_av_better_stream_state_machine()
67 p_scb->state = BTA_AV_INCOMING_SST; in bta_av_better_stream_state_machine()
71 p_scb->state = BTA_AV_INCOMING_SST; in bta_av_better_stream_state_machine()
87 p_scb->state = BTA_AV_CLOSING_SST; in bta_av_better_stream_state_machine()
102 p_scb->state = BTA_AV_INIT_SST; in bta_av_better_stream_state_machine()
119 p_scb->state = BTA_AV_OPEN_SST; in bta_av_better_stream_state_machine()
123 p_scb->state = BTA_AV_INIT_SST; in bta_av_better_stream_state_machine()
137 p_scb->state = BTA_AV_CLOSING_SST; in bta_av_better_stream_state_machine()
[all …]
/system/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp25 static void BM_MemcpyToFloatFromFloatWithClamping(benchmark::State& state) { in BM_MemcpyToFloatFromFloatWithClamping() argument
26 const size_t count = state.range(0); in BM_MemcpyToFloatFromFloatWithClamping()
27 const float srcMax = state.range(1); in BM_MemcpyToFloatFromFloatWithClamping()
43 while (state.KeepRunning()) { in BM_MemcpyToFloatFromFloatWithClamping()
51 state.SkipWithError("Incorrect clamping!"); in BM_MemcpyToFloatFromFloatWithClamping()
53 state.SetComplexityN(state.range(0)); in BM_MemcpyToFloatFromFloatWithClamping()
58 static void BM_MemcpyFloat(benchmark::State& state) { in BM_MemcpyFloat() argument
59 const size_t count = state.range(0); in BM_MemcpyFloat()
72 while (state.KeepRunning()) { in BM_MemcpyFloat()
80 state.SkipWithError("Incorrect memcpy!"); in BM_MemcpyFloat()
[all …]
Dstatistics_benchmark.cpp36 static void BM_MeanVariance(benchmark::State& state, int iterlimit, int alphalimit) { in BM_MeanVariance() argument
47 while (state.KeepRunning()) { in BM_MeanVariance()
59 state.SetComplexityN(count); in BM_MeanVariance()
72 static void BM_MeanVariance_float_float_float(benchmark::State &state) { in BM_MeanVariance_float_float_float() argument
73 BM_MeanVariance<android::audio_utils::Statistics<float, float, float>>(state, in BM_MeanVariance_float_float_float()
80 static void BM_RefMeanVariance_float_float(benchmark::State &state) { in BM_RefMeanVariance_float_float() argument
81 BM_MeanVariance<android::audio_utils::ReferenceStatistics<float, float>>(state, in BM_RefMeanVariance_float_float()
88 static auto BM_MeanVariance_float_double_double(benchmark::State &state) { in BM_MeanVariance_float_double_double() argument
89 BM_MeanVariance<android::audio_utils::Statistics<float, double, double>>(state, in BM_MeanVariance_float_double_double()
96 static auto BM_RefMeanVariance_float_double(benchmark::State &state) { in BM_RefMeanVariance_float_double() argument
[all …]
/system/security/keystore2/src/
Dwatchdog.rs65 state: State, field
160 state: Arc<(Condvar, Mutex<WatchdogState>)>, field
173 state: Arc::new(( in new()
176 state: State::NotRunning, in new()
230 let (ref condvar, ref state) = *self.state; in arm()
232 let mut state = state.lock().unwrap(); in arm() localVariable
233 state.arm(index, record); in arm()
235 if state.state != State::Running { in arm()
236 self.spawn_thread(&mut state); in arm()
238 drop(state); in arm()
[all …]
Dasync_task.rs90 state: State, field
107 state: Arc<(Condvar, Mutex<AsyncTaskState>)>, field
120 state: Arc::new(( in new()
123 state: State::Exiting, in new()
162 let (ref _condvar, ref state) = *self.state; in add_idle()
163 let mut state = state.lock().unwrap(); in add_idle() localVariable
164 state.idle_fns.push(Arc::new(f)); in add_idle()
171 let (ref condvar, ref state) = *self.state; in queue()
172 let mut state = state.lock().unwrap(); in queue() localVariable
175 state.hi_prio_req.push_back(Box::new(f)); in queue()
[all …]
/system/extras/memory_replay/
DTraceBenchmark.cpp152 static void RunTrace(benchmark::State& state, TraceDataType* trace_data) { in RunTrace() argument
244 state.SetIterationTime(total_ns / double(1000000000.0)); in RunTrace()
252 static void BenchmarkTrace(benchmark::State& state, const char* filename, bool enable_decay_time) { in BenchmarkTrace() argument
265 for (auto _ : state) { in BenchmarkTrace()
266 RunTrace(state, &trace_data); in BenchmarkTrace()
280 static void BM_angry_birds2(benchmark::State& state) { in BM_angry_birds2() argument
281 BenchmarkTrace(state, "angry_birds2.zip", true); in BM_angry_birds2()
286 static void BM_angry_birds2_no_decay(benchmark::State& state) { in BM_angry_birds2_no_decay() argument
287 BenchmarkTrace(state, "angry_birds2.zip", false); in BM_angry_birds2_no_decay()
292 static void BM_camera(benchmark::State& state) { in BM_camera() argument
[all …]
/system/libbase/
Dformat_benchmark.cpp27 static void BenchmarkFormatInt(benchmark::State& state) { in BenchmarkFormatInt() argument
28 for (auto _ : state) { in BenchmarkFormatInt()
36 static void BenchmarkStringPrintfInt(benchmark::State& state) { in BenchmarkStringPrintfInt() argument
37 for (auto _ : state) { in BenchmarkStringPrintfInt()
45 static void BenchmarkFormatFloat(benchmark::State& state) { in BenchmarkFormatFloat() argument
46 for (auto _ : state) { in BenchmarkFormatFloat()
54 static void BenchmarkStringPrintfFloat(benchmark::State& state) { in BenchmarkStringPrintfFloat() argument
55 for (auto _ : state) { in BenchmarkStringPrintfFloat()
63 static void BenchmarkFormatStrings(benchmark::State& state) { in BenchmarkFormatStrings() argument
64 for (auto _ : state) { in BenchmarkFormatStrings()
[all …]
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc399 DeltaState* state, in GenerateDeltaFile() argument
401 state->a_img.reset(new ScopedTempFile("a_img.XXXXXX")); in GenerateDeltaFile()
402 state->b_img.reset(new ScopedTempFile("b_img.XXXXXX")); in GenerateDeltaFile()
406 state->result_img.reset(new ScopedTempFile("result_img.XXXXXX")); in GenerateDeltaFile()
410 base::FilePath(state->a_img->path()))); in GenerateDeltaFile()
412 state->image_size = utils::FileSize(state->a_img->path()); in GenerateDeltaFile()
417 ScopedLoopMounter b_mounter(state->a_img->path(), &a_mnt, 0); in GenerateDeltaFile()
453 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile()
455 state->result_img->path().c_str(), ones.data(), ones.size())); in GenerateDeltaFile()
456 EXPECT_EQ(utils::FileSize(state->a_img->path()), in GenerateDeltaFile()
[all …]
/system/incremental_delivery/incfs/tests/
Dhardening_benchmark.cpp42 static void TestEmpty(benchmark::State& state) { in TestEmpty() argument
44 for (auto _ : state) { in TestEmpty()
50 static void TestSignal(benchmark::State& state) { in TestSignal() argument
55 for (auto _ : state) { in TestSignal()
62 static void TestRead(benchmark::State& state) { in TestRead() argument
65 for (auto _ : state) { in TestRead()
73 static void TestMapPtrRaw(benchmark::State& state) { in TestMapPtrRaw() argument
79 for (auto _ : state) { in TestMapPtrRaw()
87 static void TestMapPtr(benchmark::State& state) { in TestMapPtr() argument
92 for (auto _ : state) { in TestMapPtr()
[all …]
/system/core/libutils/
DVector_benchmark.cpp21 void BM_fill_android_vector(benchmark::State& state) { in BM_fill_android_vector() argument
23 while (state.KeepRunning()) { in BM_fill_android_vector()
29 void BM_fill_std_vector(benchmark::State& state) { in BM_fill_std_vector() argument
31 while (state.KeepRunning()) { in BM_fill_std_vector()
37 void BM_prepend_android_vector(benchmark::State& state) { in BM_prepend_android_vector() argument
39 while (state.KeepRunning()) { in BM_prepend_android_vector()
45 void BM_prepend_std_vector(benchmark::State& state) { in BM_prepend_std_vector() argument
47 while (state.KeepRunning()) { in BM_prepend_std_vector()
/system/extras/perf2cfg/perf2cfg/
Dedit.py128 self.state = State.START
150 if self.state != State.END:
172 if self.state == State.START:
174 self.state = State.END
176 self.state = State.PARSE_METHOD_NAME
181 elif self.state == State.PARSE_METHOD_NAME:
188 self.state = State.SKIP_TO_CFG
192 self.state = State.SKIP_METHOD
194 elif self.state == State.SKIP_METHOD:
196 self.state = State.END
[all …]
/system/libziparchive/
Dzip_archive_benchmark.cpp52 static void FindEntry_no_match(benchmark::State& state) { in FindEntry_no_match() argument
63 for (auto _ : state) { in FindEntry_no_match()
71 static void Iterate_all_files(benchmark::State& state) { in Iterate_all_files() argument
78 for (auto _ : state) { in Iterate_all_files()
89 static void StartAlignedEntry(benchmark::State& state) { in StartAlignedEntry() argument
95 auto alignment = uint32_t(state.range(0)); in StartAlignedEntry()
98 for (auto _ : state) { in StartAlignedEntry()
100 state.PauseTiming(); in StartAlignedEntry()
103 state.ResumeTiming(); in StartAlignedEntry()
111 static void ExtractEntry(benchmark::State& state) { in ExtractEntry() argument
[all …]
/system/bt/bta/ag/
Dbta_ag_sco.cc83 static const char* bta_ag_sco_state_str(uint8_t state) { in bta_ag_sco_state_str() argument
84 switch (state) { in bta_ag_sco_state_str()
147 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback()
167 sco_state_text(static_cast<tSCO_STATE>(bta_ag_cb.sco.state)).c_str()); in bta_ag_sco_disc_cback()
171 sco_state_text(static_cast<tSCO_STATE>(bta_ag_cb.scb[0].state)).c_str()); in bta_ag_sco_disc_cback()
175 sco_state_text(static_cast<tSCO_STATE>(bta_ag_cb.scb[1].state)).c_str()); in bta_ag_sco_disc_cback()
198 bta_ag_cb.sco.p_curr_scb->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_disc_cback()
230 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback()
292 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback()
300 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback()
[all …]
/system/iorap/include/binder/
Dtask_result.h36 State state; member
39 explicit TaskResult(State state) : state(state) {} in TaskResult()
42 return state == other.state;
50 IORAP_INTROSPECT_ADAPT_STRUCT(TaskResult, state);
/system/bt/stack/rfcomm/
Drfc_mx_fsm.cc79 rfcomm_mx_state_text(static_cast<tRFC_MX_STATE>(p_mcb->state)).c_str()); in rfc_mx_sm_execute()
81 switch (p_mcb->state) { in rfc_mx_sm_execute()
143 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle()
153 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle()
172 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle()
176 p_mcb->state); in rfc_mx_sm_state_idle()
194 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf()
206 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf()
211 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf()
216 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf()
[all …]
/system/libhwbinder/vts/performance/
DBenchmark.cpp70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { in BM_sendVec() argument
73 data_vec.resize(state.range(0)); in BM_sendVec()
74 for (int i = 0; i < state.range(0); i++) { in BM_sendVec()
78 while (state.KeepRunning()) { in BM_sendVec()
84 static void BM_sendVec_passthrough(benchmark::State& state) { in BM_sendVec_passthrough() argument
88 state.SkipWithError("Failed to retrieve benchmark service."); in BM_sendVec_passthrough()
91 state.SkipWithError("Benchmark service is remote."); in BM_sendVec_passthrough()
93 BM_sendVec(state, service); in BM_sendVec_passthrough()
96 static void BM_sendVec_binderize(benchmark::State& state) { in BM_sendVec_binderize() argument
100 state.SkipWithError("Failed to retrieve benchmark service."); in BM_sendVec_binderize()
[all …]

12345678910>>...24