Searched defs:surface (Results 101 - 125 of 203) sorted by relevance

123456789

/frameworks/base/libs/hwui/tests/unit/
H A DRenderNodeDrawableTests.cpp139 auto surface = SkSurface::MakeRasterN32Premul(1, 1); local
140 SkCanvas& canvas = *surface->getCanvas();
142 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
157 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0));
161 ASSERT_EQ(SK_ColorWHITE, TestUtils::getColor(surface, 0, 0));
165 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0));
186 auto surface = SkSurface::MakeRasterN32Premul(400, 800); local
187 SkCanvas& canvas = *surface->getCanvas();
189 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE);
220 ASSERT_EQ(SK_ColorGREEN, TestUtils::getColor(surface, 20
[all...]
/frameworks/base/media/java/android/media/
H A DMediaSync.java44 * sync.setSurface(surface);
62 * // send video frames to surface for rendering, e.g., call
82 * // surface timestamp must contain media presentation time in nanoseconds.
103 * For video, the client needs to call {@link #createInputSurface} to obtain a surface on
139 /** The surface failed to handle video buffers.
307 * Sets the output surface for MediaSync.
311 * @param surface Specify a surface on which to render the video data.
312 * @throws IllegalArgumentException if the surface has been released, is invalid,
314 * @throws IllegalStateException if setting the surface i
317 setSurface(@ullable Surface surface) argument
321 native_setSurface(@ullable Surface surface) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DEGLLogWrapper.java64 public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, argument
68 arg("surface", surface);
72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap);
153 public boolean eglDestroySurface(EGLDisplay display, EGLSurface surface) { argument
156 arg("surface", surface);
159 boolean result = mEgl10.eglDestroySurface(display, surface);
303 public boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, argument
307 arg("surface", surfac
328 eglSwapBuffers(EGLDisplay display, EGLSurface surface) argument
[all...]
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLImpl.java33 public native boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument
41 public native boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument
44 public native boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface); argument
46 public native boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DBlockingGLTextureView.java66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, argument
68 mRenderThread.setSurface(surface);
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, argument
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
187 * Create an egl surface for the current SurfaceTexture surface. If a surface
188 * already exists, destroy it before creating the new surface.
190 * @return true if the surface wa
192 createSurface(SurfaceTexture surface) argument
343 setSurface(SurfaceTexture surface) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DWifiDisplayAdapter.java361 Surface surface, int width, int height, int flags) {
385 refreshRate, deviceFlags, address, surface);
525 public void onDisplayConnected(WifiDisplay display, Surface surface,
529 addDisplayDeviceLocked(display, surface, width, height, flags);
593 Surface surface) {
601 mSurface = surface;
360 addDisplayDeviceLocked(WifiDisplay display, Surface surface, int width, int height, int flags) argument
591 WifiDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, int flags, String address, Surface surface) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowSurfacePlacer.java690 // an extra surface with the thumbnail included with the animation.
698 // Create a new surface for the thumbnail
710 // Transfer the thumbnail to the surface
729 // synchronize its thumbnail surface with the surface for the
749 Slog.e(TAG, "Can't allocate thumbnail/Canvas surface w="
763 * Puts the {@param surface} into a pending list to be destroyed after the current transaction
766 void destroyAfterTransaction(SurfaceControl surface) { argument
767 mPendingDestroyingSurfaces.add(surface);
/frameworks/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java262 public void setPreviewSurface(Surface surface) { argument
264 mVideoProvider.setPreviewSurface(surface);
270 public void setDisplaySurface(Surface surface) { argument
272 mVideoProvider.setDisplaySurface(surface);
/frameworks/base/telephony/java/com/android/ims/internal/
H A DImsVideoCallProvider.java129 public void setPreviewSurface(Surface surface) { argument
130 mProviderHandler.obtainMessage(MSG_SET_PREVIEW_SURFACE, surface).sendToTarget();
133 public void setDisplaySurface(Surface surface) { argument
134 mProviderHandler.obtainMessage(MSG_SET_DISPLAY_SURFACE, surface).sendToTarget();
197 public abstract void onSetPreviewSurface(Surface surface); argument
200 public abstract void onSetDisplaySurface(Surface surface); argument
/frameworks/native/libs/vr/libvrflinger/
H A Dhardware_composer.h62 // Sets up the layer to use a display surface as its content source. The Layer
63 // automatically handles ACQUIRE/RELEASE phases for the surface's buffer train
70 // |index| is the index of this surface in the DirectDisplaySurface array.
71 void Setup(const std::shared_ptr<DirectDisplaySurface>& surface,
92 // associated with a display surface, this method automatically ACQUIRES a new
127 surface_id = surface_source.surface->surface_id();
149 // State when the layer is connected to a surface. Provides the same interface
152 std::shared_ptr<DirectDisplaySurface> surface; member in struct:android::dvr::Layer::SourceSurface
156 SourceSurface(const std::shared_ptr<DirectDisplaySurface>& surface) argument
157 : surface(surfac
[all...]
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java285 * surface is created.
331 synchronized public void onFrameAvailable(SurfaceTexture surface) { argument
341 * Move the camera surface around based on some simple spring physics with drag
/frameworks/native/opengl/tests/gl2_copyTexImage/
H A Dgl2_copyTexImage.cpp381 EGLSurface surface; local
425 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
427 if (surface == EGL_NO_SURFACE) {
438 returnValue = eglMakeCurrent(dpy, surface, surface, context);
443 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
445 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
463 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/gl2_yuvtex/
H A Dgl2_yuvtex.cpp346 EGLSurface surface; local
380 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
382 if (surface == EGL_NO_SURFACE) {
393 returnValue = eglMakeCurrent(dpy, surface, surface, context);
398 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
400 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
412 fprintf(stderr, "Could not set up texture surface.\n");
423 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp197 static EGLSurface surface; variable
495 list->sur = surface;
536 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.h290 sp<IGraphicBufferProducer> surface; member in struct:android::DisplayDeviceState
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
H A DImsVideoCallProviderWrapper.java243 public void onSetPreviewSurface(Surface surface) { argument
245 mVideoCallProvider.setPreviewSurface(surface);
251 public void onSetDisplaySurface(Surface surface) { argument
253 mVideoCallProvider.setDisplaySurface(surface);
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DLocalPlayer.java299 protected void setSurface(Surface surface) { argument
300 mSurface = surface;
379 public static final void setSurface(MediaPlayer player, Surface surface) { argument
380 player.setSurface(surface);
401 // add surface holder callback
420 // remove surface holder callback
424 // hide the surface view when SurfaceViewPlayer is destroyed
570 // Set up the surface view.
637 public void onWindowCreated(Surface surface) { argument
638 setSurface(surface);
[all...]
H A DOverlayDisplayWindow.java99 void onWindowCreated(Surface surface); argument
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DLocalPlayer.java299 protected void setSurface(Surface surface) { argument
300 mSurface = surface;
379 public static final void setSurface(MediaPlayer player, Surface surface) { argument
380 player.setSurface(surface);
401 // add surface holder callback
420 // remove surface holder callback
424 // hide the surface view when SurfaceViewPlayer is destroyed
570 // Set up the surface view.
637 public void onWindowCreated(Surface surface) { argument
638 setSurface(surface);
[all...]
H A DOverlayDisplayWindow.java99 void onWindowCreated(Surface surface); argument
/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c513 // set the surface
514 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument
516 // obtain a native window from a Java surface
517 theNativeWindow = ANativeWindow_fromSurface(env, surface);
/frameworks/av/cmds/stagefright/
H A Dmediafilter.cpp62 "\t[-R] render output to surface (enables -S)\n"
63 "\t[-S] allocate buffers from a surface\n"
254 const sp<Surface> &surface, bool renderSurface,
275 if (surface == NULL || !renderSurface) {
315 const sp<Surface> &surface,
361 format, NULL /* surface */, NULL /* crypto */, 0 /* flags */);
462 vidFormat /* format */, surface, NULL /* crypto */, 0 /* flags */);
632 filterState, surface, renderSurface,
642 filterState, surface, renderSurface,
745 android::sp<Surface> surface; local
252 tryDrainOutputBuffer( CodecState *filterState, const sp<Surface> &surface, bool renderSurface, bool useTimestamp, int64_t *startTimeRender) argument
312 decode( const sp<ALooper> &looper, const char *path, const sp<Surface> &surface, bool renderSurface, bool useTimestamp, FilterType filterType) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp234 sp<Surface> surface = NULL; local
236 surface = (Surface*) window;
239 return translate_error(mData->mCodec->configure(nativeFormat, surface,
387 sp<Surface> surface = NULL; local
389 surface = (Surface*) window;
391 return translate_error(mData->mCodec->setSurface(surface));
395 media_status_t AMediaCodec_createInputSurface(AMediaCodec *mData, ANativeWindow **surface) { argument
396 if (surface == NULL || mData == NULL) {
399 *surface = NULL;
407 *surface
413 AMediaCodec_createPersistentInputSurface(ANativeWindow **surface) argument
436 AMediaCodec_setInputSurface( AMediaCodec *mData, ANativeWindow *surface) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityView.java187 final Surface surface = (visibility == View.GONE) ? null : mSurface;
188 setSurfaceAsync(surface, mWidth, mHeight, mDensityDpi, false);
292 private void setSurfaceAsync(final Surface surface, final int width, final int height, argument
299 mActivityContainer.setSurface(surface, width, height, densityDpi);
304 "ActivityView: Unable to set surface of ActivityContainer. ",
312 if (surface != null) {
328 * Note: If the surface has been created prior to this call being made, then
351 * Called when the surface is ready to be drawn to. Calling startActivity prior to this
356 * Called when the surface has been removed. Calling startActivity after this callback
451 void setSurface(Surface surface, in argument
[all...]
H A DNativeActivity.java101 private native void onSurfaceCreatedNative(long handle, Surface surface); argument
102 private native void onSurfaceChangedNative(long handle, Surface surface, argument
104 private native void onSurfaceRedrawNeededNative(long handle, Surface surface); argument

Completed in 2576 milliseconds

123456789