/system/connectivity/shill/test-scripts/ |
H A D | test-compat | 13 state = manager.state() variable 15 print "System is %s" % (states[state])
|
/system/core/init/ |
H A D | parser.cpp | 9 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 D | ueventd_parser.cpp | 33 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 D | parser.h | 31 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 D | hci_audio.c | 27 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 D | low_power_manager.c | 70 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 D | adapter_state.cpp | 21 std::string AdapterStateToString(AdapterState state) { argument 22 switch (state) { 40 return "unknown state";
|
H A D | adapter_state.h | 40 // Returns a string for the given Adapter state |state|. 41 std::string AdapterStateToString(AdapterState state);
|
/system/bt/service/ |
H A D | logging_helpers.h | 26 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 D | bta_ag_co.c | 54 ** 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 D | clear.cpp | 42 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 D | pixelflinger.cpp | 106 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 D | pending_activation_store.cc | 50 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 D | connect_benchmark.cpp | 59 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 D | dns_benchmark.cpp | 47 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 D | delta_performer_integration_test.cc | 304 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 D | trunks_client.cc | 95 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 D | btif_sm.c | 23 * 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 D | btif_debug_conn.c | 32 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 D | fdevent.cpp | 64 // 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 D | btif_debug_conn.h | 30 // 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 D | sha.c | 56 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 D | sha256.c | 77 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 D | mmapPerf.cpp | 113 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 D | bta_ag_co.h | 53 ** 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);
|