Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java67 final SurfaceView surfaceView; field in VirtualDisplayActivity.VirtualDisplayRequest
70 VirtualDisplayRequest(SurfaceView surfaceView, Bundle extras) { in VirtualDisplayRequest() argument
71 this.surfaceView = surfaceView; in VirtualDisplayRequest()
79 final SurfaceView surfaceView; field in VirtualDisplayActivity.VirtualDisplayEntry
83 VirtualDisplayEntry(VirtualDisplay display, SurfaceView surfaceView, int density, in VirtualDisplayEntry() argument
86 this.surfaceView = surfaceView; in VirtualDisplayEntry()
138 final SurfaceView surfaceView = new SurfaceView(this); in createVirtualDisplay() local
139 surfaceView.setLayoutParams( in createVirtualDisplay()
143 surfaceView.getHolder().addCallback(this); in createVirtualDisplay()
144 mPendingDisplayRequests.put(surfaceView.getHolder().getSurface(), in createVirtualDisplay()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DFlagSlipperyTest.kt227 val surfaceView = SurfaceView(getInstrumentation().targetContext) in addEmbeddedHostWindow() constant
230 surfaceView.setZOrderOnTop(true) in addEmbeddedHostWindow()
233 surfaceView.setBackgroundColor(android.graphics.Color.GREEN) in addEmbeddedHostWindow()
234 surfaceView.viewTreeObserver.addOnGlobalLayoutListener { in addEmbeddedHostWindow()
237 surfaceView.getHolder().addCallback(SurfaceCreatedCallback(surfaceCreated)) in addEmbeddedHostWindow()
238 windowManager.addView(surfaceView, slipperyLayoutParams) in addEmbeddedHostWindow()
243 surfaceView.hasWindowFocus() in addEmbeddedHostWindow()
245 return surfaceView in addEmbeddedHostWindow()
248 private fun addEmbeddedView(surfaceView: SurfaceView): View { in addEmbeddedView()
256 embeddedView.setOnTouchListener(OnTouchListener(surfaceView)) in addEmbeddedView()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java242 public void onSurfaceViewCreated(SurfaceView surfaceView) {
294 public void onSurfaceViewCreated(SurfaceView surfaceView) {
295 surfaceView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
349 public void onSurfaceViewCreated(SurfaceView surfaceView) {
350 surfaceView.setAlpha(0.25f);
351 surfaceView.setZOrderOnTop(true);
370 public void onSurfaceViewCreated(SurfaceView surfaceView) {
371 surfaceView.setAlpha(0.25f);
681 SurfaceView surfaceView = new SurfaceView(view.getContext());
682 surfaceView.setZOrderOnTop(true);
[all …]
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfaceControlTestCase.java79 SurfaceView surfaceView = new SurfaceView(context); in createView() local
82 surfaceView.setWillNotDraw(false); in createView()
84 surfaceView.getHolder().setFixedSize(mBufferWidth, mBufferHeight); in createView()
85 surfaceView.getHolder().addCallback(mCallback); in createView()
87 return surfaceView; in createView()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceViewSyncTest.java91 SurfaceView surfaceView = new SurfaceView(context);
94 surfaceView.setWillNotDraw(false);
96 return surfaceView;
104 SurfaceView surfaceView = new SurfaceView(context);
108 surfaceView.setWillNotDraw(false);
110 surfaceView.getHolder().setFixedSize(640, 480);
111 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
127 return surfaceView;
145 SurfaceView surfaceView = new SurfaceView(context);
149 surfaceView.setWillNotDraw(false);
[all …]
DASurfaceControlInputReceiverTest.java409 SurfaceView surfaceView = new SurfaceView(mActivity.getApplicationContext()); in setup() local
410 surfaceView.setZOrderOnTop(mZOrderOnTop); in setup()
411 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in setup()
415 nSurfaceControl_fromJava(surfaceView.getSurfaceControl())); in setup()
425 surfaceView.getRootSurfaceControl().getInputTransferToken(), in setup()
448 mActivity.runOnUiThread(() -> mActivity.setContentView(surfaceView)); in setup()
452 surfaceView.setOnTouchListener(hostTouchListener); in setup()
475 SurfaceView surfaceView = new SurfaceView(mActivity.getApplicationContext()); in setup() local
476 surfaceView.setZOrderOnTop(mZOrderOnTop); in setup()
500 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in setup()
[all …]
DSurfaceControlInputReceiverTests.java600 SurfaceView surfaceView = new SurfaceView(mActivity.getApplicationContext()); in setup() local
601 surfaceView.setZOrderOnTop(zOrderOnTop); in setup()
602 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in setup()
608 surfaceView.getSurfaceControl()); in setup()
627 mActivity.setContentView(surfaceView); in setup()
637 surfaceView.getRootSurfaceControl().getInputTransferToken(), mEmbeddedSc, in setup()
639 surfaceView.setOnTouchListener(hostTouchListener); in setup()
672 SurfaceView surfaceView = new SurfaceView(mActivity.getApplicationContext()); in setup() local
673 surfaceView.setZOrderOnTop(zOrderOnTop); in setup()
676 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in setup()
[all …]
DSurfaceViewSurfaceValidatorTest.java154 SurfaceView surfaceView = new SurfaceView(mActivity); in addSurfaceView() local
155 surfaceView.setZOrderOnTop(true); in addSurfaceView()
158 mRootView.addView(surfaceView, in addSurfaceView()
/cts/tests/openglperf2/src/android/opengl2/cts/primitive/
DGLPrimitiveActivity.java65 SurfaceView surfaceView = new SurfaceView(this); in onCreate() local
66 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in onCreate()
79 setContentView(surfaceView); in onCreate()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformCtsActivity.java51 SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surfaceview); in onCreate() local
52 surfaceView.getHolder().addCallback(this); in onCreate()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLGameActivity.java60 SurfaceView surfaceView = new SurfaceView(this); in onCreate() local
61 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in onCreate()
74 setContentView(surfaceView); in onCreate()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DCodecDynamicTestActivity.java56 SurfaceView surfaceView = view.findViewById(R.id.add_surface); in addSurfaceView() local
57 SurfaceHolder holder = surfaceView.getHolder(); in addSurfaceView()
61 mSurfaceViews.add(surfaceView); in addSurfaceView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DComplexMovementFragment.java77 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() local
78 surfaceView.setEGLContextClientVersion(2); in onActivityCreated()
80 surfaceView.setRenderer(mRenderer); in onActivityCreated()
82 mLLCameraLayout.addView(surfaceView); in onActivityCreated()
DRobustnessFragment.java79 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() local
80 surfaceView.setEGLContextClientVersion(2); in onActivityCreated()
82 surfaceView.setRenderer(mRenderer); in onActivityCreated()
84 mLLCameraLayout.addView(surfaceView); in onActivityCreated()
DAccuracyFragment.java89 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() local
90 surfaceView.setEGLContextClientVersion(2); in onActivityCreated()
92 surfaceView.setRenderer(mRenderer); in onActivityCreated()
94 mLLCameraLayout.addView(surfaceView); in onActivityCreated()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tunnelmode/
DMediaCodecFlushActivity.java40 SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surface); in onCreate() local
41 mHolder = surfaceView.getHolder(); in onCreate()
DVolumeLevelChangesActivity.java68 SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surface); in onCreate() local
69 mHolder = surfaceView.getHolder(); in onCreate()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTestBase.java832 private SurfaceView surfaceView; field in SurfaceViewFactory
839 surfaceView = null; in release()
854 surfaceView = new SurfaceView(context); in createView()
855 surfaceHolder = surfaceView.getHolder(); in createView()
857 return surfaceView; in createView()
886 return new SurfaceViewSnapshot(surfaceView, VIEW_WIDTH, VIEW_HEIGHT); in getVideoViewSnapshot()
1384 private final SurfaceView surfaceView; field in SurfaceViewSnapshot
1391 public SurfaceViewSnapshot(SurfaceView surfaceView, int width, int height) { in SurfaceViewSnapshot() argument
1392 this.surfaceView = surfaceView; in SurfaceViewSnapshot()
1407 while ((copyResult = copyHelper.request(surfaceView, bitmap)) != PixelCopy.SUCCESS in run()
/cts/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java954 SurfaceView surfaceView = mActivity.findViewById(R.id.surfaceview_stretch_target); in testSurfaceViewStretchAtEnd()
955 surfaceView.setBackgroundColor(Color.RED); in testSurfaceViewStretchAtEnd()
956 surfaceView.setVisibility(View.VISIBLE); in testSurfaceViewStretchAtEnd()
998 SurfaceView surfaceView = mActivity.findViewById(R.id.surfaceview_stretch_target); in testSurfaceViewStretchAtEndWithScale()
999 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in testSurfaceViewStretchAtEndWithScale()
1008 surfaceView.setScaleX(scaleX); in testSurfaceViewStretchAtEndWithScale()
1009 surfaceView.setPivotX(width); in testSurfaceViewStretchAtEndWithScale()
1010 surfaceView.setPivotY(height / 2f); in testSurfaceViewStretchAtEndWithScale()
1031 surfaceView.setVisibility(View.VISIBLE); in testSurfaceViewStretchAtEndWithScale()
DScrollViewTest.java1026 SurfaceView surfaceView = mActivity.findViewById(R.id.surfaceview_stretch_target); in testSurfaceViewStretchAtEnd()
1027 surfaceView.setBackgroundColor(Color.RED); in testSurfaceViewStretchAtEnd()
1028 surfaceView.setVisibility(View.VISIBLE); in testSurfaceViewStretchAtEnd()
1070 SurfaceView surfaceView = mActivity.findViewById(R.id.surfaceview_stretch_target); in testSurfaceViewStretchAtEndWithScale()
1071 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in testSurfaceViewStretchAtEndWithScale()
1080 surfaceView.setScaleY(scaleY); in testSurfaceViewStretchAtEndWithScale()
1081 surfaceView.setPivotX(width / 2f); in testSurfaceViewStretchAtEndWithScale()
1082 surfaceView.setPivotY(height); in testSurfaceViewStretchAtEndWithScale()
1102 surfaceView.setVisibility(View.VISIBLE); in testSurfaceViewStretchAtEndWithScale()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DModeSwitchingTestActivity.java91 SurfaceView surfaceView = findViewById(R.id.surface); in onCreate() local
92 mHolder = surfaceView.getHolder(); in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java309 SurfaceView surfaceView = activity.getSurfaceView(); in testSDRFromSurfaceViewAndTextureView() local
311 surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in testSDRFromSurfaceViewAndTextureView()
351 WidgetTestUtils.runOnMainAndDrawSync(mSDRActivityRule, surfaceView, () -> { in testSDRFromSurfaceViewAndTextureView()
352 ((ViewGroup) surfaceView.getParent()).removeView(surfaceView); in testSDRFromSurfaceViewAndTextureView()
353 activity.setContentView(surfaceView); in testSDRFromSurfaceViewAndTextureView()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayActivityLaunchTests.java928 SurfaceView surfaceView = new SurfaceView(mContext); in testImmediateLaunchOnNewDisplay() local
931 /*densityDpi=*/ 320, surfaceView.getHolder().getSurface(), in testImmediateLaunchOnNewDisplay()