Home
last modified time | relevance | path

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

/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/media/java/android/media/tv/
DTvView.java83 private SurfaceView mSurfaceView; field in TvView
231 if (mSurfaceView != null) { in setZOrderMediaOverlay()
234 mSurfaceView.setZOrderOnTop(false); in setZOrderMediaOverlay()
235 mSurfaceView.setZOrderMediaOverlay(isMediaOverlay); in setZOrderMediaOverlay()
260 if (mSurfaceView != null) { in setZOrderOnTop()
261 mSurfaceView.setZOrderMediaOverlay(false); in setZOrderOnTop()
262 mSurfaceView.setZOrderOnTop(onTop); in setZOrderOnTop()
706 mSurfaceView.layout(mSurfaceViewLeft, mSurfaceViewTop, mSurfaceViewRight, in onLayout()
709 mSurfaceView.layout(0, 0, right - left, bottom - top); in onLayout()
715 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 = (SurfaceView) 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 = (SurfaceView) 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.java197 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkTakePicture()
213 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkPreviewCallback()
DCodecTest.java274 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoHeight()
310 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoWidth()
338 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoSeekTo()
731 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in prepareAsyncCallback()
823 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in playMediaSamples()
/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/stress/
DCameraStressTest.java134 SurfaceHolder surfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testStressCameraSceneModes()
178 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/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/docs/html/training/camera/
Dcameradirect.jd103 SurfaceView mSurfaceView;
109 mSurfaceView = new SurfaceView(context);
110 addView(mSurfaceView);
114 mHolder = mSurfaceView.getHolder();
/frameworks/base/core/java/android/view/
DSurfaceView.java801 private final WeakReference<SurfaceView> mSurfaceView; field in SurfaceView.MyWindow
804 mSurfaceView = new WeakReference<SurfaceView>(surfaceView); in MyWindow()
812 SurfaceView surfaceView = mSurfaceView.get(); in resized()
841 SurfaceView surfaceView = mSurfaceView.get(); in dispatchGetNewSurface()
/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/docs/html/guide/topics/media/
Dmediarouter.jd607 mSurfaceView = (GLSurfaceView)findViewById(R.id.surface_view);
608 mSurfaceView.setRenderer(new CubeRenderer(false));