Home
last modified time | relevance | path

Searched refs:CharSequence (Results 1 – 25 of 210) sorted by relevance

123456789

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSupportMessageTest.java36 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/
DTagVerifier.java33 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/
DSwitchPreferenceTest.java70 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()
DDialogPreferenceTest.java61 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()
DListPreferenceTest.java40 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/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java55 CharSequence testInitialText = createTestText(TEST_TEXT_LENGTH); in testEditorInfo()
140 final CharSequence testInitialText = createTestText(/* size= */ 10); in testInitialSurroundingText_passwordTypes_notObtain()
181 final CharSequence testText = createTestText(TEST_TEXT_LENGTH); in testInitialSurroundingText_cursorAtHead_emptyBeforeCursorText()
199 final CharSequence testText = createTestText(TEST_TEXT_LENGTH); in testInitialSurroundingText_cursorAtTail_emptyAfterCursorText()
217 final CharSequence testText = createTestText(TEST_TEXT_LENGTH); in testInitialSurroundingText_noSelection_emptySelectionText()
235 final CharSequence testText = createTestText(OVER_SIZED_TEXT_LENGTH); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
242 final CharSequence beforeCursor = testText.subSequence(offset, in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
244 final CharSequence afterCursor = testText.subSequence(info.initialSelEnd, in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
246 final CharSequence surroundingText = TextUtils.concat(beforeCursor, afterCursor); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
262 final CharSequence subText = createTestText(TEST_TEXT_LENGTH); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
[all …]
DBaseInputConnectionTest.java124 CharSequence str = "TestCommit "; in testOpTextMethods()
134 CharSequence expected = str.subSequence(strLength - offLength, strLength); in testOpTextMethods()
162 CharSequence str = "TestFinish"; in testFinishComposingText()
199 private static BaseInputConnection createConnectionWithSelection(CharSequence source) { in createConnectionWithSelection()
222 final CharSequence source = clearSelection ? initialState
232 final CharSequence expectedString = clearSelection ? expectedState
316 final CharSequence source = InputConnectionTestUtils.formatString(initialState);
320 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
448 final CharSequence source = "0123456789";
496 final CharSequence source = InputConnectionTestUtils.formatString("123456789[]");
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLayoutTest.java37 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()
DInputFilter_LengthFilterTest.java37 CharSequence source; in testFilter()
65 CharSequence beforeFilterSource = "TestLengthFilter"; in testFilter()
67 CharSequence actualAfterFilter = lengthFilter.filter(beforeFilterSource, 0, in testFilter()
DSelectionTest.java45 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 …]
DAlteredCharSequenceTest.java101 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()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DCharSequenceMatcher.java20 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()
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java102 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 …]
DFilterTest.java124 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()
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/
DBiometricManagerTest.java72 final CharSequence biometricLabel = mBiometricManager.getStrings(BIOMETRIC_WEAK) in test_getButtonLabel_isDifferentForDistinctAuthTypes()
74 final CharSequence credentialLabel = mBiometricManager.getStrings(DEVICE_CREDENTIAL) in test_getButtonLabel_isDifferentForDistinctAuthTypes()
86 final CharSequence biometricOrCredentialLabel = mBiometricManager.getStrings( in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
88 final CharSequence biometricLabel = in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
90 final CharSequence credentialLabel = mBiometricManager.getStrings( in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType()
101 final CharSequence biometricMessage = mBiometricManager.getStrings(BIOMETRIC_WEAK) in test_getPromptMessage_isDifferentForDistinctAuthTypes()
103 final CharSequence credentialMessage = mBiometricManager.getStrings(DEVICE_CREDENTIAL) in test_getPromptMessage_isDifferentForDistinctAuthTypes()
114 final CharSequence biometricMessage = mBiometricManager.getStrings(BIOMETRIC_WEAK) in test_getPromptMessage_isDifferentForBiometricsIfCredentialAllowed()
116 final CharSequence bioOrCredMessage = mBiometricManager.getStrings( in test_getPromptMessage_isDifferentForBiometricsIfCredentialAllowed()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DTestCompanion.java77 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/app/src/android/app/cts/
DRemoteInputTest.java67 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()
/cts/tests/tests/media/src/android/media/cts/
DAudioPresentationTest.java39 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/
DOrganizationInfoTest.java71 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/autofillservice/src/android/autofillservice/cts/testcore/
DMultipleTimesTextWatcher.java42 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/contactsprovider/src/android/provider/cts/contacts/
DContacts_PhonesTest.java25 CharSequence label = "label"; in testGetDisplayLabel()
32 CharSequence label = "label"; in testGetDisplayLabelCharSequenceArray()
33 CharSequence[] labelArray = new CharSequence[] { in testGetDisplayLabelCharSequenceArray()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEvent.java40 CharSequence, enumConstant
75 if (object instanceof CharSequence) { in getReturnTypeFromObject()
76 return ReturnType.CharSequence; in getReturnTypeFromObject()
147 case CharSequence: in toBundle()
193 case CharSequence: in fromBundle()
350 public CharSequence getReturnCharSequenceValue() { in getReturnCharSequenceValue()
354 if (mReturnType == ReturnType.CharSequence || mReturnType == ReturnType.String in getReturnCharSequenceValue()
356 return (CharSequence) mReturnValue; in getReturnCharSequenceValue()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java103 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/
DCharacterPickerDialogTest.java56 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()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DImeCommandReceiver.java43 void commandCommitText(CharSequence text, int newCursorPosition); in commandCommitText()
74 final CharSequence text = getCharSequence1(intent); in onReceive()
109 private static CharSequence getCharSequence1(Intent intent) { in getCharSequence1()

123456789