/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
H A D | VotesStorageTest.java | 38 private static final int DISPLAY_ID = 100; field in VotesStorageTest 59 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE); in addsVoteToStorage() 61 SparseArray<Vote> votes = mVotesStorage.getVotes(DISPLAY_ID); in addsVoteToStorage() 70 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE); in notifiesVoteListenerIfVoteAdded() 78 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE); in addsAnotherVoteToStorageWithDifferentPriority() 82 SparseArray<Vote> votes = mVotesStorage.getVotes(DISPLAY_ID); in addsAnotherVoteToStorageWithDifferentPriority() 92 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE); in replacesVoteInStorageForSamePriority() 94 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE_OTHER); in replacesVoteInStorageForSamePriority() 96 SparseArray<Vote> votes = mVotesStorage.getVotes(DISPLAY_ID); in replacesVoteInStorageForSamePriority() 105 mVotesStorage.updateVote(DISPLAY_ID, PRIORITY, VOTE); in removesVoteInStorageForSamePriority() [all …]
|
H A D | DisplayModeDirectorTest.java | 289 votesByDisplay.put(DISPLAY_ID, votes); in testVotingWithFloatingPointErrors() 340 votesByDisplay.put(DISPLAY_ID, votes); in testFlickerHasLowerPriorityThanUserAndRangeIsSingle() 421 votesByDisplay.put(DISPLAY_ID, votes); 505 votesByDisplay.put(DISPLAY_ID, votes); in testAppRequestRefreshRateRange() 651 votesByDisplay.put(DISPLAY_ID, votes); 697 votesByDisplay.put(DISPLAY_ID, votes); 738 votesByDisplay.put(DISPLAY_ID, votes); 780 votesByDisplay.put(DISPLAY_ID, votes); 875 votesByDisplay.put(DISPLAY_ID, votes); 1429 votesByDisplay.put(DISPLAY_ID, votes); [all …]
|
H A D | SkinThermalStatusObserverTest.java | 50 private static final int DISPLAY_ID = 1; field in SkinThermalStatusObserverTest 94 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifyWithDefaultVotesForCritical() 122 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifyWithDefaultVotesChangeFromCriticalToSevere() 129 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifyWithDefaultVotesChangeFromCriticalToSevere() 137 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifyWithDefaultVotesForSevere() 143 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifyWithDefaultVotesForSevere() 154 config.put(DISPLAY_ID, displayConfig); in testNotifiesWithConfigVotes() 158 mObserver.onDisplayChanged(DISPLAY_ID); in testNotifiesWithConfigVotes() 159 assertEquals(0, mStorage.getVotes(DISPLAY_ID).size()); in testNotifiesWithConfigVotes() 184 assertEquals(1, mStorage.getVotes(DISPLAY_ID).size()); in testDisplayAdded() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/disableflags/ |
H A D | DisableStateTrackerTest.kt | 89 underTest.startTracking(commandQueue, DISPLAY_ID) 104 underTest.startTracking(commandQueue, DISPLAY_ID) 117 underTest.startTracking(commandQueue, DISPLAY_ID) 132 underTest.startTracking(commandQueue, DISPLAY_ID) 147 underTest.startTracking(commandQueue, DISPLAY_ID) 167 underTest.startTracking(commandQueue, DISPLAY_ID) 171 DISPLAY_ID, 180 DISPLAY_ID, 189 DISPLAY_ID, 202 DISPLAY_ID, [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
H A D | CompatUIControllerTest.java | 82 private static final int DISPLAY_ID = 0; field in CompatUIControllerTest 129 doReturn(DISPLAY_ID).when(mMockCompatLayout).getDisplayId(); in setUp() 300 mController.onDisplayAdded(DISPLAY_ID); in testOnDisplayAdded() 301 mController.onDisplayAdded(DISPLAY_ID + 1); in testOnDisplayAdded() 309 mController.onDisplayAdded(DISPLAY_ID); in testOnDisplayRemoved() 314 mController.onDisplayRemoved(DISPLAY_ID + 1); in testOnDisplayRemoved() 322 mController.onDisplayRemoved(DISPLAY_ID); in testOnDisplayRemoved() 350 mController.onDisplayAdded(DISPLAY_ID); in testInsetsChanged() 499 final TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, in testRestartLayoutRecreatedIfNeeded() 514 final TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, in testRestartLayoutNotRecreatedIfNotNeeded() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/disableflags/data/repository/ |
H A D | DisableFlagsRepositoryTest.kt | 69 DISPLAY_ID, 101 DISPLAY_ID, 113 val wrongDisplayId = DISPLAY_ID + 10 141 DISPLAY_ID, 153 val wrongDisplayId = DISPLAY_ID + 10 181 DISPLAY_ID, 222 DISPLAY_ID, 237 DISPLAY_ID, 246 DISPLAY_ID, 255 DISPLAY_ID, [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | ProxyManagerTest.java | 159 registerProxy(DISPLAY_ID); in registerProxy_always_connectsServiceClient() 166 registerProxy(DISPLAY_ID); in unregisterProxy_always_stopsTrackingDisplay() 179 registerProxy(DISPLAY_ID); in unregisterProxy_deviceAssociatedWithSingleDisplay_stopsTrackingDevice() 193 registerProxy(DISPLAY_ID); in unregisterProxy_deviceAssociatedWithMultipleDisplays_tracksRemainingProxy() 208 registerProxy(DISPLAY_ID); in testOnProxyChanged_always_propagatesChange() 226 registerProxy(DISPLAY_ID); in testGetFirstDeviceForUid_streamedAppQueriesState_getsHostDeviceId() 237 registerProxy(DISPLAY_ID); in testGetClientState_proxyWantsTouchExploration_returnsTouchExplorationEnabled() 298 registerProxy(DISPLAY_ID); in testGetClientState_always_returnsAccessibilityEnabled() 311 registerProxy(DISPLAY_ID); in testCanRetrieveInteractiveWindows_atLeastOneProxyWantsWindows_returnsTrue() 326 registerProxy(DISPLAY_ID); in testGetServiceInterfacesForInterrupt_defaultProxy_returnsProxyInterface() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | UdfpsDisplayModeTest.java | 48 private static final int DISPLAY_ID = 0; field in UdfpsDisplayModeTest 70 when(contextSpy.getDisplayId()).thenReturn(DISPLAY_ID); in setUp() 86 verify(mDisplayCallback).onRequestEnabled(eq(DISPLAY_ID)); in roundTrip() 94 verify(mDisplayCallback).onRequestDisabled(eq(DISPLAY_ID)); in roundTrip() 103 verify(mDisplayCallback).onRequestEnabled(eq(DISPLAY_ID)); in mustNotEnableMoreThanOnce() 120 verify(mDisplayCallback).onRequestEnabled(eq(DISPLAY_ID)); in mustNotDisableMoreThanOnce() 128 verify(mDisplayCallback).onRequestDisabled(eq(DISPLAY_ID)); in mustNotDisableMoreThanOnce()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
H A D | ScreenshotPolicyImplTest.kt | 43 private const val DISPLAY_ID = 100 76 val info = policy.findPrimaryContent(DISPLAY_ID) 91 val info = policy.findPrimaryContent(DISPLAY_ID) 103 val info = policy.findPrimaryContent(DISPLAY_ID) 118 val info = policy.findPrimaryContent(DISPLAY_ID) 146 displayId = DISPLAY_ID 170 displayId = DISPLAY_ID 194 displayId = DISPLAY_ID 218 displayId = DISPLAY_ID
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/window/ |
H A D | StatusBarWindowStateControllerTest.kt | 46 controller = StatusBarWindowStateController(DISPLAY_ID, commandQueue) 58 callback.setWindowState(DISPLAY_ID + 1, WINDOW_STATUS_BAR, WINDOW_STATE_HIDDEN) 68 callback.setWindowState(DISPLAY_ID, WINDOW_NAVIGATION_BAR, WINDOW_STATE_HIDDEN) 78 callback.setWindowState(DISPLAY_ID, WINDOW_STATUS_BAR, WINDOW_STATE_SHOWING) 89 callback.setWindowState(DISPLAY_ID, WINDOW_STATUS_BAR, newState) 102 private const val DISPLAY_ID = 10
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
H A D | TransitionInfoBuilder.java | 33 static final int DISPLAY_ID = 0; field in TransitionInfoBuilder 48 mInfo.addRootLeash(DISPLAY_ID, createMockSurface(true /* valid */), 0, 0); in TransitionInfoBuilder() 72 change.setDisplayId(DISPLAY_ID, DISPLAY_ID); in addChange()
|
/aosp14/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
H A D | VibratorManagerServicePermissionTest.java | 53 private static final int DISPLAY_ID = 1; field in VibratorManagerServicePermissionTest 110 mVibratorService.vibrate(Process.myUid(), DISPLAY_ID, PACKAGE_NAME, EFFECT, ATTRS, in testVibrateWithoutPermissionFails() local 120 mVibratorService.vibrate(Process.myUid(), DISPLAY_ID, PACKAGE_NAME, EFFECT, ATTRS, in testVibrateWithVibratePermissionAndSameProcessUidIsAllowed() local 130 mVibratorService.vibrate(Process.SYSTEM_UID, DISPLAY_ID, "android", EFFECT, ATTRS, in testVibrateWithVibratePermissionAndDifferentUidsFails() 140 mVibratorService.vibrate(Process.SYSTEM_UID, DISPLAY_ID, "android", EFFECT, ATTRS, in testVibrateWithAllPermissionsAndDifferentUidsIsAllowed()
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | WakelockControllerTest.java | 42 private static final int DISPLAY_ID = 1; field in WakelockControllerTest 52 mWakelockController = new WakelockController(DISPLAY_ID, mDisplayPowerCallbacks); in before() 58 "[" + DISPLAY_ID + "]unfinished business"); in validateSuspendBlockerIdsAreExpected() local 60 "[" + DISPLAY_ID + "]on state changed"); in validateSuspendBlockerIdsAreExpected() local 62 "[" + DISPLAY_ID + "]prox positive"); in validateSuspendBlockerIdsAreExpected() local 64 "[" + DISPLAY_ID + "]prox negative"); in validateSuspendBlockerIdsAreExpected() local 66 "[" + DISPLAY_ID + "]prox debounce"); in validateSuspendBlockerIdsAreExpected() local
|
H A D | ColorFadeTest.java | 43 private static final int DISPLAY_ID = 123; field in ColorFadeTest 63 when(mDisplayManagerInternalMock.getDisplayInfo(eq(DISPLAY_ID))).thenReturn(null); in testPrepareColorFadeForInvalidDisplay() 64 ColorFade colorFade = new ColorFade(DISPLAY_ID); in testPrepareColorFadeForInvalidDisplay()
|
H A D | DisplayPowerControllerTest.java | 93 private static final int DISPLAY_ID = Display.DEFAULT_DISPLAY; field in DisplayPowerControllerTest 95 private static final int FOLLOWER_DISPLAY_ID = DISPLAY_ID + 1; 166 mHolder = createDisplayPowerController(DISPLAY_ID, UNIQUE_ID); in setUp() 195 mHolder.dpc.getSuspendBlockerUnfinishedBusinessId(DISPLAY_ID)); in testReleaseProxSuspendBlockersOnExit() 197 mHolder.dpc.getSuspendBlockerProxDebounceId(DISPLAY_ID)); in testReleaseProxSuspendBlockersOnExit() 204 mHolder.dpc.getSuspendBlockerUnfinishedBusinessId(DISPLAY_ID)); in testReleaseProxSuspendBlockersOnExit() 206 mHolder.dpc.getSuspendBlockerProxDebounceId(DISPLAY_ID)); in testReleaseProxSuspendBlockersOnExit() 884 mHolder = createDisplayPowerController(DISPLAY_ID, UNIQUE_ID); in testAutoBrightnessEnabled_DisplayIsInDoze() 957 mHolder = createDisplayPowerController(DISPLAY_ID, UNIQUE_ID); in testAutoBrightnessDisabled_DisplayIsInDoze() 1011 mHolder = createDisplayPowerController(DISPLAY_ID, UNIQUE_ID); in testBrightnessNitsPersistWhenDisplayDeviceChanges() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/domain/interactor/ |
H A D | NotificationsInteractorTest.kt | 53 DISPLAY_ID, 67 DISPLAY_ID, 81 DISPLAY_ID, 97 const val DISPLAY_ID = 1
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/model/ |
H A D | SysUiStateTest.java | 43 private static final int DISPLAY_ID = DEFAULT_DISPLAY; field in SysUiStateTest 78 .commitUpdate(DISPLAY_ID); in addMultipleRemoveOne_setFlag() 98 .commitUpdate(DISPLAY_ID); in addMultipleRemoveOne_setFlags() 119 mFlagsContainer.commitUpdate(DISPLAY_ID); in setFlags()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/ |
H A D | TaskbarDelegateTest.kt | 34 val DISPLAY_ID = 0; regex 90 mTaskbarDelegate.init(DISPLAY_ID) 97 mTaskbarDelegate.init(DISPLAY_ID) 103 mTaskbarDelegate.init(DISPLAY_ID)
|
H A D | NavBarHelperTest.java | 78 private static final int DISPLAY_ID = 0; field in NavBarHelperTest 304 mNavBarHelper.setWindowState(DISPLAY_ID, WINDOW, STATE_ID); in saveMostRecentSysuiState() 309 mNavBarHelper.setWindowState(DISPLAY_ID, WINDOW, newState); in saveMostRecentSysuiState() 320 mNavBarHelper.setWindowState(DISPLAY_ID, WINDOW, STATE_ID); in ignoreNonNavbarSysuiState() 325 mNavBarHelper.setWindowState(DISPLAY_ID, WINDOW + 1, newState); in ignoreNonNavbarSysuiState()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ContentRecordingSessionTest.java | 47 private static final int DISPLAY_ID = 1; field in ContentRecordingSessionTest 53 session.setVirtualDisplayId(DISPLAY_ID); in testParcelable() 158 session.setVirtualDisplayId(DISPLAY_ID); in testEquals() 161 session2.setVirtualDisplayId(DISPLAY_ID); in testEquals()
|
H A D | VerifiedKeyEventTest.kt | 44 assertEquals(DISPLAY_ID, event.displayId) 134 private const val DISPLAY_ID = 2 145 return VerifiedKeyEvent(DEVICE_ID, EVENT_TIME_NANOS, SOURCE, DISPLAY_ID, ACTION,
|
H A D | VerifiedMotionEventTest.kt | 49 assertEquals(DISPLAY_ID, event.displayId) 156 private const val DISPLAY_ID = 2 166 return VerifiedMotionEvent(DEVICE_ID, EVENT_TIME_NANOS, SOURCE, DISPLAY_ID,
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
H A D | DragPositioningCallbackUtilityTest.kt | 66 whenever(mockDisplayController.getDisplayLayout(DISPLAY_ID)).thenReturn(mockDisplayLayout) 78 displayId = DISPLAY_ID 82 whenever(mockDisplay.displayId).thenAnswer { DISPLAY_ID } 216 private const val DISPLAY_ID = 1
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
H A D | BrightnessThermalClamperTest.java | 61 private static final String DISPLAY_ID = "displayId"; field in BrightnessThermalClamperTest 222 this(DISPLAY_ID, DisplayDeviceConfig.DEFAULT_ID, null); in TestThermalData() 226 this(DISPLAY_ID, DisplayDeviceConfig.DEFAULT_ID, data); in TestThermalData()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | AccessibilityManagerTest.java | 76 private static final int DISPLAY_ID = 22; field in AccessibilityManagerTest 242 AccessibilityDisplayProxy proxy = new MyAccessibilityProxy(DISPLAY_ID, infos); in testRegisterAccessibilityProxy() 259 final AccessibilityDisplayProxy proxy = new MyAccessibilityProxy(DISPLAY_ID, infos); in testUnregisterAccessibilityProxy()
|