Home
last modified time | relevance | path

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

/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DGlTextureViewActivity.java35 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/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DTextureViewActivity.java42 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()
DCanvasTextureViewActivity.java32 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()
DHardwareCanvasTextureViewActivity.java33 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()
DGetBitmapActivity.java38 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()
DGLTextureViewActivity.java56 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()
DSingleFrameTextureViewTestActivity.java46 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()
DColorBitmapActivity.java65 private TextureView mTextureView; field in ColorBitmapActivity
167 mTextureView = new TextureView(this); in onCreate()
168 mTextureView.setSurfaceTextureListener(this); in onCreate()
201 linearLayout.addView(mTextureView, new LinearLayout.LayoutParams(WIDTH, HEIGHT)); in onCreate()
276 mImageWriters.put(mTextureView, new ImageWriter.Builder(new Surface(surface)) in onSurfaceTextureAvailable()
291 if (mImageWriters.containsKey(mTextureView)) { in onSurfaceTextureDestroyed()
292 mImageWriters.remove(mTextureView); in onSurfaceTextureDestroyed()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DSurfaceAndTextureViews.java43 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()
83mTextureView.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/
DOverlayDisplayWindow.java84 private TextureView mTextureView; field in OverlayDisplayWindow
181 if (mTextureView != null) { in dump()
182 pw.println("mTextureView.getScaleX()=" + mTextureView.getScaleX()); in dump()
183 pw.println("mTextureView.getScaleY()=" + mTextureView.getScaleY()); in dump()
206 mTextureView = (TextureView)mWindowContent.findViewById( in createWindow()
208 mTextureView.setPivotX(0); in createWindow()
209 mTextureView.setPivotY(0); in createWindow()
210 mTextureView.getLayoutParams().width = mWidth; in createWindow()
211 mTextureView.getLayoutParams().height = mHeight; in createWindow()
212 mTextureView.setOpaque(false); in createWindow()
[all …]
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java100 private AutoFitTextureView mTextureView; field in MainActivity
143 mTextureView = findViewById(R.id.texture); in onCreate()
363 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera()
435 if (mTextureView.isAvailable()) { in onResume()
436 openCamera(mTextureView.getWidth(), mTextureView.getHeight()); in onResume()
438 mTextureView.setSurfaceTextureListener(mSurfaceTextureListener); in onResume()
467 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startRecordingVideo()
475 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in startRecordingVideo()
594 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
599 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in startPreview()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java57 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/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.cpp607 mTextureView.erase(names[i]); in deleteTextures()
666 mTextureView.insert_or_assign(texName, buffer->getId()); in bindExternalTextureBuffer()
925 for (auto [textureName, bufferId] : mTextureView) { in cleanupPostRender()
930 mTextureView[textureName] = std::nullopt; in cleanupPostRender()
1662 const auto& entry = mTextureView.find(texName); in isTextureNameKnownForTesting()
1663 return entry != mTextureView.end(); in isTextureNameKnownForTesting()
1667 const auto& entry = mTextureView.find(texName); in getBufferIdForTextureNameForTesting()
1668 return entry != mTextureView.end() ? entry->second : std::nullopt; in getBufferIdForTextureNameForTesting()
DGLESRenderEngine.h233 std::unordered_map<uint32_t, std::optional<uint64_t>> mTextureView; variable