/cts/tests/tests/util/src/android/util/cts/ |
D | StringBuilderPrinterTest.java | 42 assertEquals(' ', str.charAt(5)); in testStringBuilderPrinter() 43 assertEquals('A', str.charAt(6)); in testStringBuilderPrinter() 44 assertEquals('n', str.charAt(7)); in testStringBuilderPrinter() 45 assertEquals('d', str.charAt(8)); in testStringBuilderPrinter() 46 assertEquals('r', str.charAt(9)); in testStringBuilderPrinter() 47 assertEquals('o', str.charAt(10)); in testStringBuilderPrinter() 48 assertEquals('i', str.charAt(11)); in testStringBuilderPrinter() 49 assertEquals('d', str.charAt(12)); in testStringBuilderPrinter()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SecurityPatchTest.java | 57 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(0))); in testSecurityPatchFormat() 58 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(1))); in testSecurityPatchFormat() 59 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(2))); in testSecurityPatchFormat() 60 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(3))); in testSecurityPatchFormat() 61 assertEquals(error, '-', buildSecurityPatch.charAt(4)); in testSecurityPatchFormat() 62 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(5))); in testSecurityPatchFormat() 63 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(6))); in testSecurityPatchFormat() 64 assertEquals(error, '-', buildSecurityPatch.charAt(7)); in testSecurityPatchFormat() 65 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(8))); in testSecurityPatchFormat() 66 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(9))); in testSecurityPatchFormat()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AlphabetIndexerTest.java | 60 assertEquals(ALPHABET.charAt(0), ((String[]) sections)[0].charAt(0)); in testAlphabetIndexer() 61 assertEquals(ALPHABET.charAt(1), ((String[]) sections)[1].charAt(0)); in testAlphabetIndexer() 62 assertEquals(ALPHABET.charAt(ALPHABET.length() - 2), in testAlphabetIndexer() 63 ((String[]) sections)[ALPHABET.length() - 2].charAt(0)); in testAlphabetIndexer() 64 assertEquals(ALPHABET.charAt(ALPHABET.length() - 1), in testAlphabetIndexer() 65 ((String[]) sections)[ALPHABET.length() - 1].charAt(0)); in testAlphabetIndexer()
|
D | MultiAutoCompleteTextViewTest.java | 217 while (i > 0 && (text.charAt(i - 1) == ' ' || text.charAt(i - 1) == ',')) { in findTokenStart() 221 while (i > 0 && text.charAt(i - 1) != ',') { in findTokenStart() 225 while (i < cursor && text.charAt(i) == ' ') { in findTokenStart() 237 if (text.charAt(i) == ',') { in findTokenEnd() 250 while (i > 0 && text.charAt(i - 1) == ' ') { in terminateToken() 254 if (i > 0 && text.charAt(i - 1) == ',') { in terminateToken()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AlteredCharSequenceTest.java | 44 assertEquals('i', mAlteredCharSequence.charAt(0)); in testCharAt() 45 assertEquals('s', mAlteredCharSequence.charAt(1)); in testCharAt() 47 assertEquals('c', mAlteredCharSequence.charAt(2)); in testCharAt() 48 assertEquals('d', mAlteredCharSequence.charAt(3)); in testCharAt() 55 mAlteredCharSequence.charAt(-1); in testCharAtTooLow() 62 mAlteredCharSequence.charAt(mAlteredCharSequence.length() + 1); in testCharAtTooHigh() 175 public char charAt(int index) { in charAt() method in AlteredCharSequenceTest.MockSpanned
|
D | SpannedTest.java | 55 assertEquals('\uD83D', spanned.charAt(0)); in testCharAt() 56 assertEquals('\uDE00', spanned.charAt(1)); in testCharAt() 59 spanned.charAt(-1); in testCharAt() 65 spanned.charAt(spanned.length()); in testCharAt()
|
D | PrecomputedTextTest.java | 200 assertEquals('H', s.charAt(0)); in testCharSequenceInteface() 201 assertEquals('e', s.charAt(1)); in testCharSequenceInteface() 202 assertEquals('l', s.charAt(2)); in testCharSequenceInteface() 203 assertEquals('l', s.charAt(3)); in testCharSequenceInteface() 204 assertEquals('o', s.charAt(4)); in testCharSequenceInteface() 205 assertEquals(',', s.charAt(5)); in testCharSequenceInteface() 210 assertEquals('H', s3.charAt(0)); in testCharSequenceInteface() 211 assertEquals('e', s3.charAt(1)); in testCharSequenceInteface() 212 assertEquals('l', s3.charAt(2)); in testCharSequenceInteface()
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 265 retval[i] = (byte) ((Character.digit(s.charAt(2*i + 6), 16) << 4) in addrToInet() 266 + Character.digit(s.charAt(2*i + 7), 16)); in addrToInet() 267 retval[i + 1] = (byte) ((Character.digit(s.charAt(2*i + 4), 16) << 4) in addrToInet() 268 + Character.digit(s.charAt(2*i + 5), 16)); in addrToInet() 269 retval[i + 2] = (byte) ((Character.digit(s.charAt(2*i + 2), 16) << 4) in addrToInet() 270 + Character.digit(s.charAt(2*i + 3), 16)); in addrToInet() 271 retval[i + 3] = (byte) ((Character.digit(s.charAt(2*i), 16) << 4) in addrToInet() 272 + Character.digit(s.charAt(2*i + 1), 16)); in addrToInet()
|
/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/identity/src/android/security/identity/cts/ |
D | HkdfTest.java | 47 result.append(chars.charAt(val / 16)); in hexEncode() 48 result.append(chars.charAt(val % 16)); in hexEncode() 61 int hi = Character.digit(hex.charAt(2 * i), 16); in hexDecode() 62 int lo = Character.digit(hex.charAt(2 * i + 1), 16); in hexDecode()
|
/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/text/src/android/text/method/cts/ |
D | MetaKeyKeyListenerTest.java | 62 assertEquals('0', content.charAt(0)); in testPressKey() 68 assertEquals('2', content.charAt(1)); in testPressKey() 74 assertEquals('3', content.charAt(3)); in testPressKey() 88 assertEquals(str.charAt(0), content.charAt(0)); in testReleaseKey() 94 assertEquals(str.charAt(1), content.charAt(1)); in testReleaseKey() 100 assertEquals(str.charAt(3), content.charAt(3)); in testReleaseKey() 456 public char charAt(int index) { in charAt() method in MetaKeyKeyListenerTest.MockSpannable
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | IccUtils.java | 64 ret[i/2] = (byte) ((hexCharToInt(s.charAt(i)) << 4) | hexCharToInt(s.charAt(i+1))); in hexStringToBytes()
|
/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 | 65 data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) in hexStringToBytes() 66 + Character.digit(s.charAt(i+1), 16)); in hexStringToBytes()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | XmlApiParser.java | 168 if (value.charAt(0) == '\'' && value.charAt(len - 1) == '\'') { in loadFieldInfo() 552 if (str.charAt(start) == '"') { in unescapeFieldStringValue() 556 if (str.charAt(end - 1) == '"') { in unescapeFieldStringValue() 577 final char c = str.charAt(i); in unescapeFieldStringValue()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 113 public char charAt(int index) { in charAt() method in RegexUtils.TimeoutCharSequence 118 return chars.charAt(index); in charAt()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | ClassUtils.java | 76 if (name.charAt(i) == TYPE_ARRAY) { in getCanonicalName() 84 final char firstChar = name.charAt(arrDimension); in getCanonicalName()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 137 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties() 138 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApiClass.java | 245 type.charAt(0) >= 'A' && in isGenericType() 246 type.charAt(0) <= 'Z'; in isGenericType()
|
/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/content/src/android/content/cts/util/ |
D | XmlUtils.java | 106 if ('-' == nm.charAt(0)) { in convertValueToInt() 111 if ('0' == nm.charAt(index)) { in convertValueToInt() 116 char c = nm.charAt(index + 1); in convertValueToInt() 126 else if ('#' == nm.charAt(index)) in convertValueToInt() 151 if ('0' == value.charAt(index)) { in parseUnsignedIntAttribute() 156 char c = value.charAt(index + 1); in parseUnsignedIntAttribute() 165 } else if ('#' == value.charAt(index)) { in parseUnsignedIntAttribute()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | XmlUtils.java | 103 if ('-' == nm.charAt(0)) { in convertValueToInt() 108 if ('0' == nm.charAt(index)) { in convertValueToInt() 113 char c = nm.charAt(index + 1); in convertValueToInt() 123 else if ('#' == nm.charAt(index)) in convertValueToInt() 148 if ('0' == value.charAt(index)) { in parseUnsignedIntAttribute() 153 char c = value.charAt(index + 1); in parseUnsignedIntAttribute() 162 } else if ('#' == value.charAt(index)) { in parseUnsignedIntAttribute()
|
/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()
|