/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextLongTextPerfTest.java | 68 final EditText editText = new EditText(mActivityRule.getActivity()); in setupEditText() local 84 editText.setHeight(height); in setupEditText() 85 editText.setWidth(width); in setupEditText() 86 editText.setLayoutParams(new ViewGroup.LayoutParams(width, height)); in setupEditText() 89 activity.setContentView(editText); in setupEditText() 91 editText.setText(sb.toString(), TextView.BufferType.EDITABLE); in setupEditText() 92 editText.invalidate(); in setupEditText() 93 editText.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in setupEditText() 95 editText.layout(0, 0, height, width); in setupEditText() 97 return editText; in setupEditText() [all …]
|
D | EditTextBackspacePerfTest.java | 88 private void prepareTextForBackspace(EditText editText) { in prepareTextForBackspace() argument 89 editText.setText(mText, TextView.BufferType.EDITABLE); in prepareTextForBackspace() 90 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 94 editText.setLayoutParams(new ViewGroup.LayoutParams( in prepareTextForBackspace() 97 editText.invalidate(); in prepareTextForBackspace() 98 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in prepareTextForBackspace() 100 editText.layout(0, 0, 1024, 768); in prepareTextForBackspace() 104 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace() 105 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace() 111 EditText editText = new EditText(mActivityRule.getActivity()); in testBackspace() local [all …]
|
D | EditTextCursorMovementPerfTest.java | 87 EditText editText = new EditText(mActivityRule.getActivity()); in testCursorMovement() 89 editText.setText(mText, TextView.BufferType.EDITABLE); in testCursorMovement() 90 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 94 editText.setLayoutParams(new ViewGroup.LayoutParams( in testCursorMovement() 97 editText.invalidate(); in testCursorMovement() 98 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in testCursorMovement() 100 editText.layout(0, 0, 1024, 768); in testCursorMovement() 104 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() 105 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement() 109 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/core/java/android/preference/ |
D | EditTextPreference.java | 124 EditText editText = mEditText; in onBindDialogView() local 125 editText.setText(getText()); in onBindDialogView() 127 ViewParent oldParent = editText.getParent(); in onBindDialogView() 130 ((ViewGroup) oldParent).removeView(editText); in onBindDialogView() 132 onAddEditTextToDialogView(view, editText); in onBindDialogView() 141 protected void onAddEditTextToDialogView(View dialogView, EditText editText) { in onAddEditTextToDialogView() argument 145 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/packages/SettingsLib/src/com/android/settingslib/ |
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()
|
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()
|
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 116 EditText editText = view.findViewById(R.id.remote_input_text); in testSendRemoteInput_intentContainsResultsAndSource() local 117 editText.setText(TEST_REPLY); in testSendRemoteInput_intentContainsResultsAndSource() 140 EditText editText = view.findViewById(R.id.remote_input_text); in getTargetInputMethodUser() local 143 editorInfo.fieldId = editText.getId(); in getTargetInputMethodUser() 144 InputConnection ic = editText.onCreateInputConnection(editorInfo); in getTargetInputMethodUser()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
D | ImeAppHelper.java | 37 UiObject2 editText = device.findObject(By.res(getPackage(), "plain_text_input")); in clickEditTextWidget() local 38 editText.click(); in clickEditTextWidget()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListOfEditTexts.java | 125 EditText editText = new EditText(getContext()); in getView() local 126 editText.setText(body); in getView() 127 return editText; in getView()
|
/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 | 159 EditText editText = new EditText(getContext()); in bindButton() 162 .setView(editText) in bindButton() 167 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/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | LoadtestActivity.java | 622 private void handleFocus(EditText editText) { in handleFocus() argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 2942 EditText editText = (EditText) view; in onFocusChange() local 2943 if (!TextUtils.isEmpty(editText.getText())) { in onFocusChange() 2944 editText.setSelection(editText.getText().length()); in onFocusChange()
|