Home
last modified time | relevance | path

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

12

/system/bt/udrv/ulinux/
Duipc.cc192 memset(&uipc.ch, 0, sizeof(uipc.ch)); in uipc_main_init()
203 tUIPC_CHAN* p = &uipc.ch[i]; in uipc_main_init()
230 if (uipc.ch[i].task_evt_flags & UIPC_TASK_FLAG_DISCONNECT_CHAN) { in uipc_check_task_flags_locked()
231 uipc.ch[i].task_evt_flags &= ~UIPC_TASK_FLAG_DISCONNECT_CHAN; in uipc_check_task_flags_locked()
245 if (SAFE_FD_ISSET(uipc.ch[ch_id].srvfd, &uipc.read_set)) { in uipc_check_fd_locked()
249 if (uipc.ch[ch_id].fd != UIPC_DISCONNECTED) { in uipc_check_fd_locked()
250 BTIF_TRACE_EVENT("CLOSE CONNECTION (FD %d)", uipc.ch[ch_id].fd); in uipc_check_fd_locked()
251 close(uipc.ch[ch_id].fd); in uipc_check_fd_locked()
252 FD_CLR(uipc.ch[ch_id].fd, &uipc.active_set); in uipc_check_fd_locked()
253 uipc.ch[ch_id].fd = UIPC_DISCONNECTED; in uipc_check_fd_locked()
[all …]
/system/core/libutils/
DTokenizer.cpp30 static inline bool isDelimiter(char ch, const char* delimiters) { in isDelimiter() argument
31 return strchr(delimiters, ch) != nullptr; in isDelimiter()
116 char ch = *eol; in peekRemainderOfLine() local
117 if (ch == '\n') { in peekRemainderOfLine()
132 char ch = *mCurrent; in nextToken() local
133 if (ch == '\n' || isDelimiter(ch, delimiters)) { in nextToken()
147 char ch = *(mCurrent++); in nextLine() local
148 if (ch == '\n') { in nextLine()
161 char ch = *mCurrent; in skipDelimiters() local
162 if (ch == '\n' || !isDelimiter(ch, delimiters)) { in skipDelimiters()
DUnicode.cpp226 char16_t ch; in strcmp16() local
230 d = (int)(ch = *s1++) - (int)*s2++; in strcmp16()
231 if ( d || !ch ) in strcmp16()
240 char16_t ch; in strncmp16() local
248 d = (int)(ch = *s1++) - (int)*s2++; in strncmp16()
249 if ( d || !ch ) { in strncmp16()
261 char16_t ch; in strcpy16() local
264 *q++ = ch = *p++; in strcpy16()
265 } while ( ch ); in strcpy16()
444 static inline size_t utf8_codepoint_len(uint8_t ch) in utf8_codepoint_len() argument
[all …]
/system/media/audio_utils/tests/
Dbuild_and_run_biquad_filter.sh29 for ch in {1..8}
31 adb shell $testdir/biquad_filter -ch:$ch $testdir/sinesweepraw.raw \
32 $testdir/sinesweep_$((ch)).raw
36 if [[ "$ch" -gt 2 ]]
39 $testdir/sinesweep_$((ch)).raw
Dfifo_threads.cpp151 int ch = getch(); in main() local
152 if (ch <= 0 || ch == '\003' /*control-C*/) { in main()
155 if (ch == 'p') in main()
157 else if (ch == 'p') in main()
159 buffer[0] = ch; in main()
DREADME.md5 FIXME: getch.[ch] are copied from ../../../../frameworks/wilhelm/tests/sandbox/
/system/extras/simpleperf/
Dbuild_id.h48 unsigned char ch = 0; in BuildId() local
50 ch <<= 4; in BuildId()
52 ch |= s[j] - '0'; in BuildId()
54 ch |= s[j] - 'a' + 10; in BuildId()
56 ch |= s[j] - 'A' + 10; in BuildId()
59 data_[i / 2] = ch; in BuildId()
/system/bt/embdrv/sbc/decoder/srce/
Dsynthesis-sbc.c280 OI_UINT ch; in OI_SBC_SynthFrame_80() local
304 for (ch = 0; ch < nrof_channels; ch++) { in OI_SBC_SynthFrame_80()
305 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
306 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, in OI_SBC_SynthFrame_80()
319 OI_UINT ch; in OI_SBC_SynthFrame_4SB() local
342 for (ch = 0; ch < nrof_channels; ch++) { in OI_SBC_SynthFrame_4SB()
343 cosineModulateSynth4(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_4SB()
345 pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_4SB()
359 OI_UINT ch; in OI_SBC_SynthFrame_Enhanced() local
382 for (ch = 0; ch < nrof_channels; ++ch) { in OI_SBC_SynthFrame_Enhanced()
[all …]
Dbitalloc.c125 OI_UINT ch, OI_UINT* preferredBitpool) { in computeBitneed() argument
136 int8_t* scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
333 BITNEED_UNION1* bitneeds, OI_UINT ch, in oneChannelBitAllocation() argument
352 allocBits = &common->bits.uint8[ch ? nrof_subbands : 0]; in oneChannelBitAllocation()
/system/bt/service/
Dgatt_server_old.cc213 bluetooth::gatt::Characteristic& ch = in RequestReadCallback() local
217 if (ch.next_blob_pending && attribute_offset_octets == 0 && in RequestReadCallback()
218 ch.blob_section == 0) { in RequestReadCallback()
219 std::swap(ch.blob, ch.next_blob); in RequestReadCallback()
220 ch.next_blob_pending = false; in RequestReadCallback()
224 std::min(ch.blob.size(), ch.blob_section * kMaxGattAttributeSize); in RequestReadCallback()
225 const size_t blob_remaining = ch.blob.size() - blob_offset_octets; in RequestReadCallback()
233 ch.blob_section, is_long); in RequestReadCallback()
239 std::copy(ch.blob.begin() + blob_offset_octets + attribute_offset_octets, in RequestReadCallback()
240 ch.blob.begin() + blob_offset_octets + attribute_size, in RequestReadCallback()
[all …]
/system/core/libcutils/
Dproperties.cpp35 char ch = buf[0]; in property_get_bool() local
36 if (ch == '0' || ch == 'n') { in property_get_bool()
38 } else if (ch == '1' || ch == 'y') { in property_get_bool()
/system/core/logwrapper/
Dlogwrapper.cpp53 int ch; in main() local
57 while ((ch = getopt(argc, argv, "adk")) != -1) { in main()
58 switch (ch) { in main()
/system/tools/sysprop/
DCodeWriter.cpp54 char ch = buf[i]; in Write() local
55 if (ch == '\n') { in Write()
65 code_.push_back(ch); in Write()
DCommon.cpp80 return std::all_of(name.begin() + 1, name.end(), [](char ch) { in IsCorrectIdentifier() argument
81 return std::isalnum(ch) != 0 || ch == '_'; in IsCorrectIdentifier()
90 return std::all_of(name.begin(), name.end(), [allowed_chars](char ch) { in IsCorrectName() argument
91 return std::isalnum(ch) != 0 || allowed_chars.count(ch) != 0; in IsCorrectName()
350 for (char& ch : str) { in ToUpper() local
351 ch = toupper(ch); in ToUpper()
/system/sepolicy/tools/sepolicy-analyze/
Dattribute.c78 char ch; in attribute_func() local
86 while ((ch = getopt_long(argc, argv, "lr", attribute_options, NULL)) != -1) { in attribute_func()
87 switch (ch) { in attribute_func()
Dtypecmp.c275 char ch, diff = 0, equiv = 0; in typecmp_func() local
283 while ((ch = getopt_long(argc, argv, "de", typecmp_options, NULL)) != -1) { in typecmp_func()
284 switch (ch) { in typecmp_func()
Dneverallow.c491 char ch; in neverallow_func() local
501 while ((ch = getopt_long(argc, argv, "df:n:w", neverallow_options, NULL)) != -1) { in neverallow_func()
502 switch (ch) { in neverallow_func()
/system/tools/hidl/host_utils/
DStringHelper.cpp42 for (auto &ch : out) { in Uppercase() local
43 ch = toupper(ch); in Uppercase()
52 for (auto &ch : out) { in Lowercase() local
53 ch = tolower(ch); in Lowercase()
/system/core/adb/
Dsysdeps_win32.cpp1435 static size_t _get_char_ignoring_modifier(char* const ch, in _get_char_ignoring_modifier() argument
1467 *ch = (CHAR)translated; in _get_char_ignoring_modifier()
1474 *ch = key_event->uChar.AsciiChar; in _get_char_ignoring_modifier()
1477 return (*ch == '\0') ? 0 : 1; in _get_char_ignoring_modifier()
1488 static __inline__ size_t _get_non_control_char(char* const ch, in _get_non_control_char() argument
1490 return _get_char_ignoring_modifier(ch, key_event, control_key_state, in _get_non_control_char()
1495 static __inline__ size_t _get_non_alt_char(char* const ch, in _get_non_alt_char() argument
1497 return _get_char_ignoring_modifier(ch, key_event, control_key_state, in _get_non_alt_char()
1510 char ch = *pch; in _get_control_character() local
1511 switch (ch) { in _get_control_character()
[all …]
Dadb_utils.cpp178 int ch = p[i]; in dump_hex() local
179 line.push_back(isprint(ch) ? ch : '.'); in dump_hex()
/system/sepolicy/tools/
Dsepolicy-check.c239 char ch; in main() local
251 while ((ch = getopt_long(argc, argv, "s:t:c:p:P:", long_options, NULL)) != -1) { in main()
252 switch (ch) { in main()
/system/bt/udrv/include/
Duipc.h78 tUIPC_CHAN ch[UIPC_CH_NUM]; member
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc_private.h137 OI_UINT ch, OI_UINT* preferredBitpool);
140 BITNEED_UNION1* bitneeds, OI_UINT ch,
/system/core/libpixelflinger/
Dbuffer.cpp41 int sh, int sl, int dh, int dl, int ch, int cl, int dither);
331 int ch, int cl, // clear in downshift_component() argument
359 if (ch) { in downshift_component()
/system/bt/gd/packet/parser/
Dmain.cc196 for (const auto& ch : decls.type_defs_queue_) { in generate_cpp_headers_one_file() local
197 if (ch.second->GetDefinitionType() == TypeDef::Type::CHECKSUM) { in generate_cpp_headers_one_file()
198 const auto* checksum_def = dynamic_cast<const ChecksumDef*>(ch.second); in generate_cpp_headers_one_file()

12