Home
last modified time | relevance | path

Searched refs:TEST_USER (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayApplierTest.java89 private static final UserHandle TEST_USER = UserHandle.of(5); field in ThemeOverlayApplierTest
181 mManager.applyCurrentUserOverlays(ALL_CATEGORIES_MAP, null, TEST_USER.getIdentifier(), in allCategoriesSpecified_allEnabledExclusively()
187 eq(TEST_USER.getIdentifier())); in allCategoriesSpecified_allEnabledExclusively()
193 mManager.applyCurrentUserOverlays(ALL_CATEGORIES_MAP, null, TEST_USER.getIdentifier(), in allCategoriesSpecified_sysuiCategoriesAlsoAppliedToSysuiUser()
210 mManager.applyCurrentUserOverlays(ALL_CATEGORIES_MAP, null, TEST_USER.getIdentifier(), in allCategoriesSpecified_enabledForAllUserHandles()
215 eq(TEST_USER.getIdentifier())); in allCategoriesSpecified_enabledForAllUserHandles()
227 mManager.applyCurrentUserOverlays(ALL_CATEGORIES_MAP, null, TEST_USER.getIdentifier(), in enablesOverlays_onlyIfItExistsForUser()
232 eq(TEST_USER.getIdentifier())); in enablesOverlays_onlyIfItExistsForUser()
242 TEST_USER.getIdentifier(), TEST_USER_HANDLES, null); in applyCurrentUserOverlays_createsPendingOverlays()
255 mManager.applyCurrentUserOverlays(categoryToPackage, null, TEST_USER.getIdentifier(), in someCategoriesSpecified_specifiedEnabled_unspecifiedDisabled()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/colorcorrection/domain/interactor/
DColorCorrectionTileDataInteractorTest.kt49 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>()
58 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
61 colorCorrectionRepository.setIsEnabled(true, TEST_USER) in <lambda>()
64 colorCorrectionRepository.setIsEnabled(false, TEST_USER) in <lambda>()
72 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/inversion/domain/interactor/
DColorInversionTileDataInteractorTest.kt49 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>()
58 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
61 colorInversionRepository.setIsEnabled(true, TEST_USER) in <lambda>()
64 colorInversionRepository.setIsEnabled(false, TEST_USER) in <lambda>()
72 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileDataInteractorTest.kt93 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in <lambda>()
104 collectLastValue(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
120 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
129 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
145 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
161 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
177 collectLastValue(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
199 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/base/interactor/
DDisabledByPolicyInteractorTest.kt81 assertThat(underTest.isDisabled(TEST_USER, TEST_RESTRICTION)) in testEnabledWhenNoAdmin()
88 val admin = EnforcedAdmin(TEST_COMPONENT_NAME, TEST_USER) in testDisabledWhenAdminWithNoRestrictions()
94 underTest.isDisabled(TEST_USER, TEST_RESTRICTION) in testDisabledWhenAdminWithNoRestrictions()
106 assertThat(underTest.isDisabled(TEST_USER, TEST_RESTRICTION)) in testEnabledWhenAdminWithRestrictions()
138 val TEST_USER = UserHandle(1) constant
139 val ADMIN = EnforcedAdmin(TEST_COMPONENT_NAME, TEST_USER)
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/flashlight/domain/interactor/
DFlashlightTileDataInteractorTest.kt58 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
67 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
75 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
100 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
115 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DUserDataPreparerTest.java61 private static final UserInfo TEST_USER = new UserInfo(); field in UserDataPreparerTest
78 TEST_USER.id = TEST_USER_ID; in setup()
79 TEST_USER.serialNumber = TEST_USER_SERIAL; in setup()
100 mUserDataPreparer.prepareUserData(TEST_USER, StorageManager.FLAG_STORAGE_DE); in testPrepareUserData_De()
117 mUserDataPreparer.prepareUserData(TEST_USER, StorageManager.FLAG_STORAGE_CE); in testPrepareUserData_Ce()
130 TEST_USER.lastLoggedInTime = 0; in testPrepareUserData_forNewUser_destroysOnFailure()
134 mUserDataPreparer.prepareUserData(TEST_USER, StorageManager.FLAG_STORAGE_CE); in testPrepareUserData_forNewUser_destroysOnFailure()
141 TEST_USER.lastLoggedInTime = System.currentTimeMillis(); in testPrepareUserData_forExistingUser_doesNotDestroyOnFailure()
145 mUserDataPreparer.prepareUserData(TEST_USER, StorageManager.FLAG_STORAGE_CE); in testPrepareUserData_forExistingUser_doesNotDestroyOnFailure()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/work/domain/interactor/
DWorkModeTileDataInteractorTest.kt44 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
60 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in <lambda>()
79 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in <lambda>()
91 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/alarm/domain/interactor/
DAlarmTileDataInteractorTest.kt64 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
91 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in <lambda>()
110 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in <lambda>()
122 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>()
129 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileDataInteractorTest.kt51 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
60 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
75 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/airplate/domain/interactor/
DAirplaneModeTileDataInteractorTest.kt51 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>()
60 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
75 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationPromptControllerTest.java62 private static final int TEST_USER = 0; field in WindowMagnificationPromptControllerTest
89 mTestableContext, TEST_USER); in setUp()
127 ACCESSIBILITY_SHOW_WINDOW_MAGNIFICATION_PROMPT, -1, TEST_USER)).isEqualTo(0); in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver()
171 assertThat(userHandleCaptor.getValue().getIdentifier()).isEqualTo(TEST_USER); in verifyLaunchMagnificationSettings()
183 enable ? 1 : 0, TEST_USER); in setWindowMagnificationPromptSettings()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/location/interactor/
DLocationTileDataInteractorTest.kt59 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
68 collectValues(underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest))) in <lambda>()
83 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/reducebrightness/domain/interactor/
DReduceBrightColorsTileDataInteractorTest.kt59 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in alwaysAvailable()
70 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in dataMatchesTheRepository()
85 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/screenrecord/domain/interactor/
DScreenRecordTileDataInteractorTest.kt55 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>()
65 underTest.tileData(TEST_USER, flowOf(DataUpdateTrigger.InitialRequest)) in dataMatchesRepo()
89 val TEST_USER = UserHandle.of(1)!! constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/
DBrightnessPolicyEnforcementInteractorTest.kt97 user = UserHandle.of(TEST_USER) in startRestrictionDialog()
124 val TEST_USER = 10 constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileStatePersisterTest.kt49 private const val TEST_USER = 0 constant
50 private val KEY = TileServiceKey(TEST_COMPONENT, TEST_USER)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java176 private static final int TEST_USER = 11; field in ActivityManagerServiceTest
926 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION1, TEST_USER), in testBroadcastStickyIntent()
929 assertNull(mAms.getStickyBroadcastsForTest(TEST_ACTION2, TEST_USER)); in testBroadcastStickyIntent()
930 assertNull(mAms.getStickyBroadcastsForTest(TEST_ACTION3, TEST_USER)); in testBroadcastStickyIntent()
933 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION1, TEST_USER), in testBroadcastStickyIntent()
936 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION2, TEST_USER), in testBroadcastStickyIntent()
939 assertNull(mAms.getStickyBroadcastsForTest(TEST_ACTION3, TEST_USER)); in testBroadcastStickyIntent()
942 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION1, TEST_USER), in testBroadcastStickyIntent()
945 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION2, TEST_USER), in testBroadcastStickyIntent()
948 assertStickyBroadcasts(mAms.getStickyBroadcastsForTest(TEST_ACTION3, TEST_USER), in testBroadcastStickyIntent()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java135 private static final UserInfo TEST_USER = field in TrustManagerServiceTest
205 when(mUserManager.getAliveUsers()).thenReturn(List.of(TEST_USER)); in setUp()
207 when(mUserManager.getUserInfo(TEST_USER_ID)).thenReturn(TEST_USER); in setUp()
742 mService.onUserSwitching(null, new SystemService.TargetUser(TEST_USER)); in setupStrongAuthTracker()