Home
last modified time | relevance | path

Searched refs:mSurfaceView (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java32 private CustomSurfaceView mSurfaceView = null; field in GamePerformanceActivity
38 if (mSurfaceView != null) { in attachSurfaceView()
49 mSurfaceView = new CustomSurfaceView(GamePerformanceActivity.this); in attachSurfaceView()
50 mRootLayout.addView(mSurfaceView); in attachSurfaceView()
55 mSurfaceView.waitForSurfaceReady(); in attachSurfaceView()
68 if (mSurfaceView != null) { in attachOpenGLView()
69 mRootLayout.removeView(mSurfaceView); in attachOpenGLView()
70 mSurfaceView = null; in attachOpenGLView()
104 if (mSurfaceView != null) { in resetFrameTimes()
105 mSurfaceView.resetFrameTimes(); in resetFrameTimes()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMovingSurfaceViewActivity.java33 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()
DGetBitmapSurfaceViewActivity.java39 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()
DHardwareCanvasSurfaceViewActivity.java40 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()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceRenderFilter.java50 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/TransitionTests/src/com/android/transitiontests/
DSurfaceAndTextureViews.java42 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()
82mSurfaceView.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/core/java/android/app/
DActivityView.java74 private final SurfaceView mSurfaceView; field in ActivityView
122 mSurfaceView = new SurfaceView(context); in ActivityView()
125 mSurfaceView.setAlpha(super.getAlpha()); in ActivityView()
126 mSurfaceView.setUseAlpha(); in ActivityView()
128 mSurfaceView.getHolder().addCallback(mSurfaceCallback); in ActivityView()
129 addView(mSurfaceView); in ActivityView()
203 mSurfaceView.setCornerRadius(cornerRadius); in setCornerRadius()
350 mSurfaceView.layout(0 /* left */, 0 /* top */, r - l /* right */, b - t /* bottom */); in onLayout()
364 if (mSurfaceView != null) { in setAlpha()
365 mSurfaceView.setAlpha(alpha); in setAlpha()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvView.java85 private SurfaceView mSurfaceView; field in TvView
234 if (mSurfaceView != null) { in setZOrderMediaOverlay()
237 mSurfaceView.setZOrderOnTop(false); in setZOrderMediaOverlay()
238 mSurfaceView.setZOrderMediaOverlay(isMediaOverlay); in setZOrderMediaOverlay()
263 if (mSurfaceView != null) { in setZOrderOnTop()
264 mSurfaceView.setZOrderMediaOverlay(false); in setZOrderOnTop()
265 mSurfaceView.setZOrderOnTop(onTop); in setZOrderOnTop()
710 mSurfaceView.layout(mSurfaceViewLeft, mSurfaceViewTop, mSurfaceViewRight, in onLayout()
713 mSurfaceView.layout(0, 0, right - left, bottom - top); in onLayout()
719 mSurfaceView.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
[all …]
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java72 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/
DCamera2SurfaceViewActivity.java36 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()
DMediaFrameworkTest.java55 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/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DDemoPresentation.java43 private GLSurfaceView mSurfaceView; field in DemoPresentation
66 mSurfaceView = (GLSurfaceView)findViewById(R.id.surface_view); in onCreate()
67 mSurfaceView.setRenderer(mRenderer); in onCreate()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java41 private SurfaceView mSurfaceView; field in DisplaySinkService
62 if (mSurfaceView != surfaceView) { in setSurfaceView()
63 final SurfaceView oldSurfaceView = mSurfaceView; in setSurfaceView()
64 mSurfaceView = surfaceView; in setSurfaceView()
DSinkActivity.java71 private SurfaceView mSurfaceView; field in SinkActivity
104 mSurfaceView = findViewById(R.id.surfaceView); in onCreate()
105 mSurfaceView.setOnTouchListener(new View.OnTouchListener() { in onCreate()
294 mSurfaceView.getWidth(), mSurfaceView.getHeight()); in registerHid()
410 mDisplaySinkService.setSurfaceView(mSurfaceView); in startServices()
427 mDisplaySinkService.setSurfaceView(mSurfaceView); in onAttachedToWindow()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraFunctionalTest.java121 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testFunctionalCameraExposureCompensation()
157 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testFunctionalCameraFlashModes()
188 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testFunctionalCameraFocusModes()
219 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testFunctionalCameraWhiteBalance()
DCameraPairwiseTest.java383 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in genericPairwiseTestCase()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java196 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkTakePicture()
212 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkPreviewCallback()
DCodecTest.java281 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoHeight()
317 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoWidth()
345 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoSeekTo()
738 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in prepareAsyncCallback()
867 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in playMediaSamples()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCameraStressTest.java136 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testStressCameraSceneModes()
180 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testStressCameraZoom()
DMediaRecorderStressTest.java203 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in recordVideoAndPlayback()
252 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in recordVideoAndPlayback()
302 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testStressTimeLapse()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java100 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in recordVideo()
132 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in validateGetSurface()
331 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in recordVideoWithPara()
392 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in invalidRecordSetting()
417 mediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in getOutputVideoProperty()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java190 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in stressCameraPreview()
209 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in mediaStressPlayback()
244 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in stressVideoRecord()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCameraStreamer.java481 private SurfaceView mSurfaceView; field in CameraStreamer.CamFrameHandlerGB
716 if (mSurfaceView == null) { in getPreviewDisplay()
717 mSurfaceView = mRunner.getContext().getDummySurfaceView(); in getPreviewDisplay()
719 return mSurfaceView; in getPreviewDisplay()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt2390 Landroid/app/ActivityView;->mSurfaceView:Landroid/view/SurfaceView;
41893 Landroid/media/tv/TvView;->mSurfaceView:Landroid/view/SurfaceView;