/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 | mock_ares.h | 32 MOCK_METHOD1(Destroy, void(ares_channel channel)); 33 MOCK_METHOD5(GetHostByName, void(ares_channel channel, 38 MOCK_METHOD3(GetSock, int(ares_channel channel, 44 MOCK_METHOD3(ProcessFd, void(ares_channel channel, 47 MOCK_METHOD2(SetLocalDev, void(ares_channel channel, 49 MOCK_METHOD3(Timeout, struct timeval* (ares_channel channel, 52 MOCK_METHOD2(SetServersCsv, int(ares_channel channel,
|
H A D | shill_ares.h | 34 virtual void Destroy(ares_channel channel); 37 virtual void GetHostByName(ares_channel channel, 44 virtual int GetSock(ares_channel channel, 54 virtual void ProcessFd(ares_channel channel, 59 virtual void SetLocalDev(ares_channel channel, const char* local_dev_name); 62 virtual struct timeval* Timeout(ares_channel channel, 67 virtual int SetServersCsv(ares_channel channel, const char* servers);
|
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...] |
/system/bt/btif/src/ |
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.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_l2cap.c | 74 int channel; //channel (fixed_chan) or PSM (!fixed_chan) member in struct:l2cap_socket 83 unsigned fixed_chan :1; //fixed channel (or psm?) 88 BOOLEAN is_le_coc; //is le connection oriented channel? 272 if ((sock->channel >= 0) && (sock->server == TRUE)) { 273 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); 285 if ((sock->channel >= 0) && (sock->server == TRUE)) { 287 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE); 289 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); 389 return sock_send_all(sock->our_fd, (const uint8_t*)&sock->channel, sizeo 393 send_app_connect_signal(int fd, const bt_bdaddr_t* addr, int channel, int status, int send_fd, int tx_mtu) argument 891 btsock_l2cap_listen_or_connect(const char *name, const bt_bdaddr_t *addr, int channel, int* sock_fd, int flags, char listen, int app_uid) argument 982 btsock_l2cap_listen(const char* name, int channel, int* sock_fd, int flags, int app_uid) argument 987 btsock_l2cap_connect(const bt_bdaddr_t *bd_addr, int channel, int* sock_fd, int flags, int app_uid) argument [all...] |
/system/core/metricsd/uploader/ |
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...] |
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);
|
/system/bt/btif/include/ |
H A D | btif_sock_l2cap.h | 17 bt_status_t btsock_l2cap_listen(const char* name, int channel, 20 int channel, int* sock_fd, int flags, int app_uid);
|
H A D | btif_sock_rfc.h | 34 bt_status_t btsock_rfc_listen(const char* name, const uint8_t* uuid, int channel, 37 int channel, int* sock_fd, int flags, int app_uid);
|
/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/update_engine/ |
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 | 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 | weave_service_interface.h | 43 virtual bool OnTrackChannel(const std::string& channel,
|
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...] |
H A D | omaha_request_params.cc | 51 // This list has to be sorted from least stable to most stable channel. 52 "canary-channel", 53 "dev-channel", 54 "beta-channel", 55 "stable-channel", 70 // Sanity check the channel names. 72 image_props_.current_channel = "stable-channel"; 77 LOG(INFO) << "Running from channel " << image_props_.current_channel; 100 LOG(INFO) << "Disabling deltas as a channel change to " 104 // For now, disable delta updates if the current channel i [all...] |
/system/connectivity/apmanager/ |
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 | device.h | 92 // Get HT and VHT capability string based on the operating channel. 94 // exist for the band the given |channel| is in, false otherwise. 95 virtual bool GetHTCapability(uint16_t channel, std::string* ht_cap); 96 virtual bool GetVHTCapability(uint16_t channel, std::string* vht_cap); 110 // Get the HT secondary channel location base on the primary channel. 111 // Return true and set the output |above| flag if channel is valid, 113 static bool GetHTSecondaryChannelLocation(uint16_t channel, bool* above); 119 // Get the capability for the band the given |channel| is in. Return true 121 // band the given |channel| i [all...] |
H A D | mock_device.h | 43 MOCK_METHOD2(GetHTCapability, bool(uint16_t channel, std::string* ht_capab));
|
H A D | fake_config_adaptor.cc | 79 void FakeConfigAdaptor::SetChannel(uint16_t channel) { argument 80 channel_ = channel;
|
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/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/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/media/audio/include/system/ |
H A D | audio.h | 31 /* The macro FCC_2 highlights places where there are 2-channel assumptions. 38 /* The macro FCC_8 highlights places where there are 8-channel assumptions. 359 /* For the channel mask for position assignment representation */ 392 /* TODO: should these be considered complete channel masks, or only bits? */ 467 /* TODO: should these be considered complete channel masks, or only bits, or deprecated? */ 488 /* A channel mask per se only defines the presence or absence of a channel, not the order. 498 * is a channel mask representation for position assignment. 500 * or interpretation of channel (input). 501 * The user of a channel mas 552 audio_channel_mask_get_bits(audio_channel_mask_t channel) argument 558 audio_channel_mask_get_representation( audio_channel_mask_t channel) argument 573 audio_channel_mask_is_valid(audio_channel_mask_t channel) argument 1235 audio_is_input_channel(audio_channel_mask_t channel) argument 1257 audio_is_output_channel(audio_channel_mask_t channel) argument 1279 audio_channel_count_from_in_mask(audio_channel_mask_t channel) argument 1300 audio_channel_count_from_out_mask(audio_channel_mask_t channel) argument [all...] |