/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
H A D | RsYuv.java | 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); 129 mSurface = new Surface(surface); 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); 136 mSurface = new Surface(surface); 141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument 142 android.util.Log.v("cpa", "onSurfaceTextureDestroyed " + surface); 149 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
|
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 52 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument 55 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 56 if (surface != null) { 57 mOutPixelsAllocation.setSurface(new Surface(surface)); 61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 62 if (surface != null) { 63 mOutPixelsAllocation.setSurface(new Surface(surface)); 68 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 72 sp<Surface> surface; local 74 surface = new Surface(bufferProducer); 77 msg->setObject("surface", surface); 135 CHECK(msg->findObject("surface", &obj));
|
H A D | codec.cpp | 48 "\t\t[-S] allocate buffers from a surface\n" 49 "\t\t[-R] render output to surface (enables -S)\n" 75 const android::sp<android::Surface> &surface, 129 format, isVideo ? surface : NULL, 269 if (surface == NULL || !renderSurface) { 408 sp<Surface> surface; local 438 surface = control->getSurface(); 439 CHECK(surface != NULL); 447 player->setSurface(surface->getIGraphicBufferProducer()); 453 decode(looper, argv[0], useAudio, useVideo, surface, renderSurfac 70 decode( const android::sp<android::ALooper> &looper, const char *path, bool useAudio, bool useVideo, const android::sp<android::Surface> &surface, bool renderSurface, bool useTimestamp) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | mediarecorder.cpp | 57 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) argument 59 ALOGV("setPreviewSurface(%p)", surface.get()); 69 ALOGE("try to set preview surface without setting the video source first"); 73 status_t ret = mMediaRecorder->setPreviewSurface(surface); 386 status_t MediaRecorder::setInputSurface(const sp<PersistentSurface>& surface) argument 401 return mMediaRecorder->setInputSurface(surface);
|
/frameworks/av/media/libstagefright/ |
H A D | CameraSourceTimeLapse.cpp | 46 const sp<IGraphicBufferProducer>& surface, 53 videoSize, videoFrameRate, surface, 75 const sp<IGraphicBufferProducer>& surface, 79 videoSize, videoFrameRate, surface, 37 CreateFromCamera( const sp<hardware::ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, pid_t clientPid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument 66 CameraSourceTimeLapse( const sp<hardware::ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, pid_t clientPid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
|
H A D | SimpleDecodingSource.cpp | 41 sp<Surface> surface = static_cast<Surface*>(nativeWindow.get()); local 73 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */); 79 surface != NULL,
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraCaptureSession.java | 123 * prepare() only needs to be called on one surface, and {link 131 * @param surface the output Surface for which buffers should be pre-allocated. Must be one of 145 public abstract void prepare(@NonNull Surface surface) throws CameraAccessException; argument 168 * prepare with prepare(surface, 2) and prepare(surface, 4).</p> 173 * @param surface the output Surface for which buffers should be pre-allocated. 187 public abstract void prepare(int maxCount, @NonNull Surface surface) argument 212 * @param surface the output Surface for which buffers should be freed. Must be one of the 226 public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException; argument 252 * OutputConfiguration with the available Surface, then enable furture surface sharin 805 onSurfacePrepared(@onNull CameraCaptureSession session, @NonNull Surface surface) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CallbackProxies.java | 193 public void onSurfacePrepared(CameraCaptureSession session, Surface surface) { argument 194 mProxy.invoke("onSurfacePrepared", session, surface);
|
H A D | CameraCaptureSessionImpl.java | 50 /** Input surface configured by native camera framework based on user-specified configuration */ 140 public void prepare(Surface surface) throws CameraAccessException { argument 141 mDeviceImpl.prepare(surface); 145 public void prepare(int maxCount, Surface surface) throws CameraAccessException { argument 146 mDeviceImpl.prepare(maxCount, surface); 150 public void tearDown(Surface surface) throws CameraAccessException { argument 151 mDeviceImpl.tearDown(surface); 646 public void onSurfacePrepared(Surface surface) { 648 mStateCallback.onSurfacePrepared(session, surface);
|
H A D | CameraConstrainedHighSpeedCaptureSessionImpl.java | 127 // Make sure singleTargetRequestBuilder contains only recording surface for 168 public void prepare(Surface surface) throws CameraAccessException { argument 169 mSessionImpl.prepare(surface); 173 public void prepare(int maxCount, Surface surface) throws CameraAccessException { argument 174 mSessionImpl.prepare(maxCount, surface); 178 public void tearDown(Surface surface) throws CameraAccessException { argument 179 mSessionImpl.tearDown(surface); 304 public void onSurfacePrepared(CameraCaptureSession session, Surface surface) { argument 306 surface);
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | OutputConfiguration.java | 83 * Invalid surface group ID. 85 *<p>An {@link OutputConfiguration} with this value indicates that the included surface 86 *doesn't belong to any surface group.</p> 93 * @param surface 96 * <p>This constructor creates a default configuration, with a surface group ID of 100 public OutputConfiguration(@NonNull Surface surface) { argument 101 this(SURFACE_GROUP_ID_NONE, surface, ROTATION_0); 105 * Unknown surface source type. 110 * The surface is obtained from {@link android.view.SurfaceView}. 115 * The surface i 159 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface) argument 182 OutputConfiguration(@onNull Surface surface, int rotation) argument 208 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) argument 356 addSurface(@onNull Surface surface) argument [all...] |
/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayManager.java | 505 int width, int height, int densityDpi, @Nullable Surface surface, int flags) { 506 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null); 516 * when no longer needed. Because a virtual display renders to a surface 524 * As of {@link android.os.Build.VERSION_CODES#KITKAT_WATCH}, the surface may 526 * Previously, the surface had to be non-null when {@link #createVirtualDisplay} 529 * Detaching the surface that backs a virtual display has a similar effect to 537 * @param surface The surface to which the content of the virtual display should 553 int width, int height, int densityDpi, @Nullable Surface surface, int flags, 555 return createVirtualDisplay(null /* projection */, name, width, height, densityDpi, surface, 504 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags) argument 552 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument 560 createVirtualDisplay(@ullable MediaProjection projection, @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler, @Nullable String uniqueId) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLReadback.cpp | 34 CopyResult OpenGLReadback::copySurfaceInto(Surface& surface, const Rect& srcRect, argument 41 status_t err = surface.getLastQueuedBuffer(&sourceBuffer, &sourceFence, 130 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d", 137 ALOGW("Can't copy surface into bitmap, RGBA_F16 config is not supported");
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaOpenGLPipeline.cpp | 55 "drawRenderNode called on a context with no surface!"); 70 // setup surface for fbo0 83 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget( 87 renderFrame(*layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface); 93 SkCanvas* profileCanvas = surface->getCanvas(); 158 bool SkiaOpenGLPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior) { argument 165 if (surface) { 166 mEglSurface = mEglManager.createSurface(surface);
|
H A D | SkiaVulkanPipeline.cpp | 53 "drawRenderNode called on a context with no surface!"); 134 bool SkiaVulkanPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior) { argument 140 if (surface) { 141 mVkSurface = mVkManager.createSurface(surface);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 44 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface); 224 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, attribs); local 225 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, 230 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED) == EGL_FALSE, 235 return surface; 238 void EglManager::destroySurface(EGLSurface surface) { argument 239 if (isCurrent(surface)) { 242 if (!eglDestroySurface(mEglDisplay, surface)) { 243 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, eglErrorStrin 264 makeCurrent(EGLSurface surface, EGLint* errOut) argument 288 queryBufferAge(EGLSurface surface) argument 302 beginFrame(EGLSurface surface) argument 369 setPreserveBuffer(EGLSurface surface, bool preserve) argument [all...] |
H A D | VulkanManager.cpp | 120 VulkanSurface::BackbufferInfo* VulkanManager::getAvailableBackbuffer(VulkanSurface* surface) { argument 121 SkASSERT(surface->mBackbuffers); 123 ++surface->mCurrentBackbufferIndex; 124 if (surface->mCurrentBackbufferIndex > surface->mImageCount) { 125 surface->mCurrentBackbufferIndex = 0; 128 VulkanSurface::BackbufferInfo* backbuffer = surface->mBackbuffers + 129 surface->mCurrentBackbufferIndex; 143 SkSurface* VulkanManager::getBackbufferSurface(VulkanSurface* surface) { argument 144 VulkanSurface::BackbufferInfo* backbuffer = getAvailableBackbuffer(surface); 243 destroyBuffers(VulkanSurface* surface) argument 268 destroySurface(VulkanSurface* surface) argument 289 createBuffers(VulkanSurface* surface, VkFormat format, VkExtent2D extent) argument 369 createSwapchain(VulkanSurface* surface) argument 526 VulkanSurface* surface = new VulkanSurface(); local 605 swapBuffers(VulkanSurface* surface) argument 692 getAge(VulkanSurface* surface) argument [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 161 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { argument 163 if (!surface->peekPixels(&pixmap)) {
|
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 168 ALOGE("Error %d resizing sprite surface from %dx%d to %dx%d", 180 ALOGE("Error %d hiding sprite surface after resize.", status); 204 sp<Surface> surface = update.state.surfaceControl->getSurface(); local 206 status_t status = surface->lock(&outBuffer, NULL); 208 ALOGE("Error %d locking sprite surface before drawing.", status); 232 status = surface->unlockAndPost(); 234 ALOGE("Error %d unlocking and posting sprite surface after drawing.", status); 243 // Set sprite surface properties and make them visible. 266 ALOGE("Error %d setting sprite surface alpha.", status); 277 ALOGE("Error %d setting sprite surface positio [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLEnvironment.java | 102 public int registerSurface(Surface surface) { argument 103 int result = nativeAddSurface(surface); 105 throw new RuntimeException("Error registering surface " + surface + "!"); 111 Surface surface = new Surface(surfaceTexture); 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 113 surface.release(); 123 throw new RuntimeException("Error registering surface from " 131 throw new RuntimeException("Could not activate surface " + surfaceId + "!"); 137 throw new RuntimeException("Could not unregister surface " 171 nativeAddSurface(Surface surface) argument 173 nativeAddSurfaceWidthHeight(Surface surface, int width, int height) argument [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_environment.cpp | 136 jobject surface) { 138 if (!surface) { 143 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); 152 // Configure surface 169 ALOGE("GLEnvironment: No suitable EGL configuration found for surface!"); 173 // Create the EGL surface 180 ALOGE("GLEnvironment: Error creating window surface!"); 196 jobject surface, 200 if (!surface) { 205 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); 134 Java_android_filterfw_core_GLEnvironment_nativeAddSurface(JNIEnv* env, jobject thiz, jobject surface) argument 194 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_env.cpp | 97 surface() != eglGetCurrentSurface(EGL_DRAW)) { 99 if (context() == EGL_NO_CONTEXT || surface() == EGL_NO_SURFACE) 104 eglMakeCurrent(display(), surface(), surface(), context()); 112 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE; 126 (surface() != EGL_NO_SURFACE); 144 // Configure context/surface 167 // Create dummy surface using a GLConsumer 195 && surface() == eglGetCurrentSurface(EGL_DRAW); 206 int GLEnv::AddWindowSurface(const EGLSurface& surface, WindowHandl argument 212 AddSurface(const EGLSurface& surface) argument 219 const SurfaceWindowPair* surface = FindOrNull(surfaces_, surface_id); local [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDevice.java | 47 // The display device owns its surface, but it should only set it 191 * Sets the display surface while in a transaction. 193 public final void setSurfaceInTransactionLocked(Surface surface) { argument 194 if (mCurrentSurface != surface) { 195 mCurrentSurface = surface; 196 SurfaceControl.setDisplaySurface(mDisplayToken, surface);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHal.java | 61 Surface surface); 85 public int addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { argument 94 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) { 60 nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, Surface surface) argument
|