Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTests.java51 private static final int USER = 0; field in OverlayManagerServiceImplTests
56 private static final int USER2 = USER + 1;
68 installAndAssert(overlay(OVERLAY, TARGET), USER, in testGetOverlayInfo() local
69 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfo()
72 final OverlayInfo oi = impl.getOverlayInfo(IDENTIFIER, USER); in testGetOverlayInfo()
76 assertEquals(oi.userId, USER); in testGetOverlayInfo()
81 installAndAssert(overlay(OVERLAY, TARGET), USER, in testGetOverlayInfosForTarget() local
82 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForTarget()
83 installAndAssert(overlay(OVERLAY2, TARGET), USER, in testGetOverlayInfosForTarget() local
84 Set.of(new PackageAndUser(OVERLAY2, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForTarget()
[all …]
DOverlayManagerServiceImplRebootTests.java41 private static final int USER = 0; field in OverlayManagerServiceImplRebootTests
50 addPackage(target(TARGET), USER); in alwaysInitializeAllPackages() local
51 addPackage(target(otherTarget), USER); in alwaysInitializeAllPackages() local
52 addPackage(overlay(OVERLAY, TARGET), USER); in alwaysInitializeAllPackages() local
55 Set.of(new PackageAndUser(TARGET, USER), in alwaysInitializeAllPackages()
56 new PackageAndUser(otherTarget, USER), in alwaysInitializeAllPackages()
57 new PackageAndUser(OVERLAY, USER)); in alwaysInitializeAllPackages()
59 assertEquals(allPackages, impl.updateOverlaysForUser(USER)); in alwaysInitializeAllPackages()
60 assertEquals(allPackages, impl.updateOverlaysForUser(USER)); in alwaysInitializeAllPackages()
66 addPackage(target(TARGET), USER); in testImmutableEnabledChange() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java44 private static final int USER = 0; field in AutoAddTrackerTest
57 mAutoTracker = new AutoAddTracker(mContext, USER); in testMigration()
75 mAutoTracker = new AutoAddTracker(mContext, USER); in testChangeFromBackup()
90 mAutoTracker = new AutoAddTracker(mContext, USER); in testSetAdded()
103 mAutoTracker = new AutoAddTracker(mContext, USER); in testPersist()
110 mAutoTracker = new AutoAddTracker(mContext, USER); in testPersist()
119 mAutoTracker = new AutoAddTracker(mContext, USER); in testIndependentUsers()
123 mAutoTracker = new AutoAddTracker(mContext, USER + 1); in testIndependentUsers()
129 mAutoTracker = new AutoAddTracker(mContext, USER); in testChangeUser()
133 mAutoTracker = new AutoAddTracker(mContext, USER + 1); in testChangeUser()
[all …]
DSecureSettingTest.kt42 private const val USER = 0 in <lambda>() constant
63 USER, in <lambda>()
85 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
95 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
106 secureSettings.putIntForUser("other", 2, USER) in <lambda>()
112 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
115 secureSettings.putIntForUser(TEST_SETTING, 4, USER) in <lambda>()
122 assertThat(secureSettings.getIntForUser(TEST_SETTING, USER)).isEqualTo(5) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt62 private val USER = UserHandle.of(0) constant
103 USER.identifier, in setUp()
120 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnFirstAdd()
132 val receiverData1 = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
133 val receiverData2 = ReceiverData(receiver2, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
143 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRemovingLastReceiverUnregisters()
155 val receiverData1 = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRemovingWhileOtherReceiversDoesntUnregister()
156 val receiverData2 = ReceiverData(receiver2, IntentFilter(ACTION1), directExecutor, USER) in testRemovingWhileOtherReceiversDoesntUnregister()
172 val receiverData = ReceiverData(receiver1, filter, directExecutor, USER) in testReceiverHasCategories()
182 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION2), directExecutor, USER) in testNotRegisteredWithWrongAction_throwsException()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt49 private const val USER = 10 constant
75 `when`(userContext.userId).thenReturn(USER) in setUp()
97 assertEquals(USER, tile.mSetting.currentUser) in testSettingWithCorrectUser()
102 tile.userSwitch(USER + 1) in testSettingChangesUser()
106 assertEquals(USER + 1, tile.mSetting.currentUser) in testSettingChangesUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DRollbackUnitTest.java60 private static final int USER = 0; field in RollbackUnitTest
83 Rollback rollback = new Rollback(rollbackId, file, sessionId, USER, INSTALLER); in newEmptyStagedRollbackDefaults()
96 Rollback rollback = new Rollback(rollbackId, file, -1, USER, INSTALLER); in newEmptyNonStagedRollbackDefaults()
105 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, in rollbackMadeAvailable()
124 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in deletedRollbackCannotBeMadeAvailable()
138 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in getPackageNamesAllAndJustApex()
152 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in includesPackagesAfterEnable()
180 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in snapshotWhenEnabling()
198 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in snapshotWhenAvailable()
219 Rollback rollback = new Rollback(123, new File("/test/testing"), -1, USER, INSTALLER); in snapshotWhenDeleted()
[all …]
DRollbackStoreTest.java45 private static final int USER = 0; field in RollbackStoreTest
132 ID, USER, INSTALLER, null, extensionVersions); in createNonStaged()
150 ID, 897, USER, INSTALLER, null, extensionVersions); in createStaged()
171 ID, USER, INSTALLER, null, extensionVersions); in saveAndLoadRollback()
221 ID, USER, INSTALLER, null, new SparseIntArray(0)); in loadFromJsonNoExtensionVersions()
271 ID, USER, INSTALLER, null, extensionVersions); in loadFromJson()
318 ID, USER, INSTALLER, null, new SparseIntArray(0)); in saveAndDelete()
334 ID, USER, INSTALLER, null, new SparseIntArray(0)); in saveToHistoryAndLoad()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java90 private static final int USER = 0; field in AutoTileManagerTest
127 when(mUserContext.getUser()).thenReturn(UserHandle.of(USER)); in setUp()
207 manager.changeUser(UserHandle.of(USER + 1)); in testChangeUserWhenNotInitializedThrows()
217 mAutoTileManager.changeUser(UserHandle.of(USER + 1)) in testChangeUserCallbacksStoppedAndStarted()
253 assertEquals(USER + 1, setting.getCurrentUser()); in testChangeUserCallbacksStoppedAndStarted()
265 mAutoTileManager.changeUser(UserHandle.of(USER + 1)) in testChangeUserSomeCallbacksNotAdded()
268 verify(mAutoAddTracker).changeUser(UserHandle.of(USER + 1)); in testChangeUserSomeCallbacksNotAdded()
303 assertEquals(USER + 1, setting.getCurrentUser()); in testChangeUserSomeCallbacksNotAdded()
309 assertEquals(USER, mAutoTileManager.getCurrentUserId()); in testGetCurrentUserId()
312 mAutoTileManager.changeUser(UserHandle.of(USER + 100)) in testGetCurrentUserId()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java52 Level.USER,
75 int USER = 1; field
143 return NetworkStatsAccess.Level.USER; in checkAccessLevel()
167 case NetworkStatsAccess.Level.USER: in isAccessibleToUser()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_element.java99 simpleElem.getDataKind() == DataKind.USER); in testJavaSide()
106 complexElem.getDataKind() == DataKind.USER); in testJavaSide()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_element.java97 simpleElem.getDataKind() == DataKind.USER); in testJavaSide()
104 complexElem.getDataKind() == DataKind.USER); in testJavaSide()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DTestConferenceEventPackageParser.java136 if (parser.getName().equals(ImsConferenceState.USER)) { in parseParticipant()
156 bundle.putString(ImsConferenceState.USER, user); in parseParticipant()
/frameworks/base/apct-tests/perftests/core/src/android/database/
DTableHelper.java153 public static TableHelper USER = new TableHelper() { field in TableHelper
221 USER,
DCursorWindowPerfTest.java88 loadRowFromCursorWindow(TableHelper.USER, false); in loadUser()
/frameworks/base/services/core/java/com/android/server/lights/
DLogicalLight.java45 public static final int BRIGHTNESS_MODE_USER = Brightness.USER;
/frameworks/base/cmds/incident_helper/testdata/
Dcpuinfo.txt9 PID TID USER PR NI[%CPU]S VIRT RES PCY CMD NAME
Dps.txt1 LABEL USER PID TID PPID VSZ RSS WCHAN ADDR …
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java67 private static final UserHandle USER = UserHandle.of(0); field in RankingHelperTest
306 PKG, PKG, 1, "summary", 0, 0, lowSummaryN, USER, in testGroupNotifications_highestIsProxy()
312 PKG, PKG, 1, "low", 0, 0, lowN, USER, in testGroupNotifications_highestIsProxy()
322 PKG, PKG, 1, "child", 0, 0, highChildN, USER, in testGroupNotifications_highestIsProxy()
DPreferencesHelperTest.java141 private static final UserHandle USER = UserHandle.of(0); field in PreferencesHelperTest
1329 int user = USER.getIdentifier(); in testUpdateChannelsBypassingDnd_onUserSwitch_onUserUnlocked()
1348 USER.getIdentifier()).getList().size()); in testGetChannelsBypassingDndCount_noChannelsBypassing()
1366 int user = USER.getIdentifier(); in testGetChannelsBypassingDndCount_oneChannelBypassing_groupBlocked()
1387 int user = USER.getIdentifier(); in testGetChannelsBypassingDndCount_multipleChannelsBypassing()
1428 assertEquals(0, mHelper.getAppsBypassingDndCount(USER.getIdentifier())); in testGetAppsBypassingDndCount_noAppsBypassing()
1444 int user = USER.getIdentifier(); in testGetAppsBypassingDndCount_oneChannelBypassing_groupBlocked()
1463 int user = USER.getIdentifier(); in testGetAppsBypassingDndCount_oneAppBypassing()
2107 USER.getIdentifier()); in testBadgingOverrideTrue()
2109 assertTrue(mHelper.badgingEnabled(USER)); in testBadgingOverrideTrue()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBuildTest.java68 assertNotEmpty("USER", Build.USER); in testBuildFields()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java67 private static final android.os.UserHandle USER = field in StatusBarNotificationTest
220 pkg, pkg, ID, TAG, UID, UID, builder.build(), USER, null, UID); in getNotification()
/frameworks/base/core/java/com/android/internal/os/
DUserPowerCalculator.java82 userSipper = new BatterySipper(BatterySipper.DrainType.USER, null, 0); in calculate()
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java188 USER (0), enumConstant
730 mKind = DataKind.USER; in Element()
778 DataKind dk = DataKind.USER; in createUser()
816 DataKind dk = DataKind.USER; in createVector()
/frameworks/base/services/core/jni/
Dcom_android_server_lights_LightsService.cpp59 if (brightness != static_cast<jint>(Brightness::USER) && in validate()

123