/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...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | display_surface.h | 32 const display::SurfaceAttributes& attributes); 45 const display::SurfaceAttributes& attributes() const { return attributes_; } 46 display::SurfaceUpdateFlags update_flags() const { return update_flags_; } 51 return update_flags_.value() != display::SurfaceUpdateFlags::None; 82 void SurfaceUpdated(display::SurfaceUpdateFlags update_flags); 93 // Dispatches display surface messages to the appropriate handlers. This 98 pdx::Message& message, const display::SurfaceAttributes& attributes); 99 pdx::Status<display::SurfaceInfo> OnGetSurfaceInfo(pdx::Message& message); 107 display::SurfaceAttributes attributes_; 108 display [all...] |
H A D | display_surface.cpp | 13 using android::dvr::display::DisplayProtocol; 35 update_flags_(display::SurfaceUpdateFlags::NewSurface) {} 65 pdx::Message& /*message*/, const display::SurfaceAttributes& attributes) { 66 display::SurfaceUpdateFlags update_flags; 74 // Catch attributes that have significance to the display service. 76 case display::SurfaceAttribute::ZOrder: 85 case display::SurfaceAttribute::Visible: 101 "DisplaySurface::OnClientSetAttributes: Failed to set display " 117 update_flags.Set(display::SurfaceUpdateFlags::AttributesChanged); 119 update_flags.Set(display [all...] |
H A D | hardware_composer.cpp | 55 // How long to wait after boot finishes before we turn the display off. 225 " display"); 274 HWC::Error HardwareComposer::Validate(hwc2_display_t display) { argument 278 composer_->validateDisplay(display, &num_types, &num_requests); 284 error = composer_->acceptDisplayChanges(display); 290 bool HardwareComposer::EnableVsync(const DisplayParams& display, bool enabled) { argument 291 HWC::Error error = composer_->setVsyncEnabled(display.id, 295 ALOGE("Error attempting to %s vsync on %s display: %s", 296 enabled ? "enable" : "disable", GetDisplayName(display.is_primary), 302 bool HardwareComposer::SetPowerMode(const DisplayParams& display, boo argument 316 EnableDisplay(const DisplayParams& display, bool enabled) argument 332 Present(hwc2_display_t display) argument 348 GetDisplayParams( Hwc2::Composer* composer, hwc2_display_t display, bool is_primary) argument 469 PostLayers(hwc2_display_t display) argument 1070 onHotplug( Hwc2::Display display, IComposerCallback::Connection conn) argument 1124 onVsync(Hwc2::Display display, int64_t timestamp) argument 1150 GetVsyncTime( hwc2_display_t display) argument 1213 GetDisplayInfo(hwc2_display_t display) argument [all...] |
H A D | display_service.h | 25 // DisplayService implements the display service component of VrFlinger. 86 pdx::Status<display::Metrics> OnGetMetrics(pdx::Message& message); 88 pdx::Message& message, display::ConfigFileType config_type); 89 pdx::Status<display::SurfaceInfo> OnCreateSurface( 90 pdx::Message& message, const display::SurfaceAttributes& attributes); 109 display::SurfaceUpdateFlags update_flags); 112 // the display manager should be notified.
|
/frameworks/rs/driver/ |
H A D | rsdGL.cpp | 133 dc->gl.egl.display); 157 RSD_CALL_GL(eglMakeCurrent, dc->gl.egl.display, 159 RSD_CALL_GL(eglDestroySurface, dc->gl.egl.display, dc->gl.egl.surfaceDefault); 161 RSD_CALL_GL(eglDestroySurface, dc->gl.egl.display, dc->gl.egl.surface); 163 RSD_CALL_GL(eglDestroyContext, dc->gl.egl.display, dc->gl.egl.context); 169 RSD_CALL_GL(eglTerminate, dc->gl.egl.display); 234 dc->gl.egl.display = eglGetDisplay(EGL_DEFAULT_DISPLAY); 237 RSD_CALL_GL(eglInitialize, dc->gl.egl.display, 251 ret = eglChooseConfig(dc->gl.egl.display, configAttribs, 0, 0, &numConfigs); 262 ret = eglChooseConfig(dc->gl.egl.display, [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | BigCache.java | 45 final Display display = getWindowManager().getDefaultDisplay(); 46 final int screenWidth = display.getWidth(); 47 final int screenHeight = display.getHeight();
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.cpp | 42 DisplayInfo display; local 44 status_t status = SurfaceComposerClient::getDisplayInfo(dtoken, &display); 45 LOG_ALWAYS_FATAL_IF(status, "Failed to get display info\n"); 46 return display;
|
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 25 * Listens for Wifi remote display connections managed by the media server. 83 RemoteDisplay display = new RemoteDisplay(listener, handler, opPackageName); 84 display.startListening(iface); 85 return display; 89 * Disconnects the remote display and stops listening for new connections. 122 + "remote display connection on \"" + iface + "\""); 159 * Listener invoked when the remote display connection changes state.
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | TestableSurfaceFlinger.h | 67 auto destroyDisplay(const sp<IBinder>& display) { return mFlinger->destroyDisplay(display); } argument 71 auto setupNewDisplayDeviceInternal(const wp<IBinder>& display, int hwcId, argument 75 return mFlinger->setupNewDisplayDeviceInternal(display, hwcId, state, dispSurface, 83 auto onHotplugReceived(int32_t sequenceId, hwc2_display_t display, argument 85 return mFlinger->onHotplugReceived(sequenceId, display, connection); 220 auto display = std::make_unique<HWC2Display>(*composer, mCapabilities, mHwcDisplayId, local 223 auto config = HWC2::Display::Config::Builder(*display, mActiveConfig); 229 display->mutableConfigs().emplace(mActiveConfig, config.build()); 230 display [all...] |
/frameworks/native/include/gui/ |
H A D | SurfaceComposerClient.h | 74 // Get a list of supported configurations for a given display 75 static status_t getDisplayConfigs(const sp<IBinder>& display, 79 static status_t getDisplayInfo(const sp<IBinder>& display, 84 static int getActiveConfig(const sp<IBinder>& display); 88 static status_t setActiveConfig(const sp<IBinder>& display, int id); 90 // Gets the list of supported color modes for the given display 91 static status_t getDisplayColorModes(const sp<IBinder>& display, 94 // Gets the active color mode for the given display 95 static ui::ColorMode getActiveColorMode(const sp<IBinder>& display); 97 // Sets the active color mode for the given display [all...] |
/frameworks/native/libs/gui/include/gui/ |
H A D | SurfaceComposerClient.h | 74 // Get a list of supported configurations for a given display 75 static status_t getDisplayConfigs(const sp<IBinder>& display, 79 static status_t getDisplayInfo(const sp<IBinder>& display, 84 static int getActiveConfig(const sp<IBinder>& display); 88 static status_t setActiveConfig(const sp<IBinder>& display, int id); 90 // Gets the list of supported color modes for the given display 91 static status_t getDisplayColorModes(const sp<IBinder>& display, 94 // Gets the active color mode for the given display 95 static ui::ColorMode getActiveColorMode(const sp<IBinder>& display); 97 // Sets the active color mode for the given display [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStackSupervisor.java | 137 import android.hardware.display.DisplayManager; 138 import android.hardware.display.DisplayManager.DisplayListener; 139 import android.hardware.display.DisplayManagerInternal; 423 /** Mapping from displayId to display current state */ 441 // It will be calculated when the default display gets added. 470 throw new IllegalArgumentException("No display found with id: " + displayId); 479 throw new IllegalArgumentException("No display found with id: " + displayId); 485 /** Check if placing task or activity on specified display is allowed. */ 489 // No restrictions for the default display. 501 // Can't place activities to a display tha 4320 attachDisplay(ActivityDisplay display) argument 4324 calculateDefaultMinimalSizeOfResizeableTasks(ActivityDisplay display) argument 4397 releaseSleepTokens(ActivityDisplay display) argument [all...] |
H A D | RunningTasks.java | 60 final ActivityDisplay display = activityDisplays.valueAt(displayNdx); 61 for (int stackNdx = display.getChildCount() - 1; stackNdx >= 0; --stackNdx) { 62 final ActivityStack stack = display.getChildAt(stackNdx);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | BrightnessIdleJob.java | 17 package com.android.server.display; 26 import android.hardware.display.DisplayManagerInternal;
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
H A D | DemoPresentation.java | 33 * The presentation to show on the accessory display. 35 * Note that this display may have different metrics from the display on which 47 public DemoPresentation(Context context, Display display, Logger logger) { argument 48 super(context, display);
|
/frameworks/native/libs/vr/libdisplay/ |
H A D | display_manager_client.cpp | 15 namespace display { namespace in namespace:android::dvr 23 pdx::Status<std::vector<display::SurfaceState>> 50 } // namespace display
|
/frameworks/base/core/jni/ |
H A D | android_media_RemoteDisplay.cpp | 112 NativeRemoteDisplay(const sp<IRemoteDisplay>& display, argument 114 mDisplay(display), mClient(client) { 151 sp<IRemoteDisplay> display = service->listenForRemoteDisplay(String16(opPackageName.c_str()), local 153 if (display == NULL) { 154 ALOGE("Media player service rejected request to listen for remote display '%s'.", 159 NativeRemoteDisplay* wrapper = new NativeRemoteDisplay(display, client);
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | WmDisplayCutout.java | 28 * Wrapper for DisplayCutout that also tracks the display size and using this allows (re)calculating 92 * Calculates the safe insets relative to the given display size. 117 throw new UnsupportedOperationException("not implemented: display=" + displaySize + 122 private static int findInsetForSide(Size display, List<Rect> boundingRects, int gravity) { argument 134 if (boundingRect.bottom == display.getHeight()) { 135 inset = Math.max(inset, display.getHeight() - boundingRect.top); 144 if (boundingRect.right == display.getWidth()) { 145 inset = Math.max(inset, display.getWidth() - boundingRect.left);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | RunningTasksTest.java | 71 final ActivityDisplay display = new TestActivityDisplay(supervisor, DEFAULT_DISPLAY); 72 displays.put(DEFAULT_DISPLAY, display); 76 final ActivityStack stack = new TestActivityStack(display, stackIndex, supervisor, 78 display.addChild(stack, POSITION_BOTTOM); 84 createTask(display.getChildAt(i % numStacks), ".Task" + i, i, activeTime++);
|
H A D | ActivityStackSupervisorTests.java | 122 final ActivityDisplay display = mFullscreenStack.getDisplay(); 123 ActivityStack pinnedStack = display.getPinnedStack(); 133 pinnedStack = display.getPinnedStack(); 134 mFullscreenStack = display.getStack(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD); 199 final ActivityDisplay display = mSupervisor.getDefaultDisplay(); 202 display.addChild(stack, 0 /* position */); 204 // Make sure we wake and resume in the case the display is turning on and the keyguard is 206 verifySleepTokenBehavior(display, keyguard, stack, true /*displaySleeping*/, 211 // Make sure we wake and don't resume when the display is turning on and the keyguard is 213 verifySleepTokenBehavior(display, keyguar 232 verifySleepTokenBehavior(ActivityDisplay display, KeyguardController keyguard, ActivityStack stack, boolean displaySleeping, boolean displayShouldSleep, boolean isFocusedStack, boolean keyguardShowing, boolean expectWakeFromSleep, boolean expectResumeTopActivity) argument [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 48 * <li>Manages an EGL display, which enables OpenGL to render into a surface. 124 * the OpenGL display. 785 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); argument 786 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); argument 792 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { argument 796 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, 800 public void destroyContext(EGL10 egl, EGLDisplay display, argument 802 if (!egl.eglDestroyContext(display, context)) { 803 Log.e("DefaultContextFactory", "display:" + display 822 createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, Object nativeWindow) argument 824 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument 829 createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, Object nativeWindow) argument 846 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument 869 chooseConfig(EGL10 egl, EGLDisplay display) argument 878 chooseConfig(EGL10 egl, EGLDisplay display) argument 904 chooseConfig(EGL10 egl, EGLDisplay display, EGLConfig[] configs) argument 955 chooseConfig(EGL10 egl, EGLDisplay display, EGLConfig[] configs) argument 980 findConfigAttrib(EGL10 egl, EGLDisplay display, EGLConfig config, int attribute, int defaultValue) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
H A D | DisplayManagerServiceTest.java | 17 package com.android.server.display; 20 import android.hardware.display.BrightnessConfiguration; 21 import android.hardware.display.Curve; 22 import android.hardware.display.DisplayManager; 23 import android.hardware.display.DisplayViewport; 24 import android.hardware.display.IVirtualDisplayCallback; 35 import com.android.server.display.DisplayDeviceInfo; 36 import com.android.server.display.DisplayManagerService.SyncRoot; 37 import com.android.server.display.VirtualDisplayAdapter.SurfaceControlDisplayFactory; 179 * Tests that the virtual display i [all...] |
/frameworks/base/core/java/android/hardware/display/ |
H A D | WifiDisplayStatus.java | 17 package android.hardware.display; 25 * Describes the current global state of Wifi display connectivity, including the 26 * currently connected display and all available or remembered displays. 43 /** Feature state: Wifi display is not available on this device. */ 45 /** Feature state: Wifi display is disabled, probably because Wifi is disabled. */ 47 /** Feature state: Wifi display is turned off in settings. */ 49 /** Feature state: Wifi display is turned on in settings. */ 59 /** Display state: Connecting to active display. */ 61 /** Display state: Connected to active display. */ 113 * Returns the state of the Wifi display featur [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowManagerInternal.java | 24 import android.hardware.display.DisplayManagerInternal; 159 DragState state, Display display, InputManagerService service, 161 state.register(display); 209 * rotation, and other window transformations related to display magnification 229 * Set by the accessibility framework to indicate whether the magnifiable regions of the display 315 * @param displayId The display to add the token to. 324 * @param displayId The display to remove the token from. 407 * Called after virtual display Id is updated by 158 registerInputChannel( DragState state, Display display, InputManagerService service, InputChannel source) argument
|