Home
last modified time | relevance | path

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

12345678910>>...15

/system/core/logcat/tests/
Dexec_benchmark.cpp25 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/libpixelflinger/
Dclear.cpp42 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 …]
Dpixelflinger.cpp106 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 …]
Dpicker.cpp39 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 …]
Draster.cpp44 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/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc312 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/netd/tests/benchmarks/
Dconnect_benchmark.cpp121 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 …]
Ddns_benchmark.cpp90 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/core/init/
Dparser.cpp6 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 …]
Dinit_parser.cpp54 parse_state state; in ParseData() local
55 state.line = 0; in ParseData()
56 state.ptr = &data_copy[0]; in ParseData()
57 state.nexttoken = 0; in ParseData()
63 switch (next_token(&state)) { in ParseData()
70 state.line++; in ParseData()
82 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err; in ParseData()
94 … if (!section_parser->ParseSection(std::move(args), filename, state.line, &ret_err)) { in ParseData()
95 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err; in ParseData()
100 if (!section_parser->ParseLineSection(std::move(args), state.line, &ret_err)) { in ParseData()
[all …]
/system/bt/stack/rfcomm/
Drfc_mx_fsm.cc72 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/
Dfdevent.cpp98 std::string state; in dump_fde() local
99 if (fde->state & FDE_ACTIVE) { in dump_fde()
100 state += "A"; in dump_fde()
102 if (fde->state & FDE_PENDING) { in dump_fde()
103 state += "P"; in dump_fde()
105 if (fde->state & FDE_CREATED) { in dump_fde()
106 state += "C"; in dump_fde()
108 if (fde->state & FDE_READ) { in dump_fde()
109 state += "R"; in dump_fde()
111 if (fde->state & FDE_WRITE) { in dump_fde()
[all …]
/system/bt/bta/ag/
Dbta_ag_sco.cc52 static char* bta_ag_sco_state_str(uint8_t state);
111 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback()
132 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback()
138 bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback()
143 bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback()
175 bta_ag_cb.sco.p_curr_scb->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_disc_cback()
208 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback()
291 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback()
299 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback()
306 bta_ag_cb.sco.state = BTA_AG_SCO_LISTEN_ST; in bta_ag_esco_connreq_cback()
[all …]
/system/nfc/src/nfc/tags/
Drw_t1t.c44 static char* rw_t1t_get_state_name(uint8_t state);
69 uint8_t begin_state = p_t1t->state; in rw_t1t_data_cback()
79 rw_t1t_get_state_name(p_t1t->state), p_t1t->state); in rw_t1t_data_cback()
81 RW_TRACE_DEBUG1("rw_t1t_data_cback (): state=%d", 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), in rw_t1t_data_cback()
153 p_t1t->state, p_cmd_rsp_info->opcode); in rw_t1t_data_cback()
198 if ((p_t1t->state != RW_T1T_STATE_READ) && in rw_t1t_data_cback()
199 (p_t1t->state != RW_T1T_STATE_WRITE)) { in rw_t1t_data_cback()
211 if (begin_state != p_t1t->state) { in rw_t1t_data_cback()
[all …]
Drw_t2t.c45 static char* rw_t2t_get_state_name(uint8_t state);
72 uint8_t begin_state = p_t2t->state; in rw_t2t_proc_data()
75 if ((p_t2t->state == RW_T2T_STATE_IDLE) || (p_cmd_rsp_info == NULL)) { in rw_t2t_proc_data()
101 (p_t2t->state == RW_T2T_STATE_HALT)) { in rw_t2t_proc_data()
104 rw_t2t_get_state_name(p_t2t->state)); in rw_t2t_proc_data()
107 p_t2t->state); in rw_t2t_proc_data()
109 if (p_t2t->state != RW_T2T_STATE_HALT) { in rw_t2t_proc_data()
124 p_t2t->state, conn_id, p_pkt->len, *p); in rw_t2t_proc_data()
148 if (p_t2t->state == RW_T2T_STATE_READ) b_release = false; in rw_t2t_proc_data()
173 switch (p_t2t->state) { in rw_t2t_proc_data()
[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 …]
/system/extras/mmap-perf/
DmmapPerf.cpp113 static void benchRandomRead(benchmark::State& state) { in benchRandomRead() argument
115 while (state.KeepRunning()) { in benchRandomRead()
119 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomRead()
123 static void benchRandomWrite(benchmark::State& state) { in benchRandomWrite() argument
125 while (state.KeepRunning()) { in benchRandomWrite()
129 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomWrite()
133 static void benchLinearRead(benchmark::State& state) { in benchLinearRead() argument
136 while (state.KeepRunning()) { in benchLinearRead()
140 state.SetBytesProcessed(state.iterations() * pageSize); in benchLinearRead()
144 static void benchLinearWrite(benchmark::State& state) { in benchLinearWrite() argument
[all …]
/system/tpm/trunks/
Dtrunks_client.cc104 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/bt/btif/src/
Dbtif_sm.cc39 btif_sm_state_t state; member
68 p_cb->state = initial_state; in btif_sm_init()
113 return p_cb->state; in btif_sm_get_state()
139 if (p_cb->p_handlers[p_cb->state](event, data) == false) in btif_sm_dispatch()
160 btif_sm_state_t state) { in btif_sm_change_state() argument
170 if (p_cb->p_handlers[p_cb->state](BTIF_SM_EXIT_EVT, NULL) == false) in btif_sm_change_state()
174 p_cb->state = state; in btif_sm_change_state()
177 if (p_cb->p_handlers[p_cb->state](BTIF_SM_ENTER_EVT, NULL) == false) in btif_sm_change_state()
Dbtif_debug_conn.cc31 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/media/brillo/audio/audioservice/
Daudio_device_handler.cpp62 void AudioDeviceHandler::TriggerCallback(DeviceConnectionState state) { in TriggerCallback() argument
66 base::Closure closure = base::Bind(callback_, state, changed_devices_); in TriggerCallback()
111 int state = 0; in GetInitialAudioDeviceState() local
112 int bytes_read = file.ReadAtCurrentPos(reinterpret_cast<char*>(&state), 1); in GetInitialAudioDeviceState()
113 state -= '0'; in GetInitialAudioDeviceState()
118 VLOG(1) << "Initial audio jack state is " << state; in GetInitialAudioDeviceState()
120 bool headphone = state & kHeadPhoneMask; in GetInitialAudioDeviceState()
122 bool microphone = (state & kMicrophoneMask) >> 1; in GetInitialAudioDeviceState()
128 audio_devices_t device, audio_policy_dev_state_t state) { in NotifyAudioPolicyService() argument
135 << state; in NotifyAudioPolicyService()
[all …]
/system/bt/stack/btm/
Dbtm_sco.cc135 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING
145 p_sco->state = SCO_ST_CONNECTING;
307 p_ccb->state == SCO_ST_CONNECTED) {
340 btm_cb.sco_cb.sco_db[sco_inx].state);
556 tBTM_PM_STATE state;
581 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) ||
582 (p->state == SCO_ST_PEND_UNPARK)) &&
590 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) return BTM_BUSY;
597 if (p->state == SCO_ST_UNUSED) {
602 if ((btm_read_power_mode_state(p->esco.data.bd_addr, &state) ==
[all …]
/system/nfc/src/adaptation/
Dconfig.cpp76 unsigned long state; member in CNfcConfig
78 inline bool Is(unsigned long f) { return (state & f) == f; } in Is()
79 inline void Set(unsigned long f) { state |= f; } in Set()
80 inline void Reset(unsigned long f) { state &= ~f; } in Reset()
188 state = BEGIN_LINE; in readConfig()
211 if (state == BEGIN_LINE) break; in readConfig()
219 switch (state & 0xff) { in readConfig()
222 state = END_LINE; in readConfig()
227 state = TOKEN; in readConfig()
234 state = BEGIN_QUOTE; in readConfig()
[all …]
/system/bt/service/
Dlogging_helpers.cc26 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()
/system/nfc/halimpl/bcm2079x/adaptation/
Dconfig.cpp76 unsigned long state; member in CNfcConfig
78 inline bool Is(unsigned long f) { return (state & f) == f; } in Is()
79 inline void Set(unsigned long f) { state |= f; } in Set()
80 inline void Reset(unsigned long f) { state &= ~f; } in Reset()
188 state = BEGIN_LINE; in readConfig()
210 switch (state & 0xff) { in readConfig()
213 state = END_LINE; in readConfig()
218 state = TOKEN; in readConfig()
225 state = BEGIN_QUOTE; in readConfig()
229 state = END_LINE; in readConfig()
[all …]

12345678910>>...15