Home
last modified time | relevance | path

Searched refs:START (Results 1 – 25 of 33) 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.java61 private static final int START = 5; field in TextClassificationTest
184 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest()
198 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest_nullValues()
209 new TextClassification.Request.Builder(TEXT, START, END).build(); in testTextClassificationRequest_defaultValues()
/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.java506 mMatrix.setRectToRect(r1, r2, ScaleToFit.START); in testSetRectToRect()
514 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioMicrophoneMuteToggleActivity.java43 START, RECORDING, DONE, PLAYER enumConstant
48 private Status mStatus = Status.START;
95 case START: in onCreate()
DHifiUltrasoundTestActivity.java50 START, RECORDING, DONE, PLAYER enumConstant
55 private Status status = Status.START;
148 case START: in onCreate()
DHifiUltrasoundSpeakerTestActivity.java53 START, RECORDING, DONE, PLAYER enumConstant
58 private Status status = Status.START;
168 case START: in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java127 Gravity.apply(Gravity.START, 2, 10, mInRect, mOutRect); in testApply()
132 Gravity.apply(Gravity.START, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
137 applyGravity(Gravity.START, 2, 10, false /* LTR direction */); in testApply()
142 applyGravity(Gravity.START, 2, 10, true /* RTL direction */); in testApply()
347 verifyOneGravity(Gravity.LEFT, Gravity.START, false); in testGetAbsoluteGravity()
348 verifyOneGravity(Gravity.RIGHT, Gravity.START, true); in testGetAbsoluteGravity()
/cts/tests/tests/car/src/android/car/cts/
DVehicleIgnitionStateTest.java39 assertThat(VehicleIgnitionState.toString(VehicleIgnitionState.START)).isEqualTo("START"); in testToString()
/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.java97 TextUtils.TruncateAt.START, in testConstructors()
121 TextUtils.TruncateAt.START, in testEllipsis_singlelineNotEllipsized()
143 TextUtils.TruncateAt.START, in testEllipsis_multilineNotEllipsized()
171 TextUtils.TruncateAt.START, in testEllipsis_transformedNotEllipsized()
398 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.java108 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis()
539 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START).toString()); in testEllipsize()
562 assertEquals("", TextUtils.ellipsize(text, p, textWidth, TruncateAt.START).toString()); in testEllipsize()
590 final TextUtils.TruncateAt[] kinds = {TextUtils.TruncateAt.START, in testEllipsize_emoji()
626 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START, false, in testEllipsizeCallback()
635 TextUtils.ellipsize(text, p, textWidth, TruncateAt.START, true, in testEllipsizeCallback()
/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.java325 1, AppBreadcrumbReported.State.START.ordinal())); in startPerfettoTrace()
365 .START in getStatsdConfig()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DAtomTestUtils.java59 AppBreadcrumbReported.State.START.ordinal(), /*label=*/ 1); in sendAppBreadcrumbReportedAtom()
/cts/tests/tests/widget/src/android/widget/cts/
DSpinnerTest.java367 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.START)); in verifyGravity()
368 assertEquals(Gravity.START, spinner.getGravity()); in verifyGravity()
DRelativeLayoutTest.java156 assertEquals(Gravity.BOTTOM | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
175 assertEquals(Gravity.CENTER_VERTICAL | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
DEditTextTest.java315 mEditText1.setEllipsize(TextUtils.TruncateAt.START); in testSetEllipsize()
316 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.java483 mediaParser.seek(MediaParser.SeekPoint.START); in testTsBigBuckBunny()

12