/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 17 package com.android.server.display; 43 * A display adapter that uses overlay windows to simulate secondary displays 48 * get confused. The main handler is used to posting messages to the display manager 65 * <li><pre>secure</pre>: creates a secure display</li> 149 Slog.i(TAG, "Dismissing all overlay display devices."); 161 Slog.w(TAG, "Too many overlay display devices specified: " + value); 181 Slog.w(TAG, "Ignoring out-of-range overlay display mode: " + mode); 197 Slog.i(TAG, "Showing overlay display device #" + number 204 Slog.w(TAG, "Malformed overlay display devices setting: " + value); 300 1000000000L / (int) mRefreshRate; // display' [all...] |
H A D | DisplayManagerService.java | 17 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 950 setViewportLocked(DisplayViewport viewport, LogicalDisplay display, DisplayDevice device) argument [all...] |
H A D | AutomaticBrightnessController.java | 17 package com.android.server.display; 66 // Debounce for sampling user-initiated changes in display brightness to ensure 73 // Callbacks for requesting updates to the the display's power state 629 /** Callbacks to request updates to the display's power state. */
|
H A D | DisplayPowerController.java | 17 package com.android.server.display; 31 import android.hardware.display.DisplayManagerInternal.DisplayPowerCallbacks; 32 import android.hardware.display.DisplayManagerInternal.DisplayPowerRequest; 50 * Controls the power state of the display. 64 * blocker as long as the display is not ready. So most of the work done here 66 * independently of the display ready signal. 132 // The display blanker. 258 * Creates the display power controller. 397 * @return True if display is ready, false if there are important changes that must 455 // Initialize the power state object for the default display [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayContent.java | 83 /** Array containing all TaskStacks on this display. Array 84 * is stored in display order with the current bottom stack at 0. */ 110 /** Remove this display when animation on it has completed. */ 120 * @param display May not be null. 123 DisplayContent(Display display, WindowManagerService service) { argument 124 mDisplay = display; 125 mDisplayId = display.getDisplayId(); 126 display.getDisplayInfo(mDisplayInfo); 127 display.getMetrics(mDisplayMetrics); 160 * Returns true if the specified UID has access to this display [all...] |
H A D | DragState.java | 134 * @param display The Display that the window being dragged is on. 136 void register(Display display) { argument 141 mDisplayContent = mService.getDisplayContentLocked(display.getDisplayId()); 156 display.getDisplayId()); 177 // The drag window covers the entire display 181 display.getRealSize(p);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RenderTarget.java | 43 // Pre-HC devices do not necessarily support multiple display surfaces. 61 /** The display for which the EGLConfig was chosen. We expect only one. */ 196 throw new RuntimeException("This device supports only a single display surface!"); 319 private static EGLConfig chooseEglConfig(EGL10 egl, EGLDisplay display) { argument 320 if (mEglConfig == null || !display.equals(mConfiguredDisplay)) { 324 if (!egl.eglChooseConfig(display, configSpec, configs, 1, configsCount)) { 329 mConfiguredDisplay = display; 348 private RenderTarget(EGLDisplay display, EGLContext context, EGLSurface surface, int fbo, argument 351 mDisplay = display; 368 private static void initEgl(EGL10 egl, EGLDisplay display) { argument 383 createContext(EGL10 egl, EGLDisplay display, EGLConfig config) argument 390 createSurface(EGL10 egl, EGLDisplay display, int width, int height) argument 402 checkDisplay(EGL10 egl, EGLDisplay display) argument [all...] |
H A D | CameraStreamer.java | 584 "display!"); 800 /** The display the camera streamer is bound to. */ 1011 public synchronized void bindToDisplay(Display display) { argument 1012 mDisplay = display; 1236 throw new IllegalArgumentException("Unsupported display rotation constant! Use " 1261 mOrientation = -1; // Forces recalculation to match display 1551 * Manually update the display rotation. 1552 * You do not need to call this, if the camera is bound to a display, or your app does not 1560 * Bind the camera to your Activity's display. 1561 * Use this, if your Activity supports multiple display orientatio 1564 bindToDisplay(Display display) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 67 * Initialize the display to the specified values. 111 * Create our display's surface 115 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); local 118 config = RenderEngine::chooseEglConfig(display, PIXEL_FORMAT_RGBA_8888); 120 config = RenderEngine::chooseEglConfig(display, format); 123 eglSurface = eglCreateWindowSurface(display, config, window, NULL); 124 eglQuerySurface(display, eglSurface, EGL_WIDTH, &mDisplayWidth); 125 eglQuerySurface(display, eglSurface, EGL_HEIGHT, &mDisplayHeight); 127 // Make sure that composition can never be stalled by a virtual display 130 // * Here, in case the display i [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 177 void HWComposer::hotplug(const std::shared_ptr<HWC2::Display>& display, argument 179 ALOGV("hotplug: %" PRIu64 ", %s", display->getId(), 184 " display would be connected"); 185 mDisplayData[0].hwcDisplay = display; 186 mHwcDisplaySlots[display->getId()] = 0; 192 mDisplayData[1].hwcDisplay = display; 193 mHwcDisplaySlots[display->getId()] = 1; 201 void HWComposer::invalidate(const std::shared_ptr<HWC2::Display>& /*display*/) { 205 void HWComposer::vsync(const std::shared_ptr<HWC2::Display>& display, argument 208 auto error = display 258 std::shared_ptr<HWC2::Display> display; local 292 auto display = mDisplayData[displayId].hwcDisplay; local [all...] |
H A D | HWC2.cpp | 40 auto display = device->getDisplayById(displayId); local 41 if (display) { 43 device->callHotplug(std::move(display), connected); 45 ALOGE("Hotplug callback called with unknown display %" PRIu64, 53 auto display = device->getDisplayById(displayId); local 54 if (display) { 55 device->callRefresh(std::move(display)); 57 ALOGE("Refresh callback called with unknown display %" PRIu64, 65 auto display = device->getDisplayById(displayId); local 66 if (display) { 152 auto display = element.second; local 220 auto& display = pending.first; local 240 auto& display = pending.first; local 248 callHotplug(std::shared_ptr<Display> display, Connection connected) argument 268 callRefresh(std::shared_ptr<Display> display) argument 278 callVsync(std::shared_ptr<Display> display, nsecs_t timestamp) argument 295 auto display = std::make_shared<Display>(*this, id); local 426 destroyVirtualDisplay(hwc2_display_t display) argument 454 Config(Display& display, hwc2_config_t id) argument 463 Builder(Display& display, hwc2_config_t id) argument 933 Layer(const std::shared_ptr<Display>& display, hwc2_layer_t id) argument 945 auto display = mDisplay.lock(); local [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 49 RenderEngine* RenderEngine::create(EGLDisplay display, int hwcFormat) { argument 53 // both a 16-bit primary display framebuffer and a 32-bit virtual display 60 eglQueryStringImplementationANDROID(display, EGL_EXTENSIONS), 62 config = chooseEglConfig(display, hwcFormat); 68 } else if (!eglGetConfigAttrib(display, config, 92 EGLContext ctxt = eglCreateContext(display, config, NULL, contextAttributes); 103 dummyConfig = chooseEglConfig(display, hwcFormat); 106 EGLSurface dummy = eglCreatePbufferSurface(display, dummyConfig, attribs); 108 EGLBoolean success = eglMakeCurrent(display, dumm 366 selectEGLConfig(EGLDisplay display, EGLint format, EGLint renderableType, EGLConfig* config) argument 402 chooseEglConfig(EGLDisplay display, int format) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 261 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); local 263 eglInitialize(display, 0, 0); 264 eglChooseConfig(display, attribs, &config, 1, &numConfigs); 265 surface = eglCreateWindowSurface(display, config, s.get(), NULL); 266 context = eglCreateContext(display, config, NULL, NULL); 267 eglQuerySurface(display, surface, EGL_WIDTH, &w); 268 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 270 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) 273 mDisplay = display;
|
/frameworks/base/opengl/java/javax/microedition/khronos/egl/ |
H A D | EGL10.java | 97 boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, EGLConfig[] configs, int config_size, int[] num_config); argument 98 boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument 99 EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list); argument 100 EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list); argument 101 EGLSurface eglCreatePixmapSurface(EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list); argument 102 EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list); argument 103 boolean eglDestroyContext(EGLDisplay display, EGLContext context); argument 104 boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument 105 boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value); argument 106 boolean eglGetConfigs(EGLDisplay display, EGLConfi argument 112 eglInitialize(EGLDisplay display, int[] major_minor) argument 113 eglMakeCurrent(EGLDisplay display, EGLSurface draw, EGLSurface read, EGLContext context) argument 114 eglQueryContext(EGLDisplay display, EGLContext context, int attribute, int[] value) argument 115 eglQueryString(EGLDisplay display, int name) argument 116 eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value) argument 119 eglSwapBuffers(EGLDisplay display, EGLSurface surface) argument 120 eglTerminate(EGLDisplay display) argument [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContext.java | 690 public Context createDisplayContext(Display display) { argument
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 388 EGLDisplay display, EGLSyncKHR eglFence) { 394 buf, graphicBuffer, display, eglFence); 429 GLC_LOGW("updateAndRelease: unable to createImage on display=%p slot=%d", 476 pendingRelease->display = mEglDisplay; 499 ALOGE("bindTextureImage: invalid display"); 518 GLC_LOGW("bindTextureImage: can't create image on display=%p slot=%d", 524 // In the rare case that the display is terminated and then initialized 525 // again, we can't detect that the display changed (it didn't), but the 534 GLC_LOGW("bindTextureImage: can't create image on display=%p slot=%d", 386 releaseBufferLocked(int buf, sp<GraphicBuffer> graphicBuffer, EGLDisplay display, EGLSyncKHR eglFence) argument
|
H A D | SurfaceComposerClient.cpp | 138 void destroyDisplay(const sp<IBinder>& display); 202 void Composer::destroyDisplay(const sp<IBinder>& display) { argument 203 return ComposerService::getComposerService()->destroyDisplay(display); 585 void SurfaceComposerClient::destroyDisplay(const sp<IBinder>& display) { argument 586 Composer::getInstance().destroyDisplay(display); 735 const sp<IBinder>& display, Vector<DisplayInfo>* configs) 737 return ComposerService::getComposerService()->getDisplayConfigs(display, configs); 740 status_t SurfaceComposerClient::getDisplayInfo(const sp<IBinder>& display, argument 743 status_t result = getDisplayConfigs(display, &configs); 748 int activeId = getActiveConfig(display); 734 getDisplayConfigs( const sp<IBinder>& display, Vector<DisplayInfo>* configs) argument 758 getActiveConfig(const sp<IBinder>& display) argument 762 setActiveConfig(const sp<IBinder>& display, int id) argument 779 getHdrCapabilities(const sp<IBinder>& display, HdrCapabilities* outCapabilities) argument 787 capture( const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ, bool useIdentityTransform) argument 817 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ, bool useIdentityTransform, uint32_t rotation) argument 844 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ, bool useIdentityTransform) argument 853 update(const sp<IBinder>& display, Rect sourceCrop, bool useIdentityTransform) argument 859 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, bool useIdentityTransform) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContextWrapper.java | 807 public Context createDisplayContext(Display display) { argument 808 return mBase.createDisplayContext(display);
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 106 * Return how wide a layout must be in order to display the 115 * Return how wide a layout must be in order to display the 143 * Subclasses of Layout use this constructor to set the display text, 163 * Subclasses of Layout use this constructor to set the display text, 2000 public SpannedEllipsizer(CharSequence display) { argument 2001 super(display); 2002 mSpanned = (Spanned) display;
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 161 * external display sink. If a hardware-protected path is not available, 212 /* built-in physical display ids (keep in sync with ISurfaceComposer.h) 213 * these are different from the logical display ids used elsewhere in the framework */ 216 * Built-in physical display id: Main display. 222 * Built-in physical display id: Attached HDMI display. 525 * set display parameters. 530 * Describes the properties of a physical display known to surface flinger. 703 * @param display Th 717 screenshot(IBinder display, Surface consumer, int width, int height, int minLayer, int maxLayer, boolean useIdentityTransform) argument 734 screenshot(IBinder display, Surface consumer, int width, int height) argument 745 screenshot(IBinder display, Surface consumer) argument 809 screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 161 * <p>The default density is the same density as the current display, 420 * well as the ability to display transparent/translucent colors. 830 * @param display Display metrics for the display this bitmap will be 837 public static Bitmap createBitmap(DisplayMetrics display, int width, argument 839 return createBitmap(display, width, height, config, true); 863 * @param display Display metrics for the display this bitmap will be 874 private static Bitmap createBitmap(DisplayMetrics display, int width, int height, argument 880 if (display ! 936 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument 996 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 50 * <li>Manages an EGL display, which enables OpenGL to render into a surface. 126 * the OpenGL display. 569 * recreate the OpenGL display and resume the rendering 768 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); argument 769 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); argument 775 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { argument 779 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, 783 public void destroyContext(EGL10 egl, EGLDisplay display, argument 785 if (!egl.eglDestroyContext(display, context)) { 786 Log.e("DefaultContextFactory", "display 805 createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, Object nativeWindow) argument 807 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument 812 createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, Object nativeWindow) argument 829 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument 852 chooseConfig(EGL10 egl, EGLDisplay display) argument 861 chooseConfig(EGL10 egl, EGLDisplay display) argument 887 chooseConfig(EGL10 egl, EGLDisplay display, EGLConfig[] configs) argument 938 chooseConfig(EGL10 egl, EGLDisplay display, EGLConfig[] configs) argument 963 findConfigAttrib(EGL10 egl, EGLDisplay display, EGLConfig config, int attribute, int defaultValue) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 67 import android.hardware.display.DisplayManager; 1242 public Context createDisplayContext(Display display) { argument
|
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 1404 EGLDisplay eglGetDisplay(NativeDisplayType display) argument 1415 if (display == EGL_DEFAULT_DISPLAY) { 1418 d.type = display; 1855 // eglGetCurrentDisplay returns the current EGL display connection
|
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 256 EGLDisplay eglGetDisplay(EGLNativeDisplayType display) argument 260 uintptr_t index = reinterpret_cast<uintptr_t>(display); 269 EGLDisplay dpy = egl_display_t::getFromNativeDisplay(display); 721 // a valid but uninitialized display.
|