Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 68) sorted by relevance

123

/system/bt/test/suite/rfcomm/
Drfcomm_unittest.cc42 int channel; in TEST_F() local
44 len = read(fd, &channel, sizeof(channel)); in TEST_F()
45 EXPECT_TRUE(len == sizeof(channel)) in TEST_F()
53 EXPECT_TRUE(channel == signal.channel) in TEST_F()
54 << "Inconsistent channels returned: " << channel << " and " in TEST_F()
55 << signal.channel; in TEST_F()
83 int channel; in TEST_F() local
85 len = read(fd, &channel, sizeof(channel)); in TEST_F()
86 if (len != sizeof(channel)) { in TEST_F()
88 << len << ", Sizeof channel: " << sizeof(channel); in TEST_F()
[all …]
/system/bt/btif/src/
Dbtif_sock_sdp.cc101 const uint16_t channel, const bool with_obex) { in create_base_record() argument
103 channel, name, with_obex); in create_base_record()
115 proto_list[1].params[0] = channel; in create_base_record()
144 sdp_handle, channel, name, with_obex); in create_base_record()
151 stage, channel, name, with_obex); in create_base_record()
159 const uint16_t channel) { in add_sdp_by_uuid() argument
161 uuid.ToString().c_str(), channel, name); in add_sdp_by_uuid()
167 channel, name); in add_sdp_by_uuid()
183 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid()
211 static int add_pbap_sdp(const char* name, const int channel) { in add_pbap_sdp() argument
[all …]
Dbtif_sock.cc45 const Uuid* uuid, int channel, int* sock_fd,
48 const Uuid* uuid, int channel, int* sock_fd,
133 const Uuid* service_uuid, int channel, in btsock_listen() argument
141 int original_channel = channel; in btsock_listen()
147 0, 0, app_uid, channel, android::bluetooth::SOCKET_ROLE_LISTEN); in btsock_listen()
150 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen()
155 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen()
160 channel = 0; in btsock_listen()
161 } else if (channel <= 0) { in btsock_listen()
163 __func__, channel); in btsock_listen()
[all …]
Dbtif_sock_l2cap.cc73 int channel; // channel (fixed_chan) or PSM (!fixed_chan) member
228 sock->rx_bytes, sock->app_uid, sock->channel, in btsock_l2cap_free_l()
255 if ((sock->channel >= 0) && (sock->server)) { in btsock_l2cap_free_l()
256 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE); in btsock_l2cap_free_l()
266 if ((sock->channel >= 0) && (sock->server)) { in btsock_l2cap_free_l()
268 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE); in btsock_l2cap_free_l()
270 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); in btsock_l2cap_free_l()
274 << sock->channel; in btsock_l2cap_free_l()
275 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l()
368 DVLOG(2) << __func__ << ": channel: " << sock->channel; in send_app_psm_or_chan_l()
[all …]
Dbtif_sock_rfc.cc192 const Uuid& uuid, int channel, int flags, in alloc_rfc_slot() argument
223 slot->scn = channel; in alloc_rfc_slot()
280 const Uuid* service_uuid, int channel, in btsock_rfc_listen() argument
284 (channel >= 1 && channel <= MAX_RFC_CHANNEL) || in btsock_rfc_listen()
307 channel = reserved_channel; in btsock_rfc_listen()
315 alloc_rfc_slot(NULL, service_name, *service_uuid, channel, flags, true); in btsock_rfc_listen()
321 service_name, channel); in btsock_rfc_listen()
322 BTA_JvGetChannelId(BTA_JV_CONN_TYPE_RFCOMM, slot->id, channel); in btsock_rfc_listen()
341 const Uuid* service_uuid, int channel, in btsock_rfc_connect() argument
344 CHECK((service_uuid != NULL) || (channel >= 1 && channel <= MAX_RFC_CHANNEL)); in btsock_rfc_connect()
[all …]
/system/update_engine/
Dimage_properties_android.cc118 char channel[kChannelSize] = {0}; in ReadChannelFromMisc() local
121 fd, channel, kChannelSize - 1, kChannelOffset, &bytes_read) || in ReadChannelFromMisc()
126 if (channel[0] == '\0') { in ReadChannelFromMisc()
130 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in ReadChannelFromMisc()
131 LOG(ERROR) << "Channel " << channel << " doesn't end with -channel."; in ReadChannelFromMisc()
134 out_channel->assign(channel); in ReadChannelFromMisc()
148 char channel[kChannelSize] = {0}; in WriteChannelToMisc() local
149 memcpy(channel, in_channel.data(), in_channel.size()); in WriteChannelToMisc()
150 if (!utils::PWriteAll(fd, channel, kChannelSize, kChannelOffset)) { in WriteChannelToMisc()
158 string channel; in GetTargetChannel() local
[all …]
Domaha_request_params.cc187 bool OmahaRequestParams::IsValidChannel(const string& channel, in IsValidChannel() argument
190 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in IsValidChannel()
194 channel.c_str()); in IsValidChannel()
200 if (GetChannelIndex(channel) < 0) { in IsValidChannel()
206 channel.c_str(), in IsValidChannel()
219 int OmahaRequestParams::GetChannelIndex(const string& channel) const { in GetChannelIndex()
221 if (channel == kChannelsByStability[t]) in GetChannelIndex()
Domaha_request_params.h201 virtual bool SetTargetChannel(const std::string& channel,
222 void set_current_channel(const std::string& channel) { in set_current_channel() argument
223 image_props_.current_channel = channel; in set_current_channel()
225 void set_target_channel(const std::string& channel) { in set_target_channel() argument
226 mutable_image_props_.target_channel = channel; in set_target_channel()
256 bool IsValidChannel(const std::string& channel,
258 bool IsValidChannel(const std::string& channel) const { in IsValidChannel() argument
259 return IsValidChannel(channel, nullptr); in IsValidChannel()
263 int GetChannelIndex(const std::string& channel) const;
Dmock_omaha_request_params.h51 bool(const std::string& channel,
64 bool FakeSetTargetChannel(const std::string& channel, in FakeSetTargetChannel() argument
68 channel, is_powerwash_allowed, error); in FakeSetTargetChannel()
Dcommon_service_unittest.cc146 string channel; in TEST_F() local
148 &error_, true /* get_current_channel */, &channel)); in TEST_F()
150 EXPECT_EQ("current", channel); in TEST_F()
153 &error_, false /* get_current_channel */, &channel)); in TEST_F()
155 EXPECT_EQ("target", channel); in TEST_F()
/system/connectivity/wificond/scanning/
Dsingle_scan_settings.cpp45 for (const auto& channel : channel_settings_) { in writeToParcel() local
49 RETURN_IF_FAILED(channel.writeToParcel(parcel)); in writeToParcel()
74 ChannelSettings channel; in readFromParcel() local
85 RETURN_IF_FAILED(channel.readFromParcel(parcel)); in readFromParcel()
86 channel_settings_.push_back(channel); in readFromParcel()
/system/bt/include/hardware/
Dbt_sock.h39 int channel; member
65 const bluetooth::Uuid* service_uuid, int channel,
76 const bluetooth::Uuid* uuid, int channel, int* sock_fd,
/system/chre/apps/wifi_offload/
Dchannel_histogram.cc126 uint8_t channel, uint32_t increase_count) { in IncrementScanCountForChannelForTest() argument
127 size_t index = GetChannelIndex(channel); in IncrementScanCountForChannelForTest()
141 for (const auto channel : kAllChannels) { in operator ==() local
143 if (GetChannelScanCount(channel) != other.GetChannelScanCount(channel)) { in operator ==()
/system/chre/apps/wifi_offload/test/
Dwifioffloadutility_test.cc24 int channel = wifi_offload::utility::Ieee80211FrequencyToChannel( in TEST() local
27 static_cast<uint8_t>(channel)); in TEST()
/system/connectivity/wificond/tests/
Dscan_settings_unittest.cpp91 ChannelSettings channel, channel1, channel2; in TEST_F() local
92 channel.frequency_ = kFakeFrequency; in TEST_F()
101 scan_settings.channel_settings_ = {channel, channel1, channel2}; in TEST_F()
117 ChannelSettings channel, channel1, channel2; in TEST_F() local
118 channel.frequency_ = kFakeFrequency; in TEST_F()
127 scan_settings.channel_settings_ = {channel, channel1, channel2}; in TEST_F()
/system/bt/stack/smp/
Dsmp_l2c.cc37 static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr,
40 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr,
43 static void smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr,
46 static void smp_br_data_received(uint16_t channel, const RawAddress& bd_addr,
93 static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr, in smp_connect_callback() argument
140 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr, in smp_data_received() argument
245 static void smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr, in smp_br_connect_callback() argument
291 static void smp_br_data_received(uint16_t channel, const RawAddress& bd_addr, in smp_br_data_received() argument
/system/bt/btif/include/
Dbtif_sock_l2cap.h16 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
18 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
Dbtif_sock_rfc.h35 int channel, int* sock_fd, int flags,
38 const bluetooth::Uuid* uuid, int channel,
/system/media/audio/include/system/
Daudio.h191 static inline uint32_t audio_channel_mask_get_bits(audio_channel_mask_t channel) in audio_channel_mask_get_bits() argument
193 return channel & ((1 << AUDIO_CHANNEL_COUNT_MAX) - 1); in audio_channel_mask_get_bits()
200 audio_channel_mask_t channel) in audio_channel_mask_get_representation() argument
204 ((channel >> AUDIO_CHANNEL_COUNT_MAX) & ((1 << AUDIO_CHANNEL_REPRESENTATION_LOG2) - 1)); in audio_channel_mask_get_representation()
214 static inline bool audio_channel_mask_is_valid(audio_channel_mask_t channel) in audio_channel_mask_is_valid() argument
216 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_channel_mask_is_valid()
217 audio_channel_representation_t representation = audio_channel_mask_get_representation(channel); in audio_channel_mask_is_valid()
745 static inline bool audio_is_input_channel(audio_channel_mask_t channel) in audio_is_input_channel() argument
747 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_input_channel()
748 switch (audio_channel_mask_get_representation(channel)) { in audio_is_input_channel()
[all …]
/system/media/radio/src/
Dradio_metadata.c191 const uint32_t channel, in radio_metadata_allocate() argument
200 metadata_buf->channel = channel; in radio_metadata_allocate()
276 status = radio_metadata_allocate(dst_metadata, src_metadata_buf->channel, in radio_metadata_add_metadata()
284 dst_metadata_buf->channel = src_metadata_buf->channel; in radio_metadata_add_metadata()
435 uint32_t *channel, in radio_metadata_get_channel() argument
441 if (metadata_buf == NULL || channel == NULL || sub_channel == NULL) { in radio_metadata_get_channel()
444 *channel = metadata_buf->channel; in radio_metadata_get_channel()
Dradio_metadata_hidden.h78 uint32_t channel; /* channel (frequency) this meta data is associated with */ member
/system/media/audio_utils/
DBalance.cpp83 for (unsigned i = 0, channel = channelMask; channel != 0; ++i) { in setChannelMask() local
84 const int index = __builtin_ctz(channel); in setChannelMask()
90 channel &= ~(1 << index); in setChannelMask()
/system/media/radio/include/system/
Dradio_metadata.h93 const uint32_t channel,
303 uint32_t *channel,
/system/update_engine/update_manager/
Dreal_updater_provider.cc269 string channel = request_params->current_channel(); in GetValue() local
270 if (channel.empty()) { in GetValue()
275 return new string(channel); in GetValue()
290 string channel = request_params->target_channel(); in GetValue() local
291 if (channel.empty()) { in GetValue()
296 return new string(channel); in GetValue()
/system/bt/bta/jv/
Dbta_jv_api.cc134 void BTA_JvGetChannelId(int conn_type, uint32_t id, int32_t channel) { in BTA_JvGetChannelId() argument
144 Bind(&bta_jv_get_channel_id, conn_type, channel, id, id)); in BTA_JvGetChannelId()
161 tBTA_JV_STATUS BTA_JvFreeChannel(uint16_t channel, int conn_type) { in BTA_JvFreeChannel() argument
164 do_in_main_thread(FROM_HERE, Bind(&bta_jv_free_scn, conn_type, channel)); in BTA_JvFreeChannel()
510 void BTA_JvL2capWriteFixed(uint16_t channel, const RawAddress& addr, in BTA_JvL2capWriteFixed() argument
515 do_in_main_thread(FROM_HERE, Bind(&bta_jv_l2cap_write_fixed, channel, addr, in BTA_JvL2capWriteFixed()

123