Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp93 std::vector<DisplayId> displayIds{PhysicalDisplayId::fromPort(42u)}; in TEST_F() local
105 mPowerAdvisor->setDisplays(displayIds); in TEST_F()
117 mPowerAdvisor->setDisplays(displayIds); in TEST_F()
118 mPowerAdvisor->setHwcValidateTiming(displayIds[0], startTime + 1000000, startTime + 1500000); in TEST_F()
119 mPowerAdvisor->setHwcPresentTiming(displayIds[0], startTime + 2000000, startTime + 2500000); in TEST_F()
128 std::vector<DisplayId> displayIds{PhysicalDisplayId::fromPort(42u)}; in TEST_F() local
141 mPowerAdvisor->setDisplays(displayIds); in TEST_F()
154 mPowerAdvisor->setDisplays(displayIds); in TEST_F()
155 mPowerAdvisor->setHwcValidateTiming(displayIds[0], startTime + 1000000, startTime + 1500000); in TEST_F()
156 mPowerAdvisor->setHwcPresentTiming(displayIds[0], startTime + 2000000, startTime + 3000000); in TEST_F()
[all …]
/frameworks/native/libs/gui/include/private/gui/
DComposerServiceAIDL.h57 std::vector<int64_t> displayIds; in getInternalDisplayId() local
58 binder::Status status = mComposerService->getPhysicalDisplayIds(&displayIds); in getInternalDisplayId()
59 return (!status.isOk() || displayIds.empty()) in getInternalDisplayId()
62 static_cast<uint64_t>(displayIds.front())); in getInternalDisplayId()
/frameworks/base/core/java/android/hardware/display/
DDisplayManager.java564 final int[] displayIds = mGlobal.getDisplayIds(includeDisabled); in getDisplays() local
568 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_WIFI); in getDisplays()
569 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_EXTERNAL); in getDisplays()
570 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_OVERLAY); in getDisplays()
571 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_VIRTUAL); in getDisplays()
572 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_INTERNAL); in getDisplays()
575 addAllDisplaysLocked(mTempDisplays, displayIds); in getDisplays()
584 private void addAllDisplaysLocked(ArrayList<Display> displays, int[] displayIds) { in addAllDisplaysLocked() argument
585 for (int i = 0; i < displayIds.length; i++) { in addAllDisplaysLocked()
586 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/); in addAllDisplaysLocked()
[all …]
DDisplayManagerGlobal.java228 int[] displayIds = mDm.getDisplayIds(includeDisabled); in getDisplayIds() local
230 mDisplayIdCache = displayIds; in getDisplayIds()
233 return displayIds; in getDisplayIds()
/frameworks/native/services/automotive/display/
DAutomotiveDisplayProxyService.cpp148 auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in getDisplayIdList() local
149 ids.resize(displayIds.size()); in getDisplayIdList()
150 for (auto i = 0; i < displayIds.size(); ++i) { in getDisplayIdList()
151 ids[i] = displayIds[i].value; in getDisplayIdList()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBatteryExternalStatsWorkerTest.java83 final int[] displayIds = new int[numDisplays]; in testTargetedEnergyConsumerQuerying() local
85 displayIds[i] = mPowerStatsInternal.addEnergyConsumer( in testTargetedEnergyConsumerQuerying()
87 tempAllIds.add(displayIds[i]); in testTargetedEnergyConsumerQuerying()
88 mPowerStatsInternal.incrementEnergyConsumption(displayIds[i], 12345 + i); in testTargetedEnergyConsumerQuerying()
90 Arrays.sort(displayIds); in testTargetedEnergyConsumerQuerying()
144 assertArrayEquals(displayIds, receivedDisplayIds); in testTargetedEnergyConsumerQuerying()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowListenerController.java45 final IntArray displayIds = new IntArray(); in registerListener() local
47 displayIds.add(displayContent.mDisplayId); in registerListener()
49 return displayIds.toArray(); in registerListener()
DAccessibilityController.java415 void onSomeWindowResizedOrMoved(int... displayIds) { in onSomeWindowResizedOrMoved() argument
416 onSomeWindowResizedOrMovedWithCallingUid(Binder.getCallingUid(), displayIds); in onSomeWindowResizedOrMoved() local
419 void onSomeWindowResizedOrMovedWithCallingUid(int callingUid, int... displayIds) { in onSomeWindowResizedOrMovedWithCallingUid() argument
423 "displayIds={" + displayIds.toString() + "}", "".getBytes(), callingUid); in onSomeWindowResizedOrMovedWithCallingUid()
426 for (int i = 0; i < displayIds.length; i++) { in onSomeWindowResizedOrMovedWithCallingUid()
428 mWindowsForAccessibilityObserver.get(displayIds[i]); in onSomeWindowResizedOrMovedWithCallingUid()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableImpl.java189 public void setDisplayAllowListForUser(@UserIdInt int userId, int[] displayIds) { in setDisplayAllowListForUser() argument
192 userId, Arrays.toString(displayIds)); in setDisplayAllowListForUser()
195 for (int displayId : displayIds) { in setDisplayAllowListForUser()
212 if (displayIds.length > 0) { in setDisplayAllowListForUser()
213 mDefaultDisplayForProfileUser.put(userId, displayIds[0]); in setDisplayAllowListForUser()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayInsetsControllerTest.java156 List<Integer> displayIds = mDisplayIdCaptor.getAllValues(); in addDisplay() local
159 for (int i = 0; i < displayIds.size(); i++) { in addDisplay()
160 mInsetsControllersByDisplayId.put(displayIds.get(i), insetsControllers.get(i)); in addDisplay()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayController.java79 int[] displayIds = mWmService.registerDisplayWindowListener(mDisplayContainerListener); in onInit() local
80 for (int i = 0; i < displayIds.length; i++) { in onInit()
81 onDisplayAdded(displayIds[i]); in onInit()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java290 final int[] displayIds = bs.getDisplayIds(/* includeDisabled= */ true); in testPhysicalViewports() local
291 final int size = displayIds.length; in testPhysicalViewports()
299 DisplayInfo info = bs.getDisplayInfo(displayIds[i]); in testPhysicalViewports()
318 Arrays.sort(displayIds); in testPhysicalViewports()
326 assertTrue(Arrays.binarySearch(displayIds, viewport.displayId) >= 0); in testPhysicalViewports()
1208 final int[] displayIds = displayManagerBinderService.getDisplayIds( in getDisplayIdForDisplayDevice() local
1210 assertTrue(displayIds.length > 0); in getDisplayIdForDisplayDevice()
1212 for (int i = 0; i < displayIds.length; i++) { in getDisplayIdForDisplayDevice()
1213 DisplayDeviceInfo ddi = displayManager.getDisplayDeviceInfoInternal(displayIds[i]); in getDisplayIdForDisplayDevice()
1215 displayId = displayIds[i]; in getDisplayIdForDisplayDevice()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h64 MOCK_METHOD(void, setDisplays, (std::vector<DisplayId> & displayIds), (override));
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplayMapper.java260 int[] displayIds = new int[count]; in getDisplayIdsLocked() local
267 displayIds[n++] = mLogicalDisplays.keyAt(i); in getDisplayIdsLocked()
272 displayIds = Arrays.copyOfRange(displayIds, 0, n); in getDisplayIdsLocked()
274 return displayIds; in getDisplayIdsLocked()
DDisplayModeDirector.java2691 final int[] displayIds = mHbmMode.copyKeys(); in onDeviceConfigRefreshRateInHbmChanged() local
2692 if (displayIds != null) { in onDeviceConfigRefreshRateInHbmChanged()
2693 for (int id : displayIds) { in onDeviceConfigRefreshRateInHbmChanged()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h66 MOCK_METHOD(void, setDisplays, (std::vector<DisplayId> & displayIds), (override));
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DCarServiceHelperServiceUpdatableImpl.java280 public void setDisplayAllowlistForUser(int userId, int[] displayIds) { in setDisplayAllowlistForUser() argument
281 mCarLaunchParamsModifierUpdatable.setDisplayAllowListForUser(userId, displayIds); in setDisplayAllowlistForUser()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp341 void PowerAdvisor::setDisplays(std::vector<DisplayId>& displayIds) { in setDisplays() argument
342 mDisplayIds = displayIds; in setDisplays()
393 std::vector<DisplayId>&& displayIds = in estimateWorkDuration()
398 for (DisplayId displayId : displayIds) { in estimateWorkDuration()
DPowerAdvisor.h92 virtual void setDisplays(std::vector<DisplayId>& displayIds) = 0;
153 void setDisplays(std::vector<DisplayId>& displayIds) override;
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java720 int[] displayIds = WindowManagerGlobal.getWindowManagerService() in onBootPhase() local
722 for (int i = 0; i < displayIds.length; i++) { in onBootPhase()
723 mDisplayWindowListener.onDisplayAdded(displayIds[i]); in onBootPhase()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTaskManagerServiceTests.java205 int[] displayIds = mAtm.mWindowManager.registerDisplayWindowListener(listener); in testDisplayWindowListener() local
206 for (int i = 0; i < displayIds.length; i++) { in testDisplayWindowListener()
207 added.add(displayIds[i]); in testDisplayWindowListener()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp631 const auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in parseOrientationProperty() local
632 if (displayIds.size() == 0) { in parseOrientationProperty()
635 const auto displayId = displayIds[0]; in parseOrientationProperty()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp592 std::vector<PhysicalDisplayId> displayIds; in getPhysicalDisplayIdsLocked() local
593 displayIds.reserve(mPhysicalDisplayTokens.size()); in getPhysicalDisplayIdsLocked()
596 displayIds.push_back(defaultDisplayId); in getPhysicalDisplayIdsLocked()
600 displayIds.push_back(id); in getPhysicalDisplayIdsLocked()
604 return displayIds; in getPhysicalDisplayIdsLocked()
2192 std::vector<DisplayId> displayIds; in composite() local
2195 displayIds.push_back(display->getId()); in composite()
2197 mPowerAdvisor->setDisplays(displayIds); in composite()
7440 std::vector<int64_t> displayIds; in getPhysicalDisplayIds() local
7441 displayIds.reserve(physicalDisplayIds.size()); in getPhysicalDisplayIds()
[all …]
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1050 const auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in nativeGetPhysicalDisplayIds() local
1051 jlongArray array = env->NewLongArray(displayIds.size()); in nativeGetPhysicalDisplayIds()
1057 if (displayIds.empty()) { in nativeGetPhysicalDisplayIds()
1062 for (size_t i = 0; i < displayIds.size(); ++i) { in nativeGetPhysicalDisplayIds()
1063 values[i] = static_cast<jlong>(displayIds[i].value); in nativeGetPhysicalDisplayIds()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1069 std::vector<int64_t> displayIds; in getPhysicalDisplayIds() local
1072 ComposerServiceAIDL::getComposerService()->getPhysicalDisplayIds(&displayIds); in getPhysicalDisplayIds()
1074 physicalDisplayIds.reserve(displayIds.size()); in getPhysicalDisplayIds()
1075 for (auto item : displayIds) { in getPhysicalDisplayIds()