/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SupportMessageTest.java | 36 static final CharSequence EMPTY = ""; 37 static final CharSequence SIMPLE = "short-message-short"; 38 static final CharSequence MAX_LENGTH = 40 static final CharSequence TOO_LONG = 42 static final CharSequence UNICODE = new String(Character.toChars(0x1F634)) + " zzz"; 43 static final CharSequence CONTAINS_NULL = "short\0null"; 46 static final CharSequence EMPTY = ""; 47 static final CharSequence SIMPLE = "long-message-long"; 48 static final CharSequence LONG = 50 static final CharSequence UNICODE = new String(Character.toChars(0x1F609)) + " ;)"; [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | TagVerifier.java | 33 private final CharSequence mExpectedContent; 35 private final CharSequence mActualContent; 39 public Result(CharSequence expectedContent, CharSequence actualContent, boolean isMatch) { in Result() 46 public CharSequence getExpectedContent() { in getExpectedContent() 51 public CharSequence getActualContent() { in getActualContent()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | SwitchPreferenceTest.java | 70 final CharSequence switchOff = "SwitchedOff"; in testSetSwitchTextOff_One() 76 CharSequence switchOffExp = mSwitchPref.getSwitchTextOff(); in testSetSwitchTextOff_One() 81 final CharSequence switchOffExp = mResources.getString( in testSetSwitchTextOff_Two() 83 CharSequence switchOff = mSwitchPref.getSwitchTextOff(); in testSetSwitchTextOff_Two() 88 final CharSequence switchOn = "SwitchedOff"; in testSetSwitchTextOn_One() 94 CharSequence switchOnExp = mSwitchPref.getSwitchTextOn(); in testSetSwitchTextOn_One() 99 final CharSequence switchOnExp = mResources.getString( in testSetSwitchTextOn_Two() 102 CharSequence switchOn = mSwitchPref.getSwitchTextOn(); in testSetSwitchTextOn_Two()
|
D | DialogPreferenceTest.java | 61 CharSequence dialogMessage = mDialogPreference.getDialogMessage(); in testGetDialogMessage() 62 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage() 68 CharSequence positiveButtonText = mDialogPreference.getPositiveButtonText(); in testGetPositiveButtonText() 69 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText() 75 CharSequence negativeButtonText = mDialogPreference.getNegativeButtonText(); in testGetNegativeButtonText() 76 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
|
D | ListPreferenceTest.java | 40 String[] entries = convertToStringArray((CharSequence[]) mListPref.getEntries()); in testGetEntries() 47 String[] entryValues = convertToStringArray((CharSequence[]) mListPref.getEntryValues()); in testGetEntryValues() 58 private synchronized String[] convertToStringArray(CharSequence[] array) { in convertToStringArray()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextViewTest.java | 102 private void setText(final MultiAutoCompleteTextView m, final CharSequence c) { in setText() 142 when(validator.isValid(any(CharSequence.class))).thenReturn(true); in testPerformValidation() 143 when(validator.fixText(any(CharSequence.class))).thenAnswer( in testPerformValidation() 144 new Answer<CharSequence>() { in testPerformValidation() 146 public CharSequence answer(InvocationOnMock invocation) throws Throwable { in testPerformValidation() 148 return (CharSequence) invocation.getArguments()[0]; in testPerformValidation() 160 when(validator.isValid(any(CharSequence.class))).thenReturn(false); in testPerformValidation() 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() [all …]
|
D | FilterTest.java | 124 private CharSequence mPerformFilteringConstraint; 125 private CharSequence mPublishResultsConstraint; 145 public CharSequence getPerformFilteringConstraint() { in getPerformFilteringConstraint() 151 public CharSequence getPublishResultsConstraint() { in getPublishResultsConstraint() 170 protected FilterResults performFiltering(CharSequence constraint) { in performFiltering() 179 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults()
|
D | AbsSpinnerTest.java | 93 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testSetSelectionIntBoolean() 116 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testSetSelectionInt() 138 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testAccessAdapter() 170 ArrayAdapter<CharSequence> adapter1 = ArrayAdapter.createFromResource(mActivity, in testGetCount() 176 CharSequence anotherStringArray[] = { "another array string 1", "another array string 2" }; in testGetCount() 177 ArrayAdapter<CharSequence> adapter2 = new ArrayAdapter<>(mActivity, in testGetCount() 246 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testOnSaveAndRestoreInstanceState()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutTest.java | 37 CharSequence textShort = "test"; in testGetDesiredWidthRange() 38 CharSequence textLonger = "test\ngetDesiredWidth"; in testGetDesiredWidthRange() 39 CharSequence textLongest = "test getDesiredWidth"; in testGetDesiredWidthRange() 54 CharSequence textShort = "test"; in testGetDesiredWidth() 55 CharSequence textLonger = "test\ngetDesiredWidth"; in testGetDesiredWidth() 56 CharSequence textLongest = "test getDesiredWidth"; in testGetDesiredWidth()
|
D | SelectionTest.java | 45 CharSequence text = "hello, world"; in testGetSelectionStart() 63 CharSequence text = "hello, world"; in testGetSelectionEnd() 81 CharSequence text = "hello, world"; in testSetSelection1() 138 CharSequence text = "hello, world"; in testRemoveSelection() 158 CharSequence text = "hello, world"; in testSelectAll() 185 CharSequence text = "hello\nworld"; in testMoveLeft() 213 CharSequence text = "hello\nworld"; in testMoveRight() 245 CharSequence text = "Google\nhello,world"; in testMoveUp() 285 CharSequence text = "aaa\nmm"; in testMoveUpAfterTyping() 310 CharSequence text = "aa\nm"; in testMoveUpKeepsOriginalMemoryPosition() [all …]
|
D | AlteredCharSequenceTest.java | 101 CharSequence source = SOURCE_STR; in testLength() 113 CharSequence source = SOURCE_STR; in testMake() 131 CharSequence source = SOURCE_STR; in testSubSequence() 146 CharSequence source = SOURCE_STR; in testToString() 183 public CharSequence subSequence(int start, int end) { in subSequence()
|
D | InputFilter_LengthFilterTest.java | 37 CharSequence source; in testFilter() 65 CharSequence beforeFilterSource = "TestLengthFilter"; in testFilter() 67 CharSequence actualAfterFilter = lengthFilter.filter(beforeFilterSource, 0, in testFilter()
|
D | StaticLayoutLineBreakingTest.java | 79 private static StaticLayout getStaticLayout(CharSequence source, int width, in getStaticLayout() 89 private static int[] getBreaks(CharSequence source) { in getBreaks() 93 private static int[] getBreaks(CharSequence source, int width, int breakStrategy) { in getBreaks() 103 private static void debugLayout(CharSequence source, StaticLayout staticLayout) { in debugLayout() 117 private static void layout(CharSequence source, int[] breaks) { in layout() 121 private static void layout(CharSequence source, int[] breaks, int width) { in layout() 151 private static void layoutMaxLines(CharSequence source, int[] breaks, int maxLines) { in layoutMaxLines() 202 private static CharSequence spanify(String text) { in spanify()
|
/cts/tests/app/src/android/app/cts/ |
D | RemoteInputTest.java | 67 CharSequence[] choices = new CharSequence[2]; in testRemoteInputBuilder_setDataAndTextAndChoices() 88 .setChoices(new CharSequence[]{"first", "second"}) in testRemoteInputBuilder_setEditChoicesBeforeSending() 123 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetTextResultsFromIntent() 137 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst() 152 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentTextFirst() 172 CharSequence charSequence = "value doesn't matter"; in testGetResultsSource_addDataAndTextResults() 192 CharSequence charSequence = "value doesn't matter"; in testGetResultsSource_setSourceAndAddDataAndTextResults() 205 CharSequence charSequence) { in addTextResultsToIntent() 219 private static void verifyIntentHasTextResults(Intent intent, CharSequence expected) { in verifyIntentHasTextResults() 239 CharSequence[] choices = new CharSequence[2]; in newChoicesOnlyRemoteInput()
|
D | AlertDialog_BuilderTest.java | 72 private final CharSequence mTitle = "title"; 76 private CharSequence mSelectedItem; 412 final CharSequence[] levels = mContext.getResources().getTextArray( in testSetItemsWithParamInt() 419 final CharSequence[] expect = mContext.getResources().getTextArray( in testSetItemsWithParamCharSequence() 453 final CharSequence[] items = mContext.getResources().getTextArray( in testSetMultiChoiceItemsWithParamInt() 463 mSelectedItem = (CharSequence)mListView.getSelectedItem(); in testSetMultiChoiceItemsWithParamInt() 478 final CharSequence[] items = mContext.getResources().getTextArray( in testSetMultiChoiceItemsWithParamCharSequence() 487 mSelectedItem = (CharSequence)mListView.getSelectedItem(); in testSetMultiChoiceItemsWithParamCharSequence() 503 final CharSequence[] items = mContext.getResources().getTextArray( in testSetSingleChoiceItemsWithParamInt() 513 mSelectedItem = (CharSequence)mListView.getSelectedItem(); in testSetSingleChoiceItemsWithParamInt() [all …]
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | TestCompanion.java | 77 protected void fail(@NonNull CharSequence error) { in fail() 93 protected void updateStatus(@NonNull CharSequence status) { in updateStatus() 127 void onStatusUpdate(@NonNull CharSequence status); in onStatusUpdate() 129 void onFail(@NonNull CharSequence error); in onFail() 155 mObserver.onFail((CharSequence)msg.obj); in handleMessage() 161 mObserver.onStatusUpdate((CharSequence)msg.obj); in handleMessage()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CharSequenceMatcher.java | 20 final class CharSequenceMatcher implements ArgumentMatcher<CharSequence> { 21 private final CharSequence mExpected; 23 CharSequenceMatcher(CharSequence expected) { in CharSequenceMatcher() 28 public boolean matches(CharSequence actual) { in matches()
|
D | MultipleTimesTextWatcher.java | 42 private final CharSequence mExpected; 45 CharSequence expectedAutofillValue) { in MultipleTimesTextWatcher() 53 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() 57 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPresentationTest.java | 39 final Map<Locale, CharSequence> LABELS = generateLabels(); in testGetters() 67 final Map<Locale, CharSequence> LABELS = generateLabels(); in testEqualsAndHashCode() 127 .setLabels(new HashMap<ULocale, CharSequence>())).build(); in testEqualsAndHashCode() 185 private static Map<Locale, CharSequence> generateLabels() { in generateLabels() 186 Map<Locale, CharSequence> result = new HashMap<Locale, CharSequence>(); in generateLabels() 193 private static Map<ULocale, CharSequence> localeToULocale(Map<Locale, CharSequence> locales) { in localeToULocale() 194 Map<ULocale, CharSequence> ulocaleLabels = new HashMap<ULocale, CharSequence>(); in localeToULocale() 195 for (Map.Entry<Locale, CharSequence> entry : locales.entrySet()) { in localeToULocale()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | OrganizationInfoTest.java | 71 CharSequence organizationName = mDevicePolicyManager.getOrganizationName( in testDefaultOrganizationNameIsNull() 77 CharSequence previousOrganizationName = mDevicePolicyManager.getOrganizationName( in testSetOrganizationName() 81 final CharSequence name = "test-set-name"; in testSetOrganizationName() 83 CharSequence organizationName = mDevicePolicyManager.getOrganizationName( in testSetOrganizationName()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEvent.java | 40 CharSequence, enumConstant 74 if (object instanceof CharSequence) { in getReturnTypeFromObject() 75 return ReturnType.CharSequence; in getReturnTypeFromObject() 143 case CharSequence: in toBundle() 186 case CharSequence: in fromBundle() 340 public CharSequence getReturnCharSequenceValue() { in getReturnCharSequenceValue() 344 if (mReturnType != ReturnType.CharSequence) { in getReturnCharSequenceValue() 347 return (CharSequence) mReturnValue; in getReturnCharSequenceValue()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | Contacts_PhonesTest.java | 25 CharSequence label = "label"; in testGetDisplayLabel() 32 CharSequence label = "label"; in testGetDisplayLabelCharSequenceArray() 33 CharSequence[] labelArray = new CharSequence[] { in testGetDisplayLabelCharSequenceArray()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | BaseInputConnectionTest.java | 121 CharSequence str = "TestCommit "; in testOpTextMethods() 131 CharSequence expected = str.subSequence(strLength - offLength, strLength); in testOpTextMethods() 159 CharSequence str = "TestFinish"; in testFinishComposingText() 196 private static BaseInputConnection createConnectionWithSelection(CharSequence source) { in createConnectionWithSelection() 212 final CharSequence source = InputConnectionTestUtils.formatString(initialState); 216 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); 290 final CharSequence source = InputConnectionTestUtils.formatString(initialState); 294 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); 422 final CharSequence source = "0123456789";
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 103 private static class TimeoutCharSequence implements CharSequence { 105 CharSequence chars = null; 107 TimeoutCharSequence(CharSequence chars, long timeout) { in TimeoutCharSequence() 127 public CharSequence subSequence(int start, int end) { in subSequence()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | CharacterPickerDialogTest.java | 56 final CharSequence str = "123456"; in testConstructor() 65 final CharSequence str = "123456"; in testConstructorNullContext() 75 final CharSequence str = "123456"; in testOnItemClick() 117 final CharSequence str = "123456"; in testOnClick()
|