/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | GamePerformanceActivity.java | 33 private CustomSurfaceView mSurfaceView = null; field in GamePerformanceActivity 44 if (mSurfaceView != null) { in detachAllViews() 45 mRootLayout.removeView(mSurfaceView); in detachAllViews() 46 mSurfaceView = null; in detachAllViews() 56 if (mSurfaceView != null) { in attachSurfaceView() 64 mSurfaceView = new CustomSurfaceView(GamePerformanceActivity.this); in attachSurfaceView() 65 mRootLayout.addView(mSurfaceView); in attachSurfaceView() 70 mSurfaceView.waitForSurfaceReady(); in attachSurfaceView() 150 if (mSurfaceView != null) { in resetFrameTimes() 151 mSurfaceView.resetFrameTimes(); in resetFrameTimes() [all …]
|
/frameworks/base/core/java/android/widget/inline/ |
D | InlineContentView.java | 117 final SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); 130 final SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); 160 mSurfaceView.setVisibility(visibility); 165 private final SurfaceView mSurfaceView; field in InlineContentView 205 mSurfaceView.setEnableSurfaceClipping(true); in InlineContentView() 216 return mSurfaceView.getSurfaceControl(); in getSurfaceControl() 222 mSurfaceView.setClipBounds(clipBounds); in setClipBounds() 232 mSurfaceView = new SurfaceView(context, attrs, defStyleAttr, defStyleRes) { in InlineContentView() 256 mSurfaceView.setZOrderOnTop(true); in InlineContentView() 257 mSurfaceView.getHolder().setFormat(PixelFormat.TRANSPARENT); in InlineContentView() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | MovingSurfaceViewActivity.java | 33 SurfaceView mSurfaceView; field in MovingSurfaceViewActivity 48 mSurfaceView.setScaleX(mScaled ? 1.6f : 1f); in MySurfaceView() 49 mSurfaceView.setScaleY(mScaled ? 0.8f : 1f); in MySurfaceView() 85 mSurfaceView = new MySurfaceView(this); in onCreate() 86 mSurfaceView.getHolder().addCallback(this); in onCreate() 91 content.addView(mSurfaceView, new FrameLayout.LayoutParams( in onCreate() 93 mAnimator = ObjectAnimator.ofFloat(mSurfaceView, "myTranslationY", in onCreate()
|
D | GetBitmapSurfaceViewActivity.java | 39 private SurfaceView mSurfaceView; field in GetBitmapSurfaceViewActivity 47 mSurfaceView = new SurfaceView(this); in onCreate() 48 mSurfaceView.getHolder().addCallback(this); in onCreate() 54 mSurfaceView.getWidth(), mSurfaceView.getHeight(), in onCreate() 56 PixelCopy.request(mSurfaceView, b, in onCreate() 71 }, mSurfaceView.getHandler()); in onCreate() 74 content.addView(mSurfaceView, new FrameLayout.LayoutParams(500, 400, Gravity.CENTER)); in onCreate()
|
D | HardwareCanvasSurfaceViewActivity.java | 40 private SurfaceView mSurfaceView; field in HardwareCanvasSurfaceViewActivity 49 mSurfaceView = new SurfaceView(this); in onCreate() 50 mSurfaceView.getHolder().addCallback(this); in onCreate() 56 mSurfaceView.getWidth(), mSurfaceView.getHeight(), in onCreate() 58 PixelCopy.request(mSurfaceView, b, in onCreate() 73 }, mSurfaceView.getHandler()); in onCreate() 80 layout.addView(mSurfaceView, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
|
D | StretchySurfaceViewActivity.java | 36 SurfaceView mSurfaceView; field in StretchySurfaceViewActivity 51 mSurfaceView.setScaleX(mScaled ? 1.6f : 1f); in MySurfaceView() 52 mSurfaceView.setScaleY(mScaled ? 0.8f : 1f); in MySurfaceView() 107 mSurfaceView = new MySurfaceView(this); in onCreate() 108 mSurfaceView.getHolder().addCallback(this); in onCreate() 113 content.addView(mSurfaceView, new FrameLayout.LayoutParams( in onCreate() 115 mAnimator = ObjectAnimator.ofFloat(mSurfaceView, "myTranslationY", in onCreate()
|
D | SurfaceViewAlphaActivity.java | 34 SurfaceView mSurfaceView; field in SurfaceViewAlphaActivity 96 mSurfaceView = new SurfaceView(this); in onCreate() 97 mSurfaceView.getHolder().addCallback(this); in onCreate() 98 mSurfaceView.setAlpha(mAlpha); in onCreate() 115 mSurfaceView.setAlpha(mAlpha); in onCreate() 141 mSurfaceView.setZOrderOnTop(ZOrder.ABOVE.equals(mZOrder)); in onCreate() 149 overlapViews(mSurfaceView, content); in onCreate()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
D | SurfaceRenderFilter.java | 50 private FilterSurfaceView mSurfaceView; field in SurfaceRenderFilter 85 if (mSurfaceView == null) { in setupPorts() 120 MutableFrameFormat screenFormat = ImageFormat.create(mSurfaceView.getWidth(), in prepare() 121 mSurfaceView.getHeight(), in prepare() 133 mSurfaceView.unbind(); in open() 134 mSurfaceView.bindToListener(this, context.getGLEnvironment()); in open() 148 GLEnvironment glEnv = mSurfaceView.getGLEnv(); in process() 178 glEnv.activateSurfaceWithId(mSurfaceView.getSurfaceId()); in process() 198 mSurfaceView.unbind(); in close()
|
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/ |
D | SurfaceViewSyncActivity.java | 47 private SurfaceView mSurfaceView; field in SurfaceViewSyncActivity 61 mSurfaceView = findViewById(R.id.surface_view); in onCreate() 62 mSurfaceView.getHolder().addCallback(this); in onCreate() 73 mRenderingThread = new RenderingThread(mSurfaceView.getHolder()); in onCreate() 96 ViewGroup.LayoutParams svParams = mSurfaceView.getLayoutParams(); in updateSurfaceViewSize() 98 mSurfaceView.setLayoutParams(svParams); in updateSurfaceViewSize() 107 mRenderingThread.renderFrame(null, mSurfaceView.getWidth(), mSurfaceView.getHeight()); in surfaceCreated() 117 mSyncGroup.add(mSurfaceView, frameCallback -> in surfaceChanged()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | SurfaceAndTextureViews.java | 42 SimpleSurfaceView mSurfaceView; field in SurfaceAndTextureViews 59 mSurfaceView = new SimpleSurfaceView(this); in onCreate() 60 mSurfaceView.setId(1); in onCreate() 61 mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); in onCreate() 62 container.addView(mSurfaceView); in onCreate() 82 … mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE * 2, SMALL_SIZE)); in onCreate() 85 mSurfaceView.mColor = SimpleSurfaceView.LARGE_COLOR; in onCreate() 89 mSurfaceView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); in onCreate() 92 mSurfaceView.mColor = SimpleSurfaceView.SMALL_COLOR; in onCreate()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceViewSyncValidatorTestCase.java | 56 private SurfaceView mSurfaceView; field in SurfaceViewSyncValidatorTestCase 79 mSyncGroup.add(mSurfaceView, frameCallback -> 104 mSurfaceView = new SurfaceView(context); 105 mSurfaceView.getHolder().addCallback(mCallback); 109 parent.addView(mSurfaceView, layoutParams); 138 ViewGroup.LayoutParams svParams = mSurfaceView.getLayoutParams(); 140 mSurfaceView.setLayoutParams(svParams);
|
D | SurfaceControlViewHostTests.java | 81 private SurfaceView mSurfaceView; field in SurfaceControlViewHostTests 107 new SurfaceControl.Transaction().reparent(sc, mSurfaceView.getSurfaceControl()) in requestFocusWithMultipleWindows() 113 mSurfaceView.getViewRootImpl().getInputTransferToken()); in requestFocusWithMultipleWindows() 135 IWindow window = IWindow.Stub.asInterface(mSurfaceView.getWindowToken()); in requestFocusWithMultipleWindows() 168 mSurfaceView = new SurfaceView(mActivity); in addSurfaceView() 169 mSurfaceView.setZOrderOnTop(true); in addSurfaceView() 172 mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { in addSurfaceView() 189 content.addView(mSurfaceView, lp); in addSurfaceView()
|
/frameworks/base/media/java/android/media/tv/ad/ |
D | TvAdView.java | 90 private SurfaceView mSurfaceView; field in TvAdView 214 mSurfaceView.layout(mSurfaceViewLeft, mSurfaceViewTop, mSurfaceViewRight, in onLayout() 217 mSurfaceView.layout(0, 0, right - left, bottom - top); in onLayout() 223 mSurfaceView.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 224 int width = mSurfaceView.getMeasuredWidth(); in onMeasure() 225 int height = mSurfaceView.getMeasuredHeight(); in onMeasure() 226 int childState = mSurfaceView.getMeasuredState(); in onMeasure() 235 mSurfaceView.setVisibility(visibility); in onVisibilityChanged() 244 if (mSurfaceView != null) { in resetSurfaceView() 245 mSurfaceView.getHolder().removeCallback(mSurfaceHolderCallback); in resetSurfaceView() [all …]
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | GameActivity.java | 33 private SurfaceView mSurfaceView; field in GameActivity 41 mSurfaceView = (SurfaceView) findViewById(R.id.surface_view); in onCreate() 42 mSurfaceView.setZOrderOnTop(true); in onCreate() 43 mSurfaceHolder = mSurfaceView.getHolder(); in onCreate()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 68 private SurfaceView mSurfaceView; field in AttachedChoreographerTest 86 mSurfaceView = activity.findViewById(R.id.surface); in setUp() 87 mSurfaceHolder = mSurfaceView.getHolder(); in setUp() 151 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCreateChoreographer() 195 SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); in testCreateChoreographer() 208 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCopySurfaceControl() 241 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testMirrorSurfaceControl() 273 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testPostFrameCallback() 298 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testPostFrameCallbackDelayed() 325 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testPostCallback() [all …]
|
D | AttachedChoreographerNativeTest.java | 55 private SurfaceView mSurfaceView; field in AttachedChoreographerNativeTest 70 mSurfaceView = activity.findViewById(R.id.surface); in setup() 71 mSurfaceHolder = mSurfaceView.getHolder(); in setup() 126 SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); in test_choreographer_callbacksForVariousFrameRates()
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
D | CameraTooActivity.java | 72 SurfaceView mSurfaceView; field in CameraTooActivity 137 mSurfaceView = (SurfaceView) layout.findViewById(R.id.mainSurfaceView); in onResume() 138 mSurfaceView.getHolder().addCallback(mSurfaceHolderCallback); in onResume() 139 setContentView(mSurfaceView); in onResume() 153 mSurfaceView.getHolder().setFixedSize(/*width*/0, /*height*/0); in onPause() 262 mSurfaceView.getWidth() + 'x' + mSurfaceView.getHeight()); 268 SurfaceHolder surfaceHolder = mSurfaceView.getHolder(); 316 mSurfaceView.getHolder().getSurface(), mCaptureBuffer.getSurface()); 347 SurfaceHolder holder = mSurfaceView.getHolder();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | Camera2SurfaceViewActivity.java | 36 private SurfaceView mSurfaceView; field in Camera2SurfaceViewActivity 46 mSurfaceView = findViewById(R.id.surface_view); in onCreate() 47 mSurfaceView.getHolder().addCallback(this); in onCreate() 54 return mSurfaceView; in getSurfaceView()
|
D | MediaFrameworkTest.java | 55 public static SurfaceView mSurfaceView; field in MediaFrameworkTest 79 mSurfaceView = (SurfaceView)findViewById(R.id.surface_view); in onCreate() 81 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in onCreate() 82 mSurfaceHolder = mSurfaceView.getHolder(); in onCreate()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | MainActivity.kt | 42 var mSurfaceView: SurfaceView? = null variable in com.android.test.MainActivity 62 mSurfaceView = createSurfaceView(applicationContext, size, surfaceReadyLatch) in addSurfaceView() 63 layout!!.addView(mSurfaceView!!, in addSurfaceView() 72 mSurfaceView!!.layoutParams.also { in resizeSurfaceView() 76 mSurfaceView!!.requestLayout() in resizeSurfaceView()
|
D | SharedBufferModeScreenRecordTests.kt | 45 svBounds = Rect(0, 0, it.mSurfaceView!!.width, it.mSurfaceView!!.height) in testAutoRefresh() 47 it.mSurfaceView!!.getBoundsOnScreen(position) in testAutoRefresh()
|
D | SharedBufferModeTests.kt | 75 svBounds = Rect(0, 0, it.mSurfaceView!!.width, it.mSurfaceView!!.height) in <lambda>() 77 it.mSurfaceView!!.getBoundsOnScreen(position) in <lambda>()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | DemoPresentation.java | 43 private GLSurfaceView mSurfaceView; field in DemoPresentation 66 mSurfaceView = (GLSurfaceView)findViewById(R.id.surface_view); in onCreate() 67 mSurfaceView.setRenderer(mRenderer); in onCreate()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvView.java | 96 private SurfaceView mSurfaceView; field in TvView 262 if (mSurfaceView != null) { in setZOrderMediaOverlay() 265 mSurfaceView.setZOrderOnTop(false); in setZOrderMediaOverlay() 266 mSurfaceView.setZOrderMediaOverlay(isMediaOverlay); in setZOrderMediaOverlay() 291 if (mSurfaceView != null) { in setZOrderOnTop() 292 mSurfaceView.setZOrderMediaOverlay(false); in setZOrderOnTop() 293 mSurfaceView.setZOrderOnTop(onTop); in setZOrderOnTop() 904 mSurfaceView.layout(mSurfaceViewLeft, mSurfaceViewTop, mSurfaceViewRight, in onLayout() 907 mSurfaceView.layout(0, 0, right - left, bottom - top); in onLayout() 913 mSurfaceView.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure() [all …]
|
/frameworks/base/media/java/android/media/tv/interactive/ |
D | TvInteractiveAppView.java | 120 private SurfaceView mSurfaceView; field in TvInteractiveAppView 245 mSurfaceView.layout(mSurfaceViewLeft, mSurfaceViewTop, mSurfaceViewRight, in onLayout() 248 mSurfaceView.layout(0, 0, right - left, bottom - top); in onLayout() 254 mSurfaceView.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 255 int width = mSurfaceView.getMeasuredWidth(); in onMeasure() 256 int height = mSurfaceView.getMeasuredHeight(); in onMeasure() 257 int childState = mSurfaceView.getMeasuredState(); in onMeasure() 266 mSurfaceView.setVisibility(visibility); in onVisibilityChanged() 275 if (mSurfaceView != null) { in resetSurfaceView() 276 mSurfaceView.getHolder().removeCallback(mSurfaceHolderCallback); in resetSurfaceView() [all …]
|