/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInputTests.java | 102 private View mView; field in WindowInputTests 135 mView = new View(mActivity); in testMoveWindowAndTap() 136 mView.setBackgroundColor(Color.RED); in testMoveWindowAndTap() 137 mView.setOnClickListener((v) -> { in testMoveWindowAndTap() 140 mActivity.addWindow(mView, p); in testMoveWindowAndTap() 157 wm.updateViewLayout(mView, p); in testMoveWindowAndTap() 162 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mView); in testMoveWindowAndTap() 166 final int vW = mView.getWidth(); in testMoveWindowAndTap() 167 final int vH = mView.getHeight(); in testMoveWindowAndTap() 169 mView.getLocationOnScreen(viewOnScreenXY); in testMoveWindowAndTap() [all …]
|
D | WindowMetricsWindowContextTests.java | 72 private View mView; field in WindowMetricsWindowContextTests.WindowContextTestSession 87 mView = new View(mWindowContext); in WindowContextTestSession() 88 mView.addOnLayoutChangeListener(mListener); in WindowContextTestSession() 90 mWm.addView(mView, params); in WindowContextTestSession() 124 -> mWm.removeViewImmediate(mView)); in close() 125 mView.removeOnLayoutChangeListener(mListener); in close()
|
D | LocationInWindowTests.java | 115 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()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | GLSurfaceViewCtsActivity.java | 48 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/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 73 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/tests/view/src/android/view/cts/ |
D | ViewUnbufferedTest.java | 86 private View mView; field in ViewUnbufferedTest 132 mView = mActivity.findViewById(R.id.test_view); in setUp() 264 mView.setOnTouchListener((v, event) -> receivedEvent(event)); in testNormalTouch() 266 final Point point = getViewCenterOnScreen(mView); in testNormalTouch() 279 mView.setOnTouchListener((v, event) -> receivedEvent(event)); in testUnbufferedTouch() 280 mView.requestUnbufferedDispatch(SOURCE_CLASS_POINTER); in testUnbufferedTouch() 282 final Point point = getViewCenterOnScreen(mView); in testUnbufferedTouch() 288 compareEvents(mSentEvents, mReceivedEvents, getViewLocationOnScreen(mView)); in testUnbufferedTouch() 294 mView.setOnTouchListener((v, event) -> { in testUnbufferedTouchByEvent() 301 final Point point = getViewCenterOnScreen(mView); in testUnbufferedTouchByEvent() [all …]
|
D | View_DragShadowBuilderTest.java | 43 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()
|
D | GLSurfaceViewCtsActivity.java | 29 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()
|
D | GestureDetectorCtsActivity.java | 39 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()
|
D | PixelCopyGLProducerCtsActivity.java | 100 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()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | GLSurfaceViewCtsActivity.java | 48 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()
|
D | EglConfigCtsActivity.java | 52 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() 109 … mView = new EglConfigGLSurfaceView(context, configId, contextClientVersion, new Runnable() { in runConfigTests() 115 setContentView(mView); in runConfigTests()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraGpuCtsActivity.java | 42 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/ |
D | GenerateBitmapTask.java | 37 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/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | OverlayTestService.java | 34 private View mView; field in OverlayTestService 58 mView = new View(this); in addWindow() 59 mView.setBackgroundColor(Color.RED); in addWindow() 60 mWindowManager.addView(mView, params); in addWindow() 66 if (mView != null) { in onDestroy() 67 mWindowManager.removeViewImmediate(mView); in onDestroy() 68 mView = null; in onDestroy()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | AntiTrimmerTextWatcher.java | 34 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/ |
D | GPUStressTestActivity.java | 28 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/ |
D | AdapterViewCtsActivity.java | 33 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()
|
D | RemoteViewsFixedCollectionAdapterTest.java | 84 private View mView; field in RemoteViewsFixedCollectionAdapterTest 101 mView = mRemoteViews.apply(mActivity, hostView); in setUp() 102 hostView.addView(mView); in setUp() 104 mListView = mView.findViewById(R.id.remoteView_list); in setUp() 105 mGridView = mView.findViewById(R.id.remoteView_grid); in setUp() 106 mStackView = mView.findViewById(R.id.remoteView_stack); in setUp() 107 mAdapterViewFlipper = mView.findViewById(R.id.remoteView_flipper); in setUp() 241 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_emptyCollection() 265 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_withItems() 297 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_checkedChangeListener() [all …]
|
D | MagnifierTest.java | 83 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/app/shared/src/android/app/stubs/shared/ |
D | AppAccessibilityService.java | 43 private View mView; field in AppAccessibilityService 72 mView = new CustomView(this); in onServiceConnected() 73 mView.setBackgroundColor(BACKGROUND_COLOR); in onServiceConnected() 81 mWindowManager.addView(mView, params); in onServiceConnected() 87 if (mView != null) { in onDestroy() 88 mWindowManager.removeViewImmediate(mView); in onDestroy()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | TouchExplorerTest.java | 133 View mView; field in TouchExplorerTest 156 mView = mActivityRule.getActivity().findViewById(R.id.full_screen_text_view); in setUp() 163 mView.getWidth() / 2 in setUp() 168 mView.setOnHoverListener(mHoverListener); in setUp() 169 mView.setOnTouchListener(mTouchListener); in setUp() 173 mView = mActivityRule.getActivity().findViewById(R.id.full_screen_text_view); in setUp() 174 final int midX = mView.getWidth() / 2; in setUp() 175 final int midY = mView.getHeight() / 2; in setUp() 176 mView.getLocationOnScreen(viewLocation); in setUp() 178 mSwipeDistance = mView.getWidth() / 4; in setUp() [all …]
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GlPlanetsActivity.java | 48 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/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 65 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/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 65 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()
|