Home
last modified time | relevance | path

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

12345678910>>...18

/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.java107 public Editable getText() { in getText() method in EditText
108 CharSequence text = super.getText(); in getText()
114 return (Editable) super.getText(); in getText()
117 return (Editable) super.getText(); in getText()
129 Selection.setSelection(getText(), start, stop); in setSelection()
136 Selection.setSelection(getText(), index); in setSelection()
143 Selection.selectAll(getText()); in selectAll()
150 Selection.extendSelection(getText(), index); in extendSelection()
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/base/core/tests/coretests/src/android/widget/
DTextViewTest.java81 CharSequence oldText = mTextView.getText(); in testArray()
84 CharSequence newText = mTextView.getText(); in testArray()
109 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
111 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable()
124 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
133 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultEditable()
135 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultEditable()
142 assertEquals(newText, mTextView.getText().toString()); in testProcessTextActivityResultEditable()
151 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultCancel()
153 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel()
[all …]
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/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java1074 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
1084 sb.append(mContext.getText(res)); in handlePasswordError()
1103 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1127 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1239 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getErrorMessage()
1242 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_dial); in getErrorMessage()
1245 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ss); in getErrorMessage()
1248 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ussd); in getErrorMessage()
1251 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial); in getErrorMessage()
1254 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/imsphone/
DImsPhoneMmiCode.java1031 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
1050 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1075 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1202 mContext.getText(com.android.internal.R.string.mmiError); in getErrorMessage()
1209 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getMmiErrorMessage()
1211 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial); in getMmiErrorMessage()
1213 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ussd); in getMmiErrorMessage()
1215 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ss); in getMmiErrorMessage()
1217 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial_video); in getMmiErrorMessage()
1224 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getMmiErrorMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DEriManager.java336 mContext.getText(com.android.internal.R.string.roamingText0).toString()); in getEriDisplayInformation()
343 mContext.getText(com.android.internal.R.string.roamingText1).toString()); in getEriDisplayInformation()
350 mContext.getText(com.android.internal.R.string.roamingText2).toString()); in getEriDisplayInformation()
359 mContext.getText(com.android.internal.R.string.roamingText3).toString()); in getEriDisplayInformation()
366 mContext.getText(com.android.internal.R.string.roamingText4).toString()); in getEriDisplayInformation()
373 mContext.getText(com.android.internal.R.string.roamingText5).toString()); in getEriDisplayInformation()
380 mContext.getText(com.android.internal.R.string.roamingText6).toString()); in getEriDisplayInformation()
387 mContext.getText(com.android.internal.R.string.roamingText7).toString()); in getEriDisplayInformation()
394 mContext.getText(com.android.internal.R.string.roamingText8).toString()); in getEriDisplayInformation()
401 mContext.getText(com.android.internal.R.string.roamingText9).toString()); in getEriDisplayInformation()
[all …]
DCdmaMmiCode.java274 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
283 sb.append(mContext.getText(res)); in handlePasswordError()
305 return mContext.getText(com.android.internal.R.string.PinMmi); in getScString()
326 sb.append(mContext.getText( in onSetComplete()
329 sb.append(mContext.getText( in onSetComplete()
345 sb.append(mContext.getText( in onSetComplete()
349 sb.append(mContext.getText( in onSetComplete()
352 sb.append(mContext.getText( in onSetComplete()
356 sb.append(mContext.getText(com.android.internal.R.string.enablePin)); in onSetComplete()
359 sb.append(mContext.getText( in onSetComplete()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConnectToNetworkNotificationBuilder.java82 title = mContext.getText(R.string.wifi_available_title); in createConnectToAvailableNetworkNotification()
85 title = mContext.getText(R.string.wifi_available_carrier_network_title); in createConnectToAvailableNetworkNotification()
93 mResources.getText(R.string.wifi_available_action_connect), in createConnectToAvailableNetworkNotification()
96 mResources.getText(R.string.wifi_available_action_all_networks), in createConnectToAvailableNetworkNotification()
115 mContext.getText(R.string.wifi_available_title_connecting), network.SSID, in createNetworkConnectingNotification()
130 mContext.getText(R.string.wifi_available_title_connected), network.SSID, in createNetworkConnectedNotification()
143 mContext.getText(R.string.wifi_available_title_failed_to_connect), in createNetworkFailedNotification()
144 mContext.getText(R.string.wifi_available_content_failed_to_connect), notifierTag) in createNetworkFailedNotification()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAppEntitiesHeaderControllerTest.java76 assertThat(view.getText()).isEqualTo(mContext.getText(R.string.expand_button_title)); in setHeaderTitleRes_setTextRes_shouldSetToTitleView()
84 assertThat(view.getText()).isEqualTo(mContext.getText(R.string.expand_button_title)); in setHeaderDetailsRes_setTextRes_shouldSetToDetailsView()
92 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_onlyDetailsTextSet_shouldSetToDetailsView()
101 assertThat(view.getText()).isEqualTo(TITLE); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView()
138 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex0_shouldShowAppView1()
139 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex0_shouldShowAppView1()
153 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex1_shouldShowAppView2()
154 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex1_shouldShowAppView2()
168 assertThat(appTitle.getText()).isEqualTo(TITLE); in setAppEntity_addAppToIndex2_shouldShowAppView3()
169 assertThat(appSummary.getText()).isEqualTo(SUMMARY); in setAppEntity_addAppToIndex2_shouldShowAppView3()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java109 assertEquals("TEST0", e0.getText(80)); in testAddText()
110 assertEquals("TEST1", e1.getText(80)); in testAddText()
111 assertEquals("TES", e2.getText(3)); in testAddText()
137 assertTrue(null == e.getText(80));
196 assertEquals("FILE0", e0.getText(80));
201 assertTrue(null == e2.getText(80));
205 assertTrue(null == e3.getText(80));
249 assertEquals("FUTURE0", e0.getText(80)); in testAddEntriesInTheFuture()
250 assertEquals("FUTURE1", e1.getText(80)); in testAddEntriesInTheFuture()
251 assertEquals("FUTURE2", e2.getText(80)); in testAddEntriesInTheFuture()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java63 context.getText(R.string.notification_channel_network_alert), in createAll()
72 context.getText(R.string.notification_channel_mobile_data_status), in createAll()
79 context.getText(R.string.notification_channel_sim), in createAll()
86 context.getText(R.string.notification_channel_call_forward), in createAll()
93 context.getText(R.string.notification_channel_sms), in createAll()
96 context.getText(R.string.notification_channel_wfc), in createAll()
142 context.getText(R.string.notification_channel_voice_mail), in migrateVoicemailNotificationSettings()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java110 mFooterText.getText()); in testManagedNoOwnerName()
127 mFooterText.getText()); in testManagedOwnerName()
157 mFooterText.getText()); in testNetworkLoggingEnabled()
171 mFooterText.getText()); in testNetworkLoggingEnabled()
182 mFooterText.getText()); in testManagedCACertsInstalled()
195 mFooterText.getText()); in testManagedOneVpnEnabled()
208 mFooterText.getText()); in testManagedOneVpnEnabled()
221 mFooterText.getText()); in testManagedTwoVpnsEnabled()
233 mFooterText.getText()); in testManagedTwoVpnsEnabled()
248 mFooterText.getText()); in testNetworkLoggingAndVpnEnabled()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp121 EXPECT_THAT(tree.getText(&len), StrEq(u"Some text\\\\")); in TEST_F()
286 EXPECT_THAT(tree.getText(&len), StrEq(u"\\\\d{5}")); in TEST_F()
309 EXPECT_THAT(tree.getText(&len), StrEq(u"Regular text")); in TEST_F()
315 EXPECT_THAT(tree.getText(&len), StrEq(u"\"Text in double quotes\"")); in TEST_F()
322 EXPECT_THAT(tree.getText(&len), StrEq(u"'Text in single quotes'")); in TEST_F()
328 EXPECT_THAT(tree.getText(&len), StrEq(u"Text containing \"double quotes\"")); in TEST_F()
334 EXPECT_THAT(tree.getText(&len), StrEq(u"Text containing 'single quotes'")); in TEST_F()
378 EXPECT_THAT(tree.getText(&len), StrEq(u" Compact Spaces ")); in TEST_F()
384 EXPECT_THAT(tree.getText(&len), StrEq(u" A ")); in TEST_F()
390 EXPECT_THAT(tree.getText(&len), StrEq(u"B ")); in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegate.java53 CharSequence text = ((TextView) host).getText(); in onPopulateAccessibilityEvent()
55 event.getText().add(replaceFancyColon(text)); in onPopulateAccessibilityEvent()
66 if (!TextUtils.isEmpty(info.getText())) { in onInitializeAccessibilityNodeInfo()
67 info.setText(replaceFancyColon(info.getText())); in onInitializeAccessibilityNodeInfo()
/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/statusbar/notification/row/
DAppOpsInfoTest.java99 assertTrue(textView.getText().toString().contains("App Name")); in testBindNotification_SetsTextApplicationName()
156 assertEquals("This app is using the camera.", prompt.getText()); in testPrompt_camera()
165 assertEquals("This app is using the microphone.", prompt.getText()); in testPrompt_mic()
174 assertEquals("This app is displaying over other apps on your screen.", prompt.getText()); in testPrompt_overlay()
184 assertEquals("This app is using the microphone and camera.", prompt.getText()); in testPrompt_camera_mic()
196 + " the microphone and camera.", prompt.getText()); in testPrompt_camera_mic_overlay()
207 + " the camera.", prompt.getText()); in testPrompt_camera_overlay()
218 + " the microphone.", prompt.getText()); in testPrompt_mic_overlay()
/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/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()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java69 assertFalse(isEmpty(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
70 assertTrue(isAscii(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
80 assertFalse(TextUtils.isEmpty(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
81 assertTrue(isAscii(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
/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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DActionsSuggestionsHelperTest.java110 assertNativeMessage(conversationMessages[0], firstMessage.getText(), 2, 0); in testToNativeMessages_userIdEncoding()
111 assertNativeMessage(conversationMessages[1], secondMessage.getText(), 1, 0); in testToNativeMessages_userIdEncoding()
112 assertNativeMessage(conversationMessages[2], thirdMessage.getText(), 0, 0); in testToNativeMessages_userIdEncoding()
113 assertNativeMessage(conversationMessages[3], fourthMessage.getText(), 1, 0); in testToNativeMessages_userIdEncoding()
139 assertNativeMessage(conversationMessages[0], firstMessage.getText(), 1, 1000); in testToNativeMessages_referenceTime()
140 assertNativeMessage(conversationMessages[1], secondMessage.getText(), 1, 0); in testToNativeMessages_referenceTime()
141 assertNativeMessage(conversationMessages[2], thirdMessage.getText(), 1, 2000); in testToNativeMessages_referenceTime()
325 assertThat(nativeMessage.getText()).isEqualTo(text.toString()); in assertNativeMessage()

12345678910>>...18