Home
last modified time | relevance | path

Searched refs:mTestUserId (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java74 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testPersistAndLoadSnapshot()
80 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* isLowResolution */); in testPersistAndLoadSnapshot()
90 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testTaskRemovedFromRecents()
91 mPersister.onTaskRemovedFromRecents(1, mTestUserId); in testTaskRemovedFromRecents()
104 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testThrottling()
105 mPersister.persistSnapshot(2, mTestUserId, createSnapshot()); in testThrottling()
106 mPersister.removeObsoleteFiles(new ArraySet<>(), new int[]{mTestUserId}); in testThrottling()
107 mPersister.removeObsoleteFiles(new ArraySet<>(), new int[]{mTestUserId}); in testThrottling()
108 mPersister.removeObsoleteFiles(new ArraySet<>(), new int[]{mTestUserId}); in testThrottling()
109 mPersister.removeObsoleteFiles(new ArraySet<>(), new int[]{mTestUserId}); in testThrottling()
[all …]
DTaskPersisterTest.java49 private int mTestUserId; field in TaskPersisterTest
61 mTestUserId = createUser(TEST_USER_NAME, UserInfo.FLAG_GUEST); in setUp()
66 mTaskPersister.unloadUserDataFromMemory(mTestUserId); in tearDown()
67 removeUser(mTestUserId); in tearDown()
80 taskIdsOnFile.put(getRandomTaskIdForUser(mTestUserId), true); in testTaskIdsPersistence()
82 mTaskPersister.writePersistedTaskIdsForUser(taskIdsOnFile, mTestUserId); in testTaskIdsPersistence()
84 .loadPersistedTaskIdsForUser(mTestUserId); in testTaskIdsPersistence()
DTaskSnapshotLowResDisabledTest.java69 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testPersistAndLoadSnapshot()
78 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* isLowResolution */); in testPersistAndLoadSnapshot()
84 assertNull(mLoader.loadTask(1, mTestUserId, true /* isLowResolution */)); in testPersistAndLoadSnapshot()
89 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testRemoveObsoleteFiles()
90 mPersister.persistSnapshot(2, mTestUserId, createSnapshot()); in testRemoveObsoleteFiles()
93 mPersister.removeObsoleteFiles(taskIds, new int[]{mTestUserId}); in testRemoveObsoleteFiles()
109 mPersister.persistSnapshot(1, mTestUserId, createSnapshot()); in testRemoveObsoleteFiles_addedOneInTheMeantime()
112 mPersister.removeObsoleteFiles(taskIds, new int[]{mTestUserId}); in testRemoveObsoleteFiles_addedOneInTheMeantime()
113 mPersister.persistSnapshot(2, mTestUserId, createSnapshot()); in testRemoveObsoleteFiles_addedOneInTheMeantime()
DTaskSnapshotPersisterTestBase.java70 int mTestUserId; field in TaskSnapshotPersisterTestBase
94 mTestUserId = um.getUserHandle(); in setUp()
98 when(userManagerInternal.isUserUnlocked(mTestUserId)).thenReturn(true); in setUp()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsUserLifecycleTests.java59 private int mTestUserId = UserHandle.USER_NULL; field in BatteryStatsUserLifecycleTests
76 mTestUserId = user.id; in setUp()
83 mIam.startUserInBackground(mTestUserId); in testNoCpuDataForRemovedUser()
84 waitUntilTrue("No uids for started user " + mTestUserId, in testNoCpuDataForRemovedUser()
88 mIam.stopUser(mTestUserId, true, new IStopUserCallback.Stub() { in testNoCpuDataForRemovedUser()
98 assertTrue("User " + mTestUserId + " could not be stopped", in testNoCpuDataForRemovedUser()
101 mUm.removeUser(mTestUserId); in testNoCpuDataForRemovedUser()
102 waitUntilTrue("Unable to remove user " + mTestUserId, () -> { in testNoCpuDataForRemovedUser()
104 if (user.id == mTestUserId) { in testNoCpuDataForRemovedUser()
110 waitUntilTrue("Uids still found for removed user " + mTestUserId, in testNoCpuDataForRemovedUser()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAccessesTest.java56 private int mTestUserId; field in RecentLocationAccessesTest
72 mTestUserId = UserHandle.getUserId(TEST_UID); in setUp()
74 .thenReturn(Collections.singletonList(new UserHandle(mTestUserId))); in setUp()
80 mockTestApplicationInfos(mTestUserId, TEST_PACKAGE_NAMES); in setUp()
DRecentLocationAppsTest.java57 private int mTestUserId; field in RecentLocationAppsTest
73 mTestUserId = UserHandle.getUserId(TEST_UID); in setUp()
75 .thenReturn(Collections.singletonList(new UserHandle(mTestUserId))); in setUp()
81 mockTestApplicationInfos(mTestUserId, TEST_PACKAGE_NAMES); in setUp()