/cts/tests/tests/util/src/android/util/cts/ |
D | StringBuilderPrinterTest.java | 41 assertEquals(' ', str.charAt(5)); in testStringBuilderPrinter() 42 assertEquals('A', str.charAt(6)); in testStringBuilderPrinter() 43 assertEquals('n', str.charAt(7)); in testStringBuilderPrinter() 44 assertEquals('d', str.charAt(8)); in testStringBuilderPrinter() 45 assertEquals('r', str.charAt(9)); in testStringBuilderPrinter() 46 assertEquals('o', str.charAt(10)); in testStringBuilderPrinter() 47 assertEquals('i', str.charAt(11)); in testStringBuilderPrinter() 48 assertEquals('d', str.charAt(12)); in testStringBuilderPrinter()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SecurityPatchTest.java | 87 assertTrue(error, Character.isDigit(patch.charAt(0))); in testSecurityPatchFormat() 88 assertTrue(error, Character.isDigit(patch.charAt(1))); in testSecurityPatchFormat() 89 assertTrue(error, Character.isDigit(patch.charAt(2))); in testSecurityPatchFormat() 90 assertTrue(error, Character.isDigit(patch.charAt(3))); in testSecurityPatchFormat() 91 assertEquals(error, '-', patch.charAt(4)); in testSecurityPatchFormat() 92 assertTrue(error, Character.isDigit(patch.charAt(5))); in testSecurityPatchFormat() 93 assertTrue(error, Character.isDigit(patch.charAt(6))); in testSecurityPatchFormat() 94 assertEquals(error, '-', patch.charAt(7)); in testSecurityPatchFormat() 95 assertTrue(error, Character.isDigit(patch.charAt(8))); in testSecurityPatchFormat() 96 assertTrue(error, Character.isDigit(patch.charAt(9))); in testSecurityPatchFormat()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AlphabetIndexerTest.java | 59 assertEquals(ALPHABET.charAt(0), ((String[]) sections)[0].charAt(0)); in testAlphabetIndexer() 60 assertEquals(ALPHABET.charAt(1), ((String[]) sections)[1].charAt(0)); in testAlphabetIndexer() 61 assertEquals(ALPHABET.charAt(ALPHABET.length() - 2), in testAlphabetIndexer() 62 ((String[]) sections)[ALPHABET.length() - 2].charAt(0)); in testAlphabetIndexer() 63 assertEquals(ALPHABET.charAt(ALPHABET.length() - 1), in testAlphabetIndexer() 64 ((String[]) sections)[ALPHABET.length() - 1].charAt(0)); in testAlphabetIndexer()
|
D | MultiAutoCompleteTextViewTest.java | 216 while (i > 0 && (text.charAt(i - 1) == ' ' || text.charAt(i - 1) == ',')) { in findTokenStart() 220 while (i > 0 && text.charAt(i - 1) != ',') { in findTokenStart() 224 while (i < cursor && text.charAt(i) == ' ') { in findTokenStart() 236 if (text.charAt(i) == ',') { in findTokenEnd() 249 while (i > 0 && text.charAt(i - 1) == ' ') { in terminateToken() 253 if (i > 0 && text.charAt(i - 1) == ',') { in terminateToken()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | InputConnectionTestUtils.java | 50 final Character c = formatString.charAt(i); in formatString() 59 builder.append(U1F427.charAt(0)); // High surrogate in formatString() 62 builder.append(U1F427.charAt(1)); // Low surrogate in formatString()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AlteredCharSequenceTest.java | 43 assertEquals('i', mAlteredCharSequence.charAt(0)); in testCharAt() 44 assertEquals('s', mAlteredCharSequence.charAt(1)); in testCharAt() 46 assertEquals('c', mAlteredCharSequence.charAt(2)); in testCharAt() 47 assertEquals('d', mAlteredCharSequence.charAt(3)); in testCharAt() 54 mAlteredCharSequence.charAt(-1); in testCharAtTooLow() 61 mAlteredCharSequence.charAt(mAlteredCharSequence.length() + 1); in testCharAtTooHigh() 174 public char charAt(int index) { in charAt() method in AlteredCharSequenceTest.MockSpanned
|
D | SpannedTest.java | 54 assertEquals('\uD83D', spanned.charAt(0)); in testCharAt() 55 assertEquals('\uDE00', spanned.charAt(1)); in testCharAt() 58 spanned.charAt(-1); in testCharAt() 64 spanned.charAt(spanned.length()); in testCharAt()
|
D | PrecomputedTextTest.java | 182 assertEquals('H', s.charAt(0)); in testCharSequenceInteface() 183 assertEquals('e', s.charAt(1)); in testCharSequenceInteface() 184 assertEquals('l', s.charAt(2)); in testCharSequenceInteface() 185 assertEquals('l', s.charAt(3)); in testCharSequenceInteface() 186 assertEquals('o', s.charAt(4)); in testCharSequenceInteface() 187 assertEquals(',', s.charAt(5)); in testCharSequenceInteface() 192 assertEquals('H', s3.charAt(0)); in testCharSequenceInteface() 193 assertEquals('e', s3.charAt(1)); in testCharSequenceInteface() 194 assertEquals('l', s3.charAt(2)); in testCharSequenceInteface()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | HexEncoding.java | 71 result[resultOffset++] = (byte) getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)); in decode() 76 ((getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)) << 4) in decode() 77 | getHexadecimalDigitValue(encoded.charAt(encodedCharOffset + 1))); in decode()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ListeningPortsTest.java | 368 retval[i] = (byte) ((Character.digit(s.charAt(2*i + 6), 16) << 4) in addrToInet() 369 + Character.digit(s.charAt(2*i + 7), 16)); in addrToInet() 370 retval[i + 1] = (byte) ((Character.digit(s.charAt(2*i + 4), 16) << 4) in addrToInet() 371 + Character.digit(s.charAt(2*i + 5), 16)); in addrToInet() 372 retval[i + 2] = (byte) ((Character.digit(s.charAt(2*i + 2), 16) << 4) in addrToInet() 373 + Character.digit(s.charAt(2*i + 3), 16)); in addrToInet() 374 retval[i + 3] = (byte) ((Character.digit(s.charAt(2*i), 16) << 4) in addrToInet() 375 + Character.digit(s.charAt(2*i + 1), 16)); in addrToInet()
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | MarkResetConsole.java | 40 if (text.charAt(i) == '\n') { in print() 44 rowContent.append(text.charAt(i)); in print()
|
D | Strings.java | 119 result.append(String.format("U+%04X", (int) cs.charAt(i))); in escapeCodePoint()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | RawResourceTest.java | 51 + " expected " + expectedString.charAt(curIndex) in verifyTextAsset() 53 buffer[i], expectedString.charAt(curIndex)); in verifyTextAsset()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | HceUtils.java | 62 data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) in hexStringToBytes() 63 + Character.digit(s.charAt(i+1), 16)); in hexStringToBytes()
|
/cts/tools/dasm/src/dasm/ |
D | Scanner.java | 62 char charAt(int idx) { in charAt() method in Scanner.CharBuffer 292 if (str.charAt(0) == '$') { in next_token() 297 switch (s.charAt(0)) { in next_token() 468 if (charBuf.charAt(0) != '.') // directive? in readNumber()
|
D | Utils.java | 102 if (signature.charAt(i) == '/') { in getClassMethodSignatureFromString()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | MetaKeyKeyListenerTest.java | 61 assertEquals('0', content.charAt(0)); in testPressKey() 67 assertEquals('2', content.charAt(1)); in testPressKey() 73 assertEquals('3', content.charAt(3)); in testPressKey() 87 assertEquals(str.charAt(0), content.charAt(0)); in testReleaseKey() 93 assertEquals(str.charAt(1), content.charAt(1)); in testReleaseKey() 99 assertEquals(str.charAt(3), content.charAt(3)); in testReleaseKey() 455 public char charAt(int index) { in charAt() method in MetaKeyKeyListenerTest.MockSpannable
|
D | EditorState.java | 92 final char ch = token.charAt(1); in setByString()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 130 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties() 131 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
|
/cts/hostsidetests/api/src/com/android/cts/api/ |
D | DexAnalyzer.java | 67 if (name.charAt(i) == '[') { in toCanonicalName() 75 final char firstChar = name.charAt(arrayDepth); in toCanonicalName() 131 return ref.getType().charAt(0) == '['; in isArray() 137 return primitiveTypes.containsKey(name.charAt(0)); in isPrimitiveType() 138 } else if (name.charAt(0) == '[') { in isPrimitiveType() 139 return primitiveTypes.containsKey(name.replaceAll("\\[+", "").charAt(0)); in isPrimitiveType()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApiClass.java | 227 type.charAt(0) >= 'A' && in isGenericType() 228 type.charAt(0) <= 'Z'; in isGenericType()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ReportLogDeviceInfoStore.java | 52 if (nextLine == null && currentLine.charAt(currentLine.length() - 1) == '}') { in open()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | ProcessStatsDumpsysTest.java | 198 char s = tag.charAt(0); in checkTag() 204 char m = tag.charAt(1); in checkTag() 210 char p = tag.charAt(2); in checkTag()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteStatementTest.java | 314 char c1 = src.charAt(i*2); in parseBlob() 315 char c2 = src.charAt(i*2+1); in parseBlob()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | XmlUtils.java | 104 if ('-' == nm.charAt(0)) { in convertValueToInt() 109 if ('0' == nm.charAt(index)) { in convertValueToInt() 114 char c = nm.charAt(index + 1); in convertValueToInt() 124 else if ('#' == nm.charAt(index)) in convertValueToInt() 149 if ('0' == value.charAt(index)) { in parseUnsignedIntAttribute() 154 char c = value.charAt(index + 1); in parseUnsignedIntAttribute() 163 } else if ('#' == value.charAt(index)) { in parseUnsignedIntAttribute()
|