/packages/providers/TvProvider/src/com/android/providers/tv/util/ |
D | SqliteTokenFinder.java | 36 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/ |
D | SQLiteTokenizer.java | 40 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/ |
D | SqlChecker.java | 56 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/ |
D | SmartDialMap.java | 32 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 …]
|
D | CompositeSmartDialMap.java | 58 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 …]
|
D | UkrainianSmartDialMap.java | 39 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()
|
D | BulgarianSmartDialMap.java | 40 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()
|
D | RussianSmartDialMap.java | 40 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/ |
D | ICU.java | 17 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/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapResponseParser.java | 197 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/apps/Dialer/java/com/android/dialer/smartdial/util/ |
D | SmartDialNameMatcher.java | 71 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/modules/DnsResolver/ |
D | res_comp.cpp | 144 int 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 int ch; in res_dnok() local 168 while ((ch = *dn++) != '\0') in res_dnok() 169 if (!domainchar(ch)) return false; in res_dnok()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoFallbackEffect.java | 110 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/inputmethods/LatinIME/dictionaries/ |
D | cs_wordlist.combined.gz | 1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ... |
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | EmailAddress.java | 201 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/apps/Dialer/java/com/android/dialer/common/ |
D | LogUtil.java | 162 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/ |
D | DbQueryUtils.java | 127 char ch = value.charAt(i); in escapeLikeValue() local 128 if (ch == '%' || ch == '_' || ch == escapeChar) { in escapeLikeValue() 131 sb.append(ch); in escapeLikeValue()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CaptureDataSerializer.java | 193 for (int ch = 0; ch < numChannels; ch++) { in toString() 194 str.append(channelName[ch]); in toString() 200 float gain = lensShading.getGainFactor(ch, c, r); in toString() 213 if (ch < numChannels - 1) { in toString()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | StringResourceMap.java | 120 public void comment(char[] ch, int start, int length) { in comment() argument 121 mComment.append(ch, start, length); in comment() 122 if (ch[start + length - 1] != '\n') { in comment() 138 public void characters(char[] ch, int start, int length) { in characters() argument 139 mValue.append(ch, start, length); in characters()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkConfig.java | 151 char ch = str.charAt(i); in escapeSpecialCharacters() local 152 if (ch =='\\' || ch == ',' || ch == ';' || ch == ':') { in escapeSpecialCharacters() 155 buf.append(ch); in escapeSpecialCharacters()
|
D | WifiQrCode.java | 183 for (char ch : input.toCharArray()) { in removeBackSlash() 184 if (ch != '\\') { in removeBackSlash() 185 sb.append(ch); in removeBackSlash() 189 sb.append(ch); in removeBackSlash()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiNetworkConfig.java | 151 char ch = str.charAt(i); in escapeSpecialCharacters() local 152 if (ch =='\\' || ch == ',' || ch == ';' || ch == ':') { in escapeSpecialCharacters() 155 buf.append(ch); in escapeSpecialCharacters()
|
D | WifiQrCode.java | 180 for (char ch : input.toCharArray()) { in removeBackSlash() 181 if (ch != '\\') { in removeBackSlash() 182 sb.append(ch); in removeBackSlash() 186 sb.append(ch); in removeBackSlash()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsIcuTest.java | 59 final String ch = new String(new int[]{codePoint}, 0, 1); in checkBucket() local 61 final String actual = getBucket(index, ch); in checkBucket() 64 Log.e(TAG, "Bucket for '" + ch + "' expected to be '" in checkBucket()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 1117 protected static boolean isTokenCharacter(int ch) { in isTokenCharacter() argument 1130 if((ch < 33) || (ch > 126)) { in isTokenCharacter() 1134 switch(ch) { in isTokenCharacter() 1163 protected static boolean isText(int ch) { in isText() argument 1174 if(((ch >= 32) && (ch <= 126)) || ((ch >= 128) && (ch <= 255))) { in isText() 1178 switch(ch) { in isText()
|