/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | GlTextureViewActivity.java | 35 private TextureView mTextureView; field in GlTextureViewActivity 41 mTextureView = new TextureView(this); in onCreate() 42 mTextureView.setSurfaceTextureListener(this); in onCreate() 43 setContentView(mTextureView, new FrameLayout.LayoutParams( in onCreate() 53 DisplayMetrics metrics = mTextureView.getContext().getResources().getDisplayMetrics(); in onSurfaceTextureAvailable() 54 int distance = Math.max(mTextureView.getWidth(), mTextureView.getHeight()); in onSurfaceTextureAvailable() 55 mTextureView.setCameraDistance(distance * metrics.density); in onSurfaceTextureAvailable() 57 ObjectAnimator animator = ObjectAnimator.ofFloat(mTextureView, "rotationY", 0.0f, 360.0f); in onSurfaceTextureAvailable() 64 mTextureView.invalidate(); in onSurfaceTextureAvailable()
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/ |
D | OverlayDisplayWindow.java | 205 private TextureView mTextureView; field in OverlayDisplayWindow.JellybeanMr1Impl 263 mTextureView.getLayoutParams().width = mWidth; in updateAspectRatio() 264 mTextureView.getLayoutParams().height = mWidth * height / width; in updateAspectRatio() 266 mTextureView.getLayoutParams().width = mHeight * width / height; in updateAspectRatio() 267 mTextureView.getLayoutParams().height = mHeight; in updateAspectRatio() 274 return mTextureView.getBitmap(); in getSnapshot() 296 mTextureView = (TextureView)mWindowContent.findViewById( in createWindow() 298 mTextureView.setPivotX(0); in createWindow() 299 mTextureView.setPivotY(0); in createWindow() 300 mTextureView.getLayoutParams().width = mWidth; in createWindow() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextureViewActivity.java | 42 private TextureView mTextureView; field in TextureViewActivity 52 mTextureView = new TextureView(this); in onCreate() 53 mTextureView.setSurfaceTextureListener(this); in onCreate() 54 mTextureView.setOnClickListener(new View.OnClickListener() { in onCreate() 57 Bitmap b = mTextureView.getBitmap(800, 800); in onCreate() 83 mContent.removeView(mTextureView); in onCreate() 85 mContent.addView(mTextureView); in onCreate() 91 mContent.addView(mTextureView, new FrameLayout.LayoutParams( in onCreate() 106 mTextureView.setLayoutParams(new FrameLayout.LayoutParams( in onSurfaceTextureAvailable()
|
D | CanvasTextureViewActivity.java | 32 private TextureView mTextureView; field in CanvasTextureViewActivity 41 mTextureView = new TextureView(this); in onCreate() 42 mTextureView.setSurfaceTextureListener(this); in onCreate() 43 mTextureView.setOpaque(false); in onCreate() 45 content.addView(mTextureView, new FrameLayout.LayoutParams(500, 500, Gravity.CENTER)); in onCreate() 51 mThread = new RenderingThread(mTextureView); in onSurfaceTextureAvailable()
|
D | HardwareCanvasTextureViewActivity.java | 33 private TextureView mTextureView; field in HardwareCanvasTextureViewActivity 42 mTextureView = new TextureView(this); in onCreate() 43 mTextureView.setSurfaceTextureListener(this); in onCreate() 44 mTextureView.setOpaque(false); in onCreate() 46 content.addView(mTextureView, new FrameLayout.LayoutParams(500, 500, Gravity.CENTER)); in onCreate() 52 mThread = new RenderingThread(mTextureView); in onSurfaceTextureAvailable()
|
D | GetBitmapActivity.java | 38 private TextureView mTextureView; field in GetBitmapActivity 46 mTextureView = new TextureView(this); in onCreate() 47 mTextureView.setSurfaceTextureListener(this); in onCreate() 54 Bitmap b = mTextureView.getBitmap(); in onCreate() 73 content.addView(mTextureView, new FrameLayout.LayoutParams(500, 400, Gravity.CENTER)); in onCreate()
|
D | GLTextureViewActivity.java | 56 private TextureView mTextureView; field in GLTextureViewActivity 62 mTextureView = new TextureView(this); in onCreate() 63 mTextureView.setSurfaceTextureListener(this); in onCreate() 64 mTextureView.setOnClickListener(new View.OnClickListener() { in onCreate() 67 Bitmap b = mTextureView.getBitmap(800, 800); in onCreate() 85 setContentView(mTextureView, new FrameLayout.LayoutParams( in onCreate() 95 mTextureView.setCameraDistance(5000); in onSurfaceTextureAvailable() 97 ObjectAnimator animator = ObjectAnimator.ofFloat(mTextureView, "rotationY", 0.0f, 360.0f); in onSurfaceTextureAvailable() 104 mTextureView.invalidate(); in onSurfaceTextureAvailable()
|
D | SingleFrameTextureViewTestActivity.java | 46 private TextureView mTextureView; field in SingleFrameTextureViewTestActivity 56 mTextureView = new TextureView(this); in onCreate() 57 mTextureView.setSurfaceTextureListener(this); in onCreate() 60 content.addView(mTextureView, in onCreate()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | SurfaceAndTextureViews.java | 43 SimpleTextureView mTextureView; field in SurfaceAndTextureViews 64 mTextureView = new SimpleTextureView(this); in onCreate() 65 mTextureView.setId(2); in onCreate() 66 mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); in onCreate() 67 container.addView(mTextureView); in onCreate() 83 … mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE * 2, SMALL_SIZE)); in onCreate() 86 mTextureView.mColor = SimpleTextureView.LARGE_COLOR; in onCreate() 90 mTextureView.setLayoutParams(new LayoutParams(SMALL_SIZE, SMALL_SIZE)); in onCreate() 93 mTextureView.mColor = SimpleTextureView.SMALL_COLOR; in onCreate()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | OverlayDisplayWindow.java | 81 private TextureView mTextureView; field in OverlayDisplayWindow 177 if (mTextureView != null) { in dump() 178 pw.println("mTextureView.getScaleX()=" + mTextureView.getScaleX()); in dump() 179 pw.println("mTextureView.getScaleY()=" + mTextureView.getScaleY()); in dump() 202 mTextureView = (TextureView)mWindowContent.findViewById( in createWindow() 204 mTextureView.setPivotX(0); in createWindow() 205 mTextureView.setPivotY(0); in createWindow() 206 mTextureView.getLayoutParams().width = mWidth; in createWindow() 207 mTextureView.getLayoutParams().height = mHeight; in createWindow() 208 mTextureView.setOpaque(false); in createWindow() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageView.java | 57 private BlockingGLTextureView mTextureView; field in TiledImageView 100 mTextureView = new BlockingGLTextureView(context); in TiledImageView() 101 mTextureView.setRenderer(new TileRenderer()); in TiledImageView() 102 view = mTextureView; in TiledImageView() 120 mTextureView.destroy(); in destroy() 196 mTextureView.render(); in dispatchDraw() 217 mTextureView.invalidate(); in invalidate()
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/ |
D | VideoView2ImplBaseWithMp1.java | 112 private VideoTextureViewWithMp1 mTextureView; field in VideoView2ImplBaseWithMp1 264 mTextureView = new VideoTextureViewWithMp1(context); in initialize() 268 mTextureView.setLayoutParams(params); in initialize() 270 mTextureView.setSurfaceListener(this); in initialize() 273 mInstance.addView(mTextureView); in initialize() 290 mTextureView.setVisibility(View.GONE); in initialize() 295 mTextureView.setVisibility(View.VISIBLE); in initialize() 297 mCurrentView = mTextureView; in initialize() 570 targetView = mTextureView; in setViewType() 902 mTextureView.setMediaPlayer(mMediaPlayer); in setupMediaPlayer() [all …]
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/ |
D | VideoView2ImplBase.java | 116 private VideoTextureView mTextureView; field in VideoView2ImplBase 276 mTextureView = new VideoTextureView(context); in initialize() 280 mTextureView.setLayoutParams(params); in initialize() 282 mTextureView.setSurfaceListener(this); in initialize() 285 mInstance.addView(mTextureView); in initialize() 311 mTextureView.setVisibility(View.GONE); in initialize() 316 mTextureView.setVisibility(View.VISIBLE); in initialize() 318 mCurrentView = mTextureView; in initialize() 595 targetView = mTextureView; in setViewType() 910 mTextureView.setMediaPlayer(mMediaPlayer); in openVideo() [all …]
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
D | VideoView2Impl.java | 120 private VideoTextureView mTextureView; field in VideoView2Impl 279 mTextureView = new VideoTextureView(mInstance.getContext()); in initialize() 283 mTextureView.setLayoutParams(params); in initialize() 285 mTextureView.setSurfaceListener(this); in initialize() 287 mInstance.addView(mTextureView); in initialize() 314 mTextureView.setVisibility(View.GONE); in initialize() 319 mTextureView.setVisibility(View.VISIBLE); in initialize() 321 mCurrentView = mTextureView; in initialize() 472 targetView = mTextureView; in setViewType_impl() 721 mTextureView.setMediaPlayer(mMediaPlayer); in openVideo() [all …]
|