Home
last modified time | relevance | path

Searched refs:START (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextSelectionTest.java52 private static final int START = 5; field in TextSelectionTest
64 final TextSelection.Builder originalBuilder = new TextSelection.Builder(START, END) in testTextSelection()
76 assertThat(selection.getSelectionStartIndex()).isEqualTo(START); in testTextSelection()
117 TextSelection original = new TextSelection.Builder(START, END).build(); in testTextSelection_defaultValues()
136 final TextSelection selection = new TextSelection.Builder(START, END) in testTextSelection_prunedConfidenceScore()
155 new TextSelection.Builder(START, 0 /* end */) in testTextSelection_invalidEndParams()
161 final TextSelection selection = new TextSelection.Builder(START, END).build(); in testTextSelection_entityIndexOutOfBounds()
169 new TextSelection.Request.Builder(TEXT, START, END) in testTextSelectionRequest()
181 assertThat(request.getStartIndex()).isEqualTo(START); in testTextSelectionRequest()
193 new TextSelection.Request.Builder(TEXT, START, END) in testTextSelectionRequest_nullValues()
[all …]
DTextLinksTest.java60 private static final int START = 5; field in TextLinksTest
79 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_ADDRESS, 1.0f)) in testTextLinks_full()
80 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_PHONE, 1.0f), in testTextLinks_full()
106 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_ADDRESS, 1.0f)) in testTextLinks_clearTextLinks()
116 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_ADDRESS, 1.0f)) in testTextLinks_apply()
134 assertEquals(START, textLink.getStart()); in testTextLinks_apply()
155 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyReplace()
157 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_ADDRESS, 1.0f)) in testTextLinks_applyStrategyReplace()
177 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyIgnore()
179 .addLink(START, END, Collections.singletonMap(TextClassifier.TYPE_ADDRESS, 1.0f)) in testTextLinks_applyStrategyIgnore()
[all …]
DTextClassificationTest.java57 private static final int START = 5; field in TextClassificationTest
178 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest()
190 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest_nullValues()
201 new TextClassification.Request.Builder(TEXT, START, END).build(); in testTextClassificationRequest_defaultValues()
DTextClassifierTest.java71 private static final int START = 1; field in TextClassifierTest
78 new TextSelection.Request.Builder(TEXT, START, END)
82 new TextClassification.Request.Builder(TEXT, START, END)
163 assertValidResult(mClassifier.suggestSelection(TEXT, START, END, LOCALES)); in testSuggestSelectionWith4Param()
173 assertValidResult(mClassifier.classifyText(TEXT, START, END, LOCALES)); in testClassifyTextWith4Param()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrix_ScaleToFitTest.java36 assertEquals(ScaleToFit.START,scaleToFits[1]); in testValues()
44 assertEquals(ScaleToFit.START,ScaleToFit.valueOf("START")); in testValueOf()
52 assertEquals(ScaleToFit.START, ScaleToFit.valueOf(ScaleToFit.class, "START")); in testValueOf2()
DMatrixTest.java493 mMatrix.setRectToRect(r1, r2, ScaleToFit.START); in testSetRectToRect()
501 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.START)); in testSetRectToRect()
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java570 final int START = 0; in unescapeFieldStringValue() local
576 int state = START; in unescapeFieldStringValue()
581 case START: in unescapeFieldStringValue()
592 state = START; in unescapeFieldStringValue()
596 state = START; in unescapeFieldStringValue()
600 state = START; in unescapeFieldStringValue()
604 state = START; in unescapeFieldStringValue()
608 state = START; in unescapeFieldStringValue()
612 state = START; in unescapeFieldStringValue()
616 state = START; in unescapeFieldStringValue()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java98 final int START = 0xffFF8080; in testArgbEvaluator() local
100 int aSTART = Color.alpha(START); in testArgbEvaluator()
101 int rSTART = Color.red(START); in testArgbEvaluator()
102 int gSTART = Color.green(START); in testArgbEvaluator()
103 int bSTART = Color.blue(START); in testArgbEvaluator()
111 int result = (Integer) evaluator.evaluate(0, START, END); in testArgbEvaluator()
121 result = (Integer) evaluator.evaluate(.5f, START, END); in testArgbEvaluator()
139 result = (Integer) evaluator.evaluate(1, START, END); in testArgbEvaluator()
/cts/tools/cts-api-coverage/proto/
Dtestsuite.proto15 // [START declaration]
20 // [START java_declaration]
25 // [START messages]
/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java125 Gravity.apply(Gravity.START, 2, 10, mInRect, mOutRect); in testApply()
130 Gravity.apply(Gravity.START, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
135 applyGravity(Gravity.START, 2, 10, false /* LTR direction */); in testApply()
140 applyGravity(Gravity.START, 2, 10, true /* RTL direction */); in testApply()
345 verifyOneGravity(Gravity.LEFT, Gravity.START, false); in testGetAbsoluteGravity()
346 verifyOneGravity(Gravity.RIGHT, Gravity.START, true); in testGetAbsoluteGravity()
/cts/tests/tests/transition/src/android/transition/cts/
DSlideEdgeTest.java47 { Gravity.START, "START" },
207 case Gravity.START: in verifyMovement()
235 moveGreater = in == (slideEdge == Gravity.START || slideEdge == Gravity.LEFT); in verifyMovement()
/cts/tests/tests/text/src/android/text/cts/
DDynamicLayoutTest.java96 TextUtils.TruncateAt.START, in testConstructors()
120 TextUtils.TruncateAt.START, in testEllipsis_singlelineNotEllipsized()
142 TextUtils.TruncateAt.START, in testEllipsis_multilineNotEllipsized()
170 TextUtils.TruncateAt.START, in testEllipsis_transformedNotEllipsized()
397 createBuilderWithDefaults(text).setEllipsize(TextUtils.TruncateAt.START).build(); in testEllipsis_notAffectedByPreviousEllipsization()
DBoringLayoutTest.java109 TextUtils.TruncateAt.START, in testConstructors()
182 TextUtils.TruncateAt.START, in testReplaceOrMake()
330 TextUtils.TruncateAt.START, in testMake()
DTextUtilsTest.java101 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis()
517 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START).toString()); in testEllipsize()
540 assertEquals("", TextUtils.ellipsize(text, p, textWidth, TruncateAt.START).toString()); in testEllipsize()
567 final TextUtils.TruncateAt[] kinds = {TextUtils.TruncateAt.START, in testEllipsize_emoji()
602 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START, false, in testEllipsizeCallback()
611 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START, true, in testEllipsizeCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DHifiUltrasoundTestActivity.java50 START, RECORDING, DONE, PLAYER enumConstant
55 private Status status = Status.START;
139 case START: in onCreate()
DHifiUltrasoundSpeakerTestActivity.java53 START, RECORDING, DONE, PLAYER enumConstant
58 private Status status = Status.START;
159 case START: in onCreate()
/cts/tools/release-parser/proto/
Drelease.proto15 // [START declaration]
20 // [START java_declaration]
25 // [START messages]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perfetto/
DPerfettoTests.java219 1, AppBreadcrumbReported.State.START.ordinal())); in startPerfettoTrace()
259 .START in getStatsdConfig()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DAtomTestUtils.java54 AppBreadcrumbReported.State.START.ordinal()); in sendAppBreadcrumbReportedAtom()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java106 90, 40, Gravity.START | Gravity.TOP)); in testMovingWhiteSurfaceView()
/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayoutTest.java148 assertEquals(Gravity.BOTTOM | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
167 assertEquals(Gravity.CENTER_VERTICAL | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
DSpinnerTest.java308 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.START)); in verifyGravity()
309 assertEquals(Gravity.START, spinner.getGravity()); in verifyGravity()
DEditTextTest.java286 mEditText1.setEllipsize(TextUtils.TruncateAt.START); in testSetEllipsize()
287 assertSame(TextUtils.TruncateAt.START, mEditText1.getEllipsize()); in testSetEllipsize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java45 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMediaParserTest.java484 mediaParser.seek(MediaParser.SeekPoint.START); in testTsBigBuckBunny()

12