Searched defs:state (Results 26 - 50 of 157) sorted by relevance

1234567

/system/bt/service/
H A Dlogging_helpers.cpp26 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/stack/hid/
H A Dhidh_int.h43 UINT8 state; /* Device state if in HOST-KNOWN mode */ member in struct:per_device_ctb
/system/bt/test/suite/adapter/
H A Dbluetooth_test.cpp102 // Returns the device bond state.
125 void BluetoothTest::DiscoveryStateChangedCallback(bt_discovery_state_t state) { argument
126 discovery_state_ = state;
/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...]
H A Dvirtual_device.cc51 // Virtual devices have no persistent state.
56 // Virtual devices have no persistent state.
92 void VirtualDevice::SetServiceState(Service::ConnectState state) { argument
93 Device::SetServiceState(state);
/system/core/init/
H A Dinit_parser.cpp48 parse_state state; local
49 state.filename = filename.c_str();
50 state.line = 0;
51 state.ptr = &data_copy[0];
52 state.nexttoken = 0;
58 switch (next_token(&state)) {
65 state.line++;
76 parse_error(&state, "%s\n", ret_err.c_str());
81 if (!section_parser->ParseLineSection(args, state.filename,
82 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...]
/system/media/brillo/audio/audioservice/
H A Daudio_device_handler.cpp26 static const char kH2WStateFile[] = "/sys/class/switch/h2w/state";
42 // Reset the state
52 // Reset audio policy service state in case this service crashed and there is
53 // a mismatch between the current system state and what audio policy service
58 // Get headphone jack state and update audio policy service with new state.
72 int state = 0; local
73 int bytes_read = file.ReadAtCurrentPos(reinterpret_cast<char*>(&state), 1);
74 state -= '0';
79 VLOG(1) << "Initial audio jack state i
88 NotifyAudioPolicyService( audio_devices_t device, audio_policy_dev_state_t state) argument
96 << state; local
101 audio_policy_dev_state_t state = AUDIO_POLICY_DEVICE_STATE_AVAILABLE; local
110 audio_policy_dev_state_t state = AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE; local
[all...]
/system/update_engine/
H A Dweave_service.cc97 // Round to progress to 1% (0.01) to avoid excessive and meaningless state
101 base::DictionaryValue state; local
102 state.SetString("_updater.currentChannel", current_channel);
103 state.SetString("_updater.trackingChannel", tracking_channel);
104 state.SetString("_updater.status", UpdateStatusToWeaveStatus(update_status));
105 state.SetDouble("_updater.progress", progress);
106 state.SetDouble("_updater.lastUpdateCheckTimestamp",
109 if (!weave_service->SetStateProperties(kWeaveComponent, state, nullptr)) {
110 LOG(ERROR) << "Failed to update _updater state.";
/system/weaved/buffet/
H A Davahi_mdns_client.cc40 AvahiEntryGroupState state,
42 if (state == AVAHI_ENTRY_GROUP_COLLISION ||
43 state == AVAHI_ENTRY_GROUP_FAILURE) {
44 LOG(ERROR) << "Avahi service group error: " << state;
137 AvahiClientState state,
141 if (state == AVAHI_CLIENT_S_RUNNING) {
39 HandleGroupStateChanged(AvahiEntryGroup* g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void* userdata) argument
136 OnAvahiClientStateUpdate(AvahiClient* s, AvahiClientState state, void* userdata) argument
H A Dbinder_command_proxy.cc66 android::binder::Status BinderCommandProxy::getState(android::String16* state) { argument
70 *state = ToString16(EnumToString(command->GetState()));
/system/bt/btcore/src/
H A Dmodule.c46 static void set_module_state(const module_t *module, module_state_t state);
116 module_state_t state = get_module_state(module); local
117 assert(state <= MODULE_STATE_STARTED);
120 if (state < MODULE_STATE_STARTED)
137 module_state_t state = get_module_state(module); local
138 assert(state <= MODULE_STATE_INITIALIZED);
141 if (state < MODULE_STATE_INITIALIZED)
178 static void set_module_state(const module_t *module, module_state_t state) { argument
189 *state_ptr = state;
/system/bt/btif/include/
H A Dbtif_pan_internal.h68 int state; member in struct:__anon624
/system/bt/service/common/bluetooth/binder/
H A DIBluetooth.cpp78 int state = GetState(); local
79 reply->writeInt32(state);
/system/bt/service/hal/
H A Dfake_bluetooth_interface.cpp93 void FakeBluetoothInterface::NotifyAdapterStateChanged(bt_state_t state) { argument
94 FOR_EACH_OBSERVER(Observer, observers_, AdapterStateChangedCallback(state));
144 bt_acl_state_t state) {
147 AclStateChangedCallback(status, remote_bdaddr, state));
141 NotifyAclStateChangedCallback( bt_status_t status, const bt_bdaddr_t& remote_bdaddr, bt_acl_state_t state) argument
/system/bt/stack/avdt/
H A Davdt_ad.c127 ** the given state.
135 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) argument
148 (p_tbl->state == state))
165 (p_tbl->state == state))
175 (p_tbl->state == state))
273 if (p_tbl->state == AVDT_AD_ST_UNUSED)
287 p_tbl->state
[all...]
H A Davdt_scb.c37 ** state machine constants and types
41 /* verbose state strings for trace */
173 /* state table information */
175 #define AVDT_SCB_NEXT_STATE 2 /* position of next state */
176 #define AVDT_SCB_NUM_COLS 3 /* number of columns in state tables */
178 /* state table for idle state */
180 /* Event Action 1 Action 2 Next state */
231 /* state table for configured state */
719 avdt_scb_verify(tAVDT_CCB *p_ccb, UINT8 state, UINT8 *p_seid, UINT16 num_seid, UINT8 *p_err_code) argument
[all...]
/system/connectivity/shill/cellular/
H A Dcellular_capability_cdma_unittest.cc122 void SetRegistrationStateEVDO(uint32_t state) { argument
123 capability_->registration_state_evdo_ = state;
126 void SetRegistrationState1x(uint32_t state) { argument
127 capability_->registration_state_1x_ = state;
140 void SetDeviceState(Cellular::State state) { argument
141 cellular_->state_ = state;
/system/connectivity/shill/vpn/
H A Dvpn_provider_unittest.cc71 Service::ConnectState state) {
72 service->state_ = state;
70 SetConnectState(const ServiceRefPtr& service, Service::ConnectState state) argument
/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/security/keystore/
H A Dblob.cpp90 ResponseCode Blob::writeBlob(const char* filename, AES_KEY* aes_key, State state, argument
94 if (state != STATE_NO_ERROR) {
153 ResponseCode Blob::readBlob(const char* filename, AES_KEY* aes_key, State state) { argument
171 if (isEncrypted() && (state != STATE_NO_ERROR)) {
H A Duser_state.cpp59 void UserState::setState(State state) { argument
60 mState = state;
/system/tpm/attestation/server/
H A Dattestation_service_test.cc77 void SetupFakeCAEnroll(FakeCAState state) { argument
83 state));
86 void SetupFakeCASign(FakeCAState state) { argument
92 state));
139 void FakeCAEnroll(FakeCAState state, argument
144 if (state == kHttpFailure) {
150 if (state == kCommandFailure) {
153 } else if (state == kSuccess) {
169 void FakeCASign(FakeCAState state, argument
174 if (state
[all...]
/system/weaved/libweaved/
H A Dcommand.cc85 std::string state; local
88 state.assign(ToString(state16));
89 if (state == "queued")
91 else if (state == "inProgress")
93 else if (state == "paused")
95 else if (state == "error")
97 else if (state == "done")
99 else if (state == "cancelled")
101 else if (state == "aborted")
103 else if (state
[all...]
/system/bt/bta/pan/
H A Dbta_pan_act.c21 * This file contains the pan action functions for the state machine.
48 ** Description set pan pm connection busy state
50 ** Params p_scb: state machine control block of pan connection
57 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST))
65 ** Description set pan pm connection idle state
67 ** Params p_scb: state machine control block of pan connection
74 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST))
82 ** Description Connection state callback from Pan profile
88 static void bta_pan_conn_state_cback(UINT16 handle, BD_ADDR bd_addr, tPAN_RESULT state, argument
94 if ((state
[all...]

Completed in 1591 milliseconds

1234567