Home
last modified time | relevance | path

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

12345

/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqliteTokenFinder.java36 private static boolean isAlpha(char ch) { in isAlpha() argument
37 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha()
40 private static boolean isNum(char ch) { in isNum() argument
41 return ('0' <= ch && ch <= '9'); in isNum()
44 private static boolean isAlNum(char ch) { in isAlNum() argument
45 return isAlpha(ch) || isNum(ch); in isAlNum()
48 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument
49 return set.indexOf(ch) >= 0; in isAnyOf()
77 final char ch = peek(sql, pos); in findTokens() local
80 if (isAlpha(ch)) { in findTokens()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSQLiteTokenizer.java40 private static boolean isAlpha(char ch) { in isAlpha() argument
41 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha()
44 private static boolean isNum(char ch) { in isNum() argument
45 return ('0' <= ch && ch <= '9'); in isNum()
48 private static boolean isAlNum(char ch) { in isAlNum() argument
49 return isAlpha(ch) || isNum(ch); in isAlNum()
52 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument
53 return set.indexOf(ch) >= 0; in isAnyOf()
96 final char ch = peek(sql, pos); in tokenize() local
99 if (isAlpha(ch)) { in tokenize()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSQLiteTokenizer.java40 private static boolean isAlpha(char ch) { in isAlpha() argument
41 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha()
44 private static boolean isNum(char ch) { in isNum() argument
45 return ('0' <= ch && ch <= '9'); in isNum()
48 private static boolean isAlNum(char ch) { in isAlNum() argument
49 return isAlpha(ch) || isNum(ch); in isAlNum()
52 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument
53 return set.indexOf(ch) >= 0; in isAnyOf()
96 final char ch = peek(sql, pos); in tokenize() local
99 if (isAlpha(ch)) { in tokenize()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DSqlChecker.java56 private static boolean isAlpha(char ch) { in isAlpha() argument
57 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha()
60 private static boolean isNum(char ch) { in isNum() argument
61 return ('0' <= ch && ch <= '9'); in isNum()
64 private static boolean isAlNum(char ch) { in isAlNum() argument
65 return isAlpha(ch) || isNum(ch); in isAlNum()
68 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument
69 return set.indexOf(ch) >= 0; in isAnyOf()
147 final char ch = peek(sql, pos); in findTokens() local
150 if (isAlpha(ch)) { in findTokens()
[all …]
/packages/apps/Dialer/java/com/android/dialer/smartdial/map/
DSmartDialMap.java32 protected boolean isValidDialpadCharacter(char ch) { in isValidDialpadCharacter() argument
33 return isValidDialpadAlphabeticChar(ch) || isValidDialpadNumericChar(ch); in isValidDialpadCharacter()
42 protected boolean isValidDialpadAlphabeticChar(char ch) { in isValidDialpadAlphabeticChar() argument
43 return getCharToKeyMap().containsKey(ch); in isValidDialpadAlphabeticChar()
49 protected boolean isValidDialpadNumericChar(char ch) { in isValidDialpadNumericChar() argument
50 return '0' <= ch && ch <= '9'; in isValidDialpadNumericChar()
62 protected Optional<Byte> getDialpadIndex(char ch) { in getDialpadIndex() argument
63 if (isValidDialpadNumericChar(ch)) { in getDialpadIndex()
64 return Optional.of((byte) (ch - '0')); in getDialpadIndex()
67 if (isValidDialpadAlphabeticChar(ch)) { in getDialpadIndex()
[all …]
DCompositeSmartDialMap.java58 public static boolean isValidDialpadCharacter(Context context, char ch) { in isValidDialpadCharacter() argument
59 if (DEFAULT_MAP.isValidDialpadCharacter(ch)) { in isValidDialpadCharacter()
64 return extraMap.isPresent() && extraMap.get().isValidDialpadCharacter(ch); in isValidDialpadCharacter()
73 public static boolean isValidDialpadAlphabeticChar(Context context, char ch) { in isValidDialpadAlphabeticChar() argument
74 if (DEFAULT_MAP.isValidDialpadAlphabeticChar(ch)) { in isValidDialpadAlphabeticChar()
79 return extraMap.isPresent() && extraMap.get().isValidDialpadAlphabeticChar(ch); in isValidDialpadAlphabeticChar()
85 public static boolean isValidDialpadNumericChar(Context context, char ch) { in isValidDialpadNumericChar() argument
86 if (DEFAULT_MAP.isValidDialpadNumericChar(ch)) { in isValidDialpadNumericChar()
91 return extraMap.isPresent() && extraMap.get().isValidDialpadNumericChar(ch); in isValidDialpadNumericChar()
102 public static byte getDialpadIndex(Context context, char ch) { in getDialpadIndex() argument
[all …]
DUkrainianSmartDialMap.java39 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() argument
40 ch = Character.toLowerCase(ch); in normalizeCharacter()
41 return isValidDialpadAlphabeticChar(ch) ? Optional.of(ch) : Optional.absent(); in normalizeCharacter()
DBulgarianSmartDialMap.java40 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() argument
41 ch = Character.toLowerCase(ch); in normalizeCharacter()
42 return isValidDialpadAlphabeticChar(ch) ? Optional.of(ch) : Optional.absent(); in normalizeCharacter()
DRussianSmartDialMap.java40 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() argument
41 ch = Character.toLowerCase(ch); in normalizeCharacter()
42 return isValidDialpadAlphabeticChar(ch) ? Optional.of(ch) : Optional.absent(); in normalizeCharacter()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DICU.java17 char ch = pattern.charAt(i); in getDateFormatOrder() local
18 if (ch == 'd' || ch == 'L' || ch == 'M' || ch == 'y') { in getDateFormatOrder()
19 if (ch == 'd' && !sawDay) { in getDateFormatOrder()
22 } else if ((ch == 'L' || ch == 'M') && !sawMonth) { in getDateFormatOrder()
25 } else if ((ch == 'y') && !sawYear) { in getDateFormatOrder()
29 } else if (ch == 'G') { in getDateFormatOrder()
31 } else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { in getDateFormatOrder()
33 + ch + "' in " + pattern); in getDateFormatOrder()
34 } else if (ch == '\'') { in getDateFormatOrder()
/packages/modules/Bluetooth/system/udrv/ulinux/
Duipc.cc188 memset(&uipc.ch, 0, sizeof(uipc.ch)); in uipc_main_init()
199 tUIPC_CHAN* p = &uipc.ch[i]; in uipc_main_init()
226 if (uipc.ch[i].task_evt_flags & UIPC_TASK_FLAG_DISCONNECT_CHAN) { in uipc_check_task_flags_locked()
227 uipc.ch[i].task_evt_flags &= ~UIPC_TASK_FLAG_DISCONNECT_CHAN; in uipc_check_task_flags_locked()
238 if (SAFE_FD_ISSET(uipc.ch[ch_id].srvfd, &uipc.read_set)) { in uipc_check_fd_locked()
242 if (uipc.ch[ch_id].fd != UIPC_DISCONNECTED) { in uipc_check_fd_locked()
243 log::debug("CLOSE CONNECTION (FD {})", uipc.ch[ch_id].fd); in uipc_check_fd_locked()
244 close(uipc.ch[ch_id].fd); in uipc_check_fd_locked()
245 FD_CLR(uipc.ch[ch_id].fd, &uipc.active_set); in uipc_check_fd_locked()
246 uipc.ch[ch_id].fd = UIPC_DISCONNECTED; in uipc_check_fd_locked()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapResponseParser.java197 final int ch = readByte(); in readUntil() local
198 if (ch != end) { in readUntil()
199 bufferReadUntil.append((char) ch); in readUntil()
225 final int ch = peek(); in parseResponse() local
226 if (ch == '+') { // Continuation request in parseResponse()
240 if (ch == '*') { in parseResponse()
331 final int ch = peek(); in parseBareString() local
334 if (ch == '(' in parseBareString()
335 || ch == ')' in parseBareString()
336 || ch == '{' in parseBareString()
[all …]
/packages/modules/DnsResolver/
Dres_comp.cpp144 char pch = PERIOD, ch = *dn++; in res_hnok() local
146 while (ch != '\0') { in res_hnok()
149 if (periodchar(ch)) { in res_hnok()
152 if (!borderchar(ch)) return false; in res_hnok()
154 if (!middlechar(ch)) return false; in res_hnok()
156 pch = ch, ch = nch; in res_hnok()
166 char ch; in res_dnok() local
168 while ((ch = *dn++) != '\0') in res_dnok()
169 if (!domainchar(ch)) return false; in res_dnok()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java115 char ch = prefix.charAt(n); in getMccMnc() local
116 if (ch < '0' || ch > '9') { in getMccMnc()
155 char ch = s.charAt(n); in toUnicodeEscapedString() local
156 if (ch>= ' ' && ch < 127) { in toUnicodeEscapedString()
157 sb.append(ch); in toUnicodeEscapedString()
160 sb.append("\\u").append(String.format("%04x", (int)ch)); in toUnicodeEscapedString()
207 public static int fromHex(char ch, boolean lenient) throws NumberFormatException { in fromHex() argument
208 if (ch <= '9' && ch >= '0') { in fromHex()
209 return ch - '0'; in fromHex()
210 } else if (ch >= 'a' && ch <= 'f') { in fromHex()
[all …]
/packages/modules/Bluetooth/system/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 …]
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/
DSmartDialNameMatcher.java71 char ch = number.charAt(i); in normalizeNumber() local
72 if (CompositeSmartDialMap.isValidDialpadNumericChar(context, ch)) { in normalizeNumber()
73 s.append(ch); in normalizeNumber()
175 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset() local
176 if (CompositeSmartDialMap.isValidDialpadNumericChar(context, ch)) { in matchesNumberWithOffset()
177 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
266 char ch = displayName.charAt(nameStart); in matchesCombination() local
268 ch = CompositeSmartDialMap.normalizeCharacter(context, ch); in matchesCombination()
269 if (CompositeSmartDialMap.isValidDialpadCharacter(context, ch)) { in matchesCombination()
270 if (CompositeSmartDialMap.isValidDialpadAlphabeticChar(context, ch)) { in matchesCombination()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java110 float ch = s.height() * scale; in drawEntry() local
115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java201 final char ch = user.charAt(i); in isQuotedUserValid() local
202 if (ch == '"' || ch == 127 in isQuotedUserValid()
204 || (ch < 32 && !ANY_WHITESPACE.matches(ch)) in isQuotedUserValid()
206 || (ch >= 128 && !allowI18n)) { in isQuotedUserValid()
208 } else if (ch == '\\') { in isQuotedUserValid()
/packages/services/Car/tests/BugReportApp/libs/
Djackson-core-2.9.9.jar ... ) public int decodeBase64Char (char) char c int ch public int decodeBase64Char (int) int ch public int ...
/packages/apps/Car/DebuggingRestrictionController/libs/
Djackson-core-2.11.1.jar ... ) public int decodeBase64Char (char) char c int ch public int decodeBase64Char (int) int ch public int ...
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DStringUtils.java104 private static char soundexMap(final char ch) { in soundexMap() argument
105 final int index = ch - 'A'; in soundexMap()
145 final char ch = str.charAt(i); in soundex() local
146 if (ch == 'H' || ch == 'W') { in soundex()
149 final char digit = soundexMap(ch); in soundex()
/packages/apps/Dialer/java/com/android/dialer/common/
DLogUtil.java162 public static char sanitizeDialPadChar(char ch) { in sanitizeDialPadChar() argument
164 return ch; in sanitizeDialPadChar()
166 if (is12Key(ch)) { in sanitizeDialPadChar()
169 return ch; in sanitizeDialPadChar()
195 private static boolean is12Key(char ch) { in is12Key() argument
196 return PhoneNumberUtils.is12Key(ch); in is12Key()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DDbQueryUtils.java127 char ch = value.charAt(i); in escapeLikeValue() local
128 if (ch == '%' || ch == '_' || ch == escapeChar) { in escapeLikeValue()
131 sb.append(ch); in escapeLikeValue()
/packages/inputmethods/LatinIME/dictionaries/
Dcs_wordlist.combined.gz
/packages/modules/Bluetooth/system/bta/has/
Dhas_ctp.cc192 ch = #en; \
196 const char* ch = 0; in operator <<() local
203 ch = "INVALID_CHANGE_ID"; in operator <<()
206 return out << ch; in operator <<()
210 const char* ch = 0; in operator <<() local
223 ch = "NOT_A_VALID_OPCODE"; in operator <<()
226 return out << ch; in operator <<()

12345