/system/netd/resolv/ |
D | res_comp.cpp | 148 int pch = PERIOD, ch = *dn++; in res_hnok() local 150 while (ch != '\0') { in res_hnok() 153 if (periodchar(ch)) { in res_hnok() 156 if (!borderchar(ch)) return (0); in res_hnok() 158 if (!borderchar(ch)) return (0); in res_hnok() 160 if (!middlechar(ch)) return (0); in res_hnok() 162 pch = ch, ch = nch; in res_hnok() 184 int ch, escaped = 0; in res_mailok() local 190 while ((ch = *dn++) != '\0') { in res_mailok() 191 if (!domainchar(ch)) return (0); in res_mailok() [all …]
|
/system/bt/udrv/ulinux/ |
D | uipc.cc | 192 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/ |
D | Tokenizer.cpp | 30 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()
|
D | Unicode.cpp | 226 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/extras/simpleperf/ |
D | build_id.h | 48 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/ |
D | synthesis-sbc.c | 280 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 …]
|
D | bitalloc.c | 125 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/ |
D | gatt_server_old.cc | 212 bluetooth::gatt::Characteristic& ch = in RequestReadCallback() local 216 if (ch.next_blob_pending && attribute_offset_octets == 0 && in RequestReadCallback() 217 ch.blob_section == 0) { in RequestReadCallback() 218 std::swap(ch.blob, ch.next_blob); in RequestReadCallback() 219 ch.next_blob_pending = false; in RequestReadCallback() 223 std::min(ch.blob.size(), ch.blob_section * kMaxGattAttributeSize); in RequestReadCallback() 224 const size_t blob_remaining = ch.blob.size() - blob_offset_octets; in RequestReadCallback() 232 attribute_offset_octets, ch.blob_section, is_long); in RequestReadCallback() 238 std::copy(ch.blob.begin() + blob_offset_octets + attribute_offset_octets, in RequestReadCallback() 239 ch.blob.begin() + blob_offset_octets + attribute_size, in RequestReadCallback() [all …]
|
/system/media/audio_utils/tests/ |
D | fifo_threads.cpp | 150 int ch = getch(); in main() local 151 if (ch <= 0 || ch == '\003' /*control-C*/) { in main() 154 if (ch == 'p') in main() 156 else if (ch == 'p') in main() 158 buffer[0] = ch; in main()
|
D | README.md | 5 FIXME: getch.[ch] are copied from ../../../../frameworks/wilhelm/tests/sandbox/
|
/system/core/logwrapper/ |
D | logwrapper.c | 54 int ch; in main() local 58 while ((ch = getopt(argc, argv, "adk")) != -1) { in main() 59 switch (ch) { in main()
|
/system/core/libcutils/ |
D | properties.cpp | 43 char ch = buf[0]; in property_get_bool() local 44 if (ch == '0' || ch == 'n') { in property_get_bool() 46 } else if (ch == '1' || ch == 'y') { in property_get_bool()
|
D | strdup8to16.cpp | 31 #define UTF8_SEQ_LENGTH(ch) (((0xe5000000 >> (((ch) >> 3) & 0x1e)) & 3) + 1) argument
|
/system/tools/sysprop/ |
D | Common.cpp | 77 return std::all_of(name.begin() + 1, name.end(), [](char ch) { in IsCorrectIdentifier() argument 78 return std::isalnum(ch) != 0 || ch == '_'; in IsCorrectIdentifier() 87 return std::all_of(name.begin(), name.end(), [](char ch) { in IsCorrectPropertyOrApiName() argument 88 return std::isalnum(ch) != 0 || allowed.count(ch) != 0; in IsCorrectPropertyOrApiName() 326 for (char& ch : str) { in ToUpper() local 327 ch = toupper(ch); in ToUpper()
|
D | CodeWriter.cpp | 54 char ch = buf[i]; in Write() local 55 if (ch == '\n') { in Write() 65 code_.push_back(ch); in Write()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | attribute.c | 78 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()
|
D | typecmp.c | 275 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()
|
D | neverallow.c | 491 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/core/adb/ |
D | sysdeps_win32.cpp | 1348 static size_t _get_char_ignoring_modifier(char* const ch, in _get_char_ignoring_modifier() argument 1380 *ch = (CHAR)translated; in _get_char_ignoring_modifier() 1387 *ch = key_event->uChar.AsciiChar; in _get_char_ignoring_modifier() 1390 return (*ch == '\0') ? 0 : 1; in _get_char_ignoring_modifier() 1401 static __inline__ size_t _get_non_control_char(char* const ch, in _get_non_control_char() argument 1403 return _get_char_ignoring_modifier(ch, key_event, control_key_state, in _get_non_control_char() 1408 static __inline__ size_t _get_non_alt_char(char* const ch, in _get_non_alt_char() argument 1410 return _get_char_ignoring_modifier(ch, key_event, control_key_state, in _get_non_alt_char() 1423 char ch = *pch; in _get_control_character() local 1424 switch (ch) { in _get_control_character() [all …]
|
D | adb_utils.cpp | 178 int ch = p[i]; in dump_hex() local 179 line.push_back(isprint(ch) ? ch : '.'); in dump_hex()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 37 for (auto &ch : out) { in Uppercase() local 38 ch = toupper(ch); in Uppercase() 47 for (auto &ch : out) { in Lowercase() local 48 ch = tolower(ch); in Lowercase()
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 239 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/ |
D | uipc.h | 78 tUIPC_CHAN ch[UIPC_CH_NUM]; member
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc_private.h | 137 OI_UINT ch, OI_UINT* preferredBitpool); 140 BITNEED_UNION1* bitneeds, OI_UINT ch,
|
/system/core/libpixelflinger/ |
D | buffer.cpp | 41 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()
|