Searched refs:state (Results 1 - 25 of 258) sorted by relevance

1234567891011

/system/core/logcat/tests/
H A Dexec_benchmark.cpp25 static void logcat_popen_libc(benchmark::State& state, const char* cmd) { argument
26 while (state.KeepRunning()) {
34 static void BM_logcat_stat_popen_libc(benchmark::State& state) { argument
35 logcat_popen_libc(state, "logcat -b all -S");
39 static void logcat_popen_liblogcat(benchmark::State& state, const char* cmd) { argument
40 while (state.KeepRunning()) {
49 static void BM_logcat_stat_popen_liblogcat(benchmark::State& state) { argument
50 logcat_popen_liblogcat(state, "logcat -b all -S");
54 static void logcat_system_libc(benchmark::State& state, const char* cmd) { argument
55 while (state
60 BM_logcat_stat_system_libc(benchmark::State& state) argument
65 logcat_system_liblogcat(benchmark::State& state, const char* cmd) argument
71 BM_logcat_stat_system_liblogcat(benchmark::State& state) argument
78 BM_logcat_dump_popen_libc(benchmark::State& state) argument
83 BM_logcat_dump_popen_liblogcat(benchmark::State& state) argument
88 BM_logcat_dump_system_libc(benchmark::State& state) argument
93 BM_logcat_dump_system_liblogcat(benchmark::State& state) argument
[all...]
/system/core/init/
H A Dparser.cpp6 int next_token(struct parse_state *state) argument
8 char *x = state->ptr;
11 if (state->nexttoken) {
12 int t = state->nexttoken;
13 state->nexttoken = 0;
20 state->ptr = x;
24 state->ptr = x;
34 state->ptr = x+1;
37 state->ptr = x;
46 state
[all...]
H A Dparser.h35 int next_token(struct parse_state *state);
H A Dinit_parser.cpp54 parse_state state; local
55 state.line = 0;
56 state.ptr = &data_copy[0];
57 state.nexttoken = 0;
63 switch (next_token(&state)) {
70 state.line++;
82 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err;
94 if (!section_parser->ParseSection(std::move(args), filename, state.line, &ret_err)) {
95 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err;
100 if (!section_parser->ParseLineSection(std::move(args), state
[all...]
/system/bt/service/common/bluetooth/
H A Dadapter_state.cc21 std::string AdapterStateToString(AdapterState state) { argument
22 switch (state) {
40 return "unknown state";
H A Dadapter_state.h40 // Returns a string for the given Adapter state |state|.
41 std::string AdapterStateToString(AdapterState state);
/system/bt/service/
H A Dlogging_helpers.h26 const char* BtAvConnectionStateText(const btav_connection_state_t state);
28 const char* BtAvAudioStateText(const btav_audio_state_t state);
32 const char* BtStateText(const bt_state_t state);
44 const char* BtAclText(const bt_acl_state_t state);
H A Dlogging_helpers.cc26 const char* BtAvConnectionStateText(const btav_connection_state_t state) { argument
27 switch (state) {
33 return "Invalid AV connection state";
37 const char* BtAvAudioStateText(const btav_audio_state_t state) { argument
38 switch (state) {
43 return "Invalid audio state";
57 const char* BtStateText(const bt_state_t state) { argument
58 switch (state) {
62 return "unknown state code";
66 const char* BtDiscoveryStateText(const bt_discovery_state_t state) { argument
[all...]
/system/bt/btif/src/
H A Dbtif_sm.cc23 * Description: Generic BTIF state machine API
39 btif_sm_state_t state; member in struct:__anon673
51 * Description Initializes the state machine with the state handlers
56 * Returns Returns a pointer to the initialized state machine handle.
68 p_cb->state = initial_state;
71 /* Send BTIF_SM_ENTER_EVT to the initial state */
81 * Description Tears down the state machine
100 * Description Fetches the current state of the state machin
159 btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) argument
[all...]
H A Dbtif_debug_conn.cc31 btif_debug_conn_state_t state; member in struct:conn_event_t
51 static const char* format_state(const btif_debug_conn_state_t state) { argument
52 switch (state) {
67 const btif_debug_conn_state_t state,
73 evt->state = state;
90 format_state(evt->state), evt->bda.ToString().c_str());
91 if (evt->state == BTIF_DEBUG_DISCONNECTED)
66 btif_debug_conn_state(const RawAddress& bda, const btif_debug_conn_state_t state, const tGATT_DISCONN_REASON disconnect_reason) argument
/system/core/libpixelflinger/
H A Dclear.cpp42 c->state.clear.dirty = GGL_STENCIL_BUFFER_BIT |
45 c->state.clear.depth = FIXED_ONE;
99 const uint32_t l = c->state.scissor.left;
100 const uint32_t t = c->state.scissor.top;
101 uint32_t w = c->state.scissor.right - l;
102 uint32_t h = c->state.scissor.bottom - t;
108 if (c->state.buffers.color.format == 0)
111 if (c->state.buffers.depth.format == 0)
114 if (c->state.buffers.stencil.format == 0)
118 if (c->state
[all...]
H A Dpixelflinger.cpp106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface);
112 if (surface->format != c->state.buffers.color.format)
115 if (surface->width > c->state.buffers.coverageBufferSize) {
117 free(c->state.buffers.coverage);
118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2);
119 c->state.buffers.coverageBufferSize =
120 c->state.buffers.coverage ? surface->width : 0;
122 ggl_set_surface(c, &(c->state.buffers.color), surface);
123 if (c->state.buffers.read.format == 0) {
124 ggl_set_surface(c, &(c->state
[all...]
H A Draster.cpp44 c->state.raster.x = x;
45 c->state.raster.y = y;
59 surface_t* cb = &(c->state.buffers.color);
72 GGLint xd = gglFixedToIntRound(c->state.raster.x);
73 GGLint yd = gglFixedToIntRound(c->state.raster.y);
76 if (xd < GGLint(c->state.scissor.left)) {
77 GGLint offset = GGLint(c->state.scissor.left) - xd;
78 xd = GGLint(c->state.scissor.left);
82 if (yd < GGLint(c->state.scissor.top)) {
83 GGLint offset = GGLint(c->state
[all...]
H A Dpicker.cpp39 const uint32_t enables = c->state.enables;
40 needs_t new_needs(c->state.needs);
44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT);
50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT);
53 uint32_t src = c->state.blend.src;
54 uint32_t dst = c->state.blend.dst;
55 uint32_t src_alpha = c->state.blend.src_alpha;
56 uint32_t dst_alpha = c->state.blend.dst_alpha;
57 const GGLFormat& cbf = c->formats[ c->state.buffers.color.format ];
84 if (c->state
[all...]
/system/core/logwrapper/
H A Dandroid_fork_execvp_ext_benchmark.cpp22 static void BM_android_fork_execvp_ext(benchmark::State& state) { argument
25 while (state.KeepRunning()) {
/system/netd/tests/benchmarks/
H A Dconnect_benchmark.cpp121 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { argument
125 state.SkipWithError("Unable to bind server socket");
130 std::vector<uint64_t> latencies(state.max_iterations);
133 while (state.KeepRunning()) {
136 state.SkipWithError(StringPrintf("socket() failed with errno=%d", errno).c_str());
144 state.SkipWithError(StringPrintf("connect() failed with errno=%d", errno).c_str());
151 state.SetIterationTime(latencies[iterations] / 1e9L);
160 state.SkipWithError(StringPrintf("accept() failed with errno=%d", errno).c_str());
174 state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]));
178 static void ipv6_loopback(benchmark::State& state, cons argument
236 ::benchmark::State& state, const int reportingLevel, variable
290 ipv4_metrics_reporting_no_fwmark(::benchmark::State& state) argument
296 ipv4_metrics_reporting_no_load(::benchmark::State& state) argument
301 ipv4_full_reporting_no_load(::benchmark::State& state) argument
307 ipv4_metrics_reporting_high_load(::benchmark::State& state) argument
314 ipv4_full_reporting_high_load(::benchmark::State& state) argument
321 ipv6_metrics_reporting_no_fwmark(::benchmark::State& state) argument
327 ipv6_metrics_reporting_no_load(::benchmark::State& state) argument
332 ipv6_full_reporting_no_load(::benchmark::State& state) argument
338 ipv6_metrics_reporting_high_load(::benchmark::State& state) argument
345 ipv6_full_reporting_high_load(::benchmark::State& state) argument
[all...]
H A Ddns_benchmark.cpp90 void SetUp(const ::benchmark::State& state) override {
91 if (state.thread_index == 0) {
105 void TearDown(const ::benchmark::State& state) override {
106 if (state.thread_index == 0) {
120 void getaddrinfo_until_done(benchmark::State &state) { argument
121 while (state.KeepRunning()) {
126 state.SkipWithError(StringPrintf("getaddrinfo failed with errno=%d",
137 void benchmark_at_reporting_level(benchmark::State &state, int metricsLevel) { argument
138 const bool isMaster = (state.thread_index == 0);
145 state
[all...]
/system/update_engine/payload_consumer/
H A Ddelta_performer_integration_test.cc312 DeltaState *state,
314 EXPECT_TRUE(utils::MakeTempFile("a_img.XXXXXX", &state->a_img, nullptr));
315 EXPECT_TRUE(utils::MakeTempFile("b_img.XXXXXX", &state->b_img, nullptr));
320 utils::MakeTempFile("result_img.XXXXXX", &state->result_img, nullptr));
324 base::FilePath(state->a_img)));
326 state->image_size = utils::FileSize(state->a_img);
351 ScopedLoopMounter b_mounter(state->a_img, &a_mnt, 0);
387 EXPECT_TRUE(base::CopyFile(base::FilePath(state->a_img),
388 base::FilePath(state
307 GenerateDeltaFile(bool full_kernel, bool full_rootfs, bool noop, ssize_t chunk_size, SignatureTest signature_test, DeltaState *state, uint32_t minor_version) argument
587 ApplyDeltaFile(bool full_kernel, bool full_rootfs, bool noop, SignatureTest signature_test, DeltaState* state, bool hash_checks_mandatory, OperationHashTest op_hash_test, DeltaPerformer** performer, uint32_t minor_version) argument
845 VerifyPayloadResult(DeltaPerformer* performer, DeltaState* state, ErrorCode expected_result, uint32_t minor_version) argument
909 VerifyPayload(DeltaPerformer* performer, DeltaState* state, SignatureTest signature_test, uint32_t minor_version) argument
931 DeltaState state; local
952 DeltaState state; local
980 DeltaState state; local
[all...]
/system/libhwbinder/vts/performance/
H A DBenchmark.cpp70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { argument
73 data_vec.resize(state.range(0));
74 for (int i = 0; i < state.range(0); i++) {
78 while (state.KeepRunning()) {
84 static void BM_sendVec_passthrough(benchmark::State& state) { argument
88 state.SkipWithError("Failed to retrieve benchmark service.");
91 state.SkipWithError("Benchmark service is remote.");
93 BM_sendVec(state, service);
96 static void BM_sendVec_binderize(benchmark::State& state) { argument
100 state
[all...]
/system/bt/btif/include/
H A Dbtif_debug_conn.h30 // Report a connection state change
32 const btif_debug_conn_state_t state,
/system/extras/mmap-perf/
H A DmmapPerf.cpp113 static void benchRandomRead(benchmark::State& state) { argument
115 while (state.KeepRunning()) {
119 state.SetBytesProcessed(state.iterations() * pageSize);
123 static void benchRandomWrite(benchmark::State& state) { argument
125 while (state.KeepRunning()) {
129 state.SetBytesProcessed(state.iterations() * pageSize);
133 static void benchLinearRead(benchmark::State& state) { argument
136 while (state
144 benchLinearWrite(benchmark::State& state) argument
[all...]
/system/update_engine/update_manager/
H A Dfake_update_manager.h39 FakeState* state() { function in class:chromeos_update_manager::FakeUpdateManager
40 return reinterpret_cast<FakeState*>(UpdateManager::state());
H A Ddefault_policy.h30 // Auxiliary state class for DefaultPolicy evaluations.
32 // IMPORTANT: The use of a state object in policies is generally forbidden, as
69 EvaluationContext* ec, State* state, std::string* error,
73 EvaluationContext* ec, State* state, std::string* error,
78 EvaluationContext* ec, State* state, std::string* error,
82 EvaluationContext* ec, State* state, std::string* error,
86 EvaluationContext* ec, State* state, std::string* error,
97 // An auxiliary state object.
/system/bt/stack/rfcomm/
H A Drfc_mx_fsm.cc21 * This file contains state machine and action routines for multiplexer
65 * Description This function sends multiplexor events through the state
72 switch (p_mcb->state) {
108 * IDLE state. This state exists when connection is being
132 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF;
140 RFCOMM_TRACE_ERROR("Mx error state %d event %d", p_mcb->state, event);
151 p_mcb->state = RFC_MX_STATE_CONFIGURE;
169 RFCOMM_TRACE_EVENT("RFCOMM MX ignored - evt:%d in state
[all...]
/system/core/adb/
H A Dfdevent.cpp68 // Then we can avoid leaving many sockets in CLOSE_WAIT state. See http://b/23314034.
98 std::string state; local
99 if (fde->state & FDE_ACTIVE) {
100 state += "A";
102 if (fde->state & FDE_PENDING) {
103 state += "P";
105 if (fde->state & FDE_CREATED) {
106 state += "C";
108 if (fde->state & FDE_READ) {
109 state
[all...]

Completed in 356 milliseconds

1234567891011