Home
last modified time | relevance | path

Searched refs:getText (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/aosp14/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DClientTest.java70 app_id.getText().toString(), in onCreate()
71 cont.getText().toString(), in onCreate()
72 pkg.getText().toString(), in onCreate()
73 cls.getText().toString(), in onCreate()
82 pkg.getText().toString(), in onCreate()
83 cls.getText().toString(), in onCreate()
105 app_id.getText().toString(), in onCreate()
106 cont.getText().toString(), in onCreate()
107 pkg.getText().toString(), in onCreate()
108 cls.getText().toString()); in onCreate()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewProcessTextTest.java63 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
65 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable()
74 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
83 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultCancel()
85 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel()
90 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultCancel()
99 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityNoData()
101 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
105 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityNoData()
H A DEditorCursorTest.java121 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
127 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
132 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
140 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
146 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
151 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
159 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
165 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
170 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
178 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withRtlAlgorithm()
[all …]
/aosp14/frameworks/base/core/java/android/widget/
H A DDialerFilter.java131 if (mLetters.getText().length() == mDigits.getText().length()) { in onKeyDown()
137 if (mDigits.getText().length() == mLetters.getText().length()) { in onKeyDown()
287 lettersText = mLetters.getText(); in swapPrimaryAndHint()
292 digitsText = mDigits.getText(); in swapPrimaryAndHint()
303 return mLetters.getText(); in getLetters()
311 return mDigits.getText(); in getDigits()
350 text = mLetters.getText(); in clearText()
353 text = mDigits.getText(); in clearText()
371 CharSequence text = mDigits.getText(); in setDigitsWatcher()
387 text = mLetters.getText(); in removeFilterWatcher()
[all …]
H A DEditText.java134 public Editable getText() { in getText() method in EditText
135 CharSequence text = super.getText(); in getText()
144 return (Editable) super.getText(); in getText()
156 Selection.setSelection(getText(), start, stop); in setSelection()
163 Selection.setSelection(getText(), index); in setSelection()
170 Selection.selectAll(getText()); in selectAll()
177 Selection.extendSelection(getText(), index); in extendSelection()
254 Spannable spannable = getText(); in performStylingAction()
H A DMultiAutoCompleteTextView.java119 Editable text = getText(); in enoughToFilter()
147 Editable e = getText(); in performValidation()
148 int i = getText().length(); in performValidation()
194 int start = mTokenizer.findTokenStart(getText(), end); in replaceText()
196 Editable editable = getText(); in replaceText()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/media/
H A DAudioPoliciesDeviceRouteControllerTest.java77 when(mResources.getText(anyInt())).thenReturn(ROUTE_NAME_DEFAULT); in setUp()
101 when(mResources.getText(R.string.default_audio_route_name_headphones)) in getDeviceRoute_audioRouteHasChanged_returnsRouteFromAudioService()
115 when(mResources.getText(R.string.default_audio_route_name_dock_speakers)) in getDeviceRoute_selectDevice_returnsSelectedRoute()
127 when(mResources.getText(R.string.default_audio_route_name_headphones)) in getDeviceRoute_hasSelectedAndAudioServiceRoutes_returnsSelectedRoute()
129 when(mResources.getText(R.string.default_audio_route_name_dock_speakers)) in getDeviceRoute_hasSelectedAndAudioServiceRoutes_returnsSelectedRoute()
145 when(mResources.getText(R.string.default_audio_route_name_headphones)) in getDeviceRoute_unselectRoute_returnsAudioServiceRoute()
147 when(mResources.getText(R.string.default_audio_route_name_dock_speakers)) in getDeviceRoute_unselectRoute_returnsAudioServiceRoute()
165 when(mResources.getText(R.string.default_audio_route_name_headphones)) in getDeviceRoute_selectRouteFails_returnsAudioServiceRoute()
196 when(mResources.getText(R.string.default_audio_route_name_headphones)) in updateVolume_noSelectedRoute_deviceRouteVolumeChanged()
212 when(mResources.getText(R.string.default_audio_route_name_headphones)) in updateVolume_connectSelectedRouteLater_selectedRouteVolumeChanged()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DAppEntitiesHeaderControllerTest.java75 assertThat(view.getText()).isEqualTo(mContext.getText(R.string.expand_button_title)); in setHeaderTitleRes_setTextRes_shouldSetToTitleView()
83 assertThat(view.getText()).isEqualTo(mContext.getText(R.string.expand_button_title)); in setHeaderDetailsRes_setTextRes_shouldSetToDetailsView()
91 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_onlyDetailsTextSet_shouldSetToDetailsView()
100 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView()
137 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex0_shouldShowAppView1()
138 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex0_shouldShowAppView1()
152 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex1_shouldShowAppView2()
153 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex1_shouldShowAppView2()
167 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex2_shouldShowAppView3()
168 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex2_shouldShowAppView3()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DDropBoxTest.java119 assertEquals("TES", e2.getText(3)); in testAddText()
145 assertTrue(null == e.getText(80));
209 assertTrue(null == e2.getText(80));
213 assertTrue(null == e3.getText(80));
321 assertEquals(null, e3.getText(80)); in testAddEntriesInTheFuture()
344 assertEquals(null, e3.getText(80)); in testAddEntriesInTheFuture()
416 assertEquals("A0", a0.getText(80)); in testGetNextEntry()
417 assertEquals("A1", a1.getText(80)); in testGetNextEntry()
420 assertEquals("B0", b0.getText(80)); in testGetNextEntry()
425 assertEquals("A0", x0.getText(80)); in testGetNextEntry()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSSecurityFooterTest.java185 buttonConfig.getText()); in testManagedOwnerName()
204 buttonConfig.getText()); in testManagedFinancedDeviceWithOwnerName()
260 buttonConfig.getText()); in testNetworkLoggingEnabled_deviceOwner()
271 buttonConfig.getText()); in testNetworkLoggingEnabled_deviceOwner()
284 buttonConfig.getText()); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOn()
304 buttonConfig.getText()); in testManagedCACertsInstalled()
317 buttonConfig.getText()); in testManagedOneVpnEnabled()
328 buttonConfig.getText()); in testManagedOneVpnEnabled()
365 buttonConfig.getText()); in testNetworkLoggingAndVpnEnabled()
458 buttonConfig.getText()); in testProfileOwnerOfOrganizationOwnedDeviceNoName()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DRemoteInputNotificationRebuilderTest.java84 assertEquals(text, messages[0].getText()); in testRebuildWithRemoteInput_noExistingInput_image()
97 assertEquals("A Reply", messages[0].getText()); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
112 assertEquals("A Reply", messages[0].getText()); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
135 assertEquals("Reply 2", messages[0].getText()); in testRebuildWithRemoteInput_withExistingInput()
136 assertEquals("A Reply", messages[1].getText()); in testRebuildWithRemoteInput_withExistingInput()
158 assertEquals("Reply 2", messages[0].getText()); in testRebuildWithRemoteInput_withExistingInput_image()
159 assertEquals(text, messages[1].getText()); in testRebuildWithRemoteInput_withExistingInput_image()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener_test.cpp285 EXPECT_THAT(tree.getText(&len), StrEq(u"\\\\d{5}")); in TEST_F()
383 EXPECT_THAT(tree.getText(&len), StrEq(u" A ")); in TEST_F()
389 EXPECT_THAT(tree.getText(&len), StrEq(u"B ")); in TEST_F()
395 EXPECT_THAT(tree.getText(&len), StrEq(u"C ")); in TEST_F()
401 EXPECT_THAT(tree.getText(&len), StrEq(u" D ")); in TEST_F()
407 EXPECT_THAT(tree.getText(&len), StrEq(u" E")); in TEST_F()
413 EXPECT_THAT(tree.getText(&len), StrEq(u" F")); in TEST_F()
419 EXPECT_THAT(tree.getText(&len), StrEq(u" G ")); in TEST_F()
425 EXPECT_THAT(tree.getText(&len), StrEq(u" H ")); in TEST_F()
431 EXPECT_THAT(tree.getText(&len), StrEq(u" I ")); in TEST_F()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardClockAccessibilityDelegate.java55 CharSequence text = ((TextView) host).getText(); in onPopulateAccessibilityEvent()
57 event.getText().add(replaceFancyColon(text)); in onPopulateAccessibilityEvent()
68 if (!TextUtils.isEmpty(info.getText())) { in onInitializeAccessibilityNodeInfo()
69 info.setText(replaceFancyColon(info.getText())); in onInitializeAccessibilityNodeInfo()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
H A DMediaOutputAdapterTest.java157 assertThat(mViewHolder.mTitleText.getText()).isEqualTo(mContext.getText( in onBindViewHolder_bindPairNew_verifyView()
418 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo( in onBindViewHolder_bindDisconnectedBluetoothDevice_verifyView()
435 assertThat(mViewHolder.mSubTitleText.getText()).isEqualTo(mContext.getText( in onBindViewHolder_bindFailedStateDevice_verifyView()
437 assertThat(mViewHolder.mTwoLineTitleText.getText()).isEqualTo(TEST_DEVICE_NAME_2); in onBindViewHolder_bindFailedStateDevice_verifyView()
462 assertThat(mViewHolder.mTwoLineTitleText.getText().toString()).isEqualTo( in subStatusSupported_onBindViewHolder_bindHostDeviceWithOngoingSession_verifyView()
469 String deviceStatus = (String) mContext.getText( in subStatusSupported_onBindViewHolder_bindDeviceRequirePremium_verifyView()
486 assertThat(mViewHolder.mSubTitleText.getText()).isEqualTo(deviceStatus); in subStatusSupported_onBindViewHolder_bindDeviceRequirePremium_verifyView()
493 String deviceStatus = (String) mContext.getText( in subStatusSupported_onBindViewHolder_bindDeviceWithAdPlaying_verifyView()
511 assertThat(mViewHolder.mTwoLineTitleText.getText().toString()).isEqualTo( in subStatusSupported_onBindViewHolder_bindDeviceWithAdPlaying_verifyView()
535 assertThat(mViewHolder.mTwoLineTitleText.getText().toString()).isEqualTo( in subStatusSupported_onBindViewHolder_bindDeviceWithOngoingSession_verifyView()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/debug/
H A DAdbNotificationsTest.java48 CharSequence title = mContext.getResources().getText( in testCreateNotification_UsbTransportType()
50 CharSequence message = mContext.getResources().getText( in testCreateNotification_UsbTransportType()
68 CharSequence title = mContext.getResources().getText( in testCreateNotification_WifiTransportType()
70 CharSequence message = mContext.getResources().getText( in testCreateNotification_WifiTransportType()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DFeedbackInfo.java122 event.getText().add(mContext.getString( in onInitializeAccessibilityEvent()
125 event.getText().add(mContext.getString( in onInitializeAccessibilityEvent()
153 sb.append(mContext.getText(R.string.feedback_alerted)); in getPrompt()
155 sb.append(mContext.getText(R.string.feedback_silenced)); in getPrompt()
157 sb.append(mContext.getText(R.string.feedback_promoted)); in getPrompt()
159 sb.append(mContext.getText(R.string.feedback_demoted)); in getPrompt()
162 sb.append(mContext.getText(R.string.feedback_prompt)); in getPrompt()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DSurroundingTextTest.java41 assertThat(surroundingText1.getText().toString()).isEqualTo("test"); in testSurroundingTextBasicCreation()
47 assertThat(surroundingText2.getText().toString()).isEmpty(); in testSurroundingTextBasicCreation()
53 assertThat(surroundingText3.getText().toString()).isEqualTo("hello"); in testSurroundingTextBasicCreation()
68 assertThat(surroundingText.getText().toString()).isEqualTo("text"); in testSurroundingTextWriteToParcel()
72 assertThat(surroundingTextFromParcel.getText().toString()).isEqualTo("text"); in testSurroundingTextWriteToParcel()
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DQueryController.java65 if (event.getText() != null && event.getText().size() > 0) { in QueryController()
66 if(event.getText().get(0) != null) in QueryController()
67 mLastActivityName = event.getText().get(0).toString(); in QueryController()
72 if (event.getText() != null && event.getText().size() > 0) in QueryController()
73 if(event.getText().get(0) != null) in QueryController()
74 mLastTraversedText = event.getText().get(0).toString(); in QueryController()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardClockAccessibilityDelegateTest.java70 assertFalse(isEmpty(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
71 assertTrue(isAscii(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
81 assertFalse(TextUtils.isEmpty(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
82 assertTrue(isAscii(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
H A DAuthKeyguardMessageAreaTest.java51 assertThat(mKeyguardMessageArea.getText()).isEqualTo("oobleck"); in testShowsTextField()
60 assertThat(mKeyguardMessageArea.getText()).isEqualTo("oobleck"); in testHiddenWhenBouncerHidden()
68 assertThat(mKeyguardMessageArea.getText()).isEqualTo(""); in testClearsTextField()
/aosp14/frameworks/base/core/java/android/content/
H A DSyncActivityTooManyDeletes.java63 getResources().getText(R.string.sync_really_delete), in onCreate()
64 getResources().getText(R.string.sync_undo_deletes), in onCreate()
65 getResources().getText(R.string.sync_do_nothing) in onCreate()
80 getResources().getText(R.string.sync_too_many_deletes_desc); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DKeyguardIndicationTextViewTest.java59 assertThat(mKeyguardIndicationTextView.getText()).isEqualTo(""); in switchIndication_null_hideIndication()
82 assertThat(mKeyguardIndicationTextView.getText()).isEqualTo(""); in switchIndication_emptyText_hideIndication()
90 assertThat(mKeyguardIndicationTextView.getText()).isEqualTo("test_indication"); in switchIndication_newText_updateProperly()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DMessagingTextMessage.java75 mPrecomputedText = PrecomputedText.create(message.getText(), getTextMetricsParams()); in setMessage()
77 setText(message.getText()); in setMessage()
155 : getState().getMessage().getText());
163 setText(getState().getMessage().getText());
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DTextViewTransformState.java48 if(TextUtils.equals(otherTvs.mText.getText(), mText.getText())) { in sameAs()
95 if (!TextUtils.equals(mText.getText(), otherTvs.mText.getText())) { in transformScale()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A DPeopleTileViewHelperTest.java220 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithLastInteractionTime()
267 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithLastInteractionTime()
292 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored()
339 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored()
364 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored()
420 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored()
448 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithStatusTemplate()
505 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithStatusTemplate()
732 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithMissedCallNotification()
770 assertEquals(name.getText(), NAME); in testCreateRemoteViewsWithMissedCallNotification()
[all …]

12345678910>>...20