| /cts/tests/tests/graphics/src/android/graphics/text/cts/ |
| D | MeasuredTextTest.java | 62 String text = "Hello, World"; in testBuilder() local 75 String text = "Hello, World"; in testBuilder_FromExistingMeasuredText() local 84 String text = "Hello, World"; in testBuilder_FromExistingMeasuredText_differentLayoutParam() local 94 String text = "Hello, World"; in testBuilder_FromExistingMeasuredText_differentHyphenationParam() local 115 String text = "Hello, World"; in testBuilder_NullPaint() local 121 String text = "Hello, World"; in testGetWidth() local 133 String text = "Hello, World"; in testGetWidth_StartSmallerThanZero() local 142 String text = "Hello, World"; in testGetWidth_StartLargerThanLength() local 151 String text = "Hello, World"; in testGetWidth_EndSmallerThanZero() local 160 String text = "Hello, World"; in testGetWidth_EndLargerThanLength() local [all …]
|
| D | HyphenationTest.java | 61 final String text = "zastavila zastavila zastavila zastavila"; in testAfrikaansPattern() local 84 final String text = "vazhduar vazhduar vazhduar vazhduar"; in testAlbanianPattern() local 110 final String text = "መጋበዛቸውን መጋበዛቸውን መጋበዛቸውን መጋበዛቸውን መጋበዛቸውን"; in testAmharicPattern() local 133 final String text = "epidemiologická epidemiologická epidemiologická"; in testCzechPattern() local 162 final String text = "beschuldigt beschuldigt beschuldigt beschuldigt"; in testDutchPattern() local 185 final String text = "hyphenation hyphenation hyphenation hyphenation"; in testEnglishPattern() local 208 final String text = "tecnoloxía tecnoloxía tecnoloxía"; in testGalicianPattern() local 228 final String text = "ინფორმაციით ინფორმაციით ინფორმაციით ინფორმაციით"; in testGeorgianPattern() local 252 final String text = "εργαζόμενους εργαζόμενους εργαζόμενους"; in testGreekPattern() local 275 final String text = "Assicurati Assicurati Assicurati Assicurati"; in testItalianPattern() local [all …]
|
| D | LineBreakerTest.java | 141 final String text = "Hello, World."; in testLineBreak_Simple() local 164 final String text = "abc defg hijkl"; in testLineBreak_Simple2() local 196 final String text = "abc defg hijkl"; in testLineBreak_Simple3() local 240 final String text = "abc defg hijkl"; in testLineBreak_Simple_NotRectangle() local 273 final String text = "ab\u00ADc de\u00ADfg hi\u00ADjkl"; in testLineBreak_Simple_Hyphenation() local 319 final String text = "abc defg hijkl"; in testLineBreak_Simple_Styled() local 360 final String text = "abc defg hijkl"; in testLineBreak_Simple_Styled2() local 395 final String text = "abc defg hijkl"; in testLineBreak_Simple_indents() local 428 final String text = "abc defg hijkl"; in testLineBreak_Simple_indents2() local 468 final String text = "abc de\tfg hijkl"; in testLineBreak_Simple_tabStop() local [all …]
|
| D | TextRunShaperTest.java | 56 String text = "Hello, World."; in shapeText() local 92 String text = "Hello, World."; in shapeText_differentPaint() local 121 String text = "\u0645\u0631\u062D\u0628\u0627"; in shapeText_context() local 138 String text = "Hello, World."; in shapeText_twoAPISameResult() local 167 String text = "Hello, Emoji: \uD83E\uDE90"; // Usually emoji is came from ColorEmoji font. in shapeText_multiLanguage() local 241 String text = "Hello, World."; in positionedGlyphs_IllegalArgument_glyphID() local 254 String text = "Hello, World."; in resultTest_IllegalArgument_font() local 267 String text = "Hello, World."; in resultTest_IllegalArgument_X() local 280 String text = "Hello, World."; in resultTest_IllegalArgument_Y() local 289 public void assertSameDrawResult(CharSequence text, TextPaint paint, in assertSameDrawResult()
|
| /cts/tests/tests/text/src/android/text/cts/ |
| D | SelectionTest.java | 45 CharSequence text = "hello, world"; in testGetSelectionStart() local 63 CharSequence text = "hello, world"; in testGetSelectionEnd() local 81 CharSequence text = "hello, world"; in testSetSelection1() local 138 CharSequence text = "hello, world"; in testRemoveSelection() local 158 CharSequence text = "hello, world"; in testSelectAll() local 185 CharSequence text = "hello\nworld"; in testMoveLeft() local 213 CharSequence text = "hello\nworld"; in testMoveRight() local 245 CharSequence text = "Google\nhello,world"; in testMoveUp() local 285 CharSequence text = "aaa\nmm"; in testMoveUpAfterTyping() local 310 CharSequence text = "aa\nm"; in testMoveUpKeepsOriginalMemoryPosition() local [all …]
|
| D | TextRunAdvancesTest.java | 49 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance() local 63 final CharSequence text = "abcde"; in testGetRunCharacterAdvance_charSequence() local 75 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance_LTR() local 87 final char[] text = "\u05D1\u05D0\u05D0\u05D0\u05D0".toCharArray(); in testGetRunCharacterAdvance_RTL() local 99 final char[] text = "\ud83d\ude00abc".toCharArray(); in testGetRunCharacterAdvance_surrogate() local 112 final char[] text = "abc".toCharArray(); in testGetRunCharacterAdvance_advanceIndex() local 123 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance_contextStartOutOfBounds() local 132 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance_contextEndOutOfBounds() local 141 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance_contextStartLargerThanContextEnd() local 150 final char[] text = "abcde".toCharArray(); in testGetRunCharacterAdvance_startOutOfBounds() local [all …]
|
| D | TextShaperTest.java | 54 private List<Pair<PositionedGlyphs, TextPaint>> shapeText(CharSequence text, TextPaint paint) { in shapeText() 68 String text = "Hello, World."; in shapeText_noStyle() local 89 SpannableString text = new SpannableString("Hello, World."); in shapeText_multiStyle() local 117 public void assertSameDrawResult(CharSequence text, TextPaint paint, in assertSameDrawResult() 186 SpannableString text = new SpannableString("こんにちは Android."); in testDrawConsistencyMultiStyle() local 218 SpannableString text = new SpannableString("مرحبا, Android."); in testDrawConsistencyBidiMultiStyle() local 232 SpannableString text = new SpannableString("Hello, العالمية"); in testDrawConsistencyBidi2MultiStyle() local
|
| D | LayoutFillCharacterBoundsTest.java | 52 private static StaticLayout getStaticLayout(CharSequence text, int width) { in getStaticLayout() 60 final String text = "aabb"; in staticLayout_fillCharacterBounds_LTR() local 76 final String text = "abab"; in staticLayout_fillCharacterBounds_LTR_multiline() local 94 final String text = "\u05D0\u05D0\u05D1\u05D1"; in staticLayout_fillCharacterBounds_RTL() local 110 final String text = "\u05D1\u05D0\u05D1\u05D0"; in staticLayout_fillCharacterBounds_RTL_multiline() local 128 final String text = "abab"; in boringLayout_fillCharacterBounds() local
|
| D | GraphemeClusterSegmentFinderTest.java | 40 String text = "abc"; in singleCharacterGraphemes() local 48 String text = "\uD83D\uDE00a\uD83D\uDE00b"; in surrogates() local 56 String text = "\uD83C\uDDFA\uD83C\uDDF8ab"; in countryCodeFlag() local
|
| D | SpannableStringTest.java | 61 String text = "test valueOf"; in testValueOf() local 78 String text = "hello, world"; in testSetSpan() local 133 String text = "hello, world"; in testSubSequence() local 246 final String text = "this is a test!"; in testEquals() local 266 final String text = "this is a test!"; in testEqualsWithPriority() local 286 final String text = "this is a test!"; in testEqualsWithDifferentSequence() local
|
| D | SpannedStringTest.java | 47 String text = "test valueOf"; in testValueOf() local 62 String text = "hello, world"; in testSubSequence() local
|
| D | SpannableStringBuilderTest.java | 175 CharSequence text = "hi"; in testReplace1() local 208 CharSequence text = "ahiabc"; in testReplace2() local 284 CharSequence text = builder.subSequence(0, 2); in testSubSequence() local 626 String text = "p_in_s"; in testGetSpans_returnsEmptyIfSetSpanIsNotCalled() local 707 String text = "p_in_s"; in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local 725 String text = "p_in_s"; in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local 752 String text = "p_in_s"; in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local 778 final String text = "this is a test!"; in testEquals() local 799 final String text = "this is a test!"; in testEqualsWithPriority() local 820 final String text = "this is a test!"; in testEqualsWithDifferentSequence() local [all …]
|
| /cts/tests/tests/text/src/android/text/style/cts/ |
| D | UnderlineSpanTest.java | 95 private float textWidth(CharSequence text) { in textWidth() 108 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth() local 116 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth() local 124 final SpannableString text = new SpannableString("P. P."); in testDoesntAffectWidth() local 132 final SpannableString text = new SpannableString("P. P."); in testDoesntAffectWidth() local 151 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_safeSubclass() local 171 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_noUnderlineSubclass() local 195 final SpannableString text = new SpannableString("P."); in testAffectsWidth_ElegantSubclass() local
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| D | MultiAutoCompleteTextViewTest.java | 180 String text = "Android test."; in testPerformFiltering() local 199 String text = "CTS."; in testReplaceText() local 215 public int findTokenStart(CharSequence text, int cursor) { in findTokenStart() 232 public int findTokenEnd(CharSequence text, int cursor) { in findTokenEnd() 247 public CharSequence terminateToken(CharSequence text) { in terminateToken() 276 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() 280 protected void performFiltering(CharSequence text, int start, int end, int keyCode) { in performFiltering() 284 protected void replaceText(CharSequence text) { in replaceText()
|
| D | TextViewMouseInteractionTest.java | 116 final String text = "Android"; in testFloatingToolbarByTouch() local 135 final String text = "Android"; in testFloatingToolbarByMouse() local
|
| /cts/tests/tests/text/src/android/text/method/cts/ |
| D | TextKeyListenerTest.java | 103 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanAdded() local 153 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanChanged() local 168 CharSequence text = "123456"; in testClear() local 181 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanRemoved() local 219 String text = mTextView.getText().toString(); in testPressKey() local 235 final String text = "abcd"; in testOnKeyOther() local
|
| /cts/tests/tests/preference/src/android/preference/cts/ |
| D | TestUtils.java | 99 void tapOnViewWithText(String text) { in tapOnViewWithText() 110 boolean isTextShown(String text) { in isTextShown() 118 boolean isTextHidden(String text) { in isTextHidden() 122 boolean isTextFocused(String text) { in isTextFocused() 175 private UiObject2 getTextObject(String text) { in getTextObject() 180 private boolean scrollToAndGetTextObject(String text) { in scrollToAndGetTextObject()
|
| /cts/tests/tests/widget/src/android/widget/cts/util/ |
| D | ListItemFactory.java | 154 public static View button(int position, Context context, String text, int desiredHeight) { in button() 175 public static View convertButton(View convertView, String text, int position) { in convertButton() 194 public static View text(int position, Context context, String text, int desiredHeight) { in text() method in ListItemFactory 215 public static View convertText(View convertView, String text, int position) { in convertText() 235 public static View doubleText(int position, Context context, String text, int desiredHeight) { in doubleText() 277 public static View convertDoubleText(View convertView, String text, int position) { in convertDoubleText()
|
| /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
| D | CanvasTests.java | 598 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextNegativeIndex() local 606 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextNegativeCount() local 614 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextTextLengthTooSmall() local 680 final String text = "android"; in testDrawTextRunNegativeIndex() local 691 final String text = "android"; in testDrawTextRunNegativeCount() local 701 final String text = "android"; in testDrawTextRunContestIndexTooLarge() local 711 final String text = "android"; in testDrawTextRunContestIndexTooSmall() local 722 final String text = "android"; in testDrawTextRunIndexTooLarge() local 734 final String text = "android"; in testDrawTextRunNegativeContextStart() local 745 final String text = "android"; in testDrawTextRunStartLessThanContextStart() local [all …]
|
| /cts/tests/smartspace/src/android/smartspace/cts/ |
| D | TextTest.java | 41 Text text = new Text.Builder("test").build(); in testCreateText_defaultValues() local 58 Text text = new Text.Builder("test") in testCreateText_marqueeTrunctAtType_maxLinesTwo() local
|
| /cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20223/src/android/security/cts/CVE_2022_20223/ |
| D | DeviceTest.java | 77 String text = res.getString( in testAppRestrictionsFragment() local 103 String text = in testAppRestrictionsFragment() local 121 String text = in testAppRestrictionsFragment() local
|
| /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
| D | AccessibilityTextActionTest.java | 132 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() local 161 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToSetTextAction() local 187 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditText_shouldExposeAndRespondToSetTextAction() local 280 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textViewShouldProvideWhenRequested() local 298 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() local 352 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_withRequestPreparer_shouldHoldOffUntilReady() local 409 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_withUnresponsiveRequestPreparer_shouldTimeout() local 454 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocation_testLocationBoundary_locationShouldBeLimitationLength() local 480 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToImeEnterAction() local 618 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in findSingleSpanInViewWithText() local [all …]
|
| D | AccessibilityTextTraversalTest.java | 115 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() local 331 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityWordOverContentDescription() local 547 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverText() local 798 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local 1288 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityWordOverText() local 1539 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityWordOverEditTextWithContentDescription() local 1795 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityWordOverTextExtend() local 2281 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityLineOverText() local 2537 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityLineOverTextExtend() local 3023 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityParagraphOverText() local [all …]
|
| /cts/tests/tests/text/src/android/text/util/cts/ |
| D | Rfc822TokenizerTest.java | 53 String text = ", " + token1 + "\",\"" + token2 + ";" + token3 + " <;>" + token4; in testFindTokenStart() local 121 String text = "text"; in testTerminateToken() local 134 String text = "\"Berg\" (home) <berg\\@example.com>, tom\\@example.com (work)"; in testTokenize() local 158 String text = "\"Berg\" (home) <berg\\@example.com>, tom\\@example.com (work)"; in testTokenize_withListParam() local
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/controls/ |
| D | ControlsPanelTestUtils.java | 30 private static CharSequence addImage(Context context, CharSequence text, float height) { in addImage() 46 CharSequence text = context.getString(R.string.controls_panel_general_test_instructions); in createOpenPanelInstructions() local
|