Home
last modified time | relevance | path

Searched refs:Display (Results 1 – 25 of 257) sorted by relevance

1234567891011

/frameworks/support/v4/java/android/support/v4/hardware/display/
DDisplayManagerCompat.java20 import android.view.Display;
78 public abstract Display getDisplay(int displayId); in getDisplay()
85 public abstract Display[] getDisplays(); in getDisplays()
103 public abstract Display[] getDisplays(String category); in getDisplays()
113 public Display getDisplay(int displayId) { in getDisplay()
114 Display display = mWindowManager.getDefaultDisplay(); in getDisplay()
122 public Display[] getDisplays() { in getDisplays()
123 return new Display[] { mWindowManager.getDefaultDisplay() }; in getDisplays()
127 public Display[] getDisplays(String category) { in getDisplays()
128 return category == null ? getDisplays() : new Display[0]; in getDisplays()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManager.java25 import android.view.Display;
47 private final SparseArray<Display> mDisplays = new SparseArray<Display>();
49 private final ArrayList<Display> mTempDisplays = new ArrayList<Display>();
252 public Display getDisplay(int displayId) { in getDisplay()
263 public Display[] getDisplays() { in getDisplays()
283 public Display[] getDisplays(String category) { in getDisplays()
290 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_WIFI); in getDisplays()
291 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_HDMI); in getDisplays()
292 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_OVERLAY); in getDisplays()
293 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_VIRTUAL); in getDisplays()
[all …]
DVirtualDisplay.java18 import android.view.Display;
36 private final Display mDisplay;
40 VirtualDisplay(DisplayManagerGlobal global, Display display, in VirtualDisplay()
51 public Display getDisplay() { in getDisplay()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java36 import android.view.Display;
117 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay()
119 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay()
141 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay()
143 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay()
170 Display display = virtualDisplay.getDisplay(); in testPublicPresentationVirtualDisplay()
172 assertDisplayRegistered(display, Display.FLAG_PRESENTATION); in testPublicPresentationVirtualDisplay()
177 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testPublicPresentationVirtualDisplay()
224 Display display = virtualDisplay.getDisplay(); in testSecurePublicPresentationVirtualDisplay()
226 assertDisplayRegistered(display, Display.FLAG_PRESENTATION | Display.FLAG_SECURE); in testSecurePublicPresentationVirtualDisplay()
[all …]
/frameworks/base/core/java/android/view/
DDisplayInfo.java170 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY;
179 public Display.ColorTransform[] supportedColorTransforms = Display.ColorTransform.EMPTY_ARRAY;
182 public Display.HdrCapabilities hdrCapabilities;
372 supportedModes = new Display.Mode[nModes]; in readFromParcel()
374 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel()
379 supportedColorTransforms = new Display.ColorTransform[nColorTransforms]; in readFromParcel()
381 supportedColorTransforms[i] = Display.ColorTransform.CREATOR.createFromParcel(source); in readFromParcel()
444 public Display.Mode getMode() { in getMode()
448 public Display.Mode getDefaultMode() { in getDefaultMode()
452 private Display.Mode findMode(int id) { in findMode()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java34 import android.view.Display;
132 case Display.STATE_OFF: in getPowerModeForState()
134 case Display.STATE_DOZE: in getPowerModeForState()
136 case Display.STATE_DOZE_SUSPEND: in getPowerModeForState()
147 private final SparseArray<Display.ColorTransform> mSupportedColorTransforms =
152 private int mState = Display.STATE_UNKNOWN;
161 private Display.HdrCapabilities mHdrCapabilities;
183 ArrayList<Display.ColorTransform> colorTransforms = new ArrayList<>(); in updatePhysicalDisplayInfoLocked()
187 Display.ColorTransform activeColorTransform = null; in updatePhysicalDisplayInfoLocked()
201 Display.ColorTransform colorTransform = findColorTransform(info); in updatePhysicalDisplayInfoLocked()
[all …]
DDisplayPowerController.java44 import android.view.Display;
458 new ColorFade(Display.DEFAULT_DISPLAY)); in initialize()
549 state = Display.STATE_OFF; in updatePowerState()
553 if (mPowerRequest.dozeScreenState != Display.STATE_UNKNOWN) { in updatePowerState()
556 state = Display.STATE_DOZE; in updatePowerState()
565 state = Display.STATE_ON; in updatePowerState()
568 assert(state != Display.STATE_UNKNOWN); in updatePowerState()
572 if (mPowerRequest.useProximitySensor && state != Display.STATE_OFF) { in updatePowerState()
582 && state != Display.STATE_OFF) { in updatePowerState()
597 state = Display.STATE_OFF; in updatePowerState()
[all …]
DDisplayPowerState.java27 import android.view.Display;
85 mScreenState = Display.STATE_ON; in DisplayPowerState()
154 if (mScreenState != Display.STATE_OFF) { in setScreenBrightness()
225 if (mScreenState != Display.STATE_OFF) { in setColorFadeLevel()
262 pw.println(" mScreenState=" + Display.stateToString(mScreenState)); in dump()
308 int brightness = mScreenState != Display.STATE_OFF
342 private static final int INITIAL_SCREEN_STATE = Display.STATE_OFF; // unknown, assume off
365 + Display.stateToString(state) + ", backlight=" + backlight); in setState()
387 pw.println(" mPendingState=" + Display.stateToString(mPendingState)); in dump()
389 pw.println(" mActualState=" + Display.stateToString(mActualState)); in dump()
[all …]
DDisplayAdapter.java21 import android.view.Display;
139 public static Display.Mode createMode(int width, int height, float refreshRate) { in createMode()
140 return new Display.Mode( in createMode()
144 public static Display.ColorTransform createColorTransform(int colorTransform) { in createColorTransform()
145 return new Display.ColorTransform( in createColorTransform()
DDisplayDeviceInfo.java21 import android.view.Display;
156 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY;
165 public Display.ColorTransform[] supportedColorTransforms = Display.ColorTransform.EMPTY_ARRAY;
170 public Display.HdrCapabilities hdrCapabilities;
241 public int state = Display.STATE_ON;
366 sb.append(", type ").append(Display.typeToString(type)); in toString()
370 sb.append(", state ").append(Display.stateToString(state)); in toString()
DVirtualDisplayAdapter.java32 import android.view.Display;
186 private Display.Mode mMode;
204 mDisplayState = Display.STATE_UNKNOWN; in VirtualDisplayDevice()
231 if (state == Display.STATE_OFF) { in requestDisplayStateLocked()
285 pw.println("mDisplayState=" + Display.stateToString(mDisplayState)); in dumpLocked()
300 mInfo.supportedModes = new Display.Mode[] { mMode }; in getDisplayDeviceInfoLocked()
331 mInfo.type = Display.TYPE_VIRTUAL; in getDisplayDeviceInfoLocked()
333 mInfo.state = mSurface != null ? Display.STATE_ON : Display.STATE_OFF; in getDisplayDeviceInfoLocked()
DLogicalDisplay.java20 import android.view.Display;
212 mBaseDisplayInfo.flags |= Display.FLAG_SUPPORTS_PROTECTED_BUFFERS; in updateLocked()
215 mBaseDisplayInfo.flags |= Display.FLAG_SECURE; in updateLocked()
218 mBaseDisplayInfo.flags |= Display.FLAG_PRIVATE; in updateLocked()
221 mBaseDisplayInfo.flags |= Display.FLAG_PRESENTATION; in updateLocked()
224 mBaseDisplayInfo.flags |= Display.FLAG_ROUND; in updateLocked()
331 if ((displayInfo.flags & Display.FLAG_SCALING_DISABLED) != 0) { in configureDisplayInTransactionLocked()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.h48 class Display; variable
51 typedef std::function<void(std::shared_ptr<Display>, Connection)>
53 typedef std::function<void(std::shared_ptr<Display>)> RefreshCallback;
54 typedef std::function<void(std::shared_ptr<Display>, nsecs_t)> VsyncCallback;
62 friend class HWC2::Display;
76 std::shared_ptr<Display>* outDisplay);
84 void callHotplug(std::shared_ptr<Display> display, Connection connected);
85 void callRefresh(std::shared_ptr<Display> display);
86 void callVsync(std::shared_ptr<Display> display, nsecs_t timestamp);
92 std::shared_ptr<Display> getDisplayById(hwc2_display_t id);
[all …]
DHWC2On1Adapter.cpp200 displayHook<decltype(&Display::acceptChanges), in doGetFunction()
201 &Display::acceptChanges>); in doGetFunction()
204 displayHook<decltype(&Display::createLayer), in doGetFunction()
205 &Display::createLayer, hwc2_layer_t*>); in doGetFunction()
208 displayHook<decltype(&Display::destroyLayer), in doGetFunction()
209 &Display::destroyLayer, hwc2_layer_t>); in doGetFunction()
212 displayHook<decltype(&Display::getActiveConfig), in doGetFunction()
213 &Display::getActiveConfig, hwc2_config_t*>); in doGetFunction()
216 displayHook<decltype(&Display::getChangedCompositionTypes), in doGetFunction()
217 &Display::getChangedCompositionTypes, uint32_t*, in doGetFunction()
[all …]
DHWC2.cpp195 android_pixel_format_t* format, std::shared_ptr<Display>* outDisplay) in createVirtualDisplay()
248 void Device::callHotplug(std::shared_ptr<Display> display, Connection connected) in callHotplug()
268 void Device::callRefresh(std::shared_ptr<Display> display) in callRefresh()
278 void Device::callVsync(std::shared_ptr<Display> display, nsecs_t timestamp) in callVsync()
290 std::shared_ptr<Display> Device::getDisplayById(hwc2_display_t id) { in getDisplayById()
295 auto display = std::make_shared<Display>(*this, id); in getDisplayById()
437 Display::Display(Device& device, hwc2_display_t id) in Display() function in HWC2::Display
446 Display::~Display() in ~Display()
454 Display::Config::Config(Display& display, hwc2_config_t id) in Config()
463 Display::Config::Builder::Builder(Display& display, hwc2_config_t id) in Builder()
[all …]
DHWComposer.h51 class Display; variable
155 std::vector<std::shared_ptr<const HWC2::Display::Config>>
158 std::shared_ptr<const HWC2::Display::Config>
174 void invalidate(const std::shared_ptr<HWC2::Display>& display);
175 void vsync(const std::shared_ptr<HWC2::Display>& display,
177 void hotplug(const std::shared_ptr<HWC2::Display>& display,
187 std::shared_ptr<HWC2::Display> hwcDisplay;
195 std::shared_ptr<const HWC2::Display::Config>> configMap;
DHWC2On1Adapter.h169 class Display {
174 Display(HWC2On1Adapter& device, HWC2::DisplayType type);
248 Config(Display& display) in Config()
252 bool isOnDisplay(const Display& display) const { in isOnDisplay()
279 Display& mDisplay;
399 hwc2_display_t displayId, HWC2::Error (Display::*member)(Args...), in callDisplayFunction()
420 return callDisplayFunction(device, display, &Display::getAttribute, in getDisplayAttributeHook()
431 return callDisplayFunction(device, display, &Display::setColorTransform, in setColorTransformHook()
438 return callDisplayFunction(device, display, &Display::setPowerMode, in setPowerModeHook()
445 return callDisplayFunction(device, display, &Display::setVsyncEnabled, in setVsyncEnabledHook()
[all …]
/frameworks/base/cmds/wm/src/com/android/commands/wm/
DWm.java28 import android.view.Display;
133 mWm.getInitialDisplaySize(Display.DEFAULT_DISPLAY, initialSize); in runDisplaySize()
134 mWm.getBaseDisplaySize(Display.DEFAULT_DISPLAY, baseSize); in runDisplaySize()
164 mWm.setForcedDisplaySize(Display.DEFAULT_DISPLAY, w, h); in runDisplaySize()
166 mWm.clearForcedDisplaySize(Display.DEFAULT_DISPLAY); in runDisplaySize()
177 int initialDensity = mWm.getInitialDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity()
178 int baseDensity = mWm.getBaseDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity()
204 mWm.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, density); in runDisplayDensity()
206 mWm.clearForcedDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity()
232 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect.bottom); in runDisplayOverscan()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java25 import android.view.Display;
72 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference()
77 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference()
86 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
93 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, overrideConfig, in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
102 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testAddingASplitCreatesANewImpl()
108 Display.DEFAULT_DISPLAY, null, CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null); in testAddingASplitCreatesANewImpl()
118 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers()
123 null, APP_TWO_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers()
131 activity, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, in testUpdateConfigurationUpdatesAllAssetManagers()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java19 import android.view.Display;
28 private final Display mDisplay;
36 mDisplay = new Display(null, Display.DEFAULT_DISPLAY, info, in WindowManagerImpl()
41 public Display getDefaultDisplay() { in getDefaultDisplay()
/frameworks/support/v4/jellybean-mr1/android/support/v4/hardware/display/
DDisplayManagerJellybeanMr1.java20 import android.view.Display;
27 public static Display getDisplay(Object displayManagerObj, int displayId) { in getDisplay()
31 public static Display[] getDisplays(Object displayManagerObj) { in getDisplays()
35 public static Display[] getDisplays(Object displayManagerObj, String category) { in getDisplays()
/frameworks/base/core/java/android/app/
DPresentation.java24 import android.view.Display;
146 private final Display mDisplay;
158 public Presentation(Context outerContext, Display display) { in Presentation()
176 public Presentation(Context outerContext, Display display, int theme) { in Presentation()
191 public Display getDisplay() { in getDisplay()
290 Context outerContext, Display display, int theme) { in createPresentationContext()
/frameworks/base/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java31 import android.view.Display;
81 private final Display mDisplay;
117 mDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in BurnInProtectionHelper()
250 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged()
251 || mDisplay.getState() == Display.STATE_DOZE_SUSPEND) { in onDisplayChanged()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java32 import android.view.Display;
151 public void onDisplayAdded(Display display); in onDisplayAdded()
152 public void onDisplayRemoved(Display display); in onDisplayRemoved()
160 mCallbacks.onDisplayAdded((Display)msg.obj); in handleMessage()
165 mCallbacks.onDisplayRemoved((Display)msg.obj); in handleMessage()
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DDumpCommand.java23 import android.view.Display;
94 Display display = in run()
95 DisplayManagerGlobal.getInstance().getRealDisplay(Display.DEFAULT_DISPLAY); in run()

1234567891011