Searched refs:channel (Results 1 - 25 of 54) sorted by relevance

123

/system/bt/test/suite/rfcomm/
H A Drfcomm_unittest.cc43 int channel; local
45 len = read(fd, &channel, sizeof(channel));
46 EXPECT_TRUE(len == sizeof(channel))
54 EXPECT_TRUE(channel == signal.channel)
55 << "Inconsistent channels returned: " << channel << " and "
56 << signal.channel;
85 int channel; local
87 len = read(fd, &channel, sizeo
[all...]
/system/chre/apps/wifi_offload/test/
H A Dwifioffloadutility_test.cc24 int channel = wifi_offload::utility::Ieee80211FrequencyToChannel( local
27 static_cast<uint8_t>(channel));
/system/bt/btif/src/
H A Dbtif_sock_sdp.cc98 const uint16_t channel, const bool with_obex) {
100 channel, name, with_obex);
112 proto_list[1].params[0] = channel;
141 sdp_handle, channel, name, with_obex);
148 stage, channel, name, with_obex);
152 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP
156 const uint16_t channel) {
157 APPL_TRACE_DEBUG("add_sdp_by_uuid: scn: %d, service_name: %s", channel, name);
164 channel, name);
180 if (!create_base_record(handle, name, channel, fals
97 create_base_record(const uint32_t sdp_handle, const char* name, const uint16_t channel, const bool with_obex) argument
155 add_sdp_by_uuid(const char* name, const uint8_t* uuid, const uint16_t channel) argument
210 add_pbap_sdp(const char* name, const int channel) argument
264 add_ops_sdp(const char* name, const int channel) argument
338 add_spp_sdp(const char* name, const int channel) argument
380 add_rfc_sdp_by_uuid(const char* name, const uint8_t* uuid, const int channel) argument
422 is_reserved_rfc_channel(const int channel) argument
445 add_rfc_sdp_rec(const char* name, const uint8_t* uuid, const int channel) argument
[all...]
H A Dbtif_sock.cc40 const uint8_t* uuid, int channel, int* sock_fd,
43 const uint8_t* uuid, int channel,
123 const uint8_t* service_uuid, int channel,
126 CHECK(service_uuid != NULL || channel > 0);
135 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd,
140 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid);
157 const uint8_t* uuid, int channel,
159 CHECK(uuid != NULL || channel > 0);
169 btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags, app_uid);
173 status = btsock_l2cap_connect(bd_addr, channel, sock_f
122 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
156 btsock_connect(const RawAddress* bd_addr, btsock_type_t type, const uint8_t* uuid, int channel, int* sock_fd, int flags, int app_uid) argument
[all...]
H A Dbtif_sock_l2cap.cc71 int channel; // channel (fixed_chan) or PSM (!fixed_chan) member in struct:l2cap_socket
80 unsigned fixed_chan : 1; // fixed channel (or psm?)
85 bool is_le_coc; // is le connection oriented channel?
246 if ((sock->channel >= 0) && (sock->server == true)) {
247 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP);
257 if ((sock->channel >= 0) && (sock->server == true)) {
259 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE);
261 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP);
264 APPL_TRACE_DEBUG("%s stopping L2CAP server channel
359 send_app_connect_signal(int fd, const RawAddress* addr, int channel, int status, int send_fd, int tx_mtu) argument
866 btsock_l2cap_listen_or_connect(const char* name, const RawAddress* addr, int channel, int* sock_fd, int flags, char listen, int app_uid) argument
958 btsock_l2cap_listen(const char* name, int channel, int* sock_fd, int flags, int app_uid) argument
964 btsock_l2cap_connect(const RawAddress* bd_addr, int channel, int* sock_fd, int flags, int app_uid) argument
[all...]
/system/bt/btif/include/
H A Dbtif_sock_l2cap.h17 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
19 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
H A Dbtif_sock_rfc.h35 int channel, int* sock_fd, int flags,
38 int channel, int* sock_fd, int flags,
H A Dbtif_sock_sdp.h49 bool is_reserved_rfc_channel(int channel);
/system/connectivity/wificond/scanning/
H A Dsingle_scan_settings.cpp33 for (const auto& channel : channel_settings_) {
37 RETURN_IF_FAILED(channel.writeToParcel(parcel));
57 ChannelSettings channel; local
68 RETURN_IF_FAILED(channel.readFromParcel(parcel));
69 channel_settings_.push_back(channel);
/system/connectivity/wificond/aidl/android/net/wifi/
H A DIApInterface.aidl40 // @param channel WiFi channel to expose the AP on.
45 boolean writeHostapdConfig(in byte[] ssid, boolean isHidden, int channel,
/system/media/radio/src/
H A Dradio_metadata_hidden.h43 * | channel |
78 uint32_t channel; /* channel (frequency) this meta data is associated with */ member in struct:radio_metadata_buffer
79 uint32_t sub_channel; /* sub channel this meta data is associated with */
H A Dradio_metadata.c188 const uint32_t channel,
197 metadata_buf->channel = channel;
273 status = radio_metadata_allocate(dst_metadata, src_metadata_buf->channel,
281 dst_metadata_buf->channel = src_metadata_buf->channel;
432 uint32_t *channel,
438 if (metadata_buf == NULL || channel == NULL || sub_channel == NULL) {
441 *channel = metadata_buf->channel;
187 radio_metadata_allocate(radio_metadata_t **metadata, const uint32_t channel, const uint32_t sub_channel) argument
431 radio_metadata_get_channel(radio_metadata_t *metadata, uint32_t *channel, uint32_t *sub_channel) argument
[all...]
/system/update_engine/
H A Dmock_omaha_request_params.h54 MOCK_METHOD3(SetTargetChannel, bool(const std::string& channel,
72 bool FakeSetTargetChannel(const std::string& channel, argument
75 return OmahaRequestParams::SetTargetChannel(channel,
H A Dcommon_service_unittest.cc74 SetTargetChannel("stable-channel", true, _))
76 EXPECT_TRUE(common_service_.SetChannel(&error_, "stable-channel", true));
87 SetTargetChannel("beta-channel", true, _))
90 EXPECT_TRUE(common_service_.SetChannel(&error_, "beta-channel", true));
99 SetTargetChannel("foo-channel", true, _)).WillOnce(Return(false));
101 EXPECT_FALSE(common_service_.SetChannel(&error_, "foo-channel", true));
110 string channel; local
112 &error_, true /* get_current_channel */, &channel));
114 EXPECT_EQ("current", channel);
117 &error_, false /* get_current_channel */, &channel));
[all...]
H A Domaha_request_params.h192 // True if we're trying to update to a more stable channel.
197 // download channel.
213 // Permanently changes the release channel to |channel|. Performs a
216 // there's a channel change pending already. This is to serialize all the
217 // channel changes done by the user in order to avoid having to solve
220 virtual bool SetTargetChannel(const std::string& channel,
224 // Updates the download channel for this particular attempt from the current
225 // value of target channel. This method takes a "snapshot" of the current
226 // value of target channel an
242 set_current_channel(const std::string& channel) argument
245 set_target_channel(const std::string& channel) argument
[all...]
/system/chre/apps/wifi_offload/
H A Dchannel_histogram.cc23 /* Strictly increasing sequence of supported channel numbers in
37 * Returns the channel number of a given frequency based on 802.11.
39 * @param frequency Frequncy of the channel in MHz
42 * frequency or channel number. Returned value will be in the range of
49 LOGE("Unknown channel frequency %" PRIu32 " MHz.", frequency);
56 * Returns the index of a given channel number in kAllChannels.
60 * @return Index of the given channel number in kAllChannels. kNumChannels if
70 LOGE("Unsupported channel number: %" PRIu8, channel_number);
126 uint8_t channel, uint32_t increase_count) {
127 size_t index = GetChannelIndex(channel);
125 IncrementScanCountForChannelForTest( uint8_t channel, uint32_t increase_count) argument
[all...]
/system/media/audio/include/system/
H A Daudio.h119 /* A channel mask per se only defines the presence or absence of a channel, not the order.
129 * is a channel mask representation for position assignment.
131 * or interpretation of channel (input).
132 * The user of a channel mask needs to know the context of whether it is for output or input.
137 * is a channel mask representation for index assignment.
138 * Each low-order bit corresponds to a selected channel.
147 * that is currently resolved by checking the channel mask, the implementer should look for ways to
155 /* The return value is undefined if the channel mask is invalid. */
156 static inline uint32_t audio_channel_mask_get_bits(audio_channel_mask_t channel) argument
164 audio_channel_mask_get_representation( audio_channel_mask_t channel) argument
179 audio_channel_mask_is_valid(audio_channel_mask_t channel) argument
627 audio_is_input_channel(audio_channel_mask_t channel) argument
649 audio_is_output_channel(audio_channel_mask_t channel) argument
671 audio_channel_count_from_in_mask(audio_channel_mask_t channel) argument
692 audio_channel_count_from_out_mask(audio_channel_mask_t channel) argument
[all...]
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
H A Dchannel_histogram.h27 * A class to keep scan count for each channel. It provides an indexer to access
28 * each channel's scan count with channel number.
40 /* Gets the scaled scan count for a given channel number. All scan counts are
49 bool IncrementScanCountForChannelForTest(uint8_t channel,
/system/bt/stack/smp/
H A Dsmp_l2c.cc35 static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr,
38 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr,
41 static void smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr,
44 static void smp_br_data_received(uint16_t channel, const RawAddress& bd_addr,
70 NULL; /* do not handle congestion on this channel */
87 * SMP channel is
91 static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr, argument
130 * SMP channel.
136 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr, argument
196 * Description SMP channel t
225 smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr, bool connected, uint16_t reason, tBT_TRANSPORT transport) argument
270 smp_br_data_received(uint16_t channel, const RawAddress& bd_addr, BT_HDR* p_buf) argument
[all...]
/system/bt/stack/hid/
H A Dhidd_int.h72 extern tHID_STATUS hidd_conn_send_data(uint8_t channel, uint8_t msg_type,
/system/connectivity/wificond/
H A Dap_interface_binder.h43 int32_t channel,
H A Dap_interface_binder.cpp58 int32_t channel,
85 ssid, is_hidden, channel, encryption_type, passphrase);
55 writeHostapdConfig( const std::vector<uint8_t>& ssid, bool is_hidden, int32_t channel, int32_t binder_encryption_type, const std::vector<uint8_t>& passphrase, bool* out_success) argument
H A Dap_interface_impl.cpp115 int32_t channel,
119 interface_name_, ssid, is_hidden, channel, encryption_type, passphrase);
113 WriteHostapdConfig(const vector<uint8_t>& ssid, bool is_hidden, int32_t channel, EncryptionType encryption_type, const vector<uint8_t>& passphrase) argument
/system/media/radio/include/system/
H A Dradio_metadata.h84 * - channel: channel (frequency) this meta data is associated with.
85 * - sub_channel: sub channel this meta data is associated with.
93 const uint32_t channel,
290 * Get channel and sub channel associated with metadata.
294 * - channel: address where to return the channel.
295 * - sub_channel: address where to return the sub channel.
303 uint32_t *channel,
[all...]
/system/connectivity/wificond/tests/
H A Dscan_settings_unittest.cpp89 ChannelSettings channel, channel1, channel2; local
90 channel.frequency_ = kFakeFrequency;
98 scan_settings.channel_settings_ = {channel, channel1, channel2};

Completed in 1681 milliseconds

123