Home
last modified time | relevance | path

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

12345678910>>...35

/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.java352 return mSearchDomains.getText().length() > 0 || mDnsServers.getText().length() > 0 || in isAdvancedOptionsEnabled()
353 mRoutes.getText().length() > 0 || mProxyHost.getText().length() > 0 in isAdvancedOptionsEnabled()
354 || mProxyPort.getText().length() > 0; in isAdvancedOptionsEnabled()
427 return mUsername.getText().length() != 0 && mPassword.getText().length() != 0; in validate()
429 if (mName.getText().length() == 0 || mServer.getText().length() == 0) { in validate()
435 && (!validateAddresses(mDnsServers.getText().toString(), false) in validate()
436 || !validateAddresses(mRoutes.getText().toString(), true))) { in validate()
441 if (!isLegacyType(mProfile.type) && mIpsecIdentifier.getText().length() == 0) { in validate()
458 return mIpsecSecret.getText().length() != 0; in validate()
567 profile.name = mName.getText().toString(); in getProfile()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialog.java391 return mUsername.getText().length() != 0 && mPassword.getText().length() != 0; in validate()
393 if (mName.getText().length() == 0 || mServer.getText().length() == 0 || in validate()
394 !validateAddresses(mDnsServers.getText().toString(), false) || in validate()
395 !validateAddresses(mRoutes.getText().toString(), true)) { in validate()
410 return mIpsecSecret.getText().length() != 0; in validate()
484 profile.name = mName.getText().toString(); in getProfile()
486 profile.server = mServer.getText().toString().trim(); in getProfile()
487 profile.username = mUsername.getText().toString(); in getProfile()
488 profile.password = mPassword.getText().toString(); in getProfile()
489 profile.searchDomains = mSearchDomains.getText().toString().trim(); in getProfile()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java147 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTime_shouldFormatDaysCorrectly()
162 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTime_shouldFormatHoursCorrectly()
177 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
189 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly()
201 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow()
213 assertThat(mCarrierInfo.getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime()
272 assertThat(mCycleTime.getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
284 assertThat(mCycleTime.getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
298 assertThat(mCycleTime.getText()).isEqualTo(daysLeft + " days left"); in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
308 assertThat(mDataLimits.getText()).isEqualTo(limitText); in testSetLimitInfo_withLimitInfo_dataLimitsShown()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnEditor.java565 mName.setSummary(checkNull(mName.getText())); in fillUI()
566 mApn.setSummary(checkNull(mApn.getText())); in fillUI()
567 mProxy.setSummary(checkNull(mProxy.getText())); in fillUI()
568 mPort.setSummary(checkNull(mPort.getText())); in fillUI()
569 mUser.setSummary(checkNull(mUser.getText())); in fillUI()
570 mServer.setSummary(checkNull(mServer.getText())); in fillUI()
571 mPassword.setSummary(starify(mPassword.getText())); in fillUI()
572 mMmsProxy.setSummary(checkNull(mMmsProxy.getText())); in fillUI()
573 mMmsPort.setSummary(checkNull(mMmsPort.getText())); in fillUI()
574 mMmsc.setSummary(checkNull(mMmsc.getText())); in fillUI()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DApnEditor.java631 mName.setSummary(checkNull(mName.getText())); in fillUI()
632 mApn.setSummary(checkNull(mApn.getText())); in fillUI()
633 mProxy.setSummary(checkNull(mProxy.getText())); in fillUI()
634 mPort.setSummary(checkNull(mPort.getText())); in fillUI()
635 mUser.setSummary(checkNull(mUser.getText())); in fillUI()
636 mServer.setSummary(checkNull(mServer.getText())); in fillUI()
637 mPassword.setSummary(starify(mPassword.getText())); in fillUI()
638 mMmsProxy.setSummary(checkNull(mMmsProxy.getText())); in fillUI()
639 mMmsPort.setSummary(checkNull(mMmsPort.getText())); in fillUI()
640 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/tests/robotests/src/com/android/settings/applications/manageapplications/
DApplicationViewHolderTest.java60 assertThat(mHolder.mDisabled.getText()).isEqualTo(mContext.getText(R.string.disabled)); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
66 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries()
69 assertThat(mHolder.mSummary.getText()).isEqualTo(mContext.getText(R.string.disabled)); in setSummaries()
81 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.internalSizeStr); in updateSize()
84 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.externalSizeStr); in updateSize()
89 assertThat(mHolder.mSummary.getText()).isEqualTo(invalidStr); in updateSize()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSliceHelper.java158 mContext.getText(R.string.wifi_calling_settings_title), in createWifiCallingSlice()
159 mContext.getText( in createWifiCallingSlice()
195 .setTitle(mContext.getText(R.string.wifi_calling_settings_title)) in getWifiCallingSlice()
204 mContext.getText(R.string.wifi_calling_settings_title)))) in getWifiCallingSlice()
260 mContext.getText(R.string.wifi_calling_mode_title), in createWifiCallingPreferenceSlice()
261 mContext.getText(R.string.wifi_calling_turn_on), in createWifiCallingPreferenceSlice()
285 .setTitle(mContext.getText(R.string.wifi_calling_mode_title)) in getWifiCallingPreferenceSlice()
291 mContext.getText(R.string.wifi_calling_mode_title)))); in getWifiCallingPreferenceSlice()
326 .setTitle(mContext.getText(preferenceTitleResId)) in wifiPreferenceRowBuilder()
328 icon, mContext.getText(preferenceTitleResId), checked)); in wifiPreferenceRowBuilder()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java157 res.getText(R.string.wifi_calling_settings_title), in createWifiCallingSlice()
158 res.getText(R.string.wifi_calling_settings_activation_instructions), in createWifiCallingSlice()
180 .setTitle(res.getText(R.string.wifi_calling_settings_title)) in getWifiCallingSlice()
189 res.getText(R.string.wifi_calling_settings_title)))) in getWifiCallingSlice()
245 res.getText(R.string.wifi_calling_mode_title), in createWifiCallingPreferenceSlice()
246 res.getText(R.string.wifi_calling_turn_on), in createWifiCallingPreferenceSlice()
273 .setTitle(res.getText(R.string.wifi_calling_mode_title)) in getWifiCallingPreferenceSlice()
279 res.getText(R.string.wifi_calling_mode_title)))); in getWifiCallingPreferenceSlice()
316 .setTitle(res.getText(preferenceTitleResId)) in wifiPreferenceRowBuilder()
318 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()
DEmergencyDialer.java243 mDigits.getText().clear(); in afterTextChanged()
440 if (TextUtils.isEmpty(mDigits.getText().toString())) { in onKeyDown()
524 mDigits.getText().clear(); in onClick()
593 mDigits.getText().clear(); in onLongClick()
703 mLastNumber = mDigits.getText().toString(); in placeCall()
747 mDigits.getText().delete(0, mDigits.getText().length()); in placeCall()
821 return getText(R.string.dial_emergency_empty_error).toString(); in createErrorMessage()
831 .setTitle(getText(R.string.emergency_enable_radio_dialog_title)) in onCreateDialog()
879 mDigits.getText().delete(currentPosition - 1, currentPosition); in removePreviousDigitIfPossible()
887 for (Object o : mDigits.getText().getSpans(0, mDigits.getText().length(), TtsSpan.class)) { in updateTtsSpans()
[all …]
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/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/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/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java113 String password = mButtonEnableFDN.getText(); in toggleFDNEnable()
158 mOldPin = mButtonChangePin2.getText(); in updatePINChangeState()
169 mNewPin = mButtonChangePin2.getText(); in updatePINChangeState()
181 if (!mNewPin.equals(mButtonChangePin2.getText())) { in updatePINChangeState()
196 mPuk2 = mButtonChangePin2.getText(); in updatePINChangeState()
209 mNewPin = mButtonChangePin2.getText(); in updatePINChangeState()
223 if (!mNewPin.equals(mButtonChangePin2.getText())) { in updatePINChangeState()
403 mButtonChangePin2.setDialogMessage(getText(msgId) + "\n" + getText(strId)); in displayPinChangeDialog()
549 out.putString(DIALOG_PIN_ENTRY_KEY, mButtonChangePin2.getText()); in onSaveInstanceState()
/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/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java87 assertThat(((TextView) mItemView.findViewById(R.id.title)).getText()).isEqualTo( in testDisplayName()
98 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo(LABEL_1); in testLabel_withOnlyOneNumber_showLabel()
108 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo( in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
109 mContext.getResources().getText( in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
122 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo(""); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
135 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo( in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
150 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo( in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
165 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo( in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
167 mContext.getResources().getText( in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
184 assertThat(((TextView) mItemView.findViewById(R.id.text)).getText()).isEqualTo( in testLabel_HasPrimaryNumberButGetNullLabel_showMultipleLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DTopLevelSecurityPreferenceControllerTest.java66 verify(mContext).getText(R.string.security_dashboard_summary_face); in geSummary_hasFace_hasStaticSummary()
79 verify(mContext).getText(R.string.security_dashboard_summary); in geSummary_hasFingerPrint_hasStaticSummary()
91 verify(mContext).getText(R.string.security_dashboard_summary_no_fingerprint); in geSummary_noFpFeature_shouldSetSummaryWithNoBiometrics()
104 verify(mContext).getText(R.string.security_dashboard_summary_no_fingerprint); in geSummary_noFpHardware_shouldSetSummaryWithNoBiometrics()
116 verify(mContext).getText(R.string.security_dashboard_summary_no_fingerprint); in geSummary_noFaceFeature_shouldSetSummaryWithNoBiometrics()
129 verify(mContext).getText(R.string.security_dashboard_summary_no_fingerprint); in geSummary_noFaceHardware_shouldSetSummaryWithNoBiometrics()
/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/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java86 launcher.getText(R.string.remove_drop_target_label))); in LauncherAccessibilityDelegate()
88 launcher.getText(R.string.uninstall_drop_target_label))); in LauncherAccessibilityDelegate()
90 launcher.getText(R.string.gadget_setup_text))); in LauncherAccessibilityDelegate()
92 launcher.getText(R.string.action_add_to_workspace))); in LauncherAccessibilityDelegate()
94 launcher.getText(R.string.action_move))); in LauncherAccessibilityDelegate()
96 launcher.getText(R.string.action_move_to_workspace))); in LauncherAccessibilityDelegate()
98 launcher.getText(R.string.action_resize))); in LauncherAccessibilityDelegate()
100 launcher.getText(R.string.action_deep_shortcut))); in LauncherAccessibilityDelegate()
102 launcher.getText(R.string.shortcuts_menu_with_notifications_description))); in LauncherAccessibilityDelegate()
106 mActions.put(action, new AccessibilityAction(action, mLauncher.getText(actionLabel))); in addAccessibilityAction()
[all …]

12345678910>>...35