Home
last modified time | relevance | path

Searched refs:mView (Results 1 – 25 of 38) sorted by relevance

12

/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java73 private TextView mView; field in LinkMovementMethodTest
87 mActivityRule.runOnUiThread(() -> mView = new TextViewNoIme(mActivity)); in setup()
88 mView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in setup()
89 mView.setText(CONTENT, BufferType.SPANNABLE); in setup()
91 mActivityRule.runOnUiThread(() -> mActivity.setContentView(mView)); in setup()
94 mSpannable = (Spannable) mView.getText(); in setup()
168 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
178 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
188 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
197 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
[all …]
/cts/tests/camera/src/android/hardware/cts/
DGLSurfaceViewCtsActivity.java48 private GLSurfaceView mView; field in GLSurfaceViewCtsActivity
89 mView = new GLSurfaceView(this); in onCreate()
92 mView.setEGLContextClientVersion(mGlVersion); in onCreate()
96 mView.setRenderer(new Renderer()); in onCreate()
98 mView.setRenderer(mRenderer); in onCreate()
102 mView.setRenderMode(mRenderMode); in onCreate()
105 setContentView(mView); in onCreate()
109 return mView; in getView()
115 mView.onResume(); in onResume()
121 mView.onPause(); in onPause()
/cts/tests/tests/view/src/android/view/cts/
DView_DragShadowBuilderTest.java43 private MockView mView; field in View_DragShadowBuilderTest
51 mView = new MockView(mActivityRule.getActivity()); in setup()
52 mBuilder = new DragShadowBuilder(mView); in setup()
57 new DragShadowBuilder(mView); in testConstructor()
64 assertSame(mView, mBuilder.getView()); in testGetView()
72 mView.setLeftTopRightBottom(0, 0, 50, 50); in testOnProvideShadowMetrics()
75 assertEquals(mView.getWidth(), outShadowSize.x); in testOnProvideShadowMetrics()
76 assertEquals(mView.getHeight(), outShadowSize.y); in testOnProvideShadowMetrics()
87 assertTrue(mView.hasCalledOnDraw()); in testOnDrawShadow()
DGLSurfaceViewCtsActivity.java29 protected GLSurfaceView mView; field in GLSurfaceViewCtsActivity
34 mView = new GLSurfaceView(this); in onCreate()
38 setContentView(mView); in onCreate()
44 return mView; in getView()
50 mView.onResume(); in onResume()
56 mView.onPause(); in onPause()
DGestureDetectorCtsActivity.java39 private View mView; field in GestureDetectorCtsActivity
61 mView = new View(this); in onCreate()
64 mView.setOnTouchListener(new MockOnTouchListener()); in onCreate()
71 mViewGroup.addView(mView); in onCreate()
80 return mView; in getView()
DPixelCopyGLProducerCtsActivity.java100 mView.setEGLContextClientVersion(2); in configureGLSurfaceView()
103 mView.setRenderer(mRenderer); in configureGLSurfaceView()
104 mView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); in configureGLSurfaceView()
105 mView.getHolder().setFixedSize(100, 100); in configureGLSurfaceView()
DViewAnimationMatrixActivity.java26 View mView; field in ViewAnimationMatrixActivity
33 mView = findViewById(R.id.view); in onCreate()
/cts/tests/tests/opengl/src/android/opengl/cts/
DGLSurfaceViewCtsActivity.java48 private GLSurfaceView mView; field in GLSurfaceViewCtsActivity
53 mView = new GLSurfaceView(this); in onCreate()
54 mView.setRenderer(new Renderer()); in onCreate()
56 setContentView(mView); in onCreate()
60 return mView; in getView()
66 mView.onResume(); in onResume()
72 mView.onPause(); in onPause()
DEglConfigCtsActivity.java52 private EglConfigGLSurfaceView mView; field in EglConfigCtsActivity
81 if (mView != null) in onResume()
83 mView.onResume(); in onResume()
90 if (mView != null) in onPause()
92 mView.onPause(); in onPause()
109mView = new EglConfigGLSurfaceView(context, configId, contextClientVersion, new Runnable() { in runConfigTests()
115 setContentView(mView); in runConfigTests()
DOpenGlEsVersionCtsActivity.java57 private GLSurfaceView mView; field in OpenGlEsVersionCtsActivity
69 mView = new GLSurfaceView(this); in onCreate()
74 mView.setEGLContextClientVersion(eglContextClientVersion); in onCreate()
77 mView.setRenderer(new Renderer()); in onCreate()
78 setContentView(mView); in onCreate()
83 mView.onPause(); in onPause()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraGpuCtsActivity.java42 protected GLSurfaceView mView; field in CameraGpuCtsActivity
68 mView = new GLSurfaceView(this); in onCreate()
69 mView.setEGLContextClientVersion(2); in onCreate()
70 mView.setRenderer(new Renderer()); in onCreate()
71 mView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY); in onCreate()
77 setContentView(mView); in onCreate()
83 mView.onResume(); in onResume()
89 mView.onPause(); in onPause()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateBitmapTask.java37 private final View mView; field in GenerateBitmapTask
45 mView = view; in GenerateBitmapTask()
52 if (mView.getWidth() == 0 || mView.getHeight() == 0) { in onPreExecute()
57 mBitmap = Bitmap.createBitmap(mView.getWidth(), mView.getHeight(), in onPreExecute()
61 mView.draw(canvas); in onPreExecute()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAntiTrimmerTextWatcher.java34 private final EditText mView; field in AntiTrimmerTextWatcher
37 mView = view; in AntiTrimmerTextWatcher()
38 mView.addTextChangedListener(this); in AntiTrimmerTextWatcher()
43 mView.removeTextChangedListener(this); in onTextChanged()
44 mView.setText("#" + s + "#"); in onTextChanged()
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGPUStressTestActivity.java28 GLtestView mView; field in GPUStressTestActivity
40 mView = new GLtestView(getApplication()); in onCreate()
41 setContentView(mView); in onCreate()
46 mView.onPause(); in onPause()
51 mView.onResume(); in onResume()
/cts/tests/tests/widget/src/android/widget/cts/
DAdapterViewCtsActivity.java33 private ListView mView; field in AdapterViewCtsActivity
41 mView = new ListView(this); in onCreate()
42 mView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
44 setContentView(mView); in onCreate()
48 return mView; in getListView()
DMagnifierTest.java83 private View mView; field in MagnifierTest
102 mView = mActivity.findViewById(R.id.magnifier_centered_view); in setup()
105 mMagnifier = new Magnifier.Builder(mView) in setup()
106 .setSize(mView.getWidth() / 2, mView.getHeight() / 2) in setup()
150 final Magnifier.Builder builder = new Magnifier.Builder(mView) in testBuilder_setsPropertiesCorrectly_whenTheyAreValid()
184 new Magnifier.Builder(mView).setSize(0, 10); in testBuilder_throwsException_whenWidthIsInvalid()
189 new Magnifier.Builder(mView).setSize(10, 0); in testBuilder_throwsException_whenHeightIsInvalid()
194 new Magnifier.Builder(mView).setInitialZoom(0f); in testBuilder_throwsException_whenZoomIsZero()
199 new Magnifier.Builder(mView).setInitialZoom(-1f); in testBuilder_throwsException_whenZoomIsNegative()
204 new Magnifier.Builder(mView).setElevation(-1f); in testBuilder_throwsException_whenElevationIsInvalid()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java115 assertThatViewGetLocationInWindowIsCorrect(activity.mView); in runTest()
172 private View mView; field in LocationInWindowTests.TestActivity
185 mView = new View(this); in onCreate()
189 frame.addView(mView, lp); in onCreate()
190 mView.setTranslationX(8); in onCreate()
191 mView.setTranslationY(9); in onCreate()
192 mView.setScrollX(10); in onCreate()
193 mView.setScrollY(11); in onCreate()
DWindowInputTests.java58 private View mView; field in WindowInputTests
86 mView = new View(mActivity); in testMoveWindowAndTap()
90 mView.setOnClickListener((v) -> { in testMoveWindowAndTap()
93 wm.addView(mView, p); in testMoveWindowAndTap()
111 wm.updateViewLayout(mView, p); in testMoveWindowAndTap()
114 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mView); in testMoveWindowAndTap()
DLayoutTests.java111 activity.mView = view; in doTestLayoutAfterRemovingFocus()
119 activity.getWindowManager().removeViewImmediate(activity.mView)); in doTestLayoutAfterRemovingFocus()
192 activity.mView = view; in testChangingFocusableFlag()
199 activity.getWindowManager().updateViewLayout(activity.mView, attrs); in testChangingFocusableFlag()
222 View mView = null; field in LayoutTests.TestActivity
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlPlanetsActivity.java48 private PlanetsSurfaceView mView; field in GlPlanetsActivity
92 mView = new PlanetsSurfaceView(this, param, this); in onCreate()
93 setContentView(mView); in onCreate()
109 mView.onResume(); in onResume()
115 mView.onPause(); in onPause()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt65 private var mView: View? = null in hashCode() variable in android.uirendering.cts.testinfrastructure.DrawActivity
163 mView = null in hashCode()
180 mView = LayoutInflater.from(this@DrawActivity).inflate( in hashCode()
191 mView = canvasClientView in hashCode()
195 if (mView == null) { in hashCode()
200 mView, ViewGroup.LayoutParams.MATCH_PARENT, in hashCode()
205 mViewInitializer!!.initializeView(mView) in hashCode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt65 private var mView: View? = null in hashCode() variable in android.uirendering.cts.testinfrastructure.DrawActivity
164 mView = null in hashCode()
181 mView = LayoutInflater.from(this@DrawActivity).inflate( in hashCode()
192 mView = canvasClientView in hashCode()
196 if (mView == null) { in hashCode()
201 mView, ViewGroup.LayoutParams.MATCH_PARENT, in hashCode()
206 mViewInitializer!!.initializeView(mView) in hashCode()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java55 private LinearLayout mView; field in LayoutAnimationTest
66 mView = (LinearLayout) mActivity.findViewById(R.id.container); in setup()
94 mView.setLayoutTransition(mLayoutTransition); in testIsChangingLayout()
150 mView.setLayoutTransition(mLayoutTransition); in testAnimationWithAnimator()
198 mView.setLayoutTransition(mLayoutTransition); in setDefaultTransition()
211 View mView; field in LayoutAnimationTest.MyTransitionListener
217 this.mView = view; in endTransition()
225 this.mView = view; in startTransition()
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java61 OpenGLES20View mView; field in OpenGLESActivity
78 mView = new OpenGLES20View(this, viewIndex, protectedAttribute, priorityAttribute, in onCreate()
81 setContentView(mView); in onCreate()
105 mView.queueEvent(wrapper); in runOnGlThread()
153 if (mView != null) { in onPause()
154 mView.onPause(); in onPause()
161 if (mView != null) { in onResume()
162 mView.onResume(); in onResume()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java282 private View mView; field in NotificationListenerVerifierActivity.ReceiveChannelBlockNoticeTest
285 mView = createNlsSettingsItem(parent, R.string.nls_block_channel); in inflate()
286 Button button = mView.findViewById(R.id.nls_action_button); in inflate()
288 return mView; in inflate()
298 Button button = mView.findViewById(R.id.nls_action_button); in setUp()
357 private View mView; field in NotificationListenerVerifierActivity.ReceiveGroupBlockNoticeTest
360 mView = createNlsSettingsItem(parent, R.string.nls_block_group); in inflate()
361 Button button = mView.findViewById(R.id.nls_action_button); in inflate()
363 return mView; in inflate()
377 Button button = mView.findViewById(R.id.nls_action_button); in setUp()
[all …]

12