Home
last modified time | relevance | path

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

12345678910>>...30

/frameworks/base/tests/RemoteDisplayProvider/src/com/android/media/remotedisplay/test/
DRemoteDisplayProviderService.java166 public void onConnect(final RemoteDisplay display) { in onConnect() argument
167 Log.d(TAG, "onConnect: display.getId()=" + display.getId()); in onConnect()
169 if (display == mTestDisplay1 || display == mTestDisplay2) { in onConnect()
170 display.setStatus(RemoteDisplay.STATUS_CONNECTING); in onConnect()
171 updateDisplay(display); in onConnect()
175 if ((display == mTestDisplay1 || display == mTestDisplay2) in onConnect()
176 && display.getStatus() == RemoteDisplay.STATUS_CONNECTING) { in onConnect()
177 display.setStatus(RemoteDisplay.STATUS_CONNECTED); in onConnect()
178 updateDisplay(display); in onConnect()
182 } else if (display == mTestDisplay6 || display == mTestDisplay7) { in onConnect()
[all …]
/frameworks/base/media/lib/remotedisplay/java/com/android/media/remotedisplay/
DRemoteDisplayProvider.java186 public void onConnect(RemoteDisplay display) { in onConnect() argument
194 public void onDisconnect(RemoteDisplay display) { in onDisconnect() argument
203 public void onSetVolume(RemoteDisplay display, int volume) { in onSetVolume() argument
212 public void onAdjustVolume(RemoteDisplay display, int delta) { in onAdjustVolume() argument
239 public void addDisplay(RemoteDisplay display) { in addDisplay() argument
240 if (display == null || mDisplays.containsKey(display.getId())) { in addDisplay()
243 mDisplays.put(display.getId(), display); in addDisplay() local
253 public void updateDisplay(RemoteDisplay display) { in updateDisplay() argument
254 if (display == null || mDisplays.get(display.getId()) != display) { in updateDisplay()
265 public void removeDisplay(RemoteDisplay display) { in removeDisplay() argument
[all …]
/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 …]
/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 …]
/frameworks/base/core/jni/
Dcom_google_android_gles_jni_EGLImpl.cpp119 static jboolean jni_eglInitialize(JNIEnv *_env, jobject _this, jobject display, in jni_eglInitialize() argument
121 if (display == NULL || (major_minor != NULL && in jni_eglInitialize()
127 EGLDisplay dpy = getDisplay(_env, display); in jni_eglInitialize()
142 static jboolean jni_eglQueryContext(JNIEnv *_env, jobject _this, jobject display, in jni_eglQueryContext() argument
144 if (display == NULL || context == NULL || value == NULL in jni_eglQueryContext()
149 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQueryContext()
161 static jboolean jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, in jni_eglQuerySurface() argument
163 if (display == NULL || surface == NULL || value == NULL in jni_eglQuerySurface()
168 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQuerySurface()
181 static jint jni_getInitCount(JNIEnv *_env, jobject _clazz, jobject display) { in jni_getInitCount() argument
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AssetAtlasService.cpp54 if (fence != EGL_NO_SYNC_KHR) eglDestroySyncKHR(display, fence); \
55 if (image) eglDestroyImageKHR(display, image); \
57 if (surface != EGL_NO_SURFACE) eglDestroySurface(display, surface); \
58 if (context != EGL_NO_CONTEXT) eglDestroyContext(display, context); \
59 eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); \
61 eglTerminate(display); \
76 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in com_android_server_AssetAtlasService_upload() local
77 if (display == EGL_NO_DISPLAY) return JNI_FALSE; in com_android_server_AssetAtlasService_upload()
81 if (!eglInitialize(display, &major, &minor)) { in com_android_server_AssetAtlasService_upload()
100 if (!eglChooseConfig(display, configAttrs, configs, 1, &configCount)) { in com_android_server_AssetAtlasService_upload()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java17 package android.hardware.display;
25 import android.hardware.display.DisplayManager;
26 import android.hardware.display.VirtualDisplay;
117 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() local
119 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay()
123 display, BLUEISH, in testPrivateVirtualDisplay()
128 assertDisplayUnregistered(display); in testPrivateVirtualDisplay()
141 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() local
143 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay()
147 display, BLUEISH, in testPrivatePresentationVirtualDisplay()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DPersistentDataStore.java17 package com.android.server.display;
26 import android.hardware.display.WifiDisplay;
99 public WifiDisplay applyWifiDisplayAlias(WifiDisplay display) { in applyWifiDisplayAlias() argument
100 if (display != null) { in applyWifiDisplayAlias()
104 int index = findRememberedWifiDisplay(display.getDeviceAddress()); in applyWifiDisplayAlias()
108 if (!Objects.equal(display.getDeviceAlias(), alias)) { in applyWifiDisplayAlias()
109 return new WifiDisplay(display.getDeviceAddress(), display.getDeviceName(), in applyWifiDisplayAlias()
110 alias, display.isAvailable(), display.canConnect(), display.isRemembered()); in applyWifiDisplayAlias()
113 return display; in applyWifiDisplayAlias()
134 public boolean rememberWifiDisplay(WifiDisplay display) { in rememberWifiDisplay() argument
[all …]
DWifiDisplayAdapter.java17 package com.android.server.display;
26 import android.hardware.display.DisplayManager;
27 import android.hardware.display.WifiDisplay;
28 import android.hardware.display.WifiDisplaySessionInfo;
29 import android.hardware.display.WifiDisplayStatus;
250 WifiDisplay display = mPersistentDataStore.getRememberedWifiDisplay(address); in requestRenameLocked() local
251 if (display != null && !Objects.equal(display.getDeviceAlias(), alias)) { in requestRenameLocked()
252 display = new WifiDisplay(address, display.getDeviceName(), alias, in requestRenameLocked()
254 if (mPersistentDataStore.rememberWifiDisplay(display)) { in requestRenameLocked()
352 for (WifiDisplay display : mAvailableDisplays) { in findAvailableDisplayLocked()
[all …]
DDisplayManagerService.java17 package com.android.server.display;
25 import android.hardware.display.DisplayManager;
26 import android.hardware.display.DisplayManagerGlobal;
27 import android.hardware.display.DisplayManagerInternal;
28 import android.hardware.display.DisplayViewport;
29 import android.hardware.display.DisplayManagerInternal.DisplayTransactionListener;
30 import android.hardware.display.IDisplayManager;
31 import android.hardware.display.IDisplayManagerCallback;
32 import android.hardware.display.IVirtualDisplayCallback;
33 import android.hardware.display.WifiDisplayStatus;
[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/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/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;
304 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/); in addAllDisplaysLocked() local
305 if (display != null) { in addAllDisplaysLocked()
306 displays.add(display); in addAllDisplaysLocked()
314 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/); in addPresentationDisplaysLocked() local
315 if (display != null in addPresentationDisplaysLocked()
316 && (display.getFlags() & Display.FLAG_PRESENTATION) != 0 in addPresentationDisplaysLocked()
317 && display.getType() == matchType) { in addPresentationDisplaysLocked()
318 displays.add(display); in addPresentationDisplaysLocked()
324 Display display = mDisplays.get(displayId); in getOrCreateDisplayLocked() local
[all …]
/frameworks/native/libs/gui/
DISurfaceComposer.cpp102 virtual status_t captureScreen(const sp<IBinder>& display, in captureScreen() argument
111 data.writeStrongBinder(display); in captureScreen()
190 virtual void destroyDisplay(const sp<IBinder>& display) in destroyDisplay() argument
194 data.writeStrongBinder(display); in destroyDisplay()
207 virtual void setPowerMode(const sp<IBinder>& display, int mode) in setPowerMode() argument
211 data.writeStrongBinder(display); in setPowerMode()
216 virtual status_t getDisplayConfigs(const sp<IBinder>& display, in getDisplayConfigs() argument
221 data.writeStrongBinder(display); in getDisplayConfigs()
237 virtual status_t getDisplayStats(const sp<IBinder>& display, in getDisplayStats() argument
242 data.writeStrongBinder(display); in getDisplayStats()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DRenderEngine.cpp49 RenderEngine* RenderEngine::create(EGLDisplay display, int hwcFormat) { in create() argument
60 eglQueryStringImplementationANDROID(display, EGL_EXTENSIONS), in create()
62 config = chooseEglConfig(display, hwcFormat); in create()
68 } else if (!eglGetConfigAttrib(display, config, in create()
92 EGLContext ctxt = eglCreateContext(display, config, NULL, contextAttributes); in create()
103 dummyConfig = chooseEglConfig(display, hwcFormat); in create()
106 EGLSurface dummy = eglCreatePbufferSurface(display, dummyConfig, attribs); in create()
108 EGLBoolean success = eglMakeCurrent(display, dummy, dummy, ctxt); in create()
145 eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in create()
146 eglDestroySurface(display, dummy); in create()
[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()
290 Context outerContext, Display display, int theme) { in createPresentationContext() argument
294 if (display == null) { in createPresentationContext()
298 Context displayContext = outerContext.createDisplayContext(display); in createPresentationContext()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp40 auto display = device->getDisplayById(displayId); in hotplug_hook() local
41 if (display) { in hotplug_hook()
43 device->callHotplug(std::move(display), connected); in hotplug_hook()
53 auto display = device->getDisplayById(displayId); in refresh_hook() local
54 if (display) { in refresh_hook()
55 device->callRefresh(std::move(display)); in refresh_hook()
65 auto display = device->getDisplayById(displayId); in vsync_hook() local
66 if (display) { in vsync_hook()
67 device->callVsync(std::move(display), timestamp); in vsync_hook()
152 auto display = element.second; in ~Device() local
[all …]
DHWC2On1Adapter.h89 HWC2::Error destroyVirtualDisplay(hwc2_display_t display);
91 hwc2_display_t display) { in destroyVirtualDisplayHook() argument
92 auto error = getAdapter(device)->destroyVirtualDisplay(display); in destroyVirtualDisplayHook()
248 Config(Display& display) in Config() argument
249 : mDisplay(display), in Config()
252 bool isOnDisplay(const Display& display) const { in isOnDisplay() argument
253 return display.getId() == mDisplay.getId(); in isOnDisplay()
401 auto display = getAdapter(device)->getDisplay(displayId); in callDisplayFunction() local
402 if (!display) { in callDisplayFunction()
405 auto error = ((*display).*member)(std::forward<Args>(args)...); in callDisplayFunction()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp50 eglDestroySurface(display(), it->second.first); in ~GLEnv()
63 eglDestroyContext(display(), it->second); in ~GLEnv()
72 eglTerminate(display()); in ~GLEnv()
86 eglMakeCurrent(display(), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in Deactivate()
92 if (display() != eglGetCurrentDisplay() || in Activate()
101 eglMakeCurrent(display(), surface(), surface(), context()); in Activate()
109 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE; in SwapBuffers()
122 (display() != EGL_NO_DISPLAY) && in InitWithCurrentContext()
137 eglInitialize(display(), &majorVersion, &minorVersion); in InitWithNewContext()
158 eglChooseConfig(display(), configAttribs, &config, 1, &numConfigs); in InitWithNewContext()
[all …]
/frameworks/native/include/gui/
DSurfaceComposerClient.h71 static status_t getDisplayConfigs(const sp<IBinder>& display,
75 static status_t getDisplayInfo(const sp<IBinder>& display,
80 static int getActiveConfig(const sp<IBinder>& display);
84 static status_t setActiveConfig(const sp<IBinder>& display, int id);
87 static void setDisplayPowerMode(const sp<IBinder>& display, int mode);
105 static void destroyDisplay(const sp<IBinder>& display);
153 static status_t getHdrCapabilities(const sp<IBinder>& display,
195 const sp<IBinder>& display,
214 status_t update(const sp<IBinder>& display,
216 status_t update(const sp<IBinder>& display,
[all …]
DISurfaceComposer.h94 virtual void destroyDisplay(const sp<IBinder>& display) = 0;
119 virtual void setPowerMode(const sp<IBinder>& display, int mode) = 0;
123 virtual status_t getDisplayConfigs(const sp<IBinder>& display,
129 virtual status_t getDisplayStats(const sp<IBinder>& display,
134 virtual int getActiveConfig(const sp<IBinder>& display) = 0;
138 virtual status_t setActiveConfig(const sp<IBinder>& display, int id) = 0;
143 virtual status_t captureScreen(const sp<IBinder>& display,
166 virtual status_t getHdrCapabilities(const sp<IBinder>& display,
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java319 private static EGLConfig chooseEglConfig(EGL10 egl, EGLDisplay display) { in chooseEglConfig() argument
320 if (mEglConfig == null || !display.equals(mConfiguredDisplay)) { in chooseEglConfig()
324 if (!egl.eglChooseConfig(display, configSpec, configs, 1, configsCount)) { in chooseEglConfig()
329 mConfiguredDisplay = display; in chooseEglConfig()
348 private RenderTarget(EGLDisplay display, EGLContext context, EGLSurface surface, int fbo, in RenderTarget() argument
351 mDisplay = display; in RenderTarget()
368 private static void initEgl(EGL10 egl, EGLDisplay display) { in initEgl() argument
370 if (!egl.eglInitialize(display, version)) { in initEgl()
377 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in createDefaultDisplay() local
378 checkDisplay(egl, display); in createDefaultDisplay()
[all …]

12345678910>>...30