Home
last modified time | relevance | path

Searched refs:getIndex (Results 1 – 25 of 73) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DStringCharacterIteratorTest.java238 assertEquals(0, fixture.getIndex()); in testGetIndex()
240 assertEquals(1, fixture.getIndex()); in testGetIndex()
243 assertEquals(2, fixture.getIndex()); in testGetIndex()
245 assertEquals(2, fixture.getIndex()); in testGetIndex()
270 assertEquals(0, fixture.getIndex()); in test_next()
272 assertEquals(1, fixture.getIndex()); in test_next()
274 assertEquals(2, fixture.getIndex()); in test_next()
276 assertEquals(3, fixture.getIndex()); in test_next()
278 assertEquals(4, fixture.getIndex()); in test_next()
280 assertEquals(5, fixture.getIndex()); in test_next()
[all …]
DParsePositionTest.java31 assertTrue("Initialization failed.", pp1.getIndex() == Integer.MIN_VALUE); in test_ConstructorI()
63 assertTrue("getIndex failed.", pp.getIndex() == Integer.MAX_VALUE); in test_getIndex()
91 assertEquals("setErrorIndex failed.", 4564, pp.getIndex()); in test_setIndexI()
DAttributedCharacterIteratorTest.java89 assertEquals("Wrong first", 0, it.getIndex()); in test_getIndex()
91 assertEquals("Wrong second", 1, it.getIndex()); in test_getIndex()
94 assertEquals("Wrong last", 10, it.getIndex()); in test_getIndex()
96 assertEquals("Wrong final", 11, it.getIndex()); in test_getIndex()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneOffsetParser.java101 assertEquals(pos.getIndex(), 1); in test_parse_exactMatch_UTC()
108 assertEquals(pos.getIndex(), 1); in test_parse_startStringMatch_UTC()
115 assertEquals(pos.getIndex(), 6); in test_parse_midStringMatch_UTC()
122 assertEquals(pos.getIndex(), 6); in test_parse_endStringMatch_UTC()
130 assertEquals(pos.getIndex(), 0); in test_parse_exactMatch_UTC_EmptyUTC()
137 assertEquals(pos.getIndex(), 0); in test_parse_startStringMatch_UTC_EmptyUTC()
144 assertEquals(pos.getIndex(), 5); in test_parse_midStringMatch_UTC_EmptyUTC()
151 assertEquals(pos.getIndex(), 5); in test_parse_endStringMatch_UTC_EmptyUTC()
235 assertEquals(pos.getIndex(), parse.length()); in test_parse_exactMatch()
243 assertEquals(pos.getIndex(), parse.length()); in test_parse_startStringMatch()
[all …]
DTestTextParser.java112 assertEquals(pos.getIndex(), 9); in test_parse_midStr()
120 assertEquals(pos.getIndex(), 3); in test_parse_remainderIgnored()
252 assertEquals(pos.getIndex(), input.length()); in test_parseText()
259 assertEquals(pos.getIndex(), input.length()); in test_parseNumber()
267 assertEquals(pos.getIndex(), input.length()); in test_parseStandaloneText()
275 assertEquals(pos.getIndex(), input.length()); in test_parseDayOfWeekText()
296 assertEquals(pos.getIndex(), input.length()); in test_parse_strict_caseInsensitive_parseUpper()
317 assertEquals(pos.getIndex(), input.length()); in test_parse_strict_caseInsensitive_parseLower()
327 assertEquals(pos.getIndex(), 7); in test_parse_full_strict_full_match()
349 assertEquals(pos.getIndex(), 3); in test_parse_short_strict_full_match()
[all …]
DTestSettingsParser.java99 assertEquals(pos.getIndex(), 0); in test_parse_changeStyle_sensitive()
106 assertEquals(pos.getIndex(), 0); in test_parse_changeStyle_insensitive()
113 assertEquals(pos.getIndex(), 0); in test_parse_changeStyle_strict()
120 assertEquals(pos.getIndex(), 0); in test_parse_changeStyle_lenient()
DTestReducedParser.java133 assertEquals(pos.getIndex(), 3); in test_parse_fieldRangeIgnored()
194 assertEquals(ppos.getIndex(), parseLen, "parse position"); in test_parseAllStrict()
208 assertEquals(ppos.getIndex(), parseLen, "parse position"); in test_parseAllLenient()
281 assertEquals(ppos.getIndex(), strict.parseLen, "parse position"); in test_parseStrict()
296 assertEquals(ppos.getIndex(), strict.parseLen, "parse position"); in test_parseStrict_baseDate()
314 assertEquals(ppos.getIndex(), lenient.parseLen, "parse position"); in test_parseLenient()
329 assertEquals(ppos.getIndex(), lenient.parseLen, "parse position"); in test_parseLenient_baseDate()
379 assertEquals(ppos.getIndex(), parseLen, "parse position"); in test_parseAdjacent()
462 assertEquals(pos.getIndex(), input.length(), "Input not parsed completely"); in test_reducedWithLateChronoChange()
485 assertEquals(pos.getIndex(), input.length(), "Input not parsed completely: " + pos); in test_reducedWithLateChronoChangeTwice()
DTestFractionPrinterParser.java247 assertEquals(pos.getIndex(), result.length()); in test_reverseParse()
255 assertEquals(pos.getIndex(), result.length()); in test_reverseParse_noDecimalPoint()
265 assertEquals(pos.getIndex(), result.length()); in test_reverseParse_followedByNonDigit()
283 assertEquals(pos.getIndex(), result.length() + 1); in test_reverseParse_preceededByNonDigit()
299 assertEquals(pos.getIndex(), result.length()); in test_reverseParse_seconds()
DTestCharLiteralParser.java110 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success()
112 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success()
DTestStringLiteralParser.java113 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success()
115 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java34 assertEquals(0, e.getIndex()); in testPatternSyntaxException()
45 assertEquals(0, e.getIndex()); in testPatternSyntaxException()
56 assertEquals(0, e.getIndex()); in testPatternSyntaxException()
67 assertEquals(0, e.getIndex()); in testPatternSyntaxException()
76 assertEquals(-1, e.getIndex()); in testPatternSyntaxException()
84 assertEquals(0, e.getIndex()); in testPatternSyntaxException()
97 assertEquals(1, e.getIndex()); in testCase()
108 assertEquals(3, e.getIndex()); in testCase2()
143 assertEquals(initPatternSyntaxException.getIndex(),
144 dserPatternSyntaxException.getIndex());
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatAttributes.java83 public int getIndex(String uri, String localName) { in getIndex() method in ExpatAttributes
94 return getIndex(pointer, uri, localName); in getIndex()
97 public int getIndex(String qName) { in getIndex() method in ExpatAttributes
115 return getIndex(uri, localName) == -1 ? null : CDATA; in getType()
119 return getIndex(qName) == -1 ? null : CDATA; in getType()
151 private static native int getIndex(long attributePointer, String uri, String localName); in getIndex() method in ExpatAttributes
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAdjacencyList.java137 if (v.getIndex() != -1) { in buildList()
140 if (theList.get(v.getIndex()).size() != 0) in buildList()
208 if (v.getIndex() != -1) { in buildList()
209 if (theList.get(v.getIndex()).size() != 0) { in buildList()
215 success = buildList(theList, v.getIndex(), bs); in buildList()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DAttributesImplTest.java147 assertEquals(0, multi.getIndex("http://some.uri", "foo")); in testGetIndexStringString()
148 assertEquals(1, multi.getIndex("http://some.uri", "bar")); in testGetIndexStringString()
149 assertEquals(2, multi.getIndex("http://some.other.uri", "answer")); in testGetIndexStringString()
152 assertEquals(-1, multi.getIndex("john", "doe")); in testGetIndexStringString()
155 assertEquals(-1, multi.getIndex("http://some.uri", null)); in testGetIndexStringString()
156 assertEquals(-1, multi.getIndex(null, "foo")); in testGetIndexStringString()
161 assertEquals(0, multi.getIndex("ns1:foo")); in testGetIndexString()
162 assertEquals(1, multi.getIndex("ns1:bar")); in testGetIndexString()
163 assertEquals(2, multi.getIndex("ns2:answer")); in testGetIndexString()
164 assertEquals(4, multi.getIndex("gabba:hey")); in testGetIndexString()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKPadPrinterParser.java133 assertEquals(pos.getIndex(), expectedIndex); in test_parseStrict()
174 assertEquals(pos.getIndex(), expectedIndex); in test_parseLenient()
189 assertEquals(pos.getIndex(), 0); in test_parse_decoratedStartsWithPad()
198 assertEquals(pos.getIndex(), 3); in test_parse_decoratedStartsWithPad_number()
209 assertEquals(pos.getIndex(), 4); in test_parse_decoratedEmpty_strict()
218 assertEquals(pos.getIndex(), 4); in test_parse_decoratedEmpty_lenient()
DTCKChronoPrinterParser.java124 assertEquals(pos.getIndex(), expected.getId().length()); in test_parseValid_caseSensitive()
133 assertEquals(pos.getIndex(), 0); in test_parseValid_caseSensitive_lowercaseRejected()
142 assertEquals(pos.getIndex(), expected.getId().length()); in test_parseValid_caseInsensitive()
162 assertEquals(pos.getIndex(), 0); in test_parseInvalid()
DTCKZoneIdPrinterParser.java215 assertEquals(pos.getIndex(), expectedIndex, "Incorrect index parsing: " + text); in test_parseSuccess_plain()
232 assertEquals(pos.getIndex(), expectedIndex + 3, "Incorrect index parsing: " + prefixText); in test_parseSuccess_prefix()
248 assertEquals(pos.getIndex(), expectedIndex, "Incorrect index parsing: " + suffixText); in test_parseSuccess_suffix()
265 assertEquals(pos.getIndex(), 0); in test_parseSuccess_caseSensitive()
269 assertEquals(pos.getIndex(), expectedIndex, "Incorrect index parsing: " + lcText); in test_parseSuccess_caseSensitive()
287 assertEquals(pos.getIndex(), expectedIndex, "Incorrect index parsing: " + lcText); in test_parseSuccess_caseInsensitive()
DTCKDateTimeFormatterBuilder.java743 assertEquals(pp.getIndex(), 5); in test_adjacent_strict_firstFixedWidth()
755 assertEquals(pp.getIndex(), 6); in test_adjacent_strict_firstVariableWidth_success()
777 assertEquals(pp.getIndex(), 5); in test_adjacent_lenient()
789 assertEquals(pp.getIndex(), 6); in test_adjacent_lenient_firstVariableWidth_success()
812 assertEquals(pp.getIndex(), 7); in test_adjacent_strict_fractionFollows()
825 assertEquals(pp.getIndex(), 6); in test_adjacent_strict_fractionFollows_2digit()
838 assertEquals(pp.getIndex(), 4); in test_adjacent_strict_fractionFollows_0digit()
850 assertEquals(pp.getIndex(), 7); in test_adjacent_lenient_fractionFollows()
863 assertEquals(pp.getIndex(), 6); in test_adjacent_lenient_fractionFollows_2digit()
876 assertEquals(pp.getIndex(), 4); in test_adjacent_lenient_fractionFollows_0digit()
/libcore/ojluni/src/main/java/java/beans/
DIndexedPropertyChangeEvent.java71 public int getIndex() { in getIndex() method in IndexedPropertyChangeEvent
76 sb.append("; index=").append(getIndex()); in appendTo()
/libcore/luni/src/test/java/tests/security/cert/
DCertPathValidatorExceptionTest.java206 assertEquals("getIndex() must be -1", tE.getIndex(), -1); in testCertPathValidatorException10()
260 assertEquals("getIndex() must return -1", tE.getIndex(), -1); in testCertPathValidatorException12()
329 assertEquals("getIndex() must return -1", tE.getIndex(), -1); in testCertPathValidatorException14()
400 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
404 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
409 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
412 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
416 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
420 assertEquals("getIndex() must be equals -1", -1, tE.getIndex()); in testCertPathValidatorException16()
456 assertEquals(1, exception.getIndex()); in testCertPathValidatorException_constructsCorrectlyWithReason()
/libcore/luni/src/test/java/libcore/java/nio/file/
DInvalidPathExceptionTest.java31 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
38 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
83 assertEquals(-1, exception.getIndex()); in test_Constructor$String$String()
/libcore/luni/src/main/java/org/xml/sax/ext/
DAttributes2Impl.java102 int index = getIndex (uri, localName); in isDeclared()
118 int index = getIndex (qName); in isDeclared()
156 int index = getIndex (uri, localName); in isSpecified()
176 int index = getIndex (qName); in isSpecified()
/libcore/luni/src/main/java/org/xml/sax/
DAttributes.java184 public int getIndex (String uri, String localName); in getIndex() method
194 public int getIndex (String qName); in getIndex() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURISyntaxExceptionTest.java53 assertEquals("returned incorrect index", 2, e.getIndex()); in test_ConstructorLjava_lang_StringLjava_lang_StringI()
78 assertEquals("returned incorrect index", -1, e.getIndex()); in test_ConstructorLjava_lang_StringLjava_lang_String()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAbstractPollSelectorImpl.java74 pollWrapper.putEventOps(sk.getIndex(), ops); in putEventOps()
93 assert(ski.getIndex() != -1); in implClose()
170 int i = ski.getIndex(); in implDereg()

123