Home
last modified time | relevance | path

Searched refs:dpy (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/opengl/tests/swapinterval/
Dswapinterval.cpp45 EGLDisplay dpy; in main() local
50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
51 eglInitialize(dpy, 0 ,0) ;//&majorVersion, &minorVersion); in main()
52 eglGetConfigs(dpy, NULL, 0, &numConfigs); in main()
56 dpy, configAttribs, window, &config); in main()
63 eglGetConfigAttrib(dpy, config, EGL_RED_SIZE, &r); in main()
64 eglGetConfigAttrib(dpy, config, EGL_GREEN_SIZE, &g); in main()
65 eglGetConfigAttrib(dpy, config, EGL_BLUE_SIZE, &b); in main()
66 eglGetConfigAttrib(dpy, config, EGL_ALPHA_SIZE, &a); in main()
68 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
[all …]
/frameworks/base/opengl/libs/EGL/
Degl.cpp157 DisplayImpl() : dpy(EGL_NO_DISPLAY), config(0), in DisplayImpl()
159 EGLDisplay dpy; member
181 egl_surface_t(EGLDisplay dpy, EGLSurface surface, in egl_surface_t()
183 : dpy(dpy), surface(surface), impl(impl), cnx(cnx) { in egl_surface_t()
187 EGLDisplay dpy; member
197 egl_context_t(EGLDisplay dpy, EGLContext context, in egl_context_t()
199 : dpy(dpy), context(context), read(0), draw(0), impl(impl), cnx(cnx), in egl_context_t()
203 EGLDisplay dpy; member
216 egl_image_t(EGLDisplay dpy, EGLContext context) in egl_image_t()
217 : dpy(dpy), context(context) in egl_image_t()
[all …]
DLoader.cpp87 Loader::entry_t::entry_t(int dpy, int impl, const char* tag) in entry_t() argument
88 : dpy(dpy), impl(impl), tag(tag) { in entry_t()
104 int dpy; in Loader() local
106 if (sscanf(line, "%u %u %s", &dpy, &impl, tag) == 3) { in Loader()
108 gConfig.add( entry_t(dpy, impl, tag) ); in Loader()
119 const char* Loader::getTag(int dpy, int impl) in getTag() argument
124 if (dpy == cfgs[i].dpy) in getTag()
DLoader.h58 entry_t(int dpy, int impl, const char* tag);
59 int dpy; member
67 const char* getTag(int dpy, int impl);
/frameworks/base/opengl/tests/angeles/include/GLES/
Degl.h197 GLAPI EGLBoolean APIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
198 GLAPI EGLBoolean APIENTRY eglTerminate (EGLDisplay dpy);
199 GLAPI const char * APIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
202 GLAPI EGLBoolean APIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EG…
203 GLAPI EGLBoolean APIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *co…
204 GLAPI EGLBoolean APIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, E…
206 GLAPI EGLSurface APIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, NativeWindowTyp…
207 GLAPI EGLSurface APIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, NativePixmapTyp…
208 GLAPI EGLSurface APIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *…
209 GLAPI EGLBoolean APIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
[all …]
/frameworks/base/opengl/tests/fillrate/
Dfillrate.cpp46 EGLDisplay dpy; in main() local
50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
51 eglInitialize(dpy, &majorVersion, &minorVersion); in main()
54 dpy, configAttribs, window, &config); in main()
60 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
61 context = eglCreateContext(dpy, config, NULL, NULL); in main()
62 eglMakeCurrent(dpy, surface, surface, context); in main()
63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
119 eglSwapInterval(dpy, 1); in main()
[all …]
/frameworks/base/opengl/tests/linetex/
Dlinetex.cpp47 EGLDisplay dpy; in main() local
51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
52 eglInitialize(dpy, &majorVersion, &minorVersion); in main()
55 dpy, configAttribs, window, &config); in main()
61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
62 context = eglCreateContext(dpy, config, NULL, NULL); in main()
63 eglMakeCurrent(dpy, surface, surface, context); in main()
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
109 eglSwapBuffers(dpy, surface); in main()
[all …]
/frameworks/base/opengl/include/EGL/
Degl.h253 EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
254 EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy);
256 EGLAPI const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name);
258 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs,
260 EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list,
263 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
266 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
269 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config,
271 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
274 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
[all …]
Deglext.h84 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, E…
85 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
87 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenu…
88 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
144 EGLAPI EGLClientBuffer EGLAPIENTRY eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw);
146 typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETRENDERBUFFERANDROIDPROC) (EGLDisplay dpy, EGLSurface…
152 EGLAPI EGLBoolean EGLAPIENTRY eglSetSwapRectangleANDROID (EGLDisplay dpy, EGLSurface draw, EGLint l…
154 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSWAPRECTANGLEANDROIDPROC) (EGLDisplay dpy, EGLSurface dra…
/frameworks/base/opengl/tests/filter/
Dfilter.cpp40 EGLDisplay dpy; in main() local
47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
48 eglInitialize(dpy, &majorVersion, &minorVersion); in main()
51 dpy, s_configAttribs, window, &config); in main()
52 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
55 eglChooseConfig(dpy, s_configAttribs, &config, 1, &numConfigs); in main()
57 surface = eglCreatePbufferSurface(dpy, config, attribs); in main()
62 context = eglCreateContext(dpy, config, NULL, NULL); in main()
63 eglMakeCurrent(dpy, surface, surface, context); in main()
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
[all …]
/frameworks/base/opengl/tests/finish/
Dfinish.cpp47 EGLDisplay dpy; in main() local
51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
52 eglInitialize(dpy, &majorVersion, &minorVersion); in main()
55 dpy, configAttribs, window, &config); in main()
61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
62 context = eglCreateContext(dpy, config, NULL, NULL); in main()
63 eglMakeCurrent(dpy, surface, surface, context); in main()
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
113 eglSwapBuffers(dpy, surface); in main()
[all …]
/frameworks/base/opengl/tests/textures/
Dtextures.cpp43 EGLDisplay dpy; in main() local
47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
48 eglInitialize(dpy, &majorVersion, &minorVersion); in main()
51 dpy, configAttribs, window, &config); in main()
57 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
58 context = eglCreateContext(dpy, config, NULL, NULL); in main()
59 eglMakeCurrent(dpy, surface, surface, context); in main()
60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
116 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/libagl/
Degl.cpp96 static egl_display_t& get_display(EGLDisplay dpy);
98 static EGLBoolean is_valid(EGLDisplay dpy) { in is_valid()
99 return ((uintptr_t(dpy)-1U) >= NUM_DISPLAYS) ? EGL_FALSE : EGL_TRUE; in is_valid()
108 egl_display_t& egl_display_t::get_display(EGLDisplay dpy) { in get_display() argument
109 return gDisplays[uintptr_t(dpy)-1U]; in get_display()
118 EGLDisplay dpy; member
139 EGLDisplay dpy; member
143 egl_surface_t(EGLDisplay dpy, EGLConfig config, int32_t depthFormat);
166 egl_surface_t::egl_surface_t(EGLDisplay dpy, in egl_surface_t() argument
169 : magic(MAGIC), dpy(dpy), config(config), ctx(0) in egl_surface_t()
[all …]
/frameworks/base/opengl/tests/angeles/
Dapp-linux.cpp134 EGLDisplay dpy; in initGraphics() local
138 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGraphics()
139 eglInitialize(dpy, &majorVersion, &minorVersion); in initGraphics()
142 dpy, configAttribs, window, &config); in initGraphics()
148 surface = eglCreateWindowSurface(dpy, config, window, NULL); in initGraphics()
153 context = eglCreateContext(dpy, config, NULL, NULL); in initGraphics()
157 eglMakeCurrent(dpy, surface, surface, context); in initGraphics()
160 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth); in initGraphics()
161 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight); in initGraphics()
163 sEglDisplay = dpy; in initGraphics()
/frameworks/base/opengl/tests/gl2_basic/
Dgl2_basic.cpp178 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { in printEGLConfiguration() argument
220 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); in printEGLConfiguration()
230 int printEGLConfigurations(EGLDisplay dpy) { in printEGLConfigurations() argument
232 EGLint returnVal = eglGetConfigs(dpy, NULL, 0, &numConfig); in printEGLConfigurations()
246 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations()
255 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations()
277 EGLDisplay dpy; in main() local
280 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main()
282 if (dpy == EGL_NO_DISPLAY) { in main()
287 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main()
[all …]
/frameworks/base/libs/ui/
DEGLUtils.cpp56 EGLDisplay dpy, in selectConfigForPixelFormat() argument
76 if (eglGetConfigs(dpy, NULL, 0, &numConfigs) == EGL_FALSE) in selectConfigForPixelFormat()
80 if (eglChooseConfig(dpy, attrs, configs, numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat()
95 eglGetConfigAttrib(dpy, curr, EGL_RED_SIZE, &r); in selectConfigForPixelFormat()
96 eglGetConfigAttrib(dpy, curr, EGL_GREEN_SIZE, &g); in selectConfigForPixelFormat()
97 eglGetConfigAttrib(dpy, curr, EGL_BLUE_SIZE, &b); in selectConfigForPixelFormat()
98 eglGetConfigAttrib(dpy, curr, EGL_ALPHA_SIZE, &a); in selectConfigForPixelFormat()
116 EGLDisplay dpy, in selectConfigForNativeWindow() argument
131 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); in selectConfigForNativeWindow()
DISurfaceComposer.cpp79 virtual status_t freezeDisplay(DisplayID dpy, uint32_t flags) in freezeDisplay() argument
83 data.writeInt32(dpy); in freezeDisplay()
89 virtual status_t unfreezeDisplay(DisplayID dpy, uint32_t flags) in unfreezeDisplay() argument
93 data.writeInt32(dpy); in unfreezeDisplay()
99 virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags) in setOrientation() argument
103 data.writeInt32(dpy); in setOrientation()
148 DisplayID dpy = data.readInt32(); in onTransact() local
151 reply->writeInt32( setOrientation(dpy, orientation, flags) ); in onTransact()
155 DisplayID dpy = data.readInt32(); in onTransact() local
157 reply->writeInt32( freezeDisplay(dpy, flags) ); in onTransact()
[all …]
DSurfaceComposerClient.cpp249 DisplayID dpy, DisplayInfo* info) in getDisplayInfo() argument
251 if (uint32_t(dpy)>=NUM_DISPLAY_MAX) in getDisplayInfo()
255 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayInfo()
267 ssize_t SurfaceComposerClient::getDisplayWidth(DisplayID dpy) in getDisplayWidth() argument
269 if (uint32_t(dpy)>=NUM_DISPLAY_MAX) in getDisplayWidth()
272 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayWidth()
276 ssize_t SurfaceComposerClient::getDisplayHeight(DisplayID dpy) in getDisplayHeight() argument
278 if (uint32_t(dpy)>=NUM_DISPLAY_MAX) in getDisplayHeight()
281 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayHeight()
285 ssize_t SurfaceComposerClient::getDisplayOrientation(DisplayID dpy) in getDisplayOrientation() argument
[all …]
/frameworks/base/core/jni/
Dandroid_view_Display.cpp53 JNIEnv* env, jobject clazz, jint dpy) in android_view_Display_init() argument
56 status_t err = SurfaceComposerClient::getDisplayInfo(DisplayID(dpy), &info); in android_view_Display_init()
71 DisplayID dpy = env->GetIntField(clazz, offsets.display); in android_view_Display_getWidth() local
72 return SurfaceComposerClient::getDisplayWidth(dpy); in android_view_Display_getWidth()
78 DisplayID dpy = env->GetIntField(clazz, offsets.display); in android_view_Display_getHeight() local
79 return SurfaceComposerClient::getDisplayHeight(dpy); in android_view_Display_getHeight()
85 DisplayID dpy = env->GetIntField(clazz, offsets.display); in android_view_Display_getOrientation() local
86 return SurfaceComposerClient::getDisplayOrientation(dpy); in android_view_Display_getOrientation()
Dcom_google_android_gles_jni_EGLImpl.cpp142 EGLDisplay dpy = getDisplay(_env, display); in jni_eglInitialize() local
143 jboolean success = eglInitialize(dpy, NULL, NULL); in jni_eglInitialize()
164 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQueryContext() local
170 success = eglQueryContext(dpy, ctx, attribute, base); in jni_eglQueryContext()
183 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQuerySurface() local
190 success = eglQuerySurface(dpy, sur, attribute, base); in jni_eglQuerySurface()
205 EGLDisplay dpy = getDisplay(_env, display); in jni_eglChooseConfig() local
215 success = eglChooseConfig(dpy, attrib_base, configs ? nativeConfigs : 0, config_size, &num); in jni_eglChooseConfig()
238 EGLDisplay dpy = getDisplay(_env, display); in jni_eglCreateContext() local
242 EGLContext ctx = eglCreateContext(dpy, cnf, shr, base); in jni_eglCreateContext()
[all …]
/frameworks/base/include/ui/
DSurfaceComposerClient.h94 static status_t freezeDisplay(DisplayID dpy, uint32_t flags = 0);
97 static status_t unfreezeDisplay(DisplayID dpy, uint32_t flags = 0);
100 static int setOrientation(DisplayID dpy, int orientation, uint32_t flags);
106 static status_t getDisplayInfo(DisplayID dpy, DisplayInfo* info);
107 static ssize_t getDisplayWidth(DisplayID dpy);
108 static ssize_t getDisplayHeight(DisplayID dpy);
109 static ssize_t getDisplayOrientation(DisplayID dpy);
DISurfaceComposer.h100 virtual status_t freezeDisplay(DisplayID dpy, uint32_t flags) = 0;
101 virtual status_t unfreezeDisplay(DisplayID dpy, uint32_t flags) = 0;
104 virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags) = 0;
DEGLUtils.h37 EGLDisplay dpy,
43 EGLDisplay dpy,
/frameworks/base/libs/surfaceflinger/DisplayHardware/
DDisplayHardware.cpp75 uint32_t dpy) in DisplayHardware() argument
76 : DisplayHardwareBase(flinger, dpy) in DisplayHardware()
78 init(dpy); in DisplayHardware()
94 void DisplayHardware::init(uint32_t dpy) in init() argument
319 EGLDisplay dpy = mDisplay; in flip() local
326 eglSetSwapRectangleANDROID(dpy, surface, in flip()
336 eglSwapBuffers(dpy, surface); in flip()
/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLDisplayImpl.java25 public EGLDisplayImpl(int dpy) { in EGLDisplayImpl() argument
26 mEGLDisplay = dpy; in EGLDisplayImpl()

12