Home
last modified time | relevance | path

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

12345678

/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/services/core/java/com/android/server/display/
DDisplayPowerController.java44 import android.view.Display;
447 new ColorFade(Display.DEFAULT_DISPLAY)); in initialize()
538 state = Display.STATE_OFF; in updatePowerState()
542 if (mPowerRequest.dozeScreenState != Display.STATE_UNKNOWN) { in updatePowerState()
545 state = Display.STATE_DOZE; in updatePowerState()
554 state = Display.STATE_ON; in updatePowerState()
557 assert(state != Display.STATE_UNKNOWN); in updatePowerState()
561 if (mPowerRequest.useProximitySensor && state != Display.STATE_OFF) { in updatePowerState()
571 && state != Display.STATE_OFF) { in updatePowerState()
586 state = Display.STATE_OFF; in updatePowerState()
[all …]
DLocalDisplayAdapter.java34 import android.view.Display;
131 case Display.STATE_OFF: in getPowerModeForState()
133 case Display.STATE_DOZE: in getPowerModeForState()
135 case Display.STATE_DOZE_SUSPEND: in getPowerModeForState()
149 private int mState = Display.STATE_UNKNOWN;
256 mInfo.supportedModes = new Display.Mode[mSupportedModes.size()]; in getDisplayDeviceInfoLocked()
284 mInfo.type = Display.TYPE_BUILT_IN; in getDisplayDeviceInfoLocked()
290 mInfo.type = Display.TYPE_HDMI; in getDisplayDeviceInfoLocked()
316 assert state != Display.STATE_OFF || brightness == PowerManager.BRIGHTNESS_OFF; in requestDisplayStateLocked()
342 if (Display.isSuspendedState(oldState) in requestDisplayStateLocked()
[all …]
DDisplayPowerState.java27 import android.view.Display;
85 mScreenState = Display.STATE_ON; in DisplayPowerState()
154 if (mScreenState != Display.STATE_OFF) { in setScreenBrightness()
218 if (mScreenState != Display.STATE_OFF) { in setColorFadeLevel()
255 pw.println(" mScreenState=" + Display.stateToString(mScreenState)); in dump()
301 int brightness = mScreenState != Display.STATE_OFF
335 private static final int INITIAL_SCREEN_STATE = Display.STATE_OFF; // unknown, assume off
355 + Display.stateToString(state) + ", backlight=" + backlight); in setState()
374 pw.println(" mPendingState=" + Display.stateToString(mPendingState)); in dump()
376 pw.println(" mActualState=" + Display.stateToString(mActualState)); in dump()
[all …]
DDisplayDeviceInfo.java21 import android.view.Display;
156 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY;
227 public int state = Display.STATE_ON;
340 sb.append(", type ").append(Display.typeToString(type)); in toString()
344 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;
211 mBaseDisplayInfo.flags |= Display.FLAG_SUPPORTS_PROTECTED_BUFFERS; in updateLocked()
214 mBaseDisplayInfo.flags |= Display.FLAG_SECURE; in updateLocked()
217 mBaseDisplayInfo.flags |= Display.FLAG_PRIVATE; in updateLocked()
220 mBaseDisplayInfo.flags |= Display.FLAG_PRESENTATION; in updateLocked()
223 mBaseDisplayInfo.flags |= Display.FLAG_ROUND; in updateLocked()
323 if ((displayInfo.flags & Display.FLAG_SCALING_DISABLED) != 0) { in configureDisplayInTransactionLocked()
DDisplayAdapter.java21 import android.view.Display;
132 public static Display.Mode createMode(int width, int height, float refreshRate) { in createMode()
133 return new Display.Mode( in createMode()
/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/java/android/view/
DDisplayInfo.java170 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY;
352 supportedModes = new Display.Mode[nModes]; in readFromParcel()
354 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel()
409 public Display.Mode getMode() { in getMode()
413 public Display.Mode getDefaultMode() { in getDefaultMode()
417 private Display.Mode findMode(int id) { in findMode()
431 Display.Mode[] modes = supportedModes; in findDefaultModeByRefreshRate()
432 Display.Mode defaultMode = getDefaultMode(); in findDefaultModeByRefreshRate()
446 Display.Mode[] modes = supportedModes; in getDefaultRefreshRates()
448 Display.Mode defaultMode = getDefaultMode(); in getDefaultRefreshRates()
[all …]
DWindowManagerImpl.java50 private final Display mDisplay;
55 public WindowManagerImpl(Display display) { in WindowManagerImpl()
59 private WindowManagerImpl(Display display, Window parentWindow) { in WindowManagerImpl()
68 public WindowManagerImpl createPresentationWindowManager(Display display) { in createPresentationWindowManager()
120 public Display getDefaultDisplay() { in getDefaultDisplay()
DDisplay.java56 public final class Display { class
287 public Display(DisplayManagerGlobal global, in Display() method in Display
676 final Display.Mode[] modes = mDisplayInfo.supportedModes; in getSupportedModes()
794 return Display.hasAccess(uid, mFlags, mOwnerUid); in hasAccess()
799 return (flags & Display.FLAG_PRIVATE) == 0 in hasAccess()
810 return (mFlags & (Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION)) == in isPublicPresentation()
811 Display.FLAG_PRESENTATION; in isPublicPresentation()
/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()
DResourcesManager.java33 import android.view.Display;
47 private final ArrayMap<Pair<Integer, DisplayAdjustments>, WeakReference<Display>> mDisplays =
68 return getDisplayMetricsLocked(Display.DEFAULT_DISPLAY); in getDisplayMetricsLocked()
73 final Display display = in getDisplayMetricsLocked()
121 public Display getAdjustedDisplay(final int displayId, DisplayAdjustments displayAdjustments) { in getAdjustedDisplay()
127 WeakReference<Display> wd = mDisplays.get(key); in getAdjustedDisplay()
129 final Display display = wd.get(); in getAdjustedDisplay()
139 final Display display = dm.getCompatibleDisplay(displayId, key.second); in getAdjustedDisplay()
226 final boolean isDefaultDisplay = (displayId == Display.DEFAULT_DISPLAY); in getTopLevelResources()
303 boolean isDefaultDisplay = (displayId == Display.DEFAULT_DISPLAY); in applyConfigurationToResourcesLocked()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DRecentsComponent.java19 import android.view.Display;
29 void toggleRecents(Display display, int layoutDirection, View statusBarView); in toggleRecents()
/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/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java31 import android.view.Display;
78 private final Display mDisplay;
114 mDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in BurnInProtectionHelper()
245 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged()
246 || mDisplay.getState() == Display.STATE_DOZE_SUSPEND) { in onDisplayChanged()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java23 import android.view.Display;
39 public Display getDefaultDisplay() { in getDefaultDisplay()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DShellUiAutomatorBridge.java35 import android.view.Display;
49 public Display getDefaultDisplay() { in getDefaultDisplay()
50 return DisplayManagerGlobal.getInstance().getRealDisplay(Display.DEFAULT_DISPLAY); in getDefaultDisplay()

12345678