Home
last modified time | relevance | path

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

12345678910>>...33

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java49 assertEquals("type word", WORD_TO_TYPE, mEditText.getText().toString()); in testTypeWord()
60 mEditText.getText().toString()); in testPickSuggestionThenBackspace()
72 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
75 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
86 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
89 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
101 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
104 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
125 assertEquals("delete selection", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelection()
147 assertEquals("delete selection twice", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelectionTwice()
[all …]
DInputLogicTestsLanguageWithoutSpaces.java32 mEditText.getText().toString()); in testAutoCorrectForLanguageWithoutSpaces()
42 EXPECTED_INTERMEDIATE_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
45 EXPECTED_FINAL_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
48 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
50 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
58 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
60 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
64 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
66 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
82 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testStartComposingInsideText()
[all …]
DPunctuationTests.java48 EXPECTED_RESULT, mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromStripTwice()
60 mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromKeyboardTwice()
74 mEditText.getText().toString()); in testManualPickThenPunctuationFromStripTwiceThenType()
85 mEditText.getText().toString()); in testManualPickThenManualPickWithPunctAtStart()
96 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenColon()
107 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenOpenParen()
118 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenCloseParen()
129 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenSmiley()
140 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenDotCom()
150 EXPECTED_RESULT, mEditText.getText().toString()); in testTypeWordTypeDotThenPressDotCom()
[all …]
DInputLogicTestsDeadKeys.java61 assertEquals("simple dead circumflex", EXPECTED_RESULT, mEditText.getText().toString()); in testDeadCircumflexSimple()
75 assertEquals("dead circumflex backspace", EXPECTED_RESULT, mEditText.getText().toString()); in testDeadCircumflexBackspace()
88 mEditText.getText().toString()); in testDeadCircumflexFeedback()
106 mEditText.getText().toString()); in testDeadDiaeresisSpace()
120 assertEquals("dead acute on a typed", EXPECTED_RESULT1, mEditText.getText().toString()); in testDeadAcuteLetterBackspace()
124 assertEquals("a with acute deleted", EXPECTED_RESULT2, mEditText.getText().toString()); in testDeadAcuteLetterBackspace()
140 mEditText.getText().toString()); in testFinnishStroke()
163 mEditText.getText().toString()); in testDoubleDeadOgonek()
179 mEditText.getText().toString()); in testDeadCircumflexDeadDiaeresis()
196 mEditText.getText().toString()); in testDeadCircumflexDeadDiaeresisBackspace()
[all …]
DBlueUnderlineTests.java35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline()
52 final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
59 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
82 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineOnBackspace()
85 final SpanGetter underlineSpan = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testBlueUnderlineOnBackspace()
109 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved()
124 SpanGetter span = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testComposingStopsOnSpace()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java374 return mSearchDomains.getText().length() > 0 || mDnsServers.getText().length() > 0 || in isAdvancedOptionsEnabled()
375 mRoutes.getText().length() > 0 || mProxyHost.getText().length() > 0 in isAdvancedOptionsEnabled()
376 || mProxyPort.getText().length() > 0; in isAdvancedOptionsEnabled()
449 return mUsername.getText().length() != 0 && mPassword.getText().length() != 0; in validate()
451 if (mName.getText().length() == 0 || mServer.getText().length() == 0) { in validate()
457 && (!validateAddresses(mDnsServers.getText().toString(), false) in validate()
458 || !validateAddresses(mRoutes.getText().toString(), true))) { in validate()
463 if (!isLegacyType(mProfile.type) && mIpsecIdentifier.getText().length() == 0) { in validate()
480 return mIpsecSecret.getText().length() != 0; in validate()
614 profile.name = mName.getText().toString(); in getProfile()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java145 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatDaysCorrectly()
159 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatHoursCorrectly()
173 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
184 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly()
195 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow()
206 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime()
268 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
282 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
297 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()) in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
309 assertThat(mSummaryPreference.getDataLimits(mHolder).getText()).isEqualTo(limitText); in testSetLimitInfo_withLimitInfo_dataLimitsShown()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DApplicationViewHolderTest.java62 assertThat(mHolder.mDisabled.getText()).isEqualTo(mContext.getText(R.string.disabled)); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
68 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries()
71 assertThat(mHolder.mSummary.getText()).isEqualTo(mContext.getText(R.string.disabled)); in setSummaries()
78 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription()
86 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyButContentIsEmpty_shouldSetTitle()
99 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.internalSizeStr); in updateSize()
102 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.externalSizeStr); in updateSize()
107 assertThat(mHolder.mSummary.getText()).isEqualTo(invalidStr); in updateSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java164 mEnv.getContext().getResources().getText(R.string.sign_in), in updateToAuthenticationExceptionHeader()
220 buttonText = mEnv.getContext().getResources().getText(R.string.quiet_mode_button); in updateToQuietModeErrorMessage()
225 mEnv.getContext().getResources().getText(R.string.quiet_mode_error_title), in updateToQuietModeErrorMessage()
247 return res.getText(currentUserIsSystem in getCrossProfileNoPermissionErrorTitle()
251 return res.getText(currentUserIsSystem in getCrossProfileNoPermissionErrorTitle()
255 return res.getText(R.string.cross_profile_action_not_allowed_title); in getCrossProfileNoPermissionErrorTitle()
265 return res.getText(currentUserIsSystem in getCrossProfileNoPermissionErrorMessage()
269 return res.getText(currentUserIsSystem in getCrossProfileNoPermissionErrorMessage()
273 return res.getText(R.string.cross_profile_action_not_allowed_message); in getCrossProfileNoPermissionErrorMessage()
277 update(null, mEnv.getContext().getResources().getText(R.string.query_error), null, in updateToInflatedErrorMessage()
[all …]
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditor.java603 mName.setSummary(checkNull(mName.getText())); in fillUI()
604 mApn.setSummary(checkNull(mApn.getText())); in fillUI()
605 mProxy.setSummary(checkNull(mProxy.getText())); in fillUI()
606 mPort.setSummary(checkNull(mPort.getText())); in fillUI()
607 mUser.setSummary(checkNull(mUser.getText())); in fillUI()
608 mServer.setSummary(checkNull(mServer.getText())); in fillUI()
609 mPassword.setSummary(starify(mPassword.getText())); in fillUI()
610 mMmsProxy.setSummary(checkNull(mMmsProxy.getText())); in fillUI()
611 mMmsPort.setSummary(checkNull(mMmsPort.getText())); in fillUI()
612 mMmsc.setSummary(checkNull(mMmsc.getText())); in fillUI()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnEditorActivity.java290 mName.setSummary(checkNull(mName.getText())); in fillUi()
291 mMmsProxy.setSummary(checkNull(mMmsProxy.getText())); in fillUi()
292 mMmsPort.setSummary(checkNull(mMmsPort.getText())); in fillUi()
293 mMmsc.setSummary(checkNull(mMmsc.getText())); in fillUi()
294 mMcc.setSummary(checkNull(mMcc.getText())); in fillUi()
295 mMnc.setSummary(checkNull(mMnc.getText())); in fillUi()
351 final String name = checkNotSet(mName.getText()); in validateAndSave()
352 final String mcc = checkNotSet(mMcc.getText()); in validateAndSave()
353 final String mnc = checkNotSet(mMnc.getText()); in validateAndSave()
372 values.put(Telephony.Carriers.MMSPROXY, checkNotSet(mMmsProxy.getText())); in validateAndSave()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java322 TextUtils.expandTemplate(getText(R.string.battery_used_for), in initPreference()
329 TextUtils.expandTemplate(getText(R.string.battery_active_for), in initPreference()
480 usageTimeSummary = getText(powerFeatureProvider.isChartGraphEnabled(getContext()) in getAppActiveTime()
501 getText(R.string.battery_bg_usage_less_minute) : in getAppFullChargeActiveSummary()
502 TextUtils.expandTemplate(getText(R.string.battery_bg_usage), in getAppFullChargeActiveSummary()
510 return getText(R.string.battery_total_usage_less_minute); in getAppFullChargeActiveSummary()
514 getText(backgroundTimeMs == 0 ? in getAppFullChargeActiveSummary()
525 getText(R.string.battery_total_and_bg_usage), in getAppFullChargeActiveSummary()
544 ? getText(R.string.battery_bg_usage_less_minute_24hr) in getAppPast24HrActiveSummary()
545 : TextUtils.expandTemplate(getText(R.string.battery_bg_usage_24hr), in getAppPast24HrActiveSummary()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerServiceTest.java29 mEditText.setSelection(mEditText.getText().length()); in testSpellchecker()
35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker()
49 mEditText.setSelection(mEditText.getText().length()); in testRussianSpellchecker()
55 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker()
63 mEditText.setSelection(mEditText.getText().length()); in testSpellcheckWithPeriods()
69 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellcheckWithPeriods()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java156 res.getText(R.string.wifi_calling_settings_title), in createWifiCallingSlice()
157 res.getText(R.string.wifi_calling_settings_activation_instructions), in createWifiCallingSlice()
179 .setTitle(res.getText(R.string.wifi_calling_settings_title)) in getWifiCallingSlice()
188 res.getText(R.string.wifi_calling_settings_title)))) in getWifiCallingSlice()
244 res.getText(R.string.wifi_calling_mode_title), in createWifiCallingPreferenceSlice()
245 res.getText(R.string.wifi_calling_turn_on), in createWifiCallingPreferenceSlice()
272 .setTitle(res.getText(R.string.wifi_calling_mode_title)) in getWifiCallingPreferenceSlice()
277 res.getText(R.string.wifi_calling_mode_title))); in getWifiCallingPreferenceSlice()
318 .setTitle(res.getText(preferenceTitleResId)) in wifiPreferenceRowBuilder()
320 icon, res.getText(preferenceTitleResId), checked)); in wifiPreferenceRowBuilder()
[all …]
/packages/services/Telephony/src/com/android/phone/
DChangeIccPinScreen.java134 setTitle(getResources().getText(id)); in onCreate()
179 String oldPin = mOldPin.getText().toString();
180 String newPin1 = mNewPin1.getText().toString();
181 String newPin2 = mNewPin2.getText().toString();
188 mNewPin1.getText().clear();
189 mNewPin2.getText().clear();
227 mPhone.getIccCard().supplyPuk2(mPUKCode.getText().toString(),
228 mNewPin1.getText().toString(),
256 mOldPin.getText().clear(); in handleResult()
271 mPUKCode.getText().clear(); in handleResult()
DEnableIccPinScreen.java74 setTitle(getResources().getText(id)); in onCreate()
99 return mPinField.getText().toString(); in getPin()
112 showStatus(getResources().getText( in handleResult()
118 showStatus(getResources().getText( in handleResult()
131 if (TextUtils.isEmpty(mPinField.getText())) {
135 showStatus(getResources().getText(
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java122 String password = mButtonEnableFDN.getText(); in toggleFDNEnable()
167 mOldPin = button.getText(); in updatePINChangeState()
178 mNewPin = button.getText(); in updatePINChangeState()
189 if (validatePin(button.getText(), false)) { in updatePINChangeState()
191 if (!mNewPin.equals(button.getText())) { in updatePINChangeState()
216 mPuk2 = button.getText(); in updatePINChangeState()
228 mNewPin = button.getText(); in updatePINChangeState()
242 if (!mNewPin.equals(button.getText())) { in updatePINChangeState()
418 button.setDialogMessage(getText(msgId) + "\n" + getText(strId)); in displayPinChangeDialog()
577 out.putString(DIALOG_PIN_ENTRY_KEY, mButtonChangePin2.getText()); in onSaveInstanceState()
[all …]
DEditFdnContactScreen.java254 return mNameField.getText().toString(); in getNameFromTextField()
258 return mNumberField.getText().toString(); in getNumberFromTextField()
301 showStatus(getResources().getText(R.string.adding_fdn_contact)); in addContact()
326 showStatus(getResources().getText(R.string.updating_fdn_contact)); in updateContact()
357 showStatus(getResources().getText(mAddContact ? in handleResult()
366 showStatus(getResources().getText(R.string.fdn_enable_puk2_requested)); in handleResult()
368 showStatus(getResources().getText(R.string.puk2_blocked)); in handleResult()
372 showStatus(getResources().getText(R.string.pin2_or_fdn_invalid)); in handleResult()
413 Selection.selectAll((Spannable) textView.getText());
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DFaceSetupSlice.java96 title = mContext.getText(R.string.security_settings_face_settings_enroll); in getSlice()
97 subtitle = mContext.getText( in getSlice()
100 title = mContext.getText( in getSlice()
102 subtitle = mContext.getText( in getSlice()
105 title = mContext.getText( in getSlice()
107 subtitle = mContext.getText( in getSlice()
135 mContext.getText(R.string.security_settings_face_settings_enroll).toString(), in getIntent()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConnectToNetworkNotificationBuilder.java81 title = mContext.getText(R.string.wifi_available_title); in createConnectToAvailableNetworkNotification()
90 mContext.getResources().getText(R.string.wifi_available_action_connect), in createConnectToAvailableNetworkNotification()
98 mContext.getResources().getText(R.string.wifi_available_action_all_networks), in createConnectToAvailableNetworkNotification()
123 mContext.getText(R.string.wifi_available_title_connecting), network.SSID, in createNetworkConnectingNotification()
138 mContext.getText(R.string.wifi_available_title_connected), network.SSID, in createNetworkConnectedNotification()
151 mContext.getText(R.string.wifi_available_title_failed_to_connect), in createNetworkFailedNotification()
152 mContext.getText(R.string.wifi_available_content_failed_to_connect), notifierTag) in createNetworkFailedNotification()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DEntityHeaderPreferenceTest.java89 mPref.setTitle(mContext.getText(R.string.settings_label)); in onBindViewHolder_setLabel_shouldShowSameText()
95 assertThat(((TextView) mRootView.findViewById(R.id.entity_header_title)).getText()) in onBindViewHolder_setLabel_shouldShowSameText()
96 .isEqualTo(mContext.getText(R.string.settings_label)); in onBindViewHolder_setLabel_shouldShowSameText()
101 mPref.setSummary(mContext.getText(R.string.settings_label)); in onBindViewHolder_setSummary_shouldShowSameText()
107 assertThat(((TextView) mRootView.findViewById(R.id.entity_header_summary)).getText()) in onBindViewHolder_setSummary_shouldShowSameText()
108 .isEqualTo(mContext.getText(R.string.settings_label)); in onBindViewHolder_setSummary_shouldShowSameText()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/
DUserNameViewControllerTest.java97 assertEquals(mTextView.getText(), mUserInfo1.name); in addUserNameViewToController_updatesUserNameView()
105 assertEquals(mTextView.getText(), ""); in addUserNameViewToController_withNoTextView_doesNotUpdate()
125 assertEquals(mTextView.getText(), mUserInfo1.name); in userLifecycleListener_onUserSwitchLifecycleEvent_updatesUserNameView()
133 assertEquals(mTextView.getText(), mUserInfo2.name); in userLifecycleListener_onUserSwitchLifecycleEvent_updatesUserNameView()
140 assertEquals(mTextView.getText(), ""); in userInfoChangedBroadcast_withoutInitializingUserNameView_doesNothing()
150 assertEquals(mTextView.getText(), mUserInfo1.name); in userInfoChangedBroadcast_withUserNameViewInitialized_updatesUserNameView()
159 assertEquals(mTextView.getText(), mUserInfo2.name); in userInfoChangedBroadcast_withUserNameViewInitialized_updatesUserNameView()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java50 return context.getText(R.string.emergency_number); in buildPrimaryText()
77 return context.getText(R.string.new_call_log_unknown); in buildPrimaryText()
149 components.add(context.getText(R.string.new_call_log_secondary_blocked)); in buildSecondaryTextListForEntries()
152 components.add(context.getText(R.string.new_call_log_secondary_spam)); in buildSecondaryTextListForEntries()
208 components.add(context.getText(R.string.new_call_log_secondary_blocked)); in buildSecondaryTextForBottomSheet()
211 components.add(context.getText(R.string.new_call_log_secondary_spam)); in buildSecondaryTextForBottomSheet()
260 context.getText( in getNumberTypeLabel()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java84 name = context.getText(R.string.notification_channel_incoming_call); in createChannel()
92 name = context.getText(R.string.notification_channel_missed_call); in createChannel()
100 name = context.getText(R.string.notification_channel_call_blocking); in createChannel()
108 name = context.getText(R.string.notification_channel_background_calls); in createChannel()
116 name = context.getText(R.string.notification_channel_disconnected_calls); in createChannel()
124 name = context.getText(R.string.notification_channel_in_call_service_crash); in createChannel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSwitchBarTest.java61 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
67 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
77 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_customLabel_shouldUpdateTextAndBackground()
83 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_customLabel_shouldUpdateTextAndBackground()
97 assertThat(switchBarTextView.getText()).isEqualTo(offText); in setCheck_customLabelWithStringType_shouldUpdateTextAndBackground()
102 assertThat(switchBarTextView.getText()).isEqualTo(onText); in setCheck_customLabelWithStringType_shouldUpdateTextAndBackground()

12345678910>>...33