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

1234567891011>>

/system/connectivity/shill/test-scripts/
H A Dtest-compat13 state = manager.state() variable
15 print "System is %s" % (states[state])
/system/core/init/
H A Dparser.cpp9 void parse_error(struct parse_state *state, const char *fmt, ...) argument
15 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
26 int next_token(struct parse_state *state) argument
28 char *x = state->ptr;
31 if (state->nexttoken) {
32 int t = state->nexttoken;
33 state->nexttoken = 0;
40 state->ptr = x;
44 state
[all...]
H A Dueventd_parser.cpp33 static void parse_line_device(struct parse_state *state, int nargs, char **args);
98 static void *parse_subsystem(parse_state* state, int /*nargs*/, char** args) { argument
100 parse_error(state, "invalid subsystem name '%s'\n", args[1]);
106 parse_error(state, "ignored duplicate definition of subsystem '%s'\n",
113 parse_error(state, "out of memory\n");
122 static void parse_line_subsystem(struct parse_state *state, int nargs, argument
125 struct ueventd_subsystem *s = (ueventd_subsystem*) state->context;
140 parse_error(state, "invalid devname '%s'\n", args[1]);
147 parse_error(state, "dirname '%s' does not start with '/'\n",
152 parse_error(state, "invali
156 parse_new_section(struct parse_state *state, int kw, int nargs, char **args) argument
174 parse_line(struct parse_state *state, char **args, int nargs) argument
199 parse_state state; local
[all...]
H A Dparser.h31 void (*parse_line)(struct parse_state *state, int nargs, char **args);
37 int next_token(struct parse_state *state);
38 void parse_error(struct parse_state *state, const char *fmt, ...);
/system/bt/hci/src/
H A Dhci_audio.c27 void set_audio_state(uint16_t handle, sco_codec_t codec, sco_state_t state) argument
29 LOG_INFO(LOG_TAG, "%s handle:%d codec:0x%x state:%d", __func__, handle, codec, state);
35 audio_state.state = state;
H A Dlow_power_manager.c70 static low_power_mode_state_t state; variable
109 if (state != LPM_DISABLED) {
134 if (state == LPM_DISABLING) {
139 } else if (state == LPM_ENABLING) {
144 } else if (state == LPM_ENABLED && enable) {
146 } else if (state == LPM_DISABLED && !enable) {
150 state = enable ? LPM_ENABLING : LPM_DISABLING;
151 if (state == LPM_ENABLING)
158 if (state == LPM_ENABLED && wake_state == LPM_WAKE_ASSERTED) {
169 if (state
[all...]
/system/bt/service/common/bluetooth/
H A Dadapter_state.cpp21 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);
/system/bt/btif/co/
H A Dbta_ag_co.c54 ** state - Audio state
64 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state, tBTA_AG_PEER_CODEC codec) argument
66 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state)
69 BTIF_TRACE_DEBUG("bta_ag_co_audio_state: handle %d, state %d", handle, state);
70 switch (state)
76 set_audio_state(handle, codec, state);
87 set_audio_state(handle, codec, state);
89 set_audio_state(handle, BTA_AG_CODEC_CVSD, state);
[all...]
/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...]
/system/connectivity/shill/
H A Dpending_activation_store.cc50 string StateToString(PendingActivationStore::State state) { argument
51 switch (state) {
129 int state = 0; local
130 if (!storage_->GetInt(IdentifierTypeToGroupId(type), identifier, &state)) {
134 if (state <= 0 || state >= kStateMax) {
139 return static_cast<State>(state);
145 State state) {
146 SLOG(this, 2) << __func__ << ": State=" << StateToString(state) << ", "
152 if (state
142 SetActivationState( IdentifierType type, const string& identifier, State state) argument
[all...]
/system/netd/tests/benchmarks/
H A Dconnect_benchmark.cpp59 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { argument
63 state.SkipWithError("Unable to bind server socket");
68 std::vector<uint64_t> latencies(state.max_iterations);
71 while (state.KeepRunning()) {
74 state.SkipWithError(StringPrintf("socket() failed with errno=%d", errno).c_str());
82 state.SkipWithError(StringPrintf("connect() failed with errno=%d", errno).c_str());
89 state.SetIterationTime(latencies[iterations] / 1e9L);
98 state.SkipWithError(StringPrintf("accept() failed with errno=%d", errno).c_str());
112 state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]));
116 static void ipv6_loopback(benchmark::State& state, cons argument
174 ::benchmark::State& state, const int reportingLevel, variable
228 ipv4_metrics_reporting_no_fwmark(::benchmark::State& state) argument
234 ipv4_metrics_reporting_no_load(::benchmark::State& state) argument
239 ipv4_full_reporting_no_load(::benchmark::State& state) argument
245 ipv4_metrics_reporting_high_load(::benchmark::State& state) argument
252 ipv4_full_reporting_high_load(::benchmark::State& state) argument
259 ipv6_metrics_reporting_no_fwmark(::benchmark::State& state) argument
265 ipv6_metrics_reporting_no_load(::benchmark::State& state) argument
270 ipv6_full_reporting_no_load(::benchmark::State& state) argument
276 ipv6_metrics_reporting_high_load(::benchmark::State& state) argument
283 ipv6_full_reporting_high_load(::benchmark::State& state) argument
[all...]
H A Ddns_benchmark.cpp47 void SetUp(const ::benchmark::State& state) override {
48 if (state.thread_index == 0) {
62 void TearDown(const ::benchmark::State& state) override {
63 if (state.thread_index == 0) {
77 void getaddrinfo_until_done(benchmark::State &state) { argument
78 while (state.KeepRunning()) {
83 state.SkipWithError(StringPrintf("getaddrinfo failed with errno=%d",
94 void benchmark_at_reporting_level(benchmark::State &state, int metricsLevel) { argument
95 const bool isMaster = (state.thread_index == 0);
102 state
[all...]
/system/update_engine/payload_consumer/
H A Ddelta_performer_integration_test.cc304 DeltaState *state,
306 EXPECT_TRUE(utils::MakeTempFile("a_img.XXXXXX", &state->a_img, nullptr));
307 EXPECT_TRUE(utils::MakeTempFile("b_img.XXXXXX", &state->b_img, nullptr));
312 utils::MakeTempFile("result_img.XXXXXX", &state->result_img, nullptr));
313 test_utils::CreateExtImageAtPath(state->a_img, nullptr);
315 state->image_size = utils::FileSize(state->a_img);
340 ScopedLoopMounter b_mounter(state->a_img, &a_mnt, 0);
378 EXPECT_TRUE(base::CopyFile(base::FilePath(state->a_img),
379 base::FilePath(state
299 GenerateDeltaFile(bool full_kernel, bool full_rootfs, bool noop, ssize_t chunk_size, SignatureTest signature_test, DeltaState *state, uint32_t minor_version) argument
585 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
842 VerifyPayloadResult(DeltaPerformer* performer, DeltaState* state, ErrorCode expected_result, uint32_t minor_version) argument
906 VerifyPayload(DeltaPerformer* performer, DeltaState* state, SignatureTest signature_test, uint32_t minor_version) argument
928 DeltaState state; local
949 DeltaState state; local
977 DeltaState state; local
[all...]
/system/tpm/trunks/
H A Dtrunks_client.cc95 scoped_ptr<trunks::TpmState> state = factory->GetTpmState(); local
96 trunks::TPM_RC result = state->Initialize();
98 LOG(ERROR) << "Failed to read TPM state: "
103 state->IsOwnerPasswordSet() ? "true" : "false");
105 state->IsEndorsementPasswordSet() ? "true" : "false");
107 state->IsLockoutPasswordSet() ? "true" : "false");
109 state->IsOwned() ? "true" : "false");
111 state->IsInLockout() ? "true" : "false");
113 state->IsPlatformHierarchyEnabled() ? "true" : "false");
115 state
[all...]
/system/bt/btif/src/
H A Dbtif_sm.c23 * Description: Generic BTIF state machine API
39 btif_sm_state_t state; member in struct:__anon686
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
102 ** Description Fetches the current state of the state machin
163 btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) argument
[all...]
H A Dbtif_debug_conn.c32 btif_debug_conn_state_t state; member in struct:conn_event_t
52 static char *format_state(const btif_debug_conn_state_t state) { argument
53 switch (state) {
68 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state, argument
74 evt->state = state;
93 format_state(evt->state),
96 if (evt->state == BTIF_DEBUG_DISCONNECTED)
/system/core/adb/
H A Dfdevent.cpp64 // Then we can avoid leaving many sockets in CLOSE_WAIT state. See http://b/23314034.
90 std::string state; local
91 if (fde->state & FDE_ACTIVE) {
92 state += "A";
94 if (fde->state & FDE_PENDING) {
95 state += "P";
97 if (fde->state & FDE_CREATED) {
98 state += "C";
100 if (fde->state & FDE_READ) {
101 state
[all...]
/system/bt/btif/include/
H A Dbtif_debug_conn.h30 // Report a connection state change
31 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state,
/system/core/libmincrypt/
H A Dsha.c56 A = ctx->state[0];
57 B = ctx->state[1];
58 C = ctx->state[2];
59 D = ctx->state[3];
60 E = ctx->state[4];
81 ctx->state[0] += A;
82 ctx->state[1] += B;
83 ctx->state[2] += C;
84 ctx->state[3] += D;
85 ctx->state[
[all...]
H A Dsha256.c77 A = ctx->state[0];
78 B = ctx->state[1];
79 C = ctx->state[2];
80 D = ctx->state[3];
81 E = ctx->state[4];
82 F = ctx->state[5];
83 G = ctx->state[6];
84 H = ctx->state[7];
104 ctx->state[0] += A;
105 ctx->state[
[all...]
/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/bt/bta/include/
H A Dbta_ag_co.h53 ** state - Audio state
63 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state,
67 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state);

Completed in 544 milliseconds

1234567891011>>