/system/core/logcat/tests/ |
D | exec_benchmark.cpp | 25 static void logcat_popen_libc(benchmark::State& state, const char* cmd) { in logcat_popen_libc() argument 26 while (state.KeepRunning()) { in logcat_popen_libc() 34 static void BM_logcat_stat_popen_libc(benchmark::State& state) { in BM_logcat_stat_popen_libc() argument 35 logcat_popen_libc(state, "logcat -b all -S"); in BM_logcat_stat_popen_libc() 39 static void logcat_popen_liblogcat(benchmark::State& state, const char* cmd) { in logcat_popen_liblogcat() argument 40 while (state.KeepRunning()) { in logcat_popen_liblogcat() 49 static void BM_logcat_stat_popen_liblogcat(benchmark::State& state) { in BM_logcat_stat_popen_liblogcat() argument 50 logcat_popen_liblogcat(state, "logcat -b all -S"); in BM_logcat_stat_popen_liblogcat() 54 static void logcat_system_libc(benchmark::State& state, const char* cmd) { in logcat_system_libc() argument 55 while (state.KeepRunning()) { in logcat_system_libc() [all …]
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 56 static void BM_log_maximum_retry(benchmark::State& state) { in BM_log_maximum_retry() argument 57 while (state.KeepRunning()) { in BM_log_maximum_retry() 59 ANDROID_LOG_INFO, "BM_log_maximum_retry", "%zu", state.iterations())); in BM_log_maximum_retry() 69 static void BM_log_maximum(benchmark::State& state) { in BM_log_maximum() argument 70 while (state.KeepRunning()) { in BM_log_maximum() 72 state.iterations()); in BM_log_maximum() 85 static void BM_log_maximum_null(benchmark::State& state) { in BM_log_maximum_null() argument 87 BM_log_maximum(state); in BM_log_maximum_null() 103 static void BM_clock_overhead(benchmark::State& state) { in BM_clock_overhead() argument 104 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 …]
|
D | raster.cpp | 44 c->state.raster.x = x; in ggl_rasterPos2x() 45 c->state.raster.y = y; in ggl_rasterPos2x() 59 surface_t* cb = &(c->state.buffers.color); in ggl_copyPixels() 72 GGLint xd = gglFixedToIntRound(c->state.raster.x); in ggl_copyPixels() 73 GGLint yd = gglFixedToIntRound(c->state.raster.y); in ggl_copyPixels() 76 if (xd < GGLint(c->state.scissor.left)) { in ggl_copyPixels() 77 GGLint offset = GGLint(c->state.scissor.left) - xd; in ggl_copyPixels() 78 xd = GGLint(c->state.scissor.left); in ggl_copyPixels() 82 if (yd < GGLint(c->state.scissor.top)) { in ggl_copyPixels() 83 GGLint offset = GGLint(c->state.scissor.top) - yd; in ggl_copyPixels() [all …]
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 121 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv4_loopback() argument 125 state.SkipWithError("Unable to bind server socket"); in ipv4_loopback() 130 std::vector<uint64_t> latencies(state.max_iterations); in ipv4_loopback() 133 while (state.KeepRunning()) { in ipv4_loopback() 136 state.SkipWithError(StringPrintf("socket() failed with errno=%d", errno).c_str()); in ipv4_loopback() 144 state.SkipWithError(StringPrintf("connect() failed with errno=%d", errno).c_str()); in ipv4_loopback() 151 state.SetIterationTime(latencies[iterations] / 1e9L); in ipv4_loopback() 160 state.SkipWithError(StringPrintf("accept() failed with errno=%d", errno).c_str()); in ipv4_loopback() 174 state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10])); in ipv4_loopback() 178 static void ipv6_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv6_loopback() argument [all …]
|
D | dns_benchmark.cpp | 90 void SetUp(const ::benchmark::State& state) override { in SetUp() argument 91 if (state.thread_index == 0) { in SetUp() 105 void TearDown(const ::benchmark::State& state) override { in TearDown() argument 106 if (state.thread_index == 0) { in TearDown() 120 void getaddrinfo_until_done(benchmark::State &state) { in getaddrinfo_until_done() argument 121 while (state.KeepRunning()) { in getaddrinfo_until_done() 126 state.SkipWithError(StringPrintf("getaddrinfo failed with errno=%d", in getaddrinfo_until_done() 137 void benchmark_at_reporting_level(benchmark::State &state, int metricsLevel) { in benchmark_at_reporting_level() argument 138 const bool isMaster = (state.thread_index == 0); in benchmark_at_reporting_level() 145 state.SkipWithError(StringPrintf("Failed saving metrics reporting level: %s", in benchmark_at_reporting_level() [all …]
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 312 DeltaState *state, in GenerateDeltaFile() argument 314 EXPECT_TRUE(utils::MakeTempFile("a_img.XXXXXX", &state->a_img, nullptr)); in GenerateDeltaFile() 315 EXPECT_TRUE(utils::MakeTempFile("b_img.XXXXXX", &state->b_img, nullptr)); in GenerateDeltaFile() 320 utils::MakeTempFile("result_img.XXXXXX", &state->result_img, nullptr)); in GenerateDeltaFile() 324 base::FilePath(state->a_img))); in GenerateDeltaFile() 326 state->image_size = utils::FileSize(state->a_img); in GenerateDeltaFile() 351 ScopedLoopMounter b_mounter(state->a_img, &a_mnt, 0); in GenerateDeltaFile() 387 EXPECT_TRUE(base::CopyFile(base::FilePath(state->a_img), in GenerateDeltaFile() 388 base::FilePath(state->b_img))); in GenerateDeltaFile() 393 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() [all …]
|
/system/core/init/ |
D | tokenizer.cpp | 6 int next_token(struct parse_state *state) in next_token() argument 8 char *x = state->ptr; in next_token() 11 if (state->nexttoken) { in next_token() 12 int t = state->nexttoken; in next_token() 13 state->nexttoken = 0; in next_token() 20 state->ptr = x; in next_token() 24 state->ptr = x; in next_token() 34 state->ptr = x+1; in next_token() 37 state->ptr = x; in next_token() 46 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_copy[0]; in ParseData() 50 state.nexttoken = 0; in ParseData() 69 switch (next_token(&state)) { in ParseData() 74 state.line++; in ParseData() 85 LOG(ERROR) << filename << ": " << state.line << ": " << result.error(); in ParseData() 93 section_start_line = state.line; in ParseData() 95 section_parser->ParseSection(std::move(args), filename, state.line); in ParseData() 98 LOG(ERROR) << filename << ": " << state.line << ": " << result.error(); in ParseData() [all …]
|
/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 …]
|
/system/bt/stack/rfcomm/ |
D | rfc_mx_fsm.cc | 72 switch (p_mcb->state) { in rfc_mx_sm_execute() 132 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle() 140 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle() 151 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle() 170 p_mcb->state); in rfc_mx_sm_state_idle() 188 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf() 200 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 205 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf() 210 p_mcb->state = RFC_MX_STATE_IDLE; 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/adb/ |
D | fdevent.cpp | 92 std::string state; in dump_fde() local 93 if (fde->state & FDE_ACTIVE) { in dump_fde() 94 state += "A"; in dump_fde() 96 if (fde->state & FDE_PENDING) { in dump_fde() 97 state += "P"; in dump_fde() 99 if (fde->state & FDE_CREATED) { in dump_fde() 100 state += "C"; in dump_fde() 102 if (fde->state & FDE_READ) { in dump_fde() 103 state += "R"; in dump_fde() 105 if (fde->state & FDE_WRITE) { in dump_fde() [all …]
|
/system/bt/bta/ag/ |
D | bta_ag_sco.cc | 78 static const char* bta_ag_sco_state_str(uint8_t state) { in bta_ag_sco_state_str() argument 79 switch (state) { in bta_ag_sco_state_str() 142 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback() 163 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback() 169 bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback() 174 bta_ag_cb.scb[1].state); 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/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/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/tpm/trunks/ |
D | trunks_client.cc | 104 std::unique_ptr<trunks::TpmState> state = factory.GetTpmState(); in DumpStatus() local 105 trunks::TPM_RC result = state->Initialize(); in DumpStatus() 112 state->IsOwnerPasswordSet() ? "true" : "false"); in DumpStatus() 114 state->IsEndorsementPasswordSet() ? "true" : "false"); in DumpStatus() 116 state->IsLockoutPasswordSet() ? "true" : "false"); in DumpStatus() 117 printf("Ownership status: %s\n", state->IsOwned() ? "true" : "false"); in DumpStatus() 118 printf("In lockout: %s\n", state->IsInLockout() ? "true" : "false"); in DumpStatus() 120 state->IsPlatformHierarchyEnabled() ? "true" : "false"); in DumpStatus() 122 state->IsStorageHierarchyEnabled() ? "true" : "false"); in DumpStatus() 124 state->IsEndorsementHierarchyEnabled() ? "true" : "false"); in DumpStatus() [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 …]
|
D | rw_t2t.cc | 52 static std::string rw_t2t_get_state_name(uint8_t state); 75 uint8_t begin_state = p_t2t->state; in rw_t2t_proc_data() 77 if ((p_t2t->state == RW_T2T_STATE_IDLE) || (p_cmd_rsp_info == NULL)) { in rw_t2t_proc_data() 102 (p_t2t->state == RW_T2T_STATE_HALT)) { in rw_t2t_proc_data() 104 rw_t2t_get_state_name(p_t2t->state).c_str()); in rw_t2t_proc_data() 105 if (p_t2t->state != RW_T2T_STATE_HALT) { in rw_t2t_proc_data() 120 p_t2t->state, conn_id, p_pkt->len, *p); in rw_t2t_proc_data() 144 if (p_t2t->state == RW_T2T_STATE_READ) b_release = false; in rw_t2t_proc_data() 169 switch (p_t2t->state) { in rw_t2t_proc_data() 223 if (begin_state != p_t2t->state) { in rw_t2t_proc_data() [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/bt/stack/btm/ |
D | btm_sco.cc | 121 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING in btm_esco_conn_rsp() 131 p_sco->state = SCO_ST_CONNECTING; in btm_esco_conn_rsp() 462 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || in BTM_CreateSco() 463 (p->state == SCO_ST_PEND_UNPARK)) && in BTM_CreateSco() 466 << *remote_bda << ", at state " << unsigned(p->state); in BTM_CreateSco() 473 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco() 485 if (p->state == SCO_ST_UNUSED) { in BTM_CreateSco() 490 tBTM_PM_STATE state; in BTM_CreateSco() local 491 if ((btm_read_power_mode_state(*remote_bda, &state) == BTM_SUCCESS)) { in BTM_CreateSco() 492 if (state == BTM_PM_ST_SNIFF || state == BTM_PM_ST_PARK || in BTM_CreateSco() [all …]
|
/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()
|
/system/update_engine/update_manager/ |
D | policy_utils.h | 50 State* state, in ConsultPolicies() argument 56 (policy->*policy_method)(ec, state, error, result, args...); in ConsultPolicies() 73 State* state, in UpdateCheckAllowed() argument 81 State* state, in UpdateCanBeApplied() argument 89 State* state, in UpdateCanStart() argument 97 State* state, in UpdateDownloadAllowed() argument 104 State* state, in P2PEnabled() argument 111 State* state, in P2PEnabledChanged() argument
|
/system/bt/service/ |
D | logging_helpers.cc | 26 const char* BtAvConnectionStateText(const btav_connection_state_t state) { in BtAvConnectionStateText() argument 27 switch (state) { in BtAvConnectionStateText() 37 const char* BtAvAudioStateText(const btav_audio_state_t state) { in BtAvAudioStateText() argument 38 switch (state) { in BtAvAudioStateText() 57 const char* BtStateText(const bt_state_t state) { in BtStateText() argument 58 switch (state) { in BtStateText() 66 const char* BtDiscoveryStateText(const bt_discovery_state_t state) { in BtDiscoveryStateText() argument 67 switch (state) { in BtDiscoveryStateText()
|