/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerServiceInjectorTest.java | 75 int [] displayIds = mInjector.getDisplayIdsForStartingVisibleBackgroundUsers(); in testGetDisplayIdsForStartingBackgroundUsers_notSupported() local 78 .that(displayIds).isNull(); in testGetDisplayIdsForStartingBackgroundUsers_notSupported() 86 int[] displayIds = mInjector.getDisplayIdsForStartingVisibleBackgroundUsers(); in testGetDisplayIdsForStartingBackgroundUsers_noDisplaysAtAll() local 89 .that(displayIds).isNull(); in testGetDisplayIdsForStartingBackgroundUsers_noDisplaysAtAll() 97 int[] displayIds = mInjector.getDisplayIdsForStartingVisibleBackgroundUsers(); in testGetDisplayIdsForStartingBackgroundUsers_defaultDisplayOnly() local 100 .that(displayIds).isNull(); in testGetDisplayIdsForStartingBackgroundUsers_defaultDisplayOnly() 108 int[] displayIds = mInjector.getDisplayIdsForStartingVisibleBackgroundUsers(); in testGetDisplayIdsForStartingBackgroundUsers_noDefaultDisplay() local 111 .that(displayIds).isNull(); in testGetDisplayIdsForStartingBackgroundUsers_noDefaultDisplay() 119 int[] displayIds = mInjector.getDisplayIdsForStartingVisibleBackgroundUsers(); in testGetDisplayIdsForStartingBackgroundUsers_mixed() local 122 .that(displayIds).isNotNull(); in testGetDisplayIdsForStartingBackgroundUsers_mixed() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | PowerAdvisorTest.cpp | 195 std::vector<DisplayId> displayIds{PhysicalDisplayId::fromPort(42u), GpuVirtualDisplayId(0), in testGpuScenario() local 197 mPowerAdvisor->setDisplays(displayIds); in testGpuScenario() 198 auto display1 = displayIds[0]; in testGpuScenario() 278 mPowerAdvisor->setHwcValidateTiming(displayIds[0], startTime, startTime); in testGpuScenario() 279 mPowerAdvisor->setHwcPresentTiming(displayIds[0], startTime, startTime); in testGpuScenario() 323 std::vector<DisplayId> displayIds{PhysicalDisplayId::fromPort(42u)}; in TEST_F() local 335 mPowerAdvisor->setDisplays(displayIds); in TEST_F() 350 mPowerAdvisor->setDisplays(displayIds); in TEST_F() 351 mPowerAdvisor->setHwcValidateTiming(displayIds[0], startTime + 1ms, startTime + 1500us); in TEST_F() 352 mPowerAdvisor->setHwcPresentTiming(displayIds[0], startTime + 2ms, startTime + 2500us); in TEST_F() [all …]
|
/frameworks/native/services/automotive/display/ |
D | AutomotiveDisplayProxyService.cpp | 148 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/core/java/com/android/server/wm/ |
D | DisplayWindowListenerController.java | 45 final IntArray displayIds = new IntArray(); in registerListener() local 47 displayIds.add(displayContent.mDisplayId); in registerListener() 49 return displayIds.toArray(); in registerListener()
|
D | AccessibilityController.java | 449 void onSomeWindowResizedOrMoved(int... displayIds) { in onSomeWindowResizedOrMoved() argument 450 onSomeWindowResizedOrMovedWithCallingUid(Binder.getCallingUid(), displayIds); in onSomeWindowResizedOrMoved() local 453 void onSomeWindowResizedOrMovedWithCallingUid(int callingUid, int... displayIds) { in onSomeWindowResizedOrMovedWithCallingUid() argument 457 "displayIds={" + Arrays.toString(displayIds) + "}", "".getBytes(), callingUid); in onSomeWindowResizedOrMovedWithCallingUid() 460 for (int i = 0; i < displayIds.length; i++) { in onSomeWindowResizedOrMovedWithCallingUid() 462 mWindowsForAccessibilityObserver.get(displayIds[i]); in onSomeWindowResizedOrMovedWithCallingUid()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_display_DisplayControl.cpp | 160 const auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in nativeGetPhysicalDisplayIds() local 161 ScopedLongArrayRW values(env, env->NewLongArray(displayIds.size())); in nativeGetPhysicalDisplayIds() 167 for (size_t i = 0; i < displayIds.size(); ++i) { in nativeGetPhysicalDisplayIds() 168 values[i] = static_cast<jlong>(displayIds[i].value); in nativeGetPhysicalDisplayIds()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryExternalStatsWorkerTest.java | 99 final int[] displayIds = new int[numDisplays]; in testTargetedEnergyConsumerQuerying() local 101 displayIds[i] = mPowerStatsInternal.addEnergyConsumer( in testTargetedEnergyConsumerQuerying() 103 tempAllIds.add(displayIds[i]); in testTargetedEnergyConsumerQuerying() 104 mPowerStatsInternal.incrementEnergyConsumption(displayIds[i], 12345 + i); in testTargetedEnergyConsumerQuerying() 106 Arrays.sort(displayIds); in testTargetedEnergyConsumerQuerying() 165 assertArrayEquals(displayIds, receivedDisplayIds); in testTargetedEnergyConsumerQuerying()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceTest.java | 121 final int[] displayIds = new int[]{7, 18}; in virtualDevice_getDisplayIds() local 122 when(mVirtualDevice.getDisplayIds()).thenReturn(displayIds); in virtualDevice_getDisplayIds() 123 assertThat(virtualDevice.getDisplayIds()).isEqualTo(displayIds); in virtualDevice_getDisplayIds()
|
D | VirtualDeviceManagerServiceTest.java | 1934 ArraySet<Integer> displayIds = mLocalService.getDisplayIdsForDevice(VIRTUAL_DEVICE_ID_2); in getDisplayIdsForDevice_invalidDeviceId_emptyResult() local 1935 assertThat(displayIds).isEmpty(); in getDisplayIdsForDevice_invalidDeviceId_emptyResult() 1940 ArraySet<Integer> displayIds = mLocalService.getDisplayIdsForDevice(VIRTUAL_DEVICE_ID_1); in getDisplayIdsForDevice_noDisplays_emptyResult() local 1941 assertThat(displayIds).isEmpty(); in getDisplayIdsForDevice_noDisplays_emptyResult() 1947 ArraySet<Integer> displayIds = mLocalService.getDisplayIdsForDevice(VIRTUAL_DEVICE_ID_1); in getDisplayIdsForDevice_oneDisplay_resultContainsCorrectDisplayId() local 1948 assertThat(displayIds).containsExactly(DISPLAY_ID_1); in getDisplayIdsForDevice_oneDisplay_resultContainsCorrectDisplayId() 1955 ArraySet<Integer> displayIds = mLocalService.getDisplayIdsForDevice(VIRTUAL_DEVICE_ID_1); in getDisplayIdsForDevice_twoDisplays_resultContainsCorrectDisplayIds() local 1956 assertThat(displayIds).containsExactly(DISPLAY_ID_1, DISPLAY_ID_2); in getDisplayIdsForDevice_twoDisplays_resultContainsCorrectDisplayIds()
|
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/ |
D | CarLaunchParamsModifierUpdatableImpl.java | 202 public void setDisplayAllowListForUser(@UserIdInt int userId, int[] displayIds) { in setDisplayAllowListForUser() argument 205 userId, Arrays.toString(displayIds)); in setDisplayAllowListForUser() 208 for (int displayId : displayIds) { in setDisplayAllowListForUser() 225 if (displayIds.length > 0) { in setDisplayAllowListForUser() 226 mDefaultDisplayForProfileUser.put(userId, displayIds[0]); in setDisplayAllowListForUser()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | DisplayInsetsControllerTest.java | 168 List<Integer> displayIds = mDisplayIdCaptor.getAllValues(); in addDisplay() local 171 for (int i = 0; i < displayIds.size(); i++) { in addDisplay() 172 mInsetsControllersByDisplayId.put(displayIds.get(i), insetsControllers.get(i)); in addDisplay()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/ |
D | RootTaskDisplayAreaOrganizer.java | 218 int[] displayIds = new int[mDisplayAreasInfo.size()]; in getDisplayIds() local 220 displayIds[i] = mDisplayAreasInfo.keyAt(i); in getDisplayIds() 222 return displayIds; in getDisplayIds()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManager.java | 686 final int[] displayIds = mGlobal.getDisplayIds(includeDisabled); in getDisplays() local 688 return getDisplays(displayIds, DisplayManager::isPresentationDisplay); in getDisplays() 690 return getDisplays(displayIds, DisplayManager::isRearDisplay); in getDisplays() 692 return getDisplays(displayIds, Objects::nonNull); in getDisplays() 697 private Display[] getDisplays(int[] displayIds, Predicate<Display> predicate) { in getDisplays() argument 699 for (int displayId : displayIds) { in getDisplays()
|
D | DisplayManagerGlobal.java | 258 int[] displayIds = mDm.getDisplayIds(includeDisabled); in getDisplayIds() local 260 mDisplayIdCache = displayIds; in getDisplayIds() 263 return displayIds; in getDisplayIds()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayController.java | 80 int[] displayIds = mWmService.registerDisplayWindowListener(mDisplayContainerListener); in onInit() local 81 for (int i = 0; i < displayIds.length; i++) { in onInit() 82 onDisplayAdded(displayIds[i]); in onInit()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserVisibilityMediator.java | 864 int[] displayIds = new int[mExtraDisplaysAssignedToUsers.size() + 1]; in getDisplaysAssignedToUser() local 865 displayIds[count++] = mainDisplayId; in getDisplaysAssignedToUser() 868 displayIds[count++] = mExtraDisplaysAssignedToUsers.keyAt(i); in getDisplaysAssignedToUser() 872 if (displayIds.length == count) { in getDisplaysAssignedToUser() 873 return displayIds; in getDisplaysAssignedToUser() 881 System.arraycopy(displayIds, 0, results, 0, count); in getDisplaysAssignedToUser()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockPowerAdvisor.h | 66 MOCK_METHOD(void, setDisplays, (std::vector<DisplayId> & displayIds), (override));
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockPowerAdvisor.h | 64 MOCK_METHOD(void, setDisplays, (std::vector<DisplayId> & displayIds), (override));
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 552 void PowerAdvisor::setDisplays(std::vector<DisplayId>& displayIds) { in setDisplays() argument 553 mDisplayIds = displayIds; in setDisplays() 593 std::vector<DisplayId>&& displayIds = in estimateWorkDuration() 599 for (DisplayId displayId : displayIds) { in estimateWorkDuration()
|
D | PowerAdvisor.h | 101 virtual void setDisplays(std::vector<DisplayId>& displayIds) = 0; 146 void setDisplays(std::vector<DisplayId>& displayIds) override;
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplayMapper.java | 323 int[] displayIds = new int[count]; in getDisplayIdsLocked() local 330 displayIds[n++] = mLogicalDisplays.keyAt(i); in getDisplayIdsLocked() 335 displayIds = Arrays.copyOfRange(displayIds, 0, n); in getDisplayIdsLocked() 337 return displayIds; in getDisplayIdsLocked()
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | CarServiceHelperServiceUpdatableImpl.java | 342 public void setDisplayAllowlistForUser(int userId, int[] displayIds) { in setDisplayAllowlistForUser() argument 343 mCarLaunchParamsModifierUpdatable.setDisplayAllowListForUser(userId, displayIds); in setDisplayAllowlistForUser()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | VirtualDeviceImpl.java | 957 final int[] displayIds = getDisplayIds(); 958 for (int i = 0; i < displayIds.length; ++i) { 959 mInputController.setShowPointerIcon(showPointerIcon, displayIds[i]); 1377 int[] displayIds = new int[size]; 1379 displayIds[i] = mVirtualDisplays.keyAt(i); 1381 return displayIds;
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksController.kt | 586 val displayIds = rootTaskDisplayAreaOrganizer.displayIds.sorted() in <lambda>() constant 588 var newDisplayId = displayIds.firstOrNull { displayId -> displayId > task.displayId } in <lambda>() 591 newDisplayId = displayIds.firstOrNull { displayId -> displayId < task.displayId } in <lambda>()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 529 final int[] displayIds = bs.getDisplayIds(/* includeDisabled= */ true); 530 final int size = displayIds.length; 538 DisplayInfo info = bs.getDisplayInfo(displayIds[i]); 557 Arrays.sort(displayIds); 565 assertTrue(Arrays.binarySearch(displayIds, viewport.displayId) >= 0); 3275 final int[] displayIds = displayManagerBinderService.getDisplayIds( 3277 assertTrue(displayIds.length > 0); 3279 for (int i = 0; i < displayIds.length; i++) { 3280 DisplayDeviceInfo ddi = displayManager.getDisplayDeviceInfoInternal(displayIds[i]); 3282 displayId = displayIds[i];
|