Home
last modified time | relevance | path

Searched refs:display (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLImpl.java31 public native boolean eglInitialize(EGLDisplay display, int[] major_minor); in eglInitialize() argument
32 …public native boolean eglQueryContext(EGLDisplay display, EGLContext context, int attribute, i… in eglQueryContext() argument
33 …public native boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, i… in eglQuerySurface() argument
36 …public native boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, EGLConfig[] confi… in eglChooseConfig() argument
37 …public native boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, … in eglGetConfigAttrib() argument
38 …public native boolean eglGetConfigs(EGLDisplay display, EGLConfig[] configs, int config_size, … in eglGetConfigs() argument
40 public native boolean eglDestroyContext(EGLDisplay display, EGLContext context); in eglDestroyContext() argument
41 public native boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); in eglDestroySurface() argument
42 …public native boolean eglMakeCurrent(EGLDisplay display, EGLSurface draw, EGLSurface read, EGL… in eglMakeCurrent() argument
43 public native String eglQueryString(EGLDisplay display, int name); in eglQueryString() argument
[all …]
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java47 public boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, in eglChooseConfig() argument
50 arg("display", display); in eglChooseConfig()
55 boolean result = mEgl10.eglChooseConfig(display, attrib_list, configs, in eglChooseConfig()
64 public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, in eglCopyBuffers() argument
67 arg("display", display); in eglCopyBuffers()
72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap); in eglCopyBuffers()
78 public EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, in eglCreateContext() argument
81 arg("display", display); in eglCreateContext()
87 EGLContext result = mEgl10.eglCreateContext(display, config, in eglCreateContext()
94 public EGLSurface eglCreatePbufferSurface(EGLDisplay display, in eglCreatePbufferSurface() argument
[all …]
DGLSurfaceView.java760 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); in createContext() argument
761 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); in destroyContext() argument
767 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
771 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
775 public void destroyContext(EGL10 egl, EGLDisplay display, in destroyContext() argument
777 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
778 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
797 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, in createWindowSurface() argument
799 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); in destroySurface() argument
804 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, in createWindowSurface() argument
[all …]
/frameworks/base/opengl/java/javax/microedition/khronos/egl/
DEGL10.java97 …boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, EGLConfig[] configs, int config… in eglChooseConfig() argument
98 boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); in eglCopyBuffers() argument
99 …EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[]… in eglCreateContext() argument
100 EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list); in eglCreatePbufferSurface() argument
101 …EGLSurface eglCreatePixmapSurface(EGLDisplay display, EGLConfig config, Object native_pixmap, int… in eglCreatePixmapSurface() argument
102 …EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int… in eglCreateWindowSurface() argument
103 boolean eglDestroyContext(EGLDisplay display, EGLContext context); in eglDestroyContext() argument
104 boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); in eglDestroySurface() argument
105 … boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value); in eglGetConfigAttrib() argument
106 …boolean eglGetConfigs(EGLDisplay display, EGLConfig[] configs, int config_size, int[] num_conf… in eglGetConfigs() argument
[all …]
/frameworks/base/core/java/android/view/
DGravity.java318 public static void applyDisplay(int gravity, Rect display, Rect inoutObj) { in applyDisplay() argument
320 if (inoutObj.top < display.top) inoutObj.top = display.top; in applyDisplay()
321 if (inoutObj.bottom > display.bottom) inoutObj.bottom = display.bottom; in applyDisplay()
324 if (inoutObj.top < display.top) off = display.top-inoutObj.top; in applyDisplay()
325 else if (inoutObj.bottom > display.bottom) off = display.bottom-inoutObj.bottom; in applyDisplay()
327 if (inoutObj.height() > (display.bottom-display.top)) { in applyDisplay()
328 inoutObj.top = display.top; in applyDisplay()
329 inoutObj.bottom = display.bottom; in applyDisplay()
338 if (inoutObj.left < display.left) inoutObj.left = display.left; in applyDisplay()
339 if (inoutObj.right > display.right) inoutObj.right = display.right; in applyDisplay()
[all …]
DWindowManagerImpl.java50 public WindowManagerImpl(Display display) { in WindowManagerImpl() argument
51 this(display, null); in WindowManagerImpl()
54 private WindowManagerImpl(Display display, Window parentWindow) { in WindowManagerImpl() argument
55 mDisplay = display; in WindowManagerImpl()
63 public WindowManagerImpl createPresentationWindowManager(Display display) { in createPresentationWindowManager() argument
64 return new WindowManagerImpl(display, mParentWindow); in createPresentationWindowManager()
/frameworks/base/core/jni/
Dcom_google_android_gles_jni_EGLImpl.cpp117 static jboolean jni_eglInitialize(JNIEnv *_env, jobject _this, jobject display, in jni_eglInitialize() argument
119 if (display == NULL || (major_minor != NULL && in jni_eglInitialize()
125 EGLDisplay dpy = getDisplay(_env, display); in jni_eglInitialize()
140 static jboolean jni_eglQueryContext(JNIEnv *_env, jobject _this, jobject display, in jni_eglQueryContext() argument
142 if (display == NULL || context == NULL || value == NULL in jni_eglQueryContext()
147 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQueryContext()
159 static jboolean jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, in jni_eglQuerySurface() argument
161 if (display == NULL || surface == NULL || value == NULL in jni_eglQuerySurface()
166 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQuerySurface()
179 static jint jni_getInitCount(JNIEnv *_env, jobject _clazz, jobject display) { in jni_getInitCount() argument
[all …]
Dandroid_view_HardwareRenderer.cpp57 EGLDisplay display = eglGetCurrentDisplay(); in android_view_HardwareRenderer_preserveBackBuffer() local
61 eglSurfaceAttrib(display, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED); in android_view_HardwareRenderer_preserveBackBuffer()
72 EGLDisplay display = eglGetCurrentDisplay(); in android_view_HardwareRenderer_isBackBufferPreserved() local
77 eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &value); in android_view_HardwareRenderer_isBackBufferPreserved()
88 EGLDisplay display = eglGetCurrentDisplay(); in android_view_HardwareRenderer_disableVsync() local
91 eglSwapInterval(display, 0); in android_view_HardwareRenderer_disableVsync()
106 EGLDisplay display = eglGetCurrentDisplay(); in android_view_HardwareRenderer_beginFrame() local
113 eglQuerySurface(display, surface, EGL_WIDTH, &value); in android_view_HardwareRenderer_beginFrame()
116 eglQuerySurface(display, surface, EGL_HEIGHT, &value); in android_view_HardwareRenderer_beginFrame()
122 eglBeginFrame(display, surface); in android_view_HardwareRenderer_beginFrame()
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
DGL2JNIView.java80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
84 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
89 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
90 egl.eglDestroyContext(display, context); in destroyContext()
121 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
124 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
132 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
134 return chooseConfig(egl, display, configs); in chooseConfig()
137 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
142 int d = findConfigAttrib(egl, display, config, in chooseConfig()
[all …]
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DGLDualGL2View.java83 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
87 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
92 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
93 egl.eglDestroyContext(display, context); in destroyContext()
124 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
127 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
135 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
137 return chooseConfig(egl, display, configs); in chooseConfig()
140 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
145 int d = findConfigAttrib(egl, display, config, in chooseConfig()
[all …]
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
DGLPerfView.java80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
84 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
89 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
90 egl.eglDestroyContext(display, context); in destroyContext()
121 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
124 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
132 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
134 return chooseConfig(egl, display, configs); in chooseConfig()
137 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
142 int d = findConfigAttrib(egl, display, config, in chooseConfig()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManager.java17 package android.hardware.display;
148 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/); in addMatchingDisplaysLocked() local
149 if (display != null in addMatchingDisplaysLocked()
150 && (matchType < 0 || display.getType() == matchType)) { in addMatchingDisplaysLocked()
151 displays.add(display); in addMatchingDisplaysLocked()
157 Display display = mDisplays.get(displayId); in getOrCreateDisplayLocked() local
158 if (display == null) { in getOrCreateDisplayLocked()
159 display = mGlobal.getCompatibleDisplay(displayId, in getOrCreateDisplayLocked()
161 if (display != null) { in getOrCreateDisplayLocked()
162 mDisplays.put(displayId, display); in getOrCreateDisplayLocked()
[all …]
DIDisplayManager.aidl17 package android.hardware.display;
19 import android.hardware.display.IDisplayManagerCallback;
20 import android.hardware.display.WifiDisplay;
21 import android.hardware.display.WifiDisplayStatus;
/frameworks/base/services/java/com/android/server/display/
DDisplayManagerService.java17 package com.android.server.display;
24 import android.hardware.display.DisplayManagerGlobal;
25 import android.hardware.display.IDisplayManager;
26 import android.hardware.display.IDisplayManagerCallback;
27 import android.hardware.display.WifiDisplayStatus;
311 LogicalDisplay display = mLogicalDisplays.get(displayId); in setDisplayInfoOverrideFromWindowManager() local
312 if (display != null) { in setDisplayInfoOverrideFromWindowManager()
313 mTempDisplayInfo.copyFrom(display.getDisplayInfoLocked()); in setDisplayInfoOverrideFromWindowManager()
314 display.setDisplayInfoOverrideFromWindowManagerLocked(info); in setDisplayInfoOverrideFromWindowManager()
315 if (!mTempDisplayInfo.equals(display.getDisplayInfoLocked())) { in setDisplayInfoOverrideFromWindowManager()
[all …]
DWifiDisplayAdapter.java17 package com.android.server.display;
31 import android.hardware.display.DisplayManager;
32 import android.hardware.display.WifiDisplay;
33 import android.hardware.display.WifiDisplayStatus;
194 for (WifiDisplay display : mRememberedDisplays) { in isRememberedDisplayLocked()
195 if (display.getDeviceAddress().equals(address)) { in isRememberedDisplayLocked()
229 WifiDisplay display = mPersistentDataStore.getRememberedWifiDisplay(address); in requestRenameLocked() local
230 if (display != null && !Objects.equal(display.getDeviceAlias(), alias)) { in requestRenameLocked()
231 display = new WifiDisplay(address, display.getDeviceName(), alias); in requestRenameLocked()
232 if (mPersistentDataStore.rememberWifiDisplay(display)) { in requestRenameLocked()
[all …]
DPersistentDataStore.java17 package com.android.server.display;
26 import android.hardware.display.WifiDisplay;
98 public WifiDisplay applyWifiDisplayAlias(WifiDisplay display) { in applyWifiDisplayAlias() argument
99 if (display != null) { in applyWifiDisplayAlias()
103 int index = findRememberedWifiDisplay(display.getDeviceAddress()); in applyWifiDisplayAlias()
107 if (!Objects.equal(display.getDeviceAlias(), alias)) { in applyWifiDisplayAlias()
108 return new WifiDisplay(display.getDeviceAddress(), display.getDeviceName(), alias); in applyWifiDisplayAlias()
111 return display; in applyWifiDisplayAlias()
132 public boolean rememberWifiDisplay(WifiDisplay display) { in rememberWifiDisplay() argument
135 int index = findRememberedWifiDisplay(display.getDeviceAddress()); in rememberWifiDisplay()
[all …]
DWifiDisplayController.java17 package com.android.server.display;
27 import android.hardware.display.WifiDisplay;
28 import android.hardware.display.WifiDisplayStatus;
590 WifiDisplay display = createWifiDisplay(mConnectingDevice); in updateConnection() local
591 advertiseDisplay(display, null, 0, 0, 0); in updateConnection()
648 final WifiDisplay display = createWifiDisplay(mConnectedDevice); in updateConnection()
649 advertiseDisplay(display, surface, width, height, flags); in updateConnection()
794 private void advertiseDisplay(final WifiDisplay display, in advertiseDisplay() argument
796 if (!Objects.equal(mAdvertisedDisplay, display) in advertiseDisplay()
804 mAdvertisedDisplay = display; in advertiseDisplay()
[all …]
/frameworks/base/core/java/android/app/
DPresentation.java21 import android.hardware.display.DisplayManager;
22 import android.hardware.display.DisplayManager.DisplayListener;
158 public Presentation(Context outerContext, Display display) { in Presentation() argument
159 this(outerContext, display, 0); in Presentation()
176 public Presentation(Context outerContext, Display display, int theme) { in Presentation() argument
177 super(createPresentationContext(outerContext, display, theme), theme, false); in Presentation()
179 mDisplay = display; in Presentation()
288 Context outerContext, Display display, int theme) { in createPresentationContext() argument
292 if (display == null) { in createPresentationContext()
296 Context displayContext = outerContext.createDisplayContext(display); in createPresentationContext()
[all …]
/frameworks/native/libs/gui/
DISurfaceComposer.cpp106 const sp<IBinder>& display, sp<IMemoryHeap>* heap, in captureScreen() argument
113 data.writeStrongBinder(display); in captureScreen()
201 virtual void blank(const sp<IBinder>& display) in blank() argument
205 data.writeStrongBinder(display); in blank()
209 virtual void unblank(const sp<IBinder>& display) in unblank() argument
213 data.writeStrongBinder(display); in unblank()
217 virtual status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info) in getDisplayInfo() argument
221 data.writeStrongBinder(display); in getDisplayInfo()
273 sp<IBinder> display = data.readStrongBinder(); in onTransact() local
281 status_t res = captureScreen(display, &heap, &w, &h, &f, in onTransact()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp48 eglDestroySurface(display(), it->second.first); in ~GLEnv()
61 eglDestroyContext(display(), it->second); in ~GLEnv()
70 eglTerminate(display()); in ~GLEnv()
84 eglMakeCurrent(display(), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in Deactivate()
90 if (display() != eglGetCurrentDisplay() || in Activate()
99 eglMakeCurrent(display(), surface(), surface(), context()); in Activate()
107 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE; in SwapBuffers()
120 (display() != EGL_NO_DISPLAY) && in InitWithCurrentContext()
135 eglInitialize(display(), &majorVersion, &minorVersion); in InitWithNewContext()
156 eglChooseConfig(display(), configAttribs, &config, 1, &numConfigs); in InitWithNewContext()
[all …]
/frameworks/rs/driver/
DrsdGL.cpp139 dc->gl.egl.display); in DumpDebug()
163 RSD_CALL_GL(eglMakeCurrent, dc->gl.egl.display, in rsdGLShutdown()
165 RSD_CALL_GL(eglDestroySurface, dc->gl.egl.display, dc->gl.egl.surfaceDefault); in rsdGLShutdown()
167 RSD_CALL_GL(eglDestroySurface, dc->gl.egl.display, dc->gl.egl.surface); in rsdGLShutdown()
169 RSD_CALL_GL(eglDestroyContext, dc->gl.egl.display, dc->gl.egl.context); in rsdGLShutdown()
175 RSD_CALL_GL(eglTerminate, dc->gl.egl.display); in rsdGLShutdown()
246 dc->gl.egl.display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in rsdGLInit()
249 RSD_CALL_GL(eglInitialize, dc->gl.egl.display, in rsdGLInit()
263 ret = eglChooseConfig(dc->gl.egl.display, configAttribs, 0, 0, &numConfigs); in rsdGLInit()
270 eglSwapInterval(dc->gl.egl.display, 0); in rsdGLInit()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_object.cpp35 display(disp), count(1) { in egl_object_t()
37 display->addObject(this); in egl_object_t()
45 display->removeObject(this); in terminate()
58 bool egl_object_t::get(egl_display_t const* display, egl_object_t* object) { in get() argument
61 return display->getObject(object); in get()
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
DUiDevice.java24 import android.hardware.display.DisplayManagerGlobal;
117 Display display = getDefaultDisplay(); in getDisplaySizeDp() local
119 display.getSize(p); in getDisplaySizeDp()
121 display.getMetrics(metrics); in getDisplaySizeDp()
348 Display display = getDefaultDisplay(); in getDisplayWidth() local
350 display.getSize(p); in getDisplayWidth()
362 Display display = getDefaultDisplay(); in getDisplayHeight() local
364 display.getSize(p); in getDisplayHeight()
577 Display display = getDefaultDisplay(); in isNaturalOrientation() local
578 return display.getRotation() == Surface.ROTATION_0 || in isNaturalOrientation()
[all …]
/frameworks/native/include/gui/
DSurfaceComposerClient.h68 static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);
71 static void blankDisplay(const sp<IBinder>& display);
74 static void unblankDisplay(const sp<IBinder>& display);
166 status_t update(const sp<IBinder>& display);
167 status_t update(const sp<IBinder>& display,
169 status_t update(const sp<IBinder>& display,
/frameworks/base/docs/html/design/style/
Dcolor.jd9 display: -webkit-box;
10 display: -moz-box;
11 display: box;
37 display: block;
45 display: none;
53 display: none;
73 display: block;
79 display: block;

12345678910>>...20