Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/base/core/tests/coretests/src/android/widget/
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()
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 …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
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()
80 app_id.getText().toString(), in onCreate()
81 cont.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()
[all …]
/frameworks/base/core/java/android/widget/
DDialerFilter.java131 if (mLetters.getText().length() == mDigits.getText().length()) { in onKeyDown()
137 if (mDigits.getText().length() == mLetters.getText().length()) { in onKeyDown()
272 Editable lettersText = mLetters.getText(); in swapPrimaryAndHint()
273 Editable digitsText = mDigits.getText(); in swapPrimaryAndHint()
287 lettersText = mLetters.getText(); in swapPrimaryAndHint()
292 digitsText = mDigits.getText(); in swapPrimaryAndHint()
303 return mLetters.getText(); in getLetters()
311 return mDigits.getText(); in getDigits()
328 mDigits.getText().append(text); in append()
329 mLetters.getText().append(text); in append()
[all …]
DEditText.java169 public Editable getText() { in getText() method in EditText
170 CharSequence text = super.getText(); in getText()
179 return (Editable) super.getText(); in getText()
191 Selection.setSelection(getText(), start, stop); in setSelection()
198 Selection.setSelection(getText(), index); in setSelection()
205 Selection.selectAll(getText()); in selectAll()
212 Selection.extendSelection(getText(), index); in extendSelection()
289 Spannable spannable = getText(); in performStylingAction()
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java1144 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
1197 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1221 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1350 mContext.getText(com.android.internal.R.string.mmiError); in getErrorMessage()
1358 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getMmiErrorMessage()
1360 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial); in getMmiErrorMessage()
1362 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ussd); in getMmiErrorMessage()
1364 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ss); in getMmiErrorMessage()
1366 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial_video); in getMmiErrorMessage()
1373 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getMmiErrorMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DEriManager.java335 mContext.getText(com.android.internal.R.string.roamingText0).toString()); in getEriDisplayInformation()
342 mContext.getText(com.android.internal.R.string.roamingText1).toString()); in getEriDisplayInformation()
349 mContext.getText(com.android.internal.R.string.roamingText2).toString()); in getEriDisplayInformation()
358 mContext.getText(com.android.internal.R.string.roamingText3).toString()); in getEriDisplayInformation()
365 mContext.getText(com.android.internal.R.string.roamingText4).toString()); in getEriDisplayInformation()
372 mContext.getText(com.android.internal.R.string.roamingText5).toString()); in getEriDisplayInformation()
379 mContext.getText(com.android.internal.R.string.roamingText6).toString()); in getEriDisplayInformation()
386 mContext.getText(com.android.internal.R.string.roamingText7).toString()); in getEriDisplayInformation()
393 mContext.getText(com.android.internal.R.string.roamingText8).toString()); in getEriDisplayInformation()
400 mContext.getText(com.android.internal.R.string.roamingText9).toString()); in getEriDisplayInformation()
[all …]
DCdmaMmiCode.java281 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
290 sb.append(mContext.getText(res)); in handlePasswordError()
312 return mContext.getText(com.android.internal.R.string.PinMmi); in getScString()
333 sb.append(mContext.getText( in onSetComplete()
336 sb.append(mContext.getText( in onSetComplete()
352 sb.append(mContext.getText( in onSetComplete()
356 sb.append(mContext.getText( in onSetComplete()
359 sb.append(mContext.getText( in onSetComplete()
363 sb.append(mContext.getText(com.android.internal.R.string.enablePin)); in onSetComplete()
366 sb.append(mContext.getText( in onSetComplete()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java1286 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
1296 sb.append(mContext.getText(res)); in handlePasswordError()
1315 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1340 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1451 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getErrorMessage()
1454 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_dial); in getErrorMessage()
1457 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ss); in getErrorMessage()
1460 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ussd); in getErrorMessage()
1463 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial); in getErrorMessage()
1466 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ussd); in getErrorMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java68 context.getText(R.string.notification_channel_network_alert), in createAll()
77 context.getText(R.string.notification_channel_mobile_data_status), in createAll()
84 context.getText(R.string.notification_channel_sim), in createAll()
91 context.getText(R.string.notification_channel_call_forward), in createAll()
98 context.getText(R.string.notification_channel_sms), in createAll()
101 context.getText(R.string.notification_channel_wfc), in createAll()
104 context.getText(R.string.notification_channel_sim_high_prio), in createAll()
150 context.getText(R.string.notification_channel_voice_mail), in migrateVoicemailNotificationSettings()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAppEntitiesHeaderControllerTest.java77 …assertThat(view.getText()).isEqualTo(mContext.getText(androidx.preference.R.string.expand_button_t… in setHeaderTitleRes_setTextRes_shouldSetToTitleView()
85 …assertThat(view.getText()).isEqualTo(mContext.getText(androidx.preference.R.string.expand_button_t… in setHeaderDetailsRes_setTextRes_shouldSetToDetailsView()
93 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_onlyDetailsTextSet_shouldSetToDetailsView()
102 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView()
139 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex0_shouldShowAppView1()
140 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex0_shouldShowAppView1()
154 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex1_shouldShowAppView2()
155 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex1_shouldShowAppView2()
169 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex2_shouldShowAppView3()
170 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex2_shouldShowAppView3()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java117 assertEquals("TEST0", e0.getText(80)); in testAddText()
118 assertEquals("TEST1", e1.getText(80)); in testAddText()
119 assertEquals("TES", e2.getText(3)); in testAddText()
145 assertTrue(null == e.getText(80));
204 assertEquals("FILE0", e0.getText(80));
209 assertTrue(null == e2.getText(80));
213 assertTrue(null == e3.getText(80));
318 assertEquals("FUTURE0", e0.getText(80)); in testAddEntriesInTheFuture()
319 assertEquals("FUTURE1", e1.getText(80)); in testAddEntriesInTheFuture()
320 assertEquals("FUTURE2", e2.getText(80)); in testAddEntriesInTheFuture()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java172 buttonConfig.getText()); in testManagedNoOwnerName()
186 buttonConfig.getText()); in testManagedOwnerName()
205 buttonConfig.getText()); in testManagedFinancedDeviceWithOwnerName()
261 buttonConfig.getText()); in testNetworkLoggingEnabled_deviceOwner()
272 buttonConfig.getText()); in testNetworkLoggingEnabled_deviceOwner()
285 buttonConfig.getText()); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOn()
305 buttonConfig.getText()); in testManagedCACertsInstalled()
318 buttonConfig.getText()); in testManagedOneVpnEnabled()
329 buttonConfig.getText()); in testManagedOneVpnEnabled()
342 buttonConfig.getText()); in testManagedTwoVpnsEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
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()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
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()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp120 EXPECT_THAT(tree.getText(&len), StrEq(u"Some text\\\\")); in TEST_F()
285 EXPECT_THAT(tree.getText(&len), StrEq(u"\\\\d{5}")); in TEST_F()
308 EXPECT_THAT(tree.getText(&len), StrEq(u"Regular text")); in TEST_F()
314 EXPECT_THAT(tree.getText(&len), StrEq(u"\"Text in double quotes\"")); in TEST_F()
321 EXPECT_THAT(tree.getText(&len), StrEq(u"'Text in single quotes'")); in TEST_F()
327 EXPECT_THAT(tree.getText(&len), StrEq(u"Text containing \"double quotes\"")); in TEST_F()
333 EXPECT_THAT(tree.getText(&len), StrEq(u"Text containing 'single quotes'")); in TEST_F()
377 EXPECT_THAT(tree.getText(&len), StrEq(u" Compact Spaces ")); 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()
[all …]
/frameworks/base/core/tests/coretests/src/android/debug/
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()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java227 int oldSelStart = Selection.getSelectionStart(getText()); in onTouchEvent()
228 int oldSelEnd = Selection.getSelectionEnd(getText()); in onTouchEvent()
235 mManager.showSoftKey(Selection.getSelectionStart(getText()), in onTouchEvent()
236 Selection.getSelectionEnd(getText())); in onTouchEvent()
349 mManager.updateSpanNextToCursor(getText(), start, before, after); in onTextChanged()
350 mManager.updateSpanPreviousFromCursor(getText(), start, before, after); in onTextChanged()
848 mConverter.getUriArray(uris, getText()); in getHtml()
875 if (pos < 0 || pos > getText().length()) { in getForegroundColor()
879 getText().getSpans(pos, pos, ForegroundColorSpan.class); in getForegroundColor()
1065 if (curpos > 0 && mEST.getText().charAt(curpos - 1) != '\n') { in insertHorizontalLine()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputAdapterTest.java158 assertThat(mViewHolder.mTitleText.getText()).isEqualTo(mContext.getText( in onBindViewHolder_bindPairNew_verifyView()
207 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindConnectedDevice_verifyView()
223 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindNonRemoteConnectedDevice_verifyView()
241 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindConnectedRemoteDevice_verifyView()
274 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindSingleConnectedRemoteDevice_verifyView()
294 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindConnectedRemoteDeviceWithOnGoingSession_verifyView()
316 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindConnectedRemoteDeviceWithHostOnGoingSession_verifyView()
337 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_bindConnectedDeviceWithMutingExpectedDeviceExist_verifyView()
353 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_1); in onBindViewHolder_isMutingExpectedDevice_verifyView()
395 assertThat(mViewHolder.mTitleText.getText().toString()).isEqualTo(TEST_DEVICE_NAME_2); in onBindViewHolder_bindSelectableDevice_verifyView()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DHeaderMixinTest.java70 assertEquals("Next", mHeaderTextView.getText()); in testSetTextId()
78 assertEquals("Foobar", mHeaderTextView.getText()); in testSetText()
87 assertEquals("Lorem ipsum", mixin.getText()); in testGetText()
99 assertEquals("lorem ipsum", mHeaderTextView.getText()); in testSetTextFromXml()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
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()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DHeaderMixin.java48 final CharSequence headerText = a.getText(R.styleable.SuwHeaderMixin_suwHeaderText); in HeaderMixin()
86 public CharSequence getText() { in getText() method in HeaderMixin
88 return titleView != null ? titleView.getText() : null; in getText()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DTestConferenceEventPackageParser.java138 user = parser.getText(); in parseParticipant()
141 displayText = parser.getText(); in parseParticipant()
144 endpoint = parser.getText(); in parseParticipant()
147 status = parser.getText(); in parseParticipant()

12345678910>>...24