Searched defs:surface (Results 76 - 100 of 144) sorted by relevance

123456

/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerGlobal.java374 String name, int width, int height, int densityDpi, Surface surface, int flags,
389 context.getPackageName(), name, width, height, densityDpi, surface, flags);
408 return new VirtualDisplay(this, display, callbackWrapper, surface);
411 public void setVirtualDisplaySurface(IVirtualDisplayCallback token, Surface surface) { argument
413 mDm.setVirtualDisplaySurface(token, surface);
415 Log.w(TAG, "Failed to set virtual display surface.", ex);
373 createVirtualDisplay(Context context, MediaProjection projection, String name, int width, int height, int densityDpi, Surface surface, int flags, VirtualDisplay.Callback callback, Handler handler) argument
/frameworks/base/core/java/android/view/
H A DHardwareRenderer.java218 * Initializes the hardware renderer for the specified surface.
220 * @param surface The surface to hardware accelerate
224 abstract boolean initialize(Surface surface) throws OutOfResourcesException; argument
227 * Updates the hardware renderer for the specified surface.
229 * @param surface The surface to hardware accelerate
231 abstract void updateSurface(Surface surface) throws OutOfResourcesException; argument
234 * Stops any rendering into the surface. Use this if it is unclear whether
235 * or not the surface use
238 pauseSurface(Surface surface) argument
254 invalidate(Surface surface) argument
383 initializeIfNeeded(int width, int height, Surface surface, Rect surfaceInsets) argument
[all...]
H A DTextureView.java62 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
66 * mCamera.setPreviewTexture(surface);
73 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
77 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
83 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
451 * The specified transform applies to the underlying surface
502 * of the associated surface texture. If the surface texture is not available,
513 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
526 * of the associated surface textur
774 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
784 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
794 onSurfaceTextureDestroyed(SurfaceTexture surface) argument
802 onSurfaceTextureUpdated(SurfaceTexture surface) argument
805 nCreateNativeWindow(SurfaceTexture surface) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp113 sp<Surface> surface(new Surface(bufferProducer, true));
114 if (surface == NULL) {
119 gSurfaceClassInfo.ctor, (jlong)surface.get());
128 surface->incStrong(&sRefBaseOwner);
149 sp<Surface> surface(new Surface(producer, true));
150 if (surface == NULL) {
155 surface->incStrong(&sRefBaseOwner);
156 return jlong(surface.get());
197 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject));
199 if (!isSurfaceValid(surface)) {
361 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
369 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp52 jfieldID surface; member in struct:fields_t
324 jobject surface = env->GetObjectField(thiz, fields.surface); local
325 if (surface != NULL) {
326 const sp<Surface> native_surface = get_surface(env, surface);
329 // the preview surface becomes unavailable
331 ALOGE("Application lost the surface");
332 jniThrowException(env, "java/io/IOException", "invalid preview surface");
336 ALOGI("prepare: surface=%p", native_surface.get());
365 "failed to get surface");
432 jclass surface = env->FindClass("android/view/Surface"); local
[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 DVirtualDisplayAdapter.java65 String name, int width, int height, int densityDpi, Surface surface, int flags) {
73 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags,
103 public void setVirtualDisplaySurfaceLocked(IBinder appToken, Surface surface) { argument
106 device.setSurfaceLocked(surface);
187 String name, int width, int height, int densityDpi, Surface surface, int flags,
197 mSurface = surface;
247 public void setSurfaceLocked(Surface surface) { argument
248 if (!mStopped && mSurface != surface) {
249 if ((mSurface != null) != (surface != null)) {
253 mSurface = surface;
63 createVirtualDisplayLocked(IVirtualDisplayCallback callback, IMediaProjection projection, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument
185 VirtualDisplayDevice(IBinder displayToken, IBinder appToken, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, Callback callback, String uniqueId, int uniqueIndex) argument
[all...]
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);
592 Surface surface) {
600 mSurface = surface;
360 addDisplayDeviceLocked(WifiDisplay display, Surface surface, int width, int height, int flags) argument
590 WifiDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, int flags, String address, Surface surface) argument
/frameworks/base/telecomm/java/android/telecom/
H A DInCallService.java228 * Sets the surface to be used for displaying a preview of what the user's camera is
232 * @param surface The surface.
234 public abstract void setPreviewSurface(Surface surface); argument
237 * Sets the surface to be used for displaying the video received from the remote device.
239 * @param surface The surface.
241 public abstract void setDisplaySurface(Surface surface); argument
/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.cpp196 static EGLSurface surface; variable
494 list->sur = surface;
535 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.h168 sp<IGraphicBufferProducer> surface; member in struct:android::SurfaceFlinger::DisplayDeviceState
386 // compose surfaces for display hw. this fails if using GL and the surface
/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 Dsf2.cpp64 const sp<Surface> &surface, bool renderToSurface)
67 mSurface(surface),
580 " -S(urface) Allocate output buffers on a surface.\n"
581 " -R(ender) Render surface-allocated buffers.\n");
631 sp<Surface> surface; local
652 surface = control->getSurface();
653 CHECK(surface != NULL);
657 surface.get(), NATIVE_WINDOW_API_MEDIA));
661 new Controller(argv[0], decodeAudio, surface, renderToSurface);
676 surface
63 Controller(const char *uri, bool decodeAudio, const sp<Surface> &surface, bool renderToSurface) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoder.cpp133 sp<Surface> surface = NULL; local
135 surface = mNativeWindow->getSurfaceTextureClient();
140 ALOGV("[%s] onConfigure (surface=%p)", mComponentName.c_str(), surface.get());
166 // disconnect from surface as MediaCodec will reconnect
168 surface.get(), NATIVE_WINDOW_API_MEDIA);
170 // Codec will try to connect to the surface, which is where
172 ALOGW_IF(err != OK, "failed to disconnect from surface: %d", err);
175 format, surface, NULL /* crypto */, 0 /* flags */);
283 // reconnect to surface a
[all...]
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp155 const sp<IGraphicBufferProducer>& surface,
159 clientName, clientUid, videoSize, frameRate, surface,
172 const sp<IGraphicBufferProducer>& surface,
178 mSurface(surface),
547 // applications may already set a surface to the camera.
147 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
164 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp207 sp<Surface> surface = NULL; local
209 surface = (Surface*) window;
212 return translate_error(mData->mCodec->configure(nativeFormat, surface,
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp139 ALOGE("%s: Camera %d: Requests must have at least one surface target. "
151 * the capture request's list of surface targets
156 sp<Surface> surface = request->mSurfaceList[i]; local
157 if (surface == 0) continue;
159 sp<IGraphicBufferProducer> gbp = surface->getIGraphicBufferProducer();
162 // Trying to submit request with surface that wasn't created
164 ALOGE("%s: Camera %d: Tried to submit a request with a surface that"
328 // Don't create multiple streams for the same target surface
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp240 // create the native surface
261 EGLSurface surface; local
268 surface = eglCreateWindowSurface(display, config, s.get(), NULL);
270 eglQuerySurface(display, surface, EGL_WIDTH, &w);
271 eglQuerySurface(display, surface, EGL_HEIGHT, &h);
273 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE)
278 mSurface = surface;
395 // Allow surface flinger to gracefully request shutdown
/frameworks/base/core/java/android/app/
H A DNativeActivity.java106 private native void onSurfaceCreatedNative(long handle, Surface surface); argument
107 private native void onSurfaceChangedNative(long handle, Surface surface, argument
109 private native void onSurfaceRedrawNeededNative(long handle, Surface surface); argument
/frameworks/base/core/java/android/hardware/camera2/
H A DCaptureRequest.java52 * be part of the surface list given to the last call to
342 public boolean containsTarget(Surface surface) { argument
343 return mSurfaceSet.contains(surface);
382 * <p>Add a surface to the list of targets for this request</p>
397 * <p>Remove a surface from the list of targets for this request.</p>
1689 * measured from frontmost surface of the lens.</p>

Completed in 571 milliseconds

123456