/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTests.java | 51 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 …]
|
D | OverlayManagerServiceImplRebootTests.java | 41 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/ |
D | AutoAddTrackerTest.java | 44 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 …]
|
D | SecureSettingTest.kt | 42 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/ |
D | ActionReceiverTest.kt | 62 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/ |
D | BatterySaverTileTest.kt | 49 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/ |
D | RollbackUnitTest.java | 60 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 …]
|
D | RollbackStoreTest.java | 45 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/ |
D | AutoTileManagerTest.java | 90 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/ |
D | NetworkStatsAccess.java | 52 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/ |
D | UT_element.java | 99 simpleElem.getDataKind() == DataKind.USER); in testJavaSide() 106 complexElem.getDataKind() == DataKind.USER); in testJavaSide()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_element.java | 97 simpleElem.getDataKind() == DataKind.USER); in testJavaSide() 104 complexElem.getDataKind() == DataKind.USER); in testJavaSide()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | TestConferenceEventPackageParser.java | 136 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/ |
D | TableHelper.java | 153 public static TableHelper USER = new TableHelper() { field in TableHelper 221 USER,
|
D | CursorWindowPerfTest.java | 88 loadRowFromCursorWindow(TableHelper.USER, false); in loadUser()
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LogicalLight.java | 45 public static final int BRIGHTNESS_MODE_USER = Brightness.USER;
|
/frameworks/base/cmds/incident_helper/testdata/ |
D | cpuinfo.txt | 9 PID TID USER PR NI[%CPU]S VIRT RES PCY CMD NAME
|
D | ps.txt | 1 LABEL USER PID TID PPID VSZ RSS WCHAN ADDR …
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 67 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()
|
D | PreferencesHelperTest.java | 141 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/ |
D | BuildTest.java | 68 assertNotEmpty("USER", Build.USER); in testBuildFields()
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 67 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/ |
D | UserPowerCalculator.java | 82 userSipper = new BatterySipper(BatterySipper.DrainType.USER, null, 0); in calculate()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Element.java | 188 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/ |
D | com_android_server_lights_LightsService.cpp | 59 if (brightness != static_cast<jint>(Brightness::USER) && in validate()
|