Home
last modified time | relevance | path

Searched refs:displayId (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp147 bool HWComposer::isValidDisplay(int32_t displayId) const { in isValidDisplay()
148 return static_cast<size_t>(displayId) < mDisplayData.size() && in isValidDisplay()
149 mDisplayData[displayId].hwcDisplay; in isValidDisplay()
287 std::shared_ptr<HWC2::Layer> HWComposer::createLayer(int32_t displayId) { in createLayer() argument
288 if (!isValidDisplay(displayId)) { in createLayer()
289 ALOGE("Failed to create layer on invalid display %d", displayId); in createLayer()
292 auto display = mDisplayData[displayId].hwcDisplay; in createLayer()
296 ALOGE("Failed to create layer on display %d: %s (%d)", displayId, in createLayer()
322 HWComposer::getConfigs(int32_t displayId) const { in getConfigs()
323 if (!isValidDisplay(displayId)) { in getConfigs()
[all …]
DHWComposer.h90 std::shared_ptr<HWC2::Layer> createLayer(int32_t displayId);
95 status_t setClientTarget(int32_t displayId, const sp<Fence>& acquireFence,
99 status_t commit(int32_t displayId);
102 status_t setPowerMode(int32_t displayId, int mode);
105 status_t setActiveConfig(int32_t displayId, size_t configId);
108 void disconnectDisplay(int32_t displayId);
111 bool hasDeviceComposition(int32_t displayId) const;
114 bool hasClientComposition(int32_t displayId) const;
118 sp<Fence> getRetireFence(int32_t displayId) const;
121 sp<Fence> getLayerReleaseFence(int32_t displayId,
[all …]
DHWC2On1Adapter.cpp374 const auto displayId = mHwc1VirtualDisplay->getId(); in createVirtualDisplay() local
375 mHwc1DisplayMap[HWC_DISPLAY_VIRTUAL] = displayId; in createVirtualDisplay()
377 mDisplays.emplace(displayId, mHwc1VirtualDisplay); in createVirtualDisplay()
378 *outDisplay = displayId; in createVirtualDisplay()
383 Error HWC2On1Adapter::destroyVirtualDisplay(hwc2_display_t displayId) in destroyVirtualDisplay() argument
387 if (!mHwc1VirtualDisplay || (mHwc1VirtualDisplay->getId() != displayId)) { in destroyVirtualDisplay()
393 mDisplays.erase(displayId); in destroyVirtualDisplay()
501 auto displayId = mHwc1DisplayMap[hwc1DisplayId]; in registerCallback() local
503 pendingVsyncs.emplace_back(displayId, timestamp); in registerCallback()
518 auto displayId = mHwc1DisplayMap[hwc1DisplayId]; in registerCallback() local
[all …]
DHWC2On1Adapter.h399 hwc2_display_t displayId, HWC2::Error (Display::*member)(Args...), in callDisplayFunction() argument
401 auto display = getAdapter(device)->getDisplay(displayId); in callDisplayFunction()
410 static int32_t displayHook(hwc2_device_t* device, hwc2_display_t displayId, in displayHook() argument
412 return HWC2On1Adapter::callDisplayFunction(device, displayId, memFunc, in displayHook()
575 hwc2_display_t displayId, hwc2_layer_t layerId, in callLayerFunction() argument
577 auto result = getAdapter(device)->getLayer(displayId, layerId); in callLayerFunction()
587 static int32_t layerHook(hwc2_device_t* device, hwc2_display_t displayId, in layerHook() argument
589 return HWC2On1Adapter::callLayerFunction(device, displayId, layerId, in layerHook()
633 std::tuple<Layer*, HWC2::Error> getLayer(hwc2_display_t displayId,
DHWC2.cpp38 hwc2_display_t displayId, int32_t intConnected) { in hotplug_hook() argument
40 auto display = device->getDisplayById(displayId); in hotplug_hook()
46 displayId); in hotplug_hook()
51 hwc2_display_t displayId) { in refresh_hook() argument
53 auto display = device->getDisplayById(displayId); in refresh_hook()
58 displayId); in refresh_hook()
63 hwc2_display_t displayId, int64_t timestamp) { in vsync_hook() argument
65 auto display = device->getDisplayById(displayId); in vsync_hook()
70 displayId); in vsync_hook()
199 hwc2_display_t displayId = 0; in createVirtualDisplay() local
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimator.java146 void addDisplayLocked(final int displayId) { in addDisplayLocked() argument
148 getDisplayContentsAnimatorLocked(displayId); in addDisplayLocked()
149 if (displayId == Display.DEFAULT_DISPLAY) { in addDisplayLocked()
154 void removeDisplayLocked(final int displayId) { in removeDisplayLocked() argument
155 final DisplayContentsAnimator displayAnimator = mDisplayContentsAnimators.get(displayId); in removeDisplayLocked()
163 mDisplayContentsAnimators.delete(displayId); in removeDisplayLocked()
166 private void updateAppWindowsLocked(int displayId) { in updateAppWindowsLocked() argument
167 ArrayList<TaskStack> stacks = mService.getDisplayContentLocked(displayId).getStacks(); in updateAppWindowsLocked()
176 if (appAnimator.stepAnimationLocked(mCurrentTime, displayId)) { in updateAppWindowsLocked()
184 "appToken " + appAnimator.mAppToken + " done", displayId); in updateAppWindowsLocked()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java108 public DisplayInfo getDisplayInfo(int displayId) { in getDisplayInfo() argument
113 info = mDisplayInfoCache.get(displayId); in getDisplayInfo()
119 info = mDm.getDisplayInfo(displayId); in getDisplayInfo()
125 mDisplayInfoCache.put(displayId, info); in getDisplayInfo()
130 Log.d(TAG, "getDisplayInfo: displayId=" + displayId + ", info=" + info); in getDisplayInfo()
175 public Display getCompatibleDisplay(int displayId, DisplayAdjustments daj) { in getCompatibleDisplay() argument
176 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay()
180 return new Display(this, displayId, displayInfo, daj); in getCompatibleDisplay()
189 public Display getRealDisplay(int displayId) { in getRealDisplay() argument
190 return getCompatibleDisplay(displayId, DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in getRealDisplay()
[all …]
DDisplayManager.java252 public Display getDisplay(int displayId) { in getDisplay() argument
254 return getOrCreateDisplayLocked(displayId, false /*assumeValid*/); in getDisplay()
323 private Display getOrCreateDisplayLocked(int displayId, boolean assumeValid) { in getOrCreateDisplayLocked() argument
324 Display display = mDisplays.get(displayId); in getOrCreateDisplayLocked()
326 display = mGlobal.getCompatibleDisplay(displayId, in getOrCreateDisplayLocked()
327 mContext.getDisplayAdjustments(displayId)); in getOrCreateDisplayLocked()
329 mDisplays.put(displayId, display); in getOrCreateDisplayLocked()
552 void onDisplayAdded(int displayId); in onDisplayAdded() argument
559 void onDisplayRemoved(int displayId); in onDisplayRemoved() argument
566 void onDisplayChanged(int displayId); in onDisplayChanged() argument
DDisplayViewport.java36 public int displayId; field in DisplayViewport
57 displayId = viewport.displayId; in copyFrom()
69 + ", displayId=" + displayId in toString()
DDisplayManagerInternal.java68 public abstract DisplayInfo getDisplayInfo(int displayId); in getDisplayInfo() argument
100 int displayId, DisplayInfo info); in setDisplayInfoOverrideFromWindowManager() argument
133 public abstract void setDisplayProperties(int displayId, boolean hasContent, in setDisplayProperties() argument
147 public abstract void setDisplayOffsets(int displayId, int x, int y); in setDisplayOffsets() argument
DIDisplayManager.aidl29 DisplayInfo getDisplayInfo(int displayId); in getDisplayInfo() argument
63 void requestColorTransform(int displayId, int colorTransformId); in requestColorTransform() argument
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java306 int displayId, DisplayInfo info) { in setDisplayInfoOverrideFromWindowManagerInternal() argument
308 LogicalDisplay display = mLogicalDisplays.get(displayId); in setDisplayInfoOverrideFromWindowManagerInternal()
311 sendDisplayEventLocked(displayId, DisplayManagerGlobal.EVENT_DISPLAY_CHANGED); in setDisplayInfoOverrideFromWindowManagerInternal()
379 private DisplayInfo getDisplayInfoInternal(int displayId, int callingUid) { in getDisplayInfoInternal() argument
381 LogicalDisplay display = mLogicalDisplays.get(displayId); in getDisplayInfoInternal()
543 private void requestColorTransformInternal(int displayId, int colorTransformId) { in requestColorTransformInternal() argument
545 LogicalDisplay display = mLogicalDisplays.get(displayId); in requestColorTransformInternal()
783 final int displayId = assignDisplayIdLocked(isDefault); in addLogicalDisplayLocked() local
784 final int layerStack = assignLayerStackLocked(displayId); in addLogicalDisplayLocked()
786 LogicalDisplay display = new LogicalDisplay(displayId, layerStack, device); in addLogicalDisplayLocked()
[all …]
DOverlayDisplayWindow.java289 public void onDisplayAdded(int displayId) {
293 public void onDisplayChanged(int displayId) {
294 if (displayId == mDefaultDisplay.getDisplayId()) {
305 public void onDisplayRemoved(int displayId) {
306 if (displayId == mDefaultDisplay.getDisplayId()) {
/frameworks/base/core/java/android/view/
DIWindowManager.aidl70 void getInitialDisplaySize(int displayId, out Point size); in getInitialDisplaySize() argument
71 void getBaseDisplaySize(int displayId, out Point size); in getBaseDisplaySize() argument
72 void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument
73 void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument
74 int getInitialDisplayDensity(int displayId); in getInitialDisplayDensity() argument
75 int getBaseDisplayDensity(int displayId); in getBaseDisplayDensity() argument
76 void setForcedDisplayDensity(int displayId, int density); in setForcedDisplayDensity() argument
77 void clearForcedDisplayDensity(int displayId); in clearForcedDisplayDensity() argument
78 void setForcedDisplayScalingMode(int displayId, int mode); // 0 = auto, 1 = disable in setForcedDisplayScalingMode() argument
80 void setOverscan(int displayId, int left, int top, int right, int bottom); in setOverscan() argument
[all …]
/frameworks/support/v4/java/android/support/v4/hardware/display/
DDisplayManagerCompat.java78 public abstract Display getDisplay(int displayId); in getDisplay() argument
113 public Display getDisplay(int displayId) { in getDisplay() argument
115 if (display.getDisplayId() == displayId) { in getDisplay()
140 public Display getDisplay(int displayId) { in getDisplay() argument
141 return DisplayManagerJellybeanMr1.getDisplay(mDisplayManagerObj, displayId); in getDisplay()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java93 public void clearForcedDisplaySize(int displayId) throws RemoteException { in clearForcedDisplaySize() argument
98 public void clearForcedDisplayDensity(int displayId) throws RemoteException { in clearForcedDisplayDensity() argument
103 public void setOverscan(int displayId, int left, int top, int right, int bottom) in setOverscan() argument
303 public Bitmap screenshotApplications(IBinder appToken, int displayId, int maxWidth, in screenshotApplications() argument
368 public void getInitialDisplaySize(int displayId, Point size) { in getInitialDisplaySize() argument
373 public void getBaseDisplaySize(int displayId, Point size) { in getBaseDisplaySize() argument
378 public void setForcedDisplaySize(int displayId, int arg0, int arg1) throws RemoteException { in setForcedDisplaySize() argument
383 public int getInitialDisplayDensity(int displayId) { in getInitialDisplayDensity() argument
388 public int getBaseDisplayDensity(int displayId) { in getBaseDisplayDensity() argument
393 public void setForcedDisplayDensity(int displayId, int density) throws RemoteException { in setForcedDisplayDensity() argument
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputWindowHandle.java91 public final int displayId; field in InputWindowHandle
96 Object windowState, int displayId) { in InputWindowHandle() argument
99 this.displayId = displayId; in InputWindowHandle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java196 private static int getDefaultDisplayDensity(int displayId) { in getDefaultDisplayDensity() argument
199 return wm.getInitialDisplayDensity(displayId); in getDefaultDisplayDensity()
210 public static void clearForcedDisplayDensity(final int displayId) { in clearForcedDisplayDensity() argument
216 wm.clearForcedDisplayDensity(displayId); in clearForcedDisplayDensity()
230 public static void setForcedDisplayDensity(final int displayId, final int density) { in setForcedDisplayDensity() argument
236 wm.setForcedDisplayDensity(displayId, density); in setForcedDisplayDensity()
/frameworks/base/core/java/android/app/
DPresentation.java327 public void onDisplayAdded(int displayId) {
331 public void onDisplayRemoved(int displayId) {
332 if (displayId == mDisplay.getDisplayId()) {
338 public void onDisplayChanged(int displayId) {
339 if (displayId == mDisplay.getDisplayId()) {
DResourcesManager.java160 protected @NonNull DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments da) { in getDisplayMetrics() argument
162 final Display display = getAdjustedDisplay(displayId, da); in getDisplayMetrics()
209 public Display getAdjustedDisplay(final int displayId, in getAdjustedDisplay() argument
214 Pair.create(displayId, displayAdjustmentsCopy); in getAdjustedDisplay()
228 final Display display = dm.getCompatibleDisplay(displayId, key.second); in getAdjustedDisplay()
468 int displayId, in createBaseActivityResources() argument
480 displayId, in createBaseActivityResources()
630 int displayId, in getResources() argument
641 displayId, in getResources()
800 int displayId = key.mDisplayId; in applyConfigurationToResourcesLocked() local
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp72 int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, in NotifyMotionArgs() argument
78 edgeFlags(edgeFlags), displayId(displayId), pointerCount(pointerCount), in NotifyMotionArgs()
91 edgeFlags(other.edgeFlags), displayId(other.displayId), pointerCount(other.pointerCount), in NotifyMotionArgs()
DInputDispatcher.cpp175 static bool isMainDisplay(int32_t displayId) { in isMainDisplay() argument
176 return displayId == ADISPLAY_ID_DEFAULT || displayId == ADISPLAY_ID_NONE; in isMainDisplay()
446 int32_t displayId = motionEntry->displayId; in enqueueInboundEventLocked() local
451 sp<InputWindowHandle> touchedWindowHandle = findTouchedWindowAtLocked(displayId, x, y); in enqueueInboundEventLocked()
476 sp<InputWindowHandle> InputDispatcher::findTouchedWindowAtLocked(int32_t displayId, in findTouchedWindowAtLocked() argument
483 if (windowInfo->displayId == displayId) { in findTouchedWindowAtLocked()
873 if (isMainDisplay(entry->displayId)) { in dispatchMotionLocked()
1038 ssize_t stateIndex = mTouchStatesByDisplay.indexOfKey(info->displayId); in resumeAfterTargetsNotReadyTimeoutLocked()
1144 int32_t displayId = entry->displayId; in findTouchedWindowTargetsLocked() local
1157 ssize_t oldStateIndex = mTouchStatesByDisplay.indexOfKey(displayId); in findTouchedWindowTargetsLocked()
[all …]
/frameworks/base/cmds/screencap/
Dscreencap.cpp91 int32_t displayId = DEFAULT_DISPLAY_ID; in main() local
99 displayId = atoi(optarg); in main()
148 sp<IBinder> display = SurfaceComposerClient::getBuiltInDisplay(displayId); in main()
150 fprintf(stderr, "Unable to get handle for display %d\n", displayId); in main()
/frameworks/support/v4/jellybean-mr1/android/support/v4/hardware/display/
DDisplayManagerJellybeanMr1.java27 public static Display getDisplay(Object displayManagerObj, int displayId) { in getDisplay() argument
28 return ((android.hardware.display.DisplayManager)displayManagerObj).getDisplay(displayId); in getDisplay()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputWindowHandle.cpp56 jfieldID displayId; member
159 mInfo->displayId = env->GetIntField(obj, in updateInfo()
160 gInputWindowHandleClassInfo.displayId); in updateInfo()
303 GET_FIELD_ID(gInputWindowHandleClassInfo.displayId, clazz, in register_android_server_InputWindowHandle()

123