Home
last modified time | relevance | path

Searched refs:mTextureView (Results 1 – 5 of 5) sorted by relevance

/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DOverlayDisplayWindow.java186 private TextureView mTextureView; field in OverlayDisplayWindow.JellybeanMr1Impl
244 mTextureView.getLayoutParams().width = mWidth; in updateAspectRatio()
245 mTextureView.getLayoutParams().height = mWidth * height / width; in updateAspectRatio()
247 mTextureView.getLayoutParams().width = mHeight * width / height; in updateAspectRatio()
248 mTextureView.getLayoutParams().height = mHeight; in updateAspectRatio()
272 mTextureView = (TextureView)mWindowContent.findViewById( in createWindow()
274 mTextureView.setPivotX(0); in createWindow()
275 mTextureView.setPivotY(0); in createWindow()
276 mTextureView.getLayoutParams().width = mWidth; in createWindow()
277 mTextureView.getLayoutParams().height = mHeight; in createWindow()
[all …]
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java101 private AutoFitTextureView mTextureView; field in Camera2VideoFragment
194 if (null != mTextureView) {
195 configureTransform(mTextureView.getWidth(), mTextureView.getHeight());
284 mTextureView = (AutoFitTextureView) view.findViewById(R.id.texture); in onViewCreated()
294 if (mTextureView.isAvailable()) { in onResume()
295 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
297 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
444 mTextureView.setAspectRatio(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in openCamera()
446 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera()
487 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
[all …]
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java237 private AutoFitTextureView mTextureView; field in Camera2RawFragment
367 if (mPreviewSize != null && mTextureView.isAvailable()) {
612 mTextureView = (AutoFitTextureView) view.findViewById(R.id.texture); in onViewCreated()
621 if (mTextureView != null && mTextureView.isAvailable()) { in onViewCreated()
622 configureTransform(mTextureView.getWidth(), mTextureView.getHeight()); in onViewCreated()
638 if (mTextureView.isAvailable()) { in onResume()
639 configureTransform(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
641 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
922 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in createCameraPreviewSessionLocked()
1040 if (null == mTextureView || null == activity) { in configureTransform()
[all …]
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayoutActivity.java103 private TextureView mTextureView; field in FoldingLayoutActivity
121 mTextureView = new TextureView(this); in onCreate()
122 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onCreate()
297 mFoldLayout.addView(mTextureView, new ViewGroup.LayoutParams( in onOptionsItemSelected()
300 mFoldLayout.removeView(mTextureView); in onOptionsItemSelected()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java167 private AutoFitTextureView mTextureView; field in Camera2BasicFragment
431 mTextureView = (AutoFitTextureView) view.findViewById(R.id.texture); in onViewCreated()
449 if (mTextureView.isAvailable()) { in onResume()
450 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
452 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
575 mTextureView.setAspectRatio( in setUpCameraOutputs()
578 mTextureView.setAspectRatio( in setUpCameraOutputs()
677 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in createCameraPreviewSession()
742 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
762 mTextureView.setTransform(matrix); in configureTransform()