Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DGraphemeClusterSegmentFinderTest.java61 private void assertSegments(SegmentFinder segmentFinder, int[] segments) { in assertSegments() argument
67 while (index < segments.length - 1 && currentStart != DONE && currentEnd != DONE) { in assertSegments()
68 assertThat(currentStart).isEqualTo(segments[index++]); in assertSegments()
69 assertThat(currentEnd).isEqualTo(segments[index++]); in assertSegments()
78 assertThat(index).isEqualTo(segments.length); in assertSegments()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DUriHelper.java108 final List<String> segments = uri.getPathSegments(); in UriHelper() local
109 mTable = segments.get(0); in UriHelper()
110 mId = (segments.size() >= 2) ? segments.get(1) : null; in UriHelper()
/cts/tests/tests/os/src/android/os/cts/
DBuildVersionTest.java133 String[] segments = fingerprint.split("/"); in verifyFingerprintStructure() local
134 assertEquals("Build fingerprint does not match expected format", 6, segments.length); in verifyFingerprintStructure()
136 String[] devicePlatform = segments[2].split(":"); in verifyFingerprintStructure()
139 assertTrue(segments[4].contains(":")); in verifyFingerprintStructure()
140 String buildVariant = segments[4].split(":")[1]; in verifyFingerprintStructure()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java168 final List<String> segments = uri.getPathSegments(); in delete() local
169 if (segments.size() != 2) { in delete()
173 final String namespace = segments.get(0); in delete()
174 final String key = segments.get(1); in delete()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTextBoundsInfoTest.java369 private static void assertSegments(int[] segments, SegmentFinder segmentFinder, in assertSegments() argument
373 while (index < segments.length && segments[index] < start) { in assertSegments()
380 assertThat(index >= segments.length).isTrue(); in assertSegments()
384 while (segmentEnd != SegmentFinder.DONE && segmentEnd <= end && index < segments.length) { in assertSegments()
387 assertThat(segmentStart).isEqualTo(segments[index++]); in assertSegments()
388 assertThat(segmentEnd).isEqualTo(segments[index++]); in assertSegments()
396 if (index < segments.length) { in assertSegments()
397 assertThat(segments[index + 1]).isGreaterThan(end); in assertSegments()