Searched refs:mTextureView (Results 1 - 15 of 15) sorted by relevance

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

Completed in 269 milliseconds