/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
H A D | CharacterPerfTest.java | 89 for (int ch = 0; ch < 65536; ++ch) { in timeIsSpace() 95 for (int ch = 0; ch < 65536; ++ch) { in timeIsSpace() 109 for (int ch = 0; ch < 65536; ++ch) { in timeDigit() 115 for (int ch = 0; ch < 65536; ++ch) { in timeDigit() 129 for (int ch = 0; ch < 65536; ++ch) { in timeGetNumericValue() 135 for (int ch = 0; ch < 65536; ++ch) { in timeGetNumericValue() 149 for (int ch = 0; ch < 65536; ++ch) { in timeIsDigit() 155 for (int ch = 0; ch < 65536; ++ch) { in timeIsDigit() 169 for (int ch = 0; ch < 65536; ++ch) { in timeIsIdentifierIgnorable() 175 for (int ch = 0; ch < 65536; ++ch) { in timeIsIdentifierIgnorable() [all …]
|
/aosp14/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteTokenizer.java | 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() 49 return isAlpha(ch) || isNum(ch); in isAlNum() 53 return set.indexOf(ch) >= 0; in isAnyOf() 99 if (isAlpha(ch)) { in tokenize() 114 if (isAnyOf(ch, "'\"`")) { in tokenize() 132 if (ch != '\'') { in tokenize() 141 String.valueOf(ch) + ch, String.valueOf(ch)); in tokenize() 154 if (ch == '[') { in tokenize() [all …]
|
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | AccessibilityNodeInfoDumper.java | 329 if((ch >= 0x1 && ch <= 0x8) || (ch >= 0xB && ch <= 0xC) || (ch >= 0xE && ch <= 0x1F) || in stripInvalidXMLChars() 330 (ch >= 0x7F && ch <= 0x84) || (ch >= 0x86 && ch <= 0x9f) || in stripInvalidXMLChars() 331 (ch >= 0xFDD0 && ch <= 0xFDDF) || (ch >= 0x1FFFE && ch <= 0x1FFFF) || in stripInvalidXMLChars() 332 (ch >= 0x2FFFE && ch <= 0x2FFFF) || (ch >= 0x3FFFE && ch <= 0x3FFFF) || in stripInvalidXMLChars() 333 (ch >= 0x4FFFE && ch <= 0x4FFFF) || (ch >= 0x5FFFE && ch <= 0x5FFFF) || in stripInvalidXMLChars() 334 (ch >= 0x6FFFE && ch <= 0x6FFFF) || (ch >= 0x7FFFE && ch <= 0x7FFFF) || in stripInvalidXMLChars() 335 (ch >= 0x8FFFE && ch <= 0x8FFFF) || (ch >= 0x9FFFE && ch <= 0x9FFFF) || in stripInvalidXMLChars() 336 (ch >= 0xAFFFE && ch <= 0xAFFFF) || (ch >= 0xBFFFE && ch <= 0xBFFFF) || in stripInvalidXMLChars() 337 (ch >= 0xCFFFE && ch <= 0xCFFFF) || (ch >= 0xDFFFE && ch <= 0xDFFFF) || in stripInvalidXMLChars() 338 (ch >= 0xEFFFE && ch <= 0xEFFFF) || (ch >= 0xFFFFE && ch <= 0xFFFFF) || in stripInvalidXMLChars() [all …]
|
/aosp14/frameworks/base/media/java/android/media/audiofx/ |
H A D | DynamicsProcessing.java | 220 for (int ch = 0; ch < mChannelCount; ch++) { in DynamicsProcessing() 258 for (int ch = 0; ch < mChannelCount; ch++) { in getConfig() 1780 for (int ch = 0; ch < mChannelCount; ch++) { in setAllChannelsTo() 1793 for (int ch = 0; ch < mChannelCount; ch++) { in setInputGainAllChannelsTo() 1806 for (int ch = 0; ch < mChannelCount; ch++) { in setPreEqAllChannelsTo() 1817 for (int ch = 0; ch < mChannelCount; ch++) { in setPreEqBandAllChannelsTo() 1830 for (int ch = 0; ch < mChannelCount; ch++) { in setMbcAllChannelsTo() 1841 for (int ch = 0; ch < mChannelCount; ch++) { in setMbcBandAllChannelsTo() 1854 for (int ch = 0; ch < mChannelCount; ch++) { in setPostEqAllChannelsTo() 1865 for (int ch = 0; ch < mChannelCount; ch++) { in setPostEqBandAllChannelsTo() [all …]
|
/aosp14/system/core/libutils/ |
H A D | Tokenizer.cpp | 31 static inline bool isDelimiter(char ch, const char* delimiters) { in isDelimiter() argument 32 return strchr(delimiters, ch) != nullptr; in isDelimiter() 117 char ch = *eol; in peekRemainderOfLine() local 118 if (ch == '\n') { in peekRemainderOfLine() 133 char ch = *mCurrent; in nextToken() local 134 if (ch == '\n' || isDelimiter(ch, delimiters)) { in nextToken() 148 char ch = *(mCurrent++); in nextLine() local 149 if (ch == '\n') { in nextLine() 162 char ch = *mCurrent; in skipDelimiters() local 163 if (ch == '\n' || !isDelimiter(ch, delimiters)) { in skipDelimiters()
|
H A D | Unicode.cpp | 194 char16_t ch; in strcmp16() local 198 d = (int)(ch = *s1++) - (int)*s2++; in strcmp16() 199 if ( d || !ch ) in strcmp16() 208 char16_t ch; in strncmp16() local 216 d = (int)(ch = *s1++) - (int)*s2++; in strncmp16() 217 if ( d || !ch ) { in strncmp16() 356 static inline size_t utf8_codepoint_len(uint8_t ch) in utf8_codepoint_len() argument 358 return ((0xe5000000 >> ((ch >> 3) & 0x1e)) & 3) + 1; in utf8_codepoint_len()
|
/aosp14/frameworks/base/core/java/com/google/android/util/ |
H A D | AbstractMessageParser.java | 273 switch (ch) { in parseText() 375 if ((ch != '.') && !isDomainChar(ch)) { in parseURL() 427 } else if ((ch == '/') || (ch == '#')) { in parseURL() 631 switch (ch) { in isPunctuation() 646 switch (ch) { in isFormatChar() 1192 private char ch; field in AbstractMessageParser.Format 1198 this.ch = ch; in Format() 1210 return start ? getFormatStart(ch) : getFormatEnd(ch); in toHtml() 1213 return (ch == '"') ? """ : String.valueOf(ch); in toHtml() 1228 switch (ch) { in getFormatStart() [all …]
|
/aosp14/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
H A D | SettingsStateTest.java | 67 for (char ch = 0x20; ch < 0xd800; ch++) { in testIsBinary() 68 assertFalse("ch=" + Integer.toString(ch, 16), in testIsBinary() 69 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary() 71 for (char ch = 0xe000; ch < 0xfffe; ch++) { in testIsBinary() 72 assertFalse("ch=" + Integer.toString(ch, 16), in testIsBinary() 76 for (char ch = 0x0000; ch < 0x20; ch++) { in testIsBinary() 77 assertTrue("ch=" + Integer.toString(ch, 16), in testIsBinary() 80 for (char ch = 0xd800; ch < 0xe000; ch++) { in testIsBinary() 81 assertTrue("ch=" + Integer.toString(ch, 16), in testIsBinary() 100 for (int ch = 0; ch < 0x10000; ch++) { in testWriteReadNoCrash() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
H A D | StringIterationPerfTest.java | 40 char ch; in timeStringIteration0() local 42 ch = s.charAt(i); in timeStringIteration0() 52 char ch; in timeStringIteration1() local 54 ch = s.charAt(i); in timeStringIteration1() 64 char ch; in timeStringIteration2() local 67 ch = chars[i]; in timeStringIteration2()
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | NumberKeyListener.java | 180 final char ch = pattern.charAt(i); in addFormatCharsFromSkeleton() local 181 if (Character.isSurrogate(ch)) { // characters outside BMP are not supported. in addFormatCharsFromSkeleton() 183 } else if (ch == SINGLE_QUOTE) { in addFormatCharsFromSkeleton() 193 if (symbolsToIgnore.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 196 } else if (DATE_TIME_FORMAT_SYMBOLS.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 203 collection.add(Character.valueOf(ch)); in addFormatCharsFromSkeleton() 232 final char ch = amPm[i].charAt(j); in addAmPmChars() local 233 if (Character.isBmpCodePoint(ch)) { in addAmPmChars() 234 collection.add(Character.valueOf(ch)); in addAmPmChars() 248 for (Character ch : chars) { in collectionToArray() [all …]
|
/aosp14/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 373 char ch = pattern.charAt(i); in getDateFormatOrder() local 374 if (ch == 'd' || ch == 'L' || ch == 'M' || ch == 'y') { in getDateFormatOrder() 375 if (ch == 'd' && !sawDay) { in getDateFormatOrder() 378 } else if ((ch == 'L' || ch == 'M') && !sawMonth) { in getDateFormatOrder() 381 } else if ((ch == 'y') && !sawYear) { in getDateFormatOrder() 385 } else if (ch == 'G') { in getDateFormatOrder() 387 } else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { in getDateFormatOrder() 388 throw new IllegalArgumentException("Bad pattern character '" + ch + "' in " in getDateFormatOrder() 390 } else if (ch == '\'') { in getDateFormatOrder()
|
/aosp14/system/core/libcutils/ |
H A D | properties.cpp | 35 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()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | LensShadingMap.java | 266 for (int ch = 0; ch < COUNT; ch++) { in toString() 267 str.append(channelPrefix[ch]); in toString() 272 float gain = getGainFactor(ch, c, r); in toString() 285 if (ch < COUNT - 1) { in toString()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseStressTest.java | 65 char[] ch = new char[100000]; in testSingleThreadInsertDelete() local 66 String str = new String(ch); in testSingleThreadInsertDelete() 87 char[] ch = new char[100000]; in testOutOfSpace() local 88 String str = new String(ch); in testOutOfSpace()
|
/aosp14/frameworks/base/native/graphics/jni/fuzz/ |
H A D | png_mutator.h | 88 for (auto &ch : chunks_) { in Serialize() 89 if (ch.type == Type("iCCP")) { in Serialize() 94 auto compressed = Compress(ch.v); in Serialize() 96 WriteChunk(out, ch.type, v); in Serialize() 98 WriteChunk(out, ch.type, ch.v); in Serialize() 160 [](const Chunk &ch) { return ch.type == Type("fUZz"); }); in Mutate() 173 auto &ch = p.chunks_[idx]; in CrossOver() local 175 chunks_.insert(chunks_.begin() + pos, ch); in CrossOver()
|
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
H A D | snapuserd_core.cpp | 76 struct CowHeader* ch = reinterpret_cast<struct CowHeader*>(mapped_addr_); in UpdateMergeCompletionPercentage() local 77 merge_completion_percentage_ = (ch->num_merge_ops * 100.0) / reader_->get_num_total_data_ops(); in UpdateMergeCompletionPercentage() 80 << " num_merge_ops: " << ch->num_merge_ops in UpdateMergeCompletionPercentage() 85 struct CowHeader* ch = reinterpret_cast<struct CowHeader*>(mapped_addr_); in CommitMerge() local 86 ch->num_merge_ops += num_merge_ops; in CommitMerge() 148 struct CowHeader* ch = reinterpret_cast<struct CowHeader*>(mapped_addr_); in CheckMergeCompletionStatus() local 150 SNAP_LOG(INFO) << "Merge-status: Total-Merged-ops: " << ch->num_merge_ops in CheckMergeCompletionStatus() 262 struct CowHeader* ch = reinterpret_cast<struct CowHeader*>(mapped_addr_); in MmapMetadata() local 263 ch->num_merge_ops = header.num_merge_ops; in MmapMetadata()
|
/aosp14/system/core/healthd/ |
H A D | healthd_mode_charger_hidl.cpp | 62 int ch; in healthd_charger_main() local 64 while ((ch = getopt(argc, argv, "cr")) != -1) { in healthd_charger_main() 65 switch (ch) { in healthd_charger_main()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A D | JapanesePhoneNumberFormatter.java | 190 char ch = text.charAt(i); in format() local 191 if (!Character.isDigit(ch)) { in format() 195 short value = FORMAT_MAP[base + ch - '0']; in format()
|
H A D | PhoneNumberUtils.java | 199 private static boolean isSeparator(char ch) { in isSeparator() argument 200 return !isDialable(ch) && !(('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')); in isSeparator() 2665 if ('0' <= ch && ch <= '9') { in tryGetISODigit() 2666 return ch - '0'; in tryGetISODigit() 2698 char ch = str.charAt(i); in tryGetCountryCallingCodeAndNewIndex() local 2703 else if (ch == '1') { in tryGetCountryCallingCodeAndNewIndex() 2752 if (ch == '6') state = 9; in tryGetCountryCallingCodeAndNewIndex() 2758 if (ch == '6') { in tryGetCountryCallingCodeAndNewIndex() 2783 final char ch = str.charAt(i); in tryGetTrunkPrefixOmittedIndex() local 2784 if (tryGetISODigit(ch) >= 0) { in tryGetTrunkPrefixOmittedIndex() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
H A D | SemiStableSortTest.kt | 53 { ch -> stableOrder.indexOf(ch).takeIf { it >= 0 } }, 70 { ch -> stableOrder.indexOf(ch).takeIf { it >= 0 } },
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | AndroidBidi.java | 99 char ch = chars[cstart + visLen]; in directions() local 101 if (ch == '\n') { in directions() 106 if (ch != ' ' && ch != '\t') { in directions()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 206 public synchronized void print(char ch) { in print() argument 207 builder.append(ch); in print() 208 if (ch == '\n') { in print() 262 public synchronized void println(char ch) { in println() argument 263 builder.append(ch); in println()
|
/aosp14/frameworks/base/tools/fonts/ |
H A D | fontchain_linter.py | 88 return '<' + (', '.join([printable(ch) for ch in inp])) + '>' 505 sequence = [int(ch, 16) for ch in chars.split(' ')] 587 return tuple(0x1F1E6 + ord(ch) - ord('A') for ch in territory_code) 672 sequence = tuple(ch for ch in sequence if ch != EMOJI_VS) 677 sequence = tuple(ch for ch in sequence if ch != EMOJI_VS)
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageUsage.java | 188 int ch = in.read(); in readToken() local 189 if (ch == -1) { in readToken() 195 if (ch == endOfToken) { in readToken() 198 sb.append((char)ch); in readToken()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | EditorState.java | 82 final char ch = token.charAt(1); in setByString() local 83 if (!isGraphicAscii(ch)) { in setByString() 86 "Use U+" + Integer.toHexString(ch).toUpperCase() + " instead"); in setByString()
|