/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextLongTextPerfTest.java | 69 final EditText editText = new EditText(mActivityRule.getActivity()); in setupEditText() local 85 editText.setHeight(height); in setupEditText() 86 editText.setWidth(width); in setupEditText() 87 editText.setLayoutParams(new ViewGroup.LayoutParams(width, height)); in setupEditText() 90 activity.setContentView(editText); in setupEditText() 92 editText.setText(sb.toString(), TextView.BufferType.EDITABLE); in setupEditText() 93 editText.invalidate(); in setupEditText() 94 editText.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in setupEditText() 96 editText.layout(0, 0, height, width); in setupEditText() 98 return editText; in setupEditText() [all …]
|
D | EditTextBackspacePerfTest.java | 89 private void prepareTextForBackspace(EditText editText) { in prepareTextForBackspace() argument 90 editText.setText(mText, TextView.BufferType.EDITABLE); in prepareTextForBackspace() 91 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 95 editText.setLayoutParams(new ViewGroup.LayoutParams( in prepareTextForBackspace() 98 editText.invalidate(); in prepareTextForBackspace() 99 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in prepareTextForBackspace() 101 editText.layout(0, 0, 1024, 768); in prepareTextForBackspace() 105 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace() 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace() 112 EditText editText = new EditText(mActivityRule.getActivity()); in testBackspace() local [all …]
|
D | EditTextCursorMovementPerfTest.java | 88 EditText editText = new EditText(mActivityRule.getActivity()); in testCursorMovement() 90 editText.setText(mText, TextView.BufferType.EDITABLE); in testCursorMovement() 91 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 95 editText.setLayoutParams(new ViewGroup.LayoutParams( in testCursorMovement() 98 editText.invalidate(); in testCursorMovement() 99 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in testCursorMovement() 101 editText.layout(0, 0, 1024, 768); in testCursorMovement() 105 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement() 110 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | EditTextInputActivity.java | 36 final EditText editText = new EditText(this); in onCreate() local 40 editText.setWidth(400); in onCreate() 41 editText.setHeight(200); in onCreate() 42 setContentView(editText); in onCreate() 64 editText.getLocationOnScreen(coordinates); in onCreate() 69 float width = editText.getWidth(); in onCreate() 70 float height = editText.getHeight(); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 208 EditText editText = (EditText) view; 209 Drawable drawable = editText.getEditorForTesting().getCursorDrawable(); 219 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left; 223 int maxRight = editText.getWidth() - editText.getCompoundPaddingRight() 224 - editText.getCompoundPaddingLeft() + editText.getScrollX();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ChallengeDialogs.kt | 114 val editText = requireViewById<EditText>(R.id.controls_pin_input) in <lambda>() constant 115 editText.setHint(instructions) in <lambda>() 118 setInputType(editText, useAlphaCheckBox.isChecked()) in <lambda>() 120 setInputType(editText, useAlphaCheckBox.isChecked()) in <lambda>() 122 editText.requestFocus() in <lambda>() 162 private fun setInputType(editText: EditText, useTextInput: Boolean) { in <lambda>() 164 editText.setInputType( in <lambda>() 167 editText.setInputType( in <lambda>()
|
/frameworks/base/core/java/android/preference/ |
D | EditTextPreference.java | 126 EditText editText = mEditText; in onBindDialogView() local 127 editText.setText(getText()); in onBindDialogView() 129 ViewParent oldParent = editText.getParent(); in onBindDialogView() 132 ((ViewGroup) oldParent).removeView(editText); in onBindDialogView() 134 onAddEditTextToDialogView(view, editText); in onBindDialogView() 150 protected void onAddEditTextToDialogView(View dialogView, EditText editText) { in onAddEditTextToDialogView() argument 154 container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT, in onAddEditTextToDialogView()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | CustomEditTextPreferenceTest.java | 54 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_shouldRequestFocus() local 55 editText.setText(testText); in bindDialogView_shouldRequestFocus() 56 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_shouldRequestFocus() 60 verify(editText).requestFocus(); in bindDialogView_shouldRequestFocus()
|
D | CustomEditTextPreferenceComaptTest.java | 54 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_shouldRequestFocus() local 55 editText.setText(testText); in bindDialogView_shouldRequestFocus() 56 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_shouldRequestFocus() 60 verify(editText).requestFocus(); in bindDialogView_shouldRequestFocus()
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | PerfTestActivity.java | 46 final EditText editText = new EditText(this); in onCreate() local 47 editText.setId(ID_EDITOR); in onCreate() 48 layout.addView(editText); in onCreate()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | ImeAppHelper.kt | 40 val editText = uiDevice.wait( in openIME() constant 44 require(editText != null) { in openIME() 48 editText.click() in openIME()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | CustomEditTextPreferenceCompat.java | 85 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 86 if (editText != null) { in onBindDialogView() 87 editText.setInputType(TYPE_CLASS_TEXT | TYPE_TEXT_FLAG_CAP_SENTENCES); in onBindDialogView() 88 editText.requestFocus(); in onBindDialogView()
|
D | CustomEditTextPreference.java | 91 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 92 if (editText != null) { in onBindDialogView() 93 editText.setInputType(TYPE_CLASS_TEXT | TYPE_TEXT_FLAG_CAP_SENTENCES); in onBindDialogView() 94 editText.requestFocus(); in onBindDialogView()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
D | ImeAppHelper.kt | 45 val editText = device.wait( in openIME() constant 49 require(editText != null) { in openIME() 53 editText.click() in openIME()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 131 EditText editText = view.findViewById(R.id.remote_input_text); in testSendRemoteInput_intentContainsResultsAndSource() local 132 editText.setText(TEST_REPLY); in testSendRemoteInput_intentContainsResultsAndSource() 169 EditText editText = view.findViewById(R.id.remote_input_text); in getTargetInputMethodUser() local 172 editorInfo.fieldId = editText.getId(); in getTargetInputMethodUser() 173 InputConnection ic = editText.onCreateInputConnection(editorInfo); in getTargetInputMethodUser() 226 EditText editText = view.findViewById(R.id.remote_input_text); in testUiEventLogging_openAndSend() local 227 editText.setText(TEST_REPLY); in testUiEventLogging_openAndSend()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | EditTextTypeActivity.java | 56 EditText editText = new EditText(this); in onCreate() local 57 editText.setText(sSeedText); in onCreate() 58 setContentView(editText); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | LLEditTextThenButton.java | 40 mEditText = findViewById(R.id.editText); in onCreate()
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/android/layoutlib/test/myapplication/ |
D | R$id.class | R.java
package com.android.layoutlib.test.myapplication
public final com.android. ... |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | NavBarTuner.java | 160 EditText editText = new EditText(getContext()); in bindButton() 163 .setView(editText) in bindButton() 168 code = Integer.parseInt(editText.getText().toString()); in bindButton()
|
/frameworks/base/core/java/android/transition/ |
D | ChangeText.java | 309 private void setSelection(EditText editText, int start, int end) { in setSelection() argument 311 editText.setSelection(start, end); in setSelection()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/users/ |
D | EditUserInfoControllerTest.java | 214 EditText editText = (EditText) dialog.findViewById(R.id.user_name); in successCallback_isCalled_whenLabelChanges() local 215 editText.setText(expectedNewName); in successCallback_isCalled_whenLabelChanges()
|
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/ |
D | ChatActivity.java | 67 mTransitions.add(new Transition(findViewById(R.id.editText))); in onCreate()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 2941 EditText editText = (EditText) view; in onFocusChange() local 2942 if (!TextUtils.isEmpty(editText.getText())) { in onFocusChange() 2943 editText.setSelection(editText.getText().length()); in onFocusChange()
|