/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 57 static void BM_log_maximum_retry(benchmark::State& state) { in BM_log_maximum_retry() argument 58 while (state.KeepRunning()) { in BM_log_maximum_retry() 60 ANDROID_LOG_INFO, "BM_log_maximum_retry", "%zu", state.iterations())); in BM_log_maximum_retry() 70 static void BM_log_maximum(benchmark::State& state) { in BM_log_maximum() argument 71 while (state.KeepRunning()) { in BM_log_maximum() 73 state.iterations()); in BM_log_maximum() 86 static void BM_log_maximum_null(benchmark::State& state) { in BM_log_maximum_null() argument 88 BM_log_maximum(state); in BM_log_maximum_null() 104 static void BM_clock_overhead(benchmark::State& state) { in BM_clock_overhead() argument 105 while (state.KeepRunning()) { in BM_clock_overhead() [all …]
|
/system/core/libpixelflinger/ |
D | clear.cpp | 42 c->state.clear.dirty = GGL_STENCIL_BUFFER_BIT | in ggl_init_clear() 45 c->state.clear.depth = FIXED_ONE; in ggl_init_clear() 99 const uint32_t l = c->state.scissor.left; in ggl_clear() 100 const uint32_t t = c->state.scissor.top; in ggl_clear() 101 uint32_t w = c->state.scissor.right - l; in ggl_clear() 102 uint32_t h = c->state.scissor.bottom - t; in ggl_clear() 108 if (c->state.buffers.color.format == 0) in ggl_clear() 111 if (c->state.buffers.depth.format == 0) in ggl_clear() 114 if (c->state.buffers.stencil.format == 0) in ggl_clear() 118 if (c->state.clear.dirty & GGL_COLOR_BUFFER_BIT) { in ggl_clear() [all …]
|
D | pixelflinger.cpp | 106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface); in ggl_bindTextureLod() 112 if (surface->format != c->state.buffers.color.format) in ggl_colorBuffer() 115 if (surface->width > c->state.buffers.coverageBufferSize) { in ggl_colorBuffer() 117 free(c->state.buffers.coverage); in ggl_colorBuffer() 118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); in ggl_colorBuffer() 119 c->state.buffers.coverageBufferSize = in ggl_colorBuffer() 120 c->state.buffers.coverage ? surface->width : 0; in ggl_colorBuffer() 122 ggl_set_surface(c, &(c->state.buffers.color), surface); in ggl_colorBuffer() 123 if (c->state.buffers.read.format == 0) { in ggl_colorBuffer() 124 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_colorBuffer() [all …]
|
D | picker.cpp | 39 const uint32_t enables = c->state.enables; in ggl_pick() 40 needs_t new_needs(c->state.needs); in ggl_pick() 44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() 50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() 53 uint32_t src = c->state.blend.src; in ggl_pick() 54 uint32_t dst = c->state.blend.dst; in ggl_pick() 55 uint32_t src_alpha = c->state.blend.src_alpha; in ggl_pick() 56 uint32_t dst_alpha = c->state.blend.dst_alpha; in ggl_pick() 57 const GGLFormat& cbf = c->formats[ c->state.buffers.color.format ]; in ggl_pick() 84 if (c->state.blend.alpha_separate) { in ggl_pick() [all …]
|
/system/tools/xsdc/src/com/android/xsdc/ |
D | XsdHandler.java | 128 State state = stateStack.pop(); in endElement() local 129 switch (state.name) { in endElement() 131 schema = makeSchema(state); in endElement() 134 stateStack.peek().tags.add(makeElement(state)); in endElement() 137 stateStack.peek().tags.add(makeAttribute(state)); in endElement() 140 stateStack.peek().tags.add(makeComplexType(state)); in endElement() 143 stateStack.peek().tags.add(makeComplexContent(state)); in endElement() 146 stateStack.peek().tags.add(makeSimpleContent(state)); in endElement() 150 stateStack.peek().tags.add(makeEnumRestriction(state)); in endElement() 153 stateStack.peek().tags.add(makeGeneralRestriction(state)); in endElement() [all …]
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 297 DeltaState* state, in GenerateDeltaFile() argument 299 EXPECT_TRUE(utils::MakeTempFile("a_img.XXXXXX", &state->a_img, nullptr)); in GenerateDeltaFile() 300 EXPECT_TRUE(utils::MakeTempFile("b_img.XXXXXX", &state->b_img, nullptr)); in GenerateDeltaFile() 305 utils::MakeTempFile("result_img.XXXXXX", &state->result_img, nullptr)); in GenerateDeltaFile() 309 base::FilePath(state->a_img))); in GenerateDeltaFile() 311 state->image_size = utils::FileSize(state->a_img); in GenerateDeltaFile() 336 ScopedLoopMounter b_mounter(state->a_img, &a_mnt, 0); in GenerateDeltaFile() 372 EXPECT_TRUE(base::CopyFile(base::FilePath(state->a_img), in GenerateDeltaFile() 373 base::FilePath(state->b_img))); in GenerateDeltaFile() 378 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() [all …]
|
/system/core/init/ |
D | tokenizer.cpp | 8 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 …]
|
D | parser.cpp | 47 parse_state state; in ParseData() local 48 state.line = 0; in ParseData() 49 state.ptr = data->data(); in ParseData() 50 state.nexttoken = 0; in ParseData() 74 switch (next_token(&state)) { in ParseData() 84 state.line++; in ParseData() 97 LOG(ERROR) << filename << ": " << state.line << ": " << result.error(); in ParseData() 102 section_start_line = state.line; in ParseData() 104 section_parser->ParseSection(std::move(args), filename, state.line); in ParseData() 107 LOG(ERROR) << filename << ": " << state.line << ": " << result.error(); in ParseData() [all …]
|
/system/netd/tests/benchmarks/ |
D | bpf_benchmark.cpp | 34 BENCHMARK_DEFINE_F(BpfBenchMark, MapWriteNewEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 35 for (auto _ : state) { in BENCHMARK_DEFINE_F() 36 expectOk(mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST)); in BENCHMARK_DEFINE_F() 40 BENCHMARK_DEFINE_F(BpfBenchMark, MapUpdateEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 44 for (auto _ : state) { in BENCHMARK_DEFINE_F() 45 expectOk(mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST)); in BENCHMARK_DEFINE_F() 49 BENCHMARK_DEFINE_F(BpfBenchMark, MapDeleteAddEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 53 for (auto _ : state) { in BENCHMARK_DEFINE_F() 54 expectOk(mBpfTestMap.deleteValue(state.range(0))); in BENCHMARK_DEFINE_F() 55 expectOk(mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST)); in BENCHMARK_DEFINE_F() [all …]
|
D | connect_benchmark.cpp | 99 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(latencies[iterations] / 1e9L); 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 …]
|
D | dns_benchmark.cpp | 62 void SetUp(const ::benchmark::State& state) override { in SetUp() argument 63 if (state.thread_index == 0) { in SetUp() 77 void TearDown(const ::benchmark::State& state) override { in TearDown() argument 78 if (state.thread_index == 0) { in TearDown() 87 void benchmark(benchmark::State& state) { in benchmark() argument 88 while (state.KeepRunning()) { in benchmark() 93 state.SkipWithError(StringPrintf("getaddrinfo failed with errno=%d", in benchmark() 105 BENCHMARK_DEFINE_F(DnsFixture, getaddrinfo)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 106 benchmark(state); in BENCHMARK_DEFINE_F()
|
/system/media/audio_utils/tests/ |
D | primitives_benchmark.cpp | 25 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 …]
|
D | statistics_benchmark.cpp | 36 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/bt/stack/rfcomm/ |
D | rfc_mx_fsm.cc | 74 << ", state=" << std::to_string(p_mcb->state) << ", event=" << event; in rfc_mx_sm_execute() 75 switch (p_mcb->state) { in rfc_mx_sm_execute() 137 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle() 145 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle() 156 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle() 175 p_mcb->state); in rfc_mx_sm_state_idle() 193 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf() 205 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 210 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf() 215 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() [all …]
|
/system/core/libunwindstack/benchmarks/ |
D | unwind_benchmarks.cpp | 60 static void BM_uncached_unwind(benchmark::State& state) { in BM_uncached_unwind() argument 64 state.SkipWithError("Failed to parse local maps."); in BM_uncached_unwind() 67 for (auto _ : state) { in BM_uncached_unwind() 73 static void BM_cached_unwind(benchmark::State& state) { in BM_cached_unwind() argument 77 state.SkipWithError("Failed to parse local maps."); in BM_cached_unwind() 80 for (auto _ : state) { in BM_cached_unwind() 86 static void Initialize(benchmark::State& state, unwindstack::Maps& maps, in Initialize() argument 89 state.SkipWithError("Failed to parse local maps."); in Initialize() 103 state.SkipWithError("Failed to find a map with a BuildID."); in Initialize() 107 static void BM_get_build_id_from_elf(benchmark::State& state) { in BM_get_build_id_from_elf() argument [all …]
|
/system/libhwbinder/vts/performance/ |
D | Benchmark.cpp | 70 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 …]
|
/system/bt/bta/ag/ |
D | bta_ag_sco.cc | 79 static const char* bta_ag_sco_state_str(uint8_t state) { in bta_ag_sco_state_str() argument 80 switch (state) { in bta_ag_sco_state_str() 143 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback() 164 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback() 170 bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback() 175 bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback() 199 bta_ag_cb.sco.p_curr_scb->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_disc_cback() 231 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback() 293 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback() 301 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback() [all …]
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 114 static void benchRandomRead(benchmark::State& state) { in benchRandomRead() argument 116 while (state.KeepRunning()) { in benchRandomRead() 120 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomRead() 124 static void benchRandomWrite(benchmark::State& state) { in benchRandomWrite() argument 126 while (state.KeepRunning()) { in benchRandomWrite() 130 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomWrite() 134 static void benchLinearRead(benchmark::State& state) { in benchLinearRead() argument 137 while (state.KeepRunning()) { in benchLinearRead() 141 state.SetBytesProcessed(state.iterations() * pageSize); in benchLinearRead() 145 static void benchLinearWrite(benchmark::State& state) { in benchLinearWrite() argument [all …]
|
/system/iorap/src/perfetto/ |
D | rx_producer.cc | 36 std::ostream& operator<<(std::ostream& os, State state) { in operator <<() argument 37 switch (state) { in operator <<() 164 State state; // Never invalid. member 180 os << "PerfettoStateChange{" << state_change.state << "," in operator <<() 225 void DcheckBadStateTransition(State state, bool fail_unless = false) const { in DcheckBadStateTransition() argument 226 DCHECK(fail_unless) << "Invalid state transition to " << state << " from " << last_state; in DcheckBadStateTransition() 229 void DcheckValidStateTransition(State state) { in DcheckValidStateTransition() argument 231 DCHECK_GE(state, State::kTraceFailed); in DcheckValidStateTransition() 232 DCHECK_LE(state, State::kTraceEnded); in DcheckValidStateTransition() 235 DCHECK_NE(state, State::kIdle); in DcheckValidStateTransition() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_t1t.cc | 51 static std::string rw_t1t_get_state_name(uint8_t state); 73 uint8_t begin_state = p_t1t->state; in rw_t1t_data_cback() 81 "state:%s (%d)", rw_t1t_get_state_name(p_t1t->state).c_str(), in rw_t1t_data_cback() 82 p_t1t->state); in rw_t1t_data_cback() 86 if ((p_t1t->state == RW_T1T_STATE_IDLE) || (!p_cmd_rsp_info)) { in rw_t1t_data_cback() 149 rw_t1t_get_state_name(p_t1t->state).c_str(), p_cmd_rsp_info->opcode); in rw_t1t_data_cback() 194 if ((p_t1t->state != RW_T1T_STATE_READ) && in rw_t1t_data_cback() 195 (p_t1t->state != RW_T1T_STATE_WRITE)) { in rw_t1t_data_cback() 206 if (begin_state != p_t1t->state) { in rw_t1t_data_cback() 210 rw_t1t_get_state_name(p_t1t->state).c_str()); in rw_t1t_data_cback() [all …]
|
/system/bt/common/benchmark/ |
D | timer_performance_benchmark.cc | 79 BENCHMARK_DEFINE_F(BM_OsiAlarmTimer, timer_performance_ms)(State& state) { in BENCHMARK_DEFINE_F() 80 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F() 81 for (auto _ : state) { in BENCHMARK_DEFINE_F() 87 state.SetIterationTime(duration * 1e-6); in BENCHMARK_DEFINE_F() 131 BENCHMARK_DEFINE_F(BM_AlarmTaskTimer, timer_performance_ms)(State& state) { in BENCHMARK_DEFINE_F() 132 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F() 133 for (auto _ : state) { in BENCHMARK_DEFINE_F() 142 state.SetIterationTime(duration * 1e-6); in BENCHMARK_DEFINE_F() 179 BENCHMARK_DEFINE_F(BM_OsiPeriodicAlarmTimer, periodic_accuracy)(State& state) { in BENCHMARK_DEFINE_F() 180 for (auto _ : state) { in BENCHMARK_DEFINE_F() [all …]
|
/system/bt/stack/btm/ |
D | btm_sco.cc | 119 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING in btm_esco_conn_rsp() 129 p_sco->state = SCO_ST_CONNECTING; in btm_esco_conn_rsp() 460 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || in BTM_CreateSco() 461 (p->state == SCO_ST_PEND_UNPARK)) && in BTM_CreateSco() 464 << *remote_bda << ", at state " << unsigned(p->state); in BTM_CreateSco() 471 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco() 483 if (p->state == SCO_ST_UNUSED) { in BTM_CreateSco() 487 tBTM_PM_STATE state; in BTM_CreateSco() local 488 if ((btm_read_power_mode_state(*remote_bda, &state) == BTM_SUCCESS)) { in BTM_CreateSco() 489 if (state == BTM_PM_ST_SNIFF || state == BTM_PM_ST_PARK || in BTM_CreateSco() [all …]
|
/system/core/debuggerd/ |
D | debuggerd_benchmark.cpp | 46 static std::chrono::duration<double> GetMaximumPause(std::atomic<ThreadState>& state) { in GetMaximumPause() argument 51 state.store(ThreadState::Started); in GetMaximumPause() 52 while (state.load() != ThreadState::Stopping) { in GetMaximumPause() 96 static void BM_maximum_pause_impl(benchmark::State& state, const Fn& function) { in BM_maximum_pause_impl() argument 99 for (auto _ : state) { in BM_maximum_pause_impl() 113 state.SetIterationTime(max_pause.count()); in BM_maximum_pause_impl() 117 static void BM_maximum_pause_noop(benchmark::State& state) { in BM_maximum_pause_noop() argument 118 BM_maximum_pause_impl(state, []() {}); in BM_maximum_pause_noop() 121 static void BM_maximum_pause_debuggerd(benchmark::State& state) { in BM_maximum_pause_debuggerd() argument 122 BM_maximum_pause_impl(state, []() { PerformDump(); }); in BM_maximum_pause_debuggerd()
|
/system/core/libprocinfo/ |
D | process_map_benchmark.cpp | 31 static void BM_ReadMapFile(benchmark::State& state) { in BM_ReadMapFile() argument 33 for (auto _ : state) { in BM_ReadMapFile() 44 static void BM_unwindstack_FileMaps(benchmark::State& state) { in BM_unwindstack_FileMaps() argument 46 for (auto _ : state) { in BM_unwindstack_FileMaps() 54 static void BM_unwindstack_BufferMaps(benchmark::State& state) { in BM_unwindstack_BufferMaps() argument 58 for (auto _ : state) { in BM_unwindstack_BufferMaps() 66 static void BM_backtrace_BacktraceMap(benchmark::State& state) { in BM_backtrace_BacktraceMap() argument 68 for (auto _ : state) { in BM_backtrace_BacktraceMap()
|
/system/bt/btif/src/ |
D | btif_debug_conn.cc | 31 btif_debug_conn_state_t state; member 51 static const char* format_state(const btif_debug_conn_state_t state) { in format_state() argument 52 switch (state) { in format_state() 67 const btif_debug_conn_state_t state, in btif_debug_conn_state() argument 73 evt->state = state; in btif_debug_conn_state() 90 format_state(evt->state), evt->bda.ToString().c_str()); in btif_debug_conn_dump() 91 if (evt->state == BTIF_DEBUG_DISCONNECTED) in btif_debug_conn_dump()
|