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/Support7Demos/src/com/example/android/supportv7/media/
DOverlayDisplayWindow.java194 private TextureView mTextureView; field in OverlayDisplayWindow.JellybeanMr1Impl
252 mTextureView.getLayoutParams().width = mWidth; in updateAspectRatio()
253 mTextureView.getLayoutParams().height = mWidth * height / width; in updateAspectRatio()
255 mTextureView.getLayoutParams().width = mHeight * width / height; in updateAspectRatio()
256 mTextureView.getLayoutParams().height = mHeight; in updateAspectRatio()
263 return mTextureView.getBitmap(); in getSnapshot()
285 mTextureView = (TextureView)mWindowContent.findViewById( in createWindow()
287 mTextureView.setPivotX(0); in createWindow()
288 mTextureView.setPivotY(0); in createWindow()
289 mTextureView.getLayoutParams().width = mWidth; in createWindow()
[all …]
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java78 private AutoFitTextureView mTextureView; field in Camera2VideoFragment
175 if (null != mTextureView) {
176 configureTransform(mTextureView.getWidth(), mTextureView.getHeight());
263 mTextureView = (AutoFitTextureView) view.findViewById(R.id.texture); in onViewCreated()
273 if (mTextureView.isAvailable()) { in onResume()
274 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
276 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
359 mTextureView.setAspectRatio(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in openCamera()
361 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera()
400 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
[all …]
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java146 private AutoFitTextureView mTextureView; field in Camera2BasicFragment
365 mTextureView = (AutoFitTextureView) view.findViewById(R.id.texture); in onViewCreated()
383 if (mTextureView.isAvailable()) { in onResume()
384 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
386 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
438 mTextureView.setAspectRatio( in setUpCameraOutputs()
441 mTextureView.setAspectRatio( in setUpCameraOutputs()
530 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in createCameraPreviewSession()
598 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
616 mTextureView.setTransform(matrix); in configureTransform()
/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()