Home
last modified time | relevance | path

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

12345678910>>...37

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java50 assertEquals("type word", WORD_TO_TYPE, mEditText.getText().toString()); in testTypeWord()
61 mEditText.getText().toString()); in testPickSuggestionThenBackspace()
73 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
76 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
87 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
90 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
102 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
105 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
126 assertEquals("delete selection", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelection()
148 assertEquals("delete selection twice", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelectionTwice()
[all …]
DInputLogicTestsLanguageWithoutSpaces.java33 mEditText.getText().toString()); in testAutoCorrectForLanguageWithoutSpaces()
43 EXPECTED_INTERMEDIATE_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
46 EXPECTED_FINAL_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
49 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
51 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
59 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
61 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
65 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
67 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
83 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testStartComposingInsideText()
[all …]
DPunctuationTests.java47 EXPECTED_RESULT, mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromStripTwice()
59 mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromKeyboardTwice()
73 mEditText.getText().toString()); in testManualPickThenPunctuationFromStripTwiceThenType()
84 mEditText.getText().toString()); in testManualPickThenManualPickWithPunctAtStart()
95 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenColon()
106 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenOpenParen()
117 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenCloseParen()
128 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenSmiley()
139 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenDotCom()
149 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.java36 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline()
53 final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
60 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
83 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineOnBackspace()
86 final SpanGetter underlineSpan = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testBlueUnderlineOnBackspace()
110 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved()
125 SpanGetter span = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testComposingStopsOnSpace()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DApplicationViewHolderTest.java63 assertThat(mHolder.mDisabled.getText()) in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
64 .isEqualTo(mContext.getText(com.android.settingslib.R.string.disabled)); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
70 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries()
73 assertThat(mHolder.mSummary.getText()) in setSummaries()
74 .isEqualTo(mContext.getText(com.android.settingslib.R.string.disabled)); in setSummaries()
81 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription()
89 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyButContentIsEmpty_shouldSetTitle()
102 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.internalSizeStr); in updateSize()
105 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.externalSizeStr); in updateSize()
110 assertThat(mHolder.mSummary.getText()).isEqualTo(invalidStr); in updateSize()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java110 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatDaysCorrectly()
123 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatHoursCorrectly()
136 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
146 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly()
157 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow()
168 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime()
225 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
238 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()).isEqualTo( in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
252 assertThat(mSummaryPreference.getCycleTime(mHolder).getText()) in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
264 assertThat(mSummaryPreference.getDataLimits(mHolder).getText()).isEqualTo(limitText); in testSetLimitInfo_withLimitInfo_dataLimitsShown()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerServiceTest.java30 mEditText.setSelection(mEditText.getText().length()); in testSpellchecker()
36 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker()
50 mEditText.setSelection(mEditText.getText().length()); in testRussianSpellchecker()
56 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker()
64 mEditText.setSelection(mEditText.getText().length()); in testSpellcheckWithPeriods()
70 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellcheckWithPeriods()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java330 return mProxyHost.getText().length() > 0 || mProxyPort.getText().length() > 0; in isAdvancedOptionsEnabled()
381 return mUsername.getText().length() != 0 && mPassword.getText().length() != 0; in validate()
383 if (mName.getText().length() == 0 || mServer.getText().length() == 0) { in validate()
388 if (mIpsecIdentifier.getText().length() == 0) { in validate()
401 return mIpsecSecret.getText().length() != 0; in validate()
490 profile.name = mName.getText().toString(); in getProfile()
493 profile.server = mServer.getText().toString().trim(); in getProfile()
494 profile.username = mUsername.getText().toString(); in getProfile()
495 profile.password = mPassword.getText().toString(); in getProfile()
498 profile.ipsecIdentifier = mIpsecIdentifier.getText().toString(); in getProfile()
[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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/mainline/
DCarMainlineFragment.java136 writer.printf("%smAppTargetSdk: %s\n", prefix, mAppTargetSdk.getText()); in dump()
137 writer.printf("%smAppCompilationSdk: %s\n", prefix, mAppCompilationSdk.getText()); in dump()
138 writer.printf("%smAppCarTargetMajorSdk: %s\n", prefix, mAppCarTargetMajorSdk.getText()); in dump()
139 writer.printf("%smAppCarTargetMinorSdk: %s\n", prefix, mAppCarTargetMinorSdk.getText()); in dump()
140 writer.printf("%smAndroidSdkCodename: %s\n", prefix, mAndroidSdkCodename.getText()); in dump()
141 writer.printf("%smAndroidSdkVersion: %s\n", prefix, mAndroidSdkVersion.getText()); in dump()
142 writer.printf("%smCarMajorVersion: %s\n", prefix, mCarMajorVersion.getText()); in dump()
143 writer.printf("%smCarMinorVersion: %s\n", prefix, mCarMinorVersion.getText()); in dump()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditor.java646 mName.setSummary(checkNull(mName.getText())); in fillUI()
647 mApn.setSummary(checkNull(mApn.getText())); in fillUI()
648 mProxy.setSummary(checkNull(mProxy.getText())); in fillUI()
649 mPort.setSummary(checkNull(mPort.getText())); in fillUI()
650 mUser.setSummary(checkNull(mUser.getText())); in fillUI()
651 mServer.setSummary(checkNull(mServer.getText())); in fillUI()
652 mPassword.setSummary(starify(mPassword.getText())); in fillUI()
653 mMmsProxy.setSummary(checkNull(mMmsProxy.getText())); in fillUI()
654 mMmsPort.setSummary(checkNull(mMmsPort.getText())); in fillUI()
655 mMmsc.setSummary(checkNull(mMmsc.getText())); in fillUI()
[all …]
/packages/services/Telephony/src/com/android/phone/
DChangeIccPinScreen.java125 setTitle(getResources().getText(id)); in setupView()
208 String oldPin = mOldPin.getText().toString();
209 String newPin1 = mNewPin1.getText().toString();
210 String newPin2 = mNewPin2.getText().toString();
217 mNewPin1.getText().clear();
218 mNewPin2.getText().clear();
256 mPhone.getIccCard().supplyPuk2(mPUKCode.getText().toString(),
257 mNewPin1.getText().toString(),
285 mOldPin.getText().clear(); in handleResult()
300 mPUKCode.getText().clear(); in handleResult()
DEnableIccPinScreen.java83 setTitle(getResources().getText(id)); in onCreate()
116 return mPinField.getText().toString(); in getPin()
129 showStatus(getResources().getText( in handleResult()
135 showStatus(getResources().getText( in handleResult()
148 if (TextUtils.isEmpty(mPinField.getText())) {
152 showStatus(getResources().getText(
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConnectToNetworkNotificationBuilder.java82 title = mContext.getText(R.string.wifi_available_title); in createConnectToAvailableNetworkNotification()
91 mContext.getResources().getText(R.string.wifi_available_action_connect), in createConnectToAvailableNetworkNotification()
99 mContext.getResources().getText(R.string.wifi_available_action_all_networks), in createConnectToAvailableNetworkNotification()
124 mContext.getText(R.string.wifi_available_title_connecting), network.SSID, in createNetworkConnectingNotification()
139 mContext.getText(R.string.wifi_available_title_connected), network.SSID, in createNetworkConnectedNotification()
152 mContext.getText(R.string.wifi_available_title_failed_to_connect), in createNetworkFailedNotification()
153 mContext.getText(R.string.wifi_available_content_failed_to_connect), notifierTag) in createNetworkFailedNotification()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java87 name = context.getText(R.string.notification_channel_incoming_call); in createChannel()
95 name = context.getText(R.string.notification_channel_missed_call); in createChannel()
103 name = context.getText(R.string.notification_channel_call_blocking); in createChannel()
111 name = context.getText(R.string.notification_channel_background_calls); in createChannel()
119 name = context.getText(R.string.notification_channel_disconnected_calls); in createChannel()
127 name = context.getText(R.string.notification_channel_in_call_service_crash); in createChannel()
134 name = context.getText(R.string.notification_channel_call_streaming); in createChannel()
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DBroadcastScanActivity.java132 if (code_input_text.getText() == null) { in onCreate()
140 if (code_input_text.getText().length() == 0) { in onCreate()
150 if ((code_input_text.getText().length() > 16) in onCreate()
151 || (code_input_text.getText().length() in onCreate()
165 .getText() in onCreate()
172 if ((channels_input_text.getText() != null) in onCreate()
173 && (channels_input_text.getText().length() in onCreate()
178 .getText() in onCreate()
DBroadcasterActivity.java138 program_info.getText().toString(), in onCreate()
139 public_content.getText().toString(), in onCreate()
142 broadcast_name.getText().toString(), in onCreate()
143 code_input_text.getText().toString()); in onCreate()
157 program_info.getText().toString(), in onCreate()
158 public_content.getText().toString(), in onCreate()
161 broadcast_name.getText().toString(), in onCreate()
162 code_input_text.getText().toString()); in onCreate()
167 program_info.getText().toString(), in onCreate()
168 public_content.getText().toString(), in onCreate()
[all …]
/packages/modules/OnDevicePersonalization/samples/odpclient/src/main/java/com/example/odpclient/
DMainActivity.java127 + mTextBox.getText().toString()); in makeRequest()
130 appParams.putString("keyword", mTextBox.getText().toString()); in makeRequest()
216 + mScheduleTrainingTextBox.getText().toString()); in scheduleTraining()
218 appParams.putString("schedule_training", mScheduleTrainingTextBox.getText().toString()); in scheduleTraining()
219 if (mScheduleIntervalTextBox.getText() != null in scheduleTraining()
220 && mScheduleIntervalTextBox.getText().toString() != null in scheduleTraining()
221 && !mScheduleIntervalTextBox.getText().toString().isBlank()) { in scheduleTraining()
224 Long.parseUnsignedLong(mScheduleIntervalTextBox.getText().toString())); in scheduleTraining()
270 + mScheduleTrainingTextBox.getText().toString()); in cancelTraining()
272 appParams.putString("cancel_training", mScheduleTrainingTextBox.getText().toString()); in cancelTraining()
[all …]
/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/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/apps/Test/connectivity/PMC/src/com/android/pmc/
DSettingActivity.java37 intent.putExtra(PMCMainActivity.SETTING_SERVER_IP_KEY, mServerIP.getText().toString()); in onBackPressed()
38 intent.putExtra(PMCMainActivity.SETTING_SERVER_PORT_KEY, mServerPort.getText().toString()); in onBackPressed()
39 intent.putExtra(PMCMainActivity.SETTING_INTERVAL_KEY, mInterval.getText().toString()); in onBackPressed()
41 mIperfBandwidth.getText().toString()); in onBackPressed()
43 mIperfLogfile.getText().toString()); in onBackPressed()
/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/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockPatternTest.java201 assertThat(skipOrClearButton.getText()) in createActivity_enterPattern_clearButtonShouldBeShown()
208 assertThat(skipOrClearButton.getText()) in createActivity_enterPattern_clearButtonShouldBeShown()
219 assertThat(patternDescription.getText()).isEqualTo( in createActivity_patternDescription_shouldBeShown()
237 assertThat(headerView.getText().toString()).isEqualTo( in inIntroductionStage_theHeaderHeight_shouldSetMinLinesTwoToPreventFlicker()
250 assertThat(headerView.getText().toString()).isEqualTo( in createActivity_enterPattern_shouldGoToFirstChoiceValidStage()
262 assertThat(headerView.getText().toString()).isEqualTo( in createActivity_enterShortPattern_shouldGoToChoiceTooShortStage()
309 assertThat(headerView.getText().toString()).isEqualTo( in inFirstChoiceValidStage_clickNextButton_shouldGoToNeedToConfirmStage()
326 assertThat(headerView.getText().toString()).isEqualTo( in inNeedToConfirmStage_enterWrongPattern_shouldGoToConfirmWrongStage()
332 assertThat(headerView.getText().toString()).isEqualTo( in inNeedToConfirmStage_enterWrongPattern_shouldGoToConfirmWrongStage()
334 assertThat(nextButton.getText().toString()).isEqualTo( in inNeedToConfirmStage_enterWrongPattern_shouldGoToConfirmWrongStage()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java151 res.getText(R.string.wifi_calling_settings_title), in createWifiCallingSlice()
152 res.getText(R.string.wifi_calling_settings_activation_instructions), in createWifiCallingSlice()
174 .setTitle(res.getText(R.string.wifi_calling_settings_title)) in getWifiCallingSlice()
184 res.getText(R.string.wifi_calling_settings_title)))) in getWifiCallingSlice()
240 res.getText(R.string.wifi_calling_mode_title), in createWifiCallingPreferenceSlice()
241 res.getText(R.string.wifi_calling_turn_on), in createWifiCallingPreferenceSlice()
268 .setTitle(res.getText(R.string.wifi_calling_mode_title)) in getWifiCallingPreferenceSlice()
273 res.getText(R.string.wifi_calling_mode_title))); in getWifiCallingPreferenceSlice()
314 .setTitle(res.getText(preferenceTitleResId)) in wifiPreferenceRowBuilder()
316 icon, res.getText(preferenceTitleResId), checked)); in wifiPreferenceRowBuilder()
[all …]

12345678910>>...37