Home
last modified time | relevance | path

Searched refs:mRenderer (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java80 protected ImageRendererWrapper mRenderer; field in TiledImageView
96 mRenderer = new ImageRendererWrapper(); in TiledImageView()
97 mRenderer.image = new TiledImageRenderer(this); in TiledImageView()
130 mRenderer.image.freeTextures();
157 mRenderer.source = source; in setTileSource()
158 mRenderer.isReadyCallback = isReadyCallback; in setTileSource()
159 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource()
160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource()
161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource()
162 mRenderer.scale = 0; in setTileSource()
[all …]
DBlockingGLTextureView.java319 private Renderer mRenderer; field in BlockingGLTextureView.RenderThread
327 mRenderer = renderer; in RenderThread()
332 if (mRenderer == null) { in checkRenderer()
400 mRenderer.onSurfaceCreated(mGL, mEglHelper.mEglConfig); in handleMessageLocked()
404 mRenderer.onSurfaceChanged(mGL, mWidth, mHeight); in handleMessageLocked()
407 mRenderer.onDrawFrame(mGL); in handleMessageLocked()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java71 final float imageWidth = mRenderer.source.getImageWidth(); in getImageDims()
72 final float imageHeight = mRenderer.source.getImageHeight(); in getImageDims()
89 float initialCenterX = mRenderer.source.getImageWidth() / 2f; in getEdgesHelper()
90 float initialCenterY = mRenderer.source.getImageHeight() / 2f; in getEdgesHelper()
99 final float scale = mRenderer.scale; in getEdgesHelper()
116 return mRenderer.rotation; in getImageRotation()
122 final float scale = mRenderer.scale; in getCrop()
133 return new Point(mRenderer.source.getImageWidth(), mRenderer.source.getImageHeight()); in getSourceDimensions()
138 mCenterX = mRenderer.centerX; in setTileSource()
139 mCenterY = mRenderer.centerY; in setTileSource()
[all …]
/frameworks/base/graphics/java/android/graphics/
DTextureLayer.java33 private HardwareRenderer mRenderer; field in TextureLayer
41 mRenderer = renderer; in TextureLayer()
53 mRenderer.pushLayerUpdate(this); in setLayerPaint()
74 mRenderer.onLayerDestroyed(this); in close()
75 mRenderer = null; in close()
92 return mRenderer.copyLayerInto(this, bitmap); in copyInto()
117 mRenderer.pushLayerUpdate(this); in setTransform()
124 mRenderer.detachSurfaceTexture(mFinalizer.get()); in detachSurfaceTexture()
133 mRenderer.pushLayerUpdate(this); in setSurfaceTexture()
138 mRenderer.pushLayerUpdate(this); in updateSurfaceTexture()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLSurfaceView.java14 private final BasicGLRenderer mRenderer; field in BasicGLSurfaceView
19 mRenderer = new BasicGLRenderer(context, this); in BasicGLSurfaceView()
26 mRenderer = new BasicGLRenderer(context, this); in BasicGLSurfaceView()
31 setRenderer(mRenderer); in setup()
46 mRenderer.onResume(); in onResume()
51 mRenderer.onPause(); in onPause()
57 mRenderer.onTouchEvent(e); in onTouchEvent()
68 mRenderer.onJoystick(x,y); in onGenericMotionEvent()
77 mRenderer.onKeyDown(keyCode, event); in onKeyDown()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java44 protected Renderer mRenderer; field in PlayerSession
58 mRenderer = new LocalRenderer(context, null); in PlayerSession()
66 mRenderer.registerListener(mRenderListener); in PlayerSession()
89 if (mRenderer != null) { in onDestroy()
90 mRenderer.unregisterListener(mRenderListener); in onDestroy()
91 mRenderer.onDestroy(); in onDestroy()
111 mRenderer.setContent(request); in setContent()
116 mRenderer.setNextContent(request); in setNextContent()
140 long position = mRenderer == null ? -1 : mRenderer.getSeekPosition(); in updateState()
182 if (mRenderer != null) { in onStateChanged()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DScrollCaptureViewSupport.java64 private final ViewRenderer mRenderer; field in ScrollCaptureViewSupport
72 mRenderer = new ViewRenderer(); in ScrollCaptureViewSupport()
231 mRenderer.setSurface(session.getSurface()); in onScrollCaptureStart()
282 int result = mRenderer.renderView(view, viewCaptureArea); in doCapture()
303 mRenderer.destroy(); in onScrollCaptureEnd()
326 private final HardwareRenderer mRenderer; field in ScrollCaptureViewSupport.ViewRenderer
334 mRenderer = new HardwareRenderer(); in ViewRenderer()
335 mRenderer.setName("ScrollCapture"); in ViewRenderer()
337 mRenderer.setContentRoot(mCaptureRenderNode); in ViewRenderer()
340 mRenderer.setOpaque(false); in ViewRenderer()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMyLittleTextureView.java37 private HardwareRenderer mRenderer = new HardwareRenderer(); field in MyLittleTextureView
49 mRenderer.setSurface(reader.getSurface()); in onCreate()
50 mRenderer.setLightSourceAlpha(0.0f, 1.0f); in onCreate()
51 mRenderer.setLightSourceGeometry(100 / 2f, 0f, 800.0f, 20.0f); in onCreate()
77 mRenderer.setContentRoot(mContent); in onCreate()
78 mRenderer.createRenderRequest() in onCreate()
DCustomRenderer.java33 private HardwareRenderer mRenderer = new HardwareRenderer(); field in CustomRenderer
96 mRenderer.createRenderRequest() in draw()
115 mRenderer.setContentRoot(mRootNode);
116 mRenderer.setSurface(holder.getSurface());
125 mRenderer.destroy();
DMultiProducerActivity.java135 ThreadedRenderer mRenderer; field in MultiProducerActivity.FakeFrame
147 mRenderer = renderer; in FakeFrame()
174 mRenderer.addRenderNode(nodeBack, true); in run()
180 mRenderer.addRenderNode(nodeFrame, false); in run()
190 mRenderer.setContentDrawBounds(surfaceOrigin[0], surfaceOrigin[1], in run()
239 mRenderer.drawRenderNode(nodeFrame); in run()
242 mRenderer.drawRenderNode(nodeBack); in run()
249 mRenderer.removeRenderNode(nodeFrame); in run()
252 mRenderer.removeRenderNode(nodeBack); in run()
DFrontBufferedLayer.kt35 var mRenderer: PenStylusActivity.SingleBufferedCanvas? = null variable in com.android.test.hwui.FrontBufferedLayer
48 mRenderer = PenStylusActivity.SingleBufferedCanvas(width, height) in surfaceChanged()
59 mRenderer = null in surfaceDestroyed()
76 mRenderer?.let { in clearOverlay()
102 mRenderer?.let { in onTouchEvent()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DDemoPresentation.java44 private CubeRenderer mRenderer; field in DemoPresentation
65 mRenderer = new CubeRenderer(false); in onCreate()
67 mSurfaceView.setRenderer(mRenderer); in onCreate()
74 mRenderer.explode(); in onCreate()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderPassThrough.cpp48 mRenderer(renderer), in DecoderPassThrough()
76 status_t err = mRenderer->openAudioSink( in onConfigure()
91 ALOGW_IF(renderer != mRenderer, in onSetRenderer()
300 if (mRenderer != NULL) { in onInputBufferFetched()
301 mRenderer->queueEOS(true /* audio */, ERROR_END_OF_STREAM); in onInputBufferFetched()
334 if (mRenderer == NULL) { in onInputBufferFetched()
346 mRenderer->queueBuffer(true /* audio */, mcBuffer, reply); in onInputBufferFetched()
380 if (mRenderer != NULL) { in doFlush()
381 mRenderer->flush(true /* audio */, notifyComplete); in doFlush()
382 mRenderer->signalTimeDiscontinuity(); in doFlush()
DNuPlayer.cpp880 if (mRenderer != NULL) { in onMessageReceived()
896 mRenderer->pause(); in onMessageReceived()
902 mRenderer->resume(); in onMessageReceived()
906 err = mRenderer->setPlaybackSettings(rate); in onMessageReceived()
950 if (mRenderer != NULL) { in onMessageReceived()
951 err = mRenderer->getPlaybackSettings(&rate); in onMessageReceived()
980 if (mRenderer != NULL) { in onMessageReceived()
981 err = mRenderer->setSyncSettings(sync, videoFpsHint); in onMessageReceived()
1000 if (mRenderer != NULL) { in onMessageReceived()
1001 err = mRenderer->getSyncSettings(&sync, &videoFps); in onMessageReceived()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java76 private final AsyncRenderer mRenderer; field in PageContentRepository
91 mRenderer = new AsyncRenderer(context); in PageContentRepository()
105 mRenderer.open(source, callback); in open()
115 mRenderer.close(callback); in close()
134 mRenderer.destroy(); in destroy()
158 mRenderer.startPreload(visiblePages, selectedPages, writtenPages, mLastRenderSpec); in startPreload()
163 mRenderer.stopPreload(); in stopPreload()
167 return mRenderer.getPageCount(); in getFilePageCount()
256 mRenderer.renderPage(mPageIndex, renderSpec, callback); in getPageContent()
258 mRenderer.getCachedPage(mPageIndex, renderSpec, callback); in getPageContent()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java80 private PdfRenderer mRenderer; field in PdfManipulationService.PdfRendererImpl
90 mRenderer = new PdfRenderer(source); in openDocument()
91 return mRenderer.getPageCount(); in openDocument()
111 try (PdfRenderer.Page page = mRenderer.openPage(pageIndex)) { in renderPage()
120 final boolean scaleContent = mRenderer.shouldScaleForPrinting(); in renderPage()
183 mRenderer.close(); in closeDocument()
184 mRenderer = null; in closeDocument()
202 if (mRenderer != null) { in throwIfOpened()
208 if (mRenderer == null) { in throwIfNotOpened()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DDividerPresenter.java153 Renderer mRenderer; field in DividerPresenter
264 if (mRenderer == null) { in updateProperties()
266 mRenderer = new Renderer(mProperties, this); in updateProperties()
271 mRenderer.release(); in updateProperties()
272 mRenderer = new Renderer(mProperties, this); in updateProperties()
275 mRenderer.update(mProperties); in updateProperties()
339 if (mRenderer != null) { in removeDivider()
340 mRenderer.release(); in removeDivider()
343 mRenderer = null; in removeDivider()
516 if (mProperties != null && mRenderer != null) { in onTouch()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/
DFrameTrackerTest.java79 private ThreadedRendererWrapper mRenderer; field in FrameTrackerTest
98 mRenderer = Mockito.spy(new ThreadedRendererWrapper(view.getThreadedRenderer())); in setup()
99 doNothing().when(mRenderer).addObserver(any()); in setup()
100 doNothing().when(mRenderer).removeObserver(any()); in setup()
138 new FrameTracker(config, mRenderer, mViewRootWrapper, in spyFrameTracker()
158 verify(mRenderer, only()).addObserver(any()); in testOnlyFirstWindowFrameOverThreshold()
193 verify(mRenderer, only()).addObserver(any()); in testSfJank()
230 verify(mRenderer, only()).addObserver(any()); in testFirstFrameJankyNoTrigger()
266 verify(mRenderer, only()).addObserver(any()); in testOtherFrameOverThreshold()
303 verify(mRenderer, only()).addObserver(any()); in testLastFrameOverThresholdBeforeEnd()
[all …]
/frameworks/native/cmds/flatland/
DMain.cpp305 mRenderer = desc.rendererFactory(); in setUp()
306 result = mRenderer->setUp(helper); in setUp()
327 if (mRenderer != nullptr) { in tearDown()
328 mRenderer->tearDown(); in tearDown()
329 delete mRenderer; in tearDown()
330 mRenderer = nullptr; in tearDown()
342 return mRenderer->render(mSurface); in render()
370 Renderer* mRenderer; member in Layer
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DDividerPresenterTest.java96 private DividerPresenter.Renderer mRenderer; field in DividerPresenterTest
176 mDividerPresenter.mRenderer = mRenderer; in setUp()
192 verify(mRenderer).update(); in testUpdateDivider()
212 verify(mRenderer).update(); in testUpdateDivider_updateDecorSurfaceOwnerIfPrimaryContainerChanged()
228 verify(mRenderer, never()).update(); in testUpdateDivider_noChangeIfPropertiesIdentical()
244 verify(mRenderer).release(); in testUpdateDivider_dividerRemovedWhenSplitContainerIsNull()
245 assertNull(mDividerPresenter.mRenderer); in testUpdateDivider_dividerRemovedWhenSplitContainerIsNull()
264 verify(mRenderer).release(); in testUpdateDivider_dividerRemovedWhenDividerAttributesIsNull()
265 assertNull(mDividerPresenter.mRenderer); in testUpdateDivider_dividerRemovedWhenDividerAttributesIsNull()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLExtensions.cpp60 mRenderer = (char const*)renderer; in initWithGLStrings()
75 return mRenderer.c_str(); in getRenderer()
/frameworks/native/libs/renderengine/skia/
DGLExtensions.cpp60 mRenderer = (char const*)renderer; in initWithGLStrings()
75 return mRenderer.c_str(); in getRenderer()
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/
DClearActivity.java59 mRenderer = new ClearRenderer(); in ClearGLSurfaceView()
60 setRenderer(mRenderer); in ClearGLSurfaceView()
63 ClearRenderer mRenderer; field in ClearGLSurfaceView
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java75 mRenderer = new CamRenderer(context); in CamGLSurfaceView()
76 setRenderer(mRenderer); in CamGLSurfaceView()
85 mRenderer.setPosition(event.getX() / getWidth(), in onTouchEvent()
109 mRenderer.setCamera(mCamera); in onResume()
121 mRenderer.setAcceleration(accelerationVector); in onSensorChanged()
130 CamRenderer mRenderer; field in CamGLSurfaceView
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java48 MyRenderer mRenderer; field in MyGLSurfaceView
61 mRenderer = new MyRenderer(context); in init()
62 setRenderer(mRenderer); in init()
76 return mRenderer.getSurfaceTexture(); in getSurfaceTexture()

12