Home
last modified time | relevance | path

Searched refs:mTextView (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java111 private TextView mTextView; field in TextViewTest
145 mTextView = findTextView(R.id.textview_text); in initTextViewForTyping()
146 mTextView.setKeyListener(QwertyKeyListener.getInstance(false, Capitalize.NONE)); in initTextViewForTyping()
147 mTextView.setText("", BufferType.EDITABLE); in initTextViewForTyping()
148 mTextView.requestFocus(); in initTextViewForTyping()
175 mTextView = new TextView(mActivity); in testGetLineHeight()
176 assertTrue(mTextView.getLineHeight() > 0); in testGetLineHeight()
178 mTextView.setLineSpacing(1.2f, 1.5f); in testGetLineHeight()
179 assertTrue(mTextView.getLineHeight() > 0); in testGetLineHeight()
185 mTextView = findTextView(R.id.textview_text); in testGetLayout()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java51 private TextView mTextView; field in ScrollingMovementMethodTest
64 mTextView = new TextView(getActivity()); in setUp()
65 mTextView.setText(THREE_LINES_TEXT, BufferType.EDITABLE); in setUp()
66 mSpannable = (Spannable) mTextView.getText(); in setUp()
94 mTextView.setText("hello world", BufferType.SPANNABLE); in testOnTouchEventHorizontalMotion()
95 mTextView.setSingleLine(); in testOnTouchEventHorizontalMotion()
96 mSpannable = (Spannable) mTextView.getText(); in testOnTouchEventHorizontalMotion()
98 getActivity().setContentView(mTextView, in testOnTouchEventHorizontalMotion()
102 assertNotNull(mTextView.getLayout()); in testOnTouchEventHorizontalMotion()
104 float rightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion()
[all …]
DQwertyKeyListenerTest.java46 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
49 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
52 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
55 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
58 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
68 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
71 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
74 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
77 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
80 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DMultiTapKeyListenerTest.java54 mTextView.setKeyListener(mockMultiTapKeyListener); in testOnSpanAdded()
55 mTextView.setText(text, BufferType.EDITABLE); in testOnSpanAdded()
83 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
86 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
89 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
92 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
95 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
105 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
108 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
111 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DArrowKeyMovementMethodTest.java53 private TextView mTextView; field in ArrowKeyMovementMethodTest
75 getActivity().setContentView(mTextView); in setUp()
76 mTextView.setFocusable(true); in setUp()
77 mTextView.requestFocus(); in setUp()
81 assertNotNull(mTextView.getLayout()); in setUp()
82 assertTrue(mTextView.isFocused()); in setUp()
116 mArrowKeyMovementMethod.onTakeFocus(mTextView, mEditable, View.FOCUS_UP); in testOnTakeFocus()
125 mArrowKeyMovementMethod.onTakeFocus(mTextView, mEditable, View.FOCUS_LEFT); in testOnTakeFocus()
133 mTextView.setSingleLine(); in testOnTakeFocus()
138 assertNotNull(mTextView.getLayout()); in testOnTakeFocus()
[all …]
DDateKeyListenerTest.java69 assertEquals("", mTextView.getText().toString()); in testDateTimeKeyListener()
73 assertEquals("1", mTextView.getText().toString()); in testDateTimeKeyListener()
77 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
83 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
88 assertEquals("12-", mTextView.getText().toString()); in testDateTimeKeyListener()
92 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
96 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
100 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
DDateTimeKeyListenerTest.java71 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
76 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
81 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
88 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
95 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
102 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
109 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
114 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
117 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
DTimeKeyListenerTest.java67 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
72 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
77 assertEquals("12", mTextView.getText().toString()); in testTimeKeyListener()
84 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
91 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
98 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
105 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
112 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
DDigitsKeyListenerTest.java394 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
398 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
402 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
406 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
410 assertEquals("12", mTextView.getText().toString()); in testDigitsKeyListener1()
428 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener2()
432 assertEquals("-", mTextView.getText().toString()); in testDigitsKeyListener2()
436 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
440 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
444 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
[all …]
DNumberKeyListenerTest.java132 mTextView.setText(text, BufferType.EDITABLE); in testPressKey()
133 mTextView.setKeyListener(mockNumberKeyListener); in testPressKey()
134 mTextView.requestFocus(); in testPressKey()
135 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
139 assertEquals("123456", mTextView.getText().toString()); in testPressKey()
142 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
149 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
154 mTextView.setKeyListener(null); in testPressKey()
155 mTextView.requestFocus(); in testPressKey()
161 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
DTextKeyListenerTest.java87 mTextView.setKeyListener(mockTextKeyListener); in testOnSpanAdded()
88 mTextView.setText(text, BufferType.EDITABLE); in testOnSpanAdded()
147 mTextView.setText(text, BufferType.EDITABLE); in testClear()
149 Editable content = (Editable) mTextView.getText(); in testClear()
186 mTextView.setText("", BufferType.EDITABLE); in testPressKey()
187 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
188 mTextView.setKeyListener(textKeyListener); in testPressKey()
189 mTextView.requestFocus(); in testPressKey()
193 assertEquals("", mTextView.getText().toString()); in testPressKey()
197 String text = mTextView.getText().toString(); in testPressKey()
[all …]
DKeyListenerTestCase.java53 protected TextView mTextView; field in KeyListenerTestCase
65 mTextView = (TextView) mActivity.findViewById(R.id.keylistener_textview); in setUp()
70 mTextView.setKeepScreenOn(true); in setUp()
83 mTextView.setKeyListener(keyListener); in setKeyListenerSync()
DBaseKeyListenerTest.java48 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
53 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
58 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
60 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
68 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
73 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
78 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
86 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
91 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
95 mockBaseKeyListener.backspace(mTextView, content, event.getKeyCode(), event); in testBackspace()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DGpsTestActivity.java46 private TextView mTextView; field in GpsTestActivity
62 mTextView = (TextView) findViewById(R.id.text); in onCreate()
63 mTextView.setTypeface(Typeface.MONOSPACE); in onCreate()
64 mTextView.setTextSize(15.0f); in onCreate()
72 mTextView.setText(""); in onResume()
89 return mTextView.getText().toString(); in getTestDetails()
128 mTextView.append(s); in log()
129 mTextView.append("\n"); in log()
141 int start = mTextView.getText().length(); in log()
142 mTextView.append(s); in log()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DLlcpVersionActivity.java45 private TextView mTextView; field in LlcpVersionActivity
55 mTextView = (TextView) findViewById(R.id.text); in onCreate()
56 mTextView.setText(R.string.nfc_llcp_version_check_info); in onCreate()
109 mTextView.setText(R.string.nfc_llcp_version_check_failure); in createNdefMessage()
117 mTextView.setText(R.string.nfc_llcp_version_check_success); in createNdefMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DTapTestEmulatorActivity.java15 TextView mTextView; field in TapTestEmulatorActivity
24 mTextView = (TextView) findViewById(R.id.text); in onCreate()
32 mTextView.setText("Number of successful taps: 0/50."); in onResume()
57 mTextView.setText("Number of successful taps: " + Integer.toString(mNumTaps) + in onApduSequenceComplete()
DThroughputEmulatorActivity.java15 TextView mTextView; field in ThroughputEmulatorActivity
23 mTextView = (TextView) findViewById(R.id.text); in onCreate()
54 mTextView.setText("PASS. Total duration: " + Long.toString(duration) + " ms " + in onApduSequenceComplete()
58 mTextView.setText("FAIL. Total duration: " + Long.toString(duration) + " ms " + in onApduSequenceComplete()
DSimpleReaderActivity.java41 TextView mTextView; field in SimpleReaderActivity
56 mTextView = (TextView) findViewById(R.id.text); in onCreate()
57 mTextView.setTextSize(12.0f); in onCreate()
58 mTextView.setText(R.string.nfc_hce_type_selection); in onCreate()
134 mTextView.setText(sb.toString()); in onTagDiscovered()
144 mTextView.setText(sb.toString()); in onTagDiscovered()
158 mTextView.setText(sb.toString()); in onTagDiscovered()
DProtocolParamsReaderActivity.java23 TextView mTextView; field in ProtocolParamsReaderActivity
34 mTextView = (TextView) findViewById(R.id.text); in onCreate()
35 mTextView.setTextSize(12.0f); in onCreate()
197 mTextView.setText(sb.toString()); in onTagDiscovered()
205 mTextView.setText(sb.toString()); in onTagDiscovered()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DResponderTestActivity.java53 private TextView mTextView; field in ResponderTestActivity
87 mTextView = (TextView) findViewById(id.p2p_resp_text); in onCreate()
143 mTextView.setText(msg); in onTestMsgReceived()
153 mTextView.setText(getReadyMsgId()); in onTestSuccess()
164 mTextView.setText(reason); in onTestFailed()
DRequesterTestActivity.java72 private TextView mTextView; field in RequesterTestActivity
113 mTextView = (TextView) findViewById(id.p2p_req_text); in onCreate()
174 mTextView.setText(msg); in onTestMsgReceived()
188 mTextView.setText(reason); in onTestFailed()
199 mTextView.setText(R.string.p2p_result_success); in onTestSuccess()
212 mTextView.setText(R.string.p2p_searching_target); in searchTarget()
236 mTextView.setText( in searchTarget()
/cts/tests/app/src/android/app/cts/
DInstrumentationTestActivity.java55 private MockTextView mTextView; field in InstrumentationTestActivity
62 mTextView = new MockTextView(this); in onCreate()
63 setContentView(mTextView); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java649 private final TextView mTextView; field in BaseSensorTestActivity.TextAppender
652 mTextView = (TextView) getLayoutInflater().inflate(textViewResId, null /* viewGroup */); in TextAppender()
656 mTextView.setText(text); in setText()
660 mTextView.setText(textResId); in setText()
667 mLogLayout.addView(mTextView); in append()