/system/update_engine/ |
H A D | common_service_unittest.cc | 72 SetTargetChannel("stable-channel", true, _)) 74 EXPECT_TRUE(common_service_.SetChannel(&error_, "stable-channel", true)); 85 SetTargetChannel("beta-channel", true, _)) 88 EXPECT_TRUE(common_service_.SetChannel(&error_, "beta-channel", true)); 97 SetTargetChannel("foo-channel", true, _)).WillOnce(Return(false)); 99 EXPECT_FALSE(common_service_.SetChannel(&error_, "foo-channel", true)); 108 string channel; local 110 &error_, true /* get_current_channel */, &channel)); 112 EXPECT_EQ("current", channel); 115 &error_, false /* get_current_channel */, &channel)); [all...] |
H A D | mock_omaha_request_params.h | 54 MOCK_METHOD3(SetTargetChannel, bool(const std::string& channel, 72 bool FakeSetTargetChannel(const std::string& channel, argument 75 return OmahaRequestParams::SetTargetChannel(channel,
|
H A D | weave_service.cc | 124 string channel = command->GetParameter<string>("channel"); local 126 if (!delegate_->OnTrackChannel(channel, &error)) {
|
H A D | omaha_request_params.h | 180 // True if we're trying to update to a more stable channel. 185 // download channel. 201 // Permanently changes the release channel to |channel|. Performs a 204 // there's a channel change pending already. This is to serialize all the 205 // channel changes done by the user in order to avoid having to solve 208 virtual bool SetTargetChannel(const std::string& channel, 212 // Updates the download channel for this particular attempt from the current 213 // value of target channel. This method takes a "snapshot" of the current 214 // value of target channel an 230 set_current_channel(const std::string& channel) argument 233 set_target_channel(const std::string& channel) argument [all...] |
/system/core/metricsd/uploader/ |
H A D | system_profile_cache.h | 41 metrics::SystemProfileProto::Channel channel; member in struct:SystemProfile 58 // Converts a string representation of the channel to a 61 const std::string& channel);
|
H A D | system_profile_cache.cc | 41 const metrics::SystemProfileProto_Channel& channel) { 42 switch (channel) { 76 std::string channel; local 79 channel = "unknown"; 87 if (!client->GetChannel(&channel)) { 88 LOG(ERROR) << "failed to read the current channel from update engine."; 103 if (channel.empty() || profile_.version.empty()) { 104 // If the channel or version is missing, the image is not official. 105 // In this case, set the channel to unknown and the version to 0.0.0.0 to 107 channel 40 ChannelToString( const metrics::SystemProfileProto_Channel& channel) argument 184 ProtoChannelFromString( const std::string& channel) argument [all...] |
/system/media/private/radio/include/ |
H A D | radio_metadata_hidden.h | 43 * | channel | 78 unsigned int channel; /* channel (frequency) this meta data is associated with */ member in struct:radio_metadata_buffer 79 unsigned int sub_channel; /* sub channel this meta data is associated with */
|
/system/bt/stack/smp/ |
H A D | smp_l2c.c | 40 static void smp_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, 42 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf); 44 static void smp_br_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, 46 static void smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf); 71 fixed_reg.pL2CA_FixedCong_Cb = NULL; /* do not handle congestion on this channel */ 87 ** SMP channel is 91 static void smp_connect_callback (UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, argument 140 ** SMP channel. 146 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) argument 212 ** Description SMP channel t 243 smp_br_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, tBT_TRANSPORT transport) argument 297 smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_sock.c | 37 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 38 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 120 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { argument 122 assert(service_uuid != NULL || channel > 0); 131 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, flags, app_uid); 134 status = btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); 149 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid) { argument 150 assert(uuid != NULL || channel > 0); 159 status = btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags, app_uid); 163 status = btsock_l2cap_connect(bd_addr, channel, sock_f [all...] |
H A D | btif_sock_sdp.c | 108 const uint16_t channel, const bool with_obex) { 110 channel, name, with_obex); 122 proto_list[1].params[0] = channel; 150 sdp_handle, channel, name, with_obex); 156 stage, channel, name, with_obex); 160 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP 164 const uint16_t channel) { 165 APPL_TRACE_DEBUG("add_sdp_by_uuid: scn: %d, service_name: %s", channel, name); 170 "scn: %d, service_name: %s", channel, name); 176 if (!create_base_record(handle, name, channel, FALS 107 create_base_record(const uint32_t sdp_handle, const char *name, const uint16_t channel, const bool with_obex) argument 163 add_sdp_by_uuid(const char *name, const uint8_t *uuid, const uint16_t channel) argument 214 add_pbap_sdp(const char *name, const int channel) argument 263 add_ops_sdp(const char *name, const int channel) argument 332 add_spp_sdp(const char *name, const int channel) argument 368 add_rfc_sdp_by_uuid(const char *name, const uint8_t *uuid, const int channel) argument 410 is_reserved_rfc_channel(const int channel) argument 433 add_rfc_sdp_rec(const char *name, const uint8_t *uuid, const int channel) argument [all...] |
H A D | btif_sock_rfc.c | 76 int scn; // Server channel number 180 static rfc_slot_t *alloc_rfc_slot(const bt_bdaddr_t *addr, const char *name, const uint8_t *uuid, int channel, int flags, bool server) { argument 210 slot->scn = channel; 263 bt_status_t btsock_rfc_listen(const char *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { argument 266 || (channel >= 1 && channel <= MAX_RFC_CHANNEL) 280 service_uuid = UUID_SPP; // Use serial port profile to listen to specified channel 282 //Check the service_uuid. overwrite the channel # if reserved 285 channel = reserved_channel; 293 rfc_slot_t *slot = alloc_rfc_slot(NULL, service_name, service_uuid, channel, flag 319 btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) argument 440 send_app_connect_signal(int fd, const bt_bdaddr_t* addr, int channel, int status, int send_fd) argument [all...] |
/system/netd/server/ |
H A D | SoftapController.cpp | 125 int channel = AP_CHANNEL_DEFAULT; local 129 ALOGE("softap <wlan iface> <SSID> <hidden/broadcast> <channel> <wpa2?-psk|open> <passphrase>"); 137 channel = atoi(argv[5]); 138 if (channel <= 0) 139 channel = AP_CHANNEL_DEFAULT; 146 "channel=%d\n" 151 argv[2], argv[3], channel, (channel <= 14) ? 'g' : 'a', hidden));
|
/system/connectivity/apmanager/ |
H A D | fake_config_adaptor.cc | 79 void FakeConfigAdaptor::SetChannel(uint16_t channel) { argument 80 channel_ = channel;
|
H A D | device.cc | 180 bool Device::GetHTCapability(uint16_t channel, string* ht_cap) { argument 181 // Get the band capability based on the channel. 183 if (!GetBandCapability(channel, &band_cap)) { 184 LOG(ERROR) << "No band capability found for channel " << channel; 194 // Supported channel width set. 197 // Determine secondary channel is below or above the primary. 199 if (!GetHTSecondaryChannelLocation(channel, &above)) { 200 LOG(ERROR) << "Unable to determine secondary channel location for " 201 << "channel " << channe 279 GetVHTCapability(uint16_t channel, string* vht_cap) argument 309 GetHTSecondaryChannelLocation(uint16_t channel, bool* above) argument 350 GetBandCapability(uint16_t channel, BandCapability* capability) argument [all...] |
H A D | config.cc | 38 const char Config::kHostapdConfigKeyChannel[] = "channel"; 110 bool Config::GetFrequencyFromChannel(uint16_t channel, uint32_t* freq) { argument 112 if (channel >= kBand24GHzChannelLow && channel <= kBand24GHzChannelHigh) { 113 *freq = kBand24GHzBaseFrequency + (channel - kBand24GHzChannelLow) * 5; 114 } else if (channel >= kBand5GHzChannelLow && 115 channel <= kBand5GHzChannelHigh) { 116 *freq = kBand5GHzBaseFrequency + (channel - kBand5GHzChannelLow) * 5; 197 base::StringPrintf("Invalid channel [%d]", value), 334 void Config::SetChannel(uint16_t channel) { argument [all...] |
/system/connectivity/shill/ |
H A D | shill_ares.cc | 33 void Ares::Destroy(ares_channel channel) { argument 34 ares_destroy(channel); 37 void Ares::GetHostByName(ares_channel channel, argument 42 ares_gethostbyname(channel, hostname, family, callback, arg); 45 int Ares::GetSock(ares_channel channel, argument 48 return ares_getsock(channel, socks, numsocks); 58 void Ares::ProcessFd(ares_channel channel, argument 61 return ares_process_fd(channel, read_fd, write_fd); 64 void Ares::SetLocalDev(ares_channel channel, const char* local_dev_name) { argument 65 ares_set_local_dev(channel, local_dev_nam 68 Timeout(ares_channel channel, struct timeval* maxtv, struct timeval* tv) argument 74 SetServersCsv(ares_channel channel, const char* servers) argument [all...] |
H A D | dns_client.cc | 68 DNSClientState() : channel(nullptr), start_time{} {} 70 ares_channel channel; member in struct:shill::DNSClientState 116 int status = ares_->InitOptions(&resolver_state_->channel, 147 status = ares_->SetServersCsv(resolver_state_->channel, 157 ares_->SetLocalDev(resolver_state_->channel, interface_name_.c_str()); 162 ares_->GetHostByName(resolver_state_->channel, hostname.c_str(), 185 ares_->Destroy(resolver_state_->channel); 216 ares_->ProcessFd(resolver_state_->channel, fd, ARES_SOCKET_BAD); 221 ares_->ProcessFd(resolver_state_->channel, ARES_SOCKET_BAD, fd); 226 ares_->ProcessFd(resolver_state_->channel, ARES_SOCKET_BA [all...] |
H A D | metrics_unittest.cc | 107 Metrics::WiFiChannel channel, 115 channel, 106 ExpectCommonPostReady(Metrics::WiFiApMode ap_mode, Metrics::WiFiChannel channel, Metrics::WiFiNetworkPhyMode mode, Metrics::WiFiSecurity security, int signal_strength) argument
|
/system/connectivity/apmanager/dbus/ |
H A D | config_dbus_adaptor.cc | 150 void ConfigDBusAdaptor::SetChannel(uint16_t channel) { argument 151 ConfigAdaptor::SetChannel(channel);
|
/system/media/radio/src/ |
H A D | radio_metadata.c | 176 const unsigned int channel, 185 metadata_buf->channel = channel; 261 status = radio_metadata_allocate(dst_metadata, src_metadata_buf->channel, 269 dst_metadata_buf->channel = src_metadata_buf->channel; 175 radio_metadata_allocate(radio_metadata_t **metadata, const unsigned int channel, const unsigned int sub_channel) argument
|
/system/update_engine/update_manager/ |
H A D | real_updater_provider.cc | 258 // Variables reporting the current image channel. 267 string channel = request_params->current_channel(); variable 268 if (channel.empty()) { 270 *errmsg = "No current channel"; 273 return new string(channel); 279 // Variables reporting the new image channel. 288 string channel = request_params->target_channel(); variable 289 if (channel.empty()) { 291 *errmsg = "No new channel"; 294 return new string(channel); [all...] |
/system/bt/bta/jv/ |
H A D | bta_jv_api.c | 143 ** Description This function reserves a SCN (server channel number) for 154 ** channel Only used for RFCOMM - to try to allocate a specific RFCOMM 155 ** channel. 161 tBTA_JV_STATUS BTA_JvGetChannelId(int conn_type, void* user_data, INT32 channel) argument 170 p_msg->channel = channel; 183 ** Description This function frees a server channel number that was used 186 ** channel The channel to free 193 tBTA_JV_STATUS BTA_JvFreeChannel(UINT16 channel, in argument 733 BTA_JvL2capWriteFixed(UINT16 channel, BD_ADDR *addr, UINT32 req_id, tBTA_JV_L2CAP_CBACK *p_cback, UINT8 *p_data, UINT16 len, void *user_data) argument [all...] |
/system/update_engine/payload_generator/ |
H A D | generate_delta_main.cc | 74 bool ParseImageInfo(const string& channel, argument 82 bool empty = channel.empty(); 84 CHECK_EQ(channel.empty(), empty); 92 image_info->set_channel(channel); 98 build_channel.empty() ? channel : build_channel); 327 "The channel for the old image. 'dev-channel', 'npo-channel', " 338 "The channel for the build of the old image. 'dev-channel', " [all...] |
/system/core/include/system/ |
H A D | radio.h | 164 * Contains information on currently tuned channel. 167 unsigned int channel; /* current channel. (e.g kHz for band type RADIO_BAND_FM) */ member in struct:radio_program_info 168 unsigned int sub_channel; /* current sub channel. (used for RADIO_BAND_FM_HD) */
|
/system/bt/bta/include/ |
H A D | bta_jv_api.h | 170 int scn; /* channel # */ 259 UINT16 channel; /* The connection channel */ member in struct:__anon465 455 ** The channel parameter can be used to request a specific 456 ** channel. If the request on the specific channel fails, the 458 ** a new channel will be made. set channel to <= 0 to automatically 459 ** assign an channel ID. 466 INT32 channel); [all...] |