Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 47) sorted by relevance

12

/hardware/interfaces/tests/trie/1.0/default/
DTrie.cpp70 for (char ch : str) { in addString() local
74 [&](const TrieEdge& edge) { return ch == edge.character; }); in addString()
79 it->character = ch; in addString()
92 for (char ch : str) { in containsString() local
96 [&](const TrieEdge& edge) { return ch == edge.character; }); in containsString()
/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c387 int rec_raw(const char *fg, const char *device, int rate, int ch, in rec_raw() argument
408 count = rate * ch * 2; in rec_raw()
414 ch, rate, 16, format); in rec_raw()
421 return record_file(rate, ch, fd, count, flag, device); in rec_raw()
424 int rec_wav(const char *fg, const char *device, int rate, int ch, const char *fn) in rec_wav() argument
448 hdr.num_channels = ch; in rec_wav()
451 hdr.byte_rate = (rate * ch * hdr.bits_per_sample) / 8; in rec_wav()
452 hdr.block_align = ( hdr.bits_per_sample * ch ) / 8; in rec_wav()
459 count = rate * ch * 2; in rec_wav()
474 hdr.num_channels = ch; in rec_wav()
[all …]
Daplay.c472 int play_raw(const char *fg, int rate, int ch, const char *device, const char *fn) in play_raw() argument
494 fn, get_format_desc(format), ch ); in play_raw()
495 return play_file(rate, ch, fd, flag, device, 0); in play_raw()
498 int play_wav(const char *fg, int rate, int ch, const char *device, const char *fn) in play_wav() argument
517 hdr.num_channels = ch; in play_wav()
545 hdr.num_channels = ch; in play_wav()
563 int ch = 2; in main() local
608 ch = (int)strtol(optarg, NULL, 0); in main()
658 rc = play_wav(mmap, rate, ch, device, filename); in main()
660 rc = play_raw(mmap, rate, ch, device, filename); in main()
[all …]
Dalsaucm_test.c89 char ch; in alsaucm_test_cmd_svr() local
95 read_count = read(fd, &ch, 1); in alsaucm_test_cmd_svr()
104 if (ch != '\n') { in alsaucm_test_cmd_svr()
105 strlcat(cmdstr, &ch , (2+strlen(cmdstr))); in alsaucm_test_cmd_svr()
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhw_ar3k.c246 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
248 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
250 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
390 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
396 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
398 ch->plen = 2; in set_cntrlr_baud()
431 #define __is_delim(ch) ((ch) == ':') argument
682 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
686 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
688 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dhw_ar3k.c252 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
254 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
256 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
396 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
402 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
404 ch->plen = 2; in set_cntrlr_baud()
437 #define __is_delim(ch) ((ch) == ':') argument
688 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
692 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
694 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/sdm845/bt/libbt-vendor/src/
Dhw_ar3k.c250 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
252 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
254 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
394 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
400 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
402 ch->plen = 2; in set_cntrlr_baud()
435 #define __is_delim(ch) ((ch) == ':') argument
686 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
690 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
692 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/bt/msm8996/libbt-vendor/src/
Dhw_ar3k.c250 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
252 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
254 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
394 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
400 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
402 ch->plen = 2; in set_cntrlr_baud()
435 #define __is_delim(ch) ((ch) == ':') argument
686 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
690 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
692 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/bt/msm8909/libbt-vendor/src/
Dhw_ar3k.c246 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
248 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
250 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
390 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
396 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
398 ch->plen = 2; in set_cntrlr_baud()
431 #define __is_delim(ch) ((ch) == ':') argument
682 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
686 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
688 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
Dhw_ar3k.c248 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() local
250 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in load_hci_ps_hdr()
252 ch->plen = len + PS_HDR_LEN; in load_hci_ps_hdr()
392 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud() local
398 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in set_cntrlr_baud()
400 ch->plen = 2; in set_cntrlr_baud()
433 #define __is_delim(ch) ((ch) == ':') argument
684 hci_command_hdr *ch = (void *)cmd; in write_bdaddr() local
688 ch->opcode = htobs(cmd_opcode_pack(HCI_VENDOR_CMD_OGF, in write_bdaddr()
690 ch->plen = 10; in write_bdaddr()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
DQCameraHAL3MainTestContext.cpp277 char ch = '0'; in hal3appPrintMenu() local
287 std::cin >> ch; in hal3appPrintMenu()
288 } while(!(ch >= '1' && ch <= '9')); in hal3appPrintMenu()
289 choice = ch -'0'; in hal3appPrintMenu()
/hardware/interfaces/broadcastradio/common/utils2x/
DUtils.cpp240 auto ch = static_cast<char>(val & 0xFF); in isValid() local
242 expect((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z'), in isValid()
402 for (char ch : name) { in make_hdradio_station_name() local
403 if (!std::isalnum(ch, loc)) continue; in make_hdradio_station_name()
404 shortName.push_back(std::toupper(ch, loc)); in make_hdradio_station_name()
/hardware/interfaces/audio/core/all-versions/default/
DConversions.cpp159 for (size_t ch = 0; ch < pDst->channelMapping.size(); ch++) { in halToMicrophoneCharacteristics() local
160 pDst->channelMapping[ch] = halToChannelMapping(src.channel_mapping[ch]); in halToMicrophoneCharacteristics()
/hardware/qcom/gps/msm8960/core/
DLocApiBase.cpp48 char ch = data[i]; in hexcode() local
51 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
77 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/sdm845/gps/msm8960/core/
DLocApiBase.cpp48 char ch = data[i]; in hexcode() local
51 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
77 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/gps/msm8084/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/sdm845/gps/msm8084/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_snapshot.c660 mm_camera_channel_t *ch = NULL; in mm_app_stop_capture_raw() local
665 ch = mm_app_get_channel_by_type(test_obj, MM_CHANNEL_TYPE_CAPTURE); in mm_app_stop_capture_raw()
667 rc = mm_app_stop_channel(test_obj, ch); in mm_app_stop_capture_raw()
672 for ( i = 0 ; i < ch->num_streams ; i++ ) { in mm_app_stop_capture_raw()
673 mm_app_del_stream(test_obj, ch, &ch->streams[i]); in mm_app_stop_capture_raw()
679 mm_app_del_channel(test_obj, ch); in mm_app_stop_capture_raw()
743 mm_camera_channel_t *ch = NULL; in mm_app_stop_capture() local
745 ch = mm_app_get_channel_by_type(test_obj, MM_CHANNEL_TYPE_CAPTURE); in mm_app_stop_capture()
747 rc = mm_app_stop_and_del_channel(test_obj, ch); in mm_app_stop_capture()
/hardware/qcom/audio/hal/audio_extn/
Daudio_extn.h79 #define audio_extn_usb_is_config_supported(bit_width, sample_rate, ch, pb) (false) argument
88 #define audio_extn_usb_altset_for_service_interval(p, si, bw, sr, ch) (-1) argument
97 unsigned int *ch,
/hardware/qcom/sdm845/gps/msm8994/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/sdm845/gps/msm8996/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/sdm845/gps/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/gps/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/gps/msm8909w_3100/core/
DLocApiBase.cpp50 char ch = data[i]; in hexcode() local
53 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
79 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local
/hardware/qcom/gps/msm8996/core/
DLocApiBase.cpp49 char ch = data[i]; in hexcode() local
52 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
78 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress() local

12