Home
last modified time | relevance | path

Searched refs:mSystemAppsSnapshot (Results 1 – 8 of 8) sorted by relevance

/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/manageduser/
H A DManagedUserCreationControllerTest.java42 private SystemAppsSnapshot mSystemAppsSnapshot; field in ManagedUserCreationControllerTest
52 UserHandle.USER_NULL, false, mSystemAppsSnapshot); in testNullUserId()
56 verifyZeroInteractions(mSystemAppsSnapshot); in testNullUserId()
62 MANAGED_USER_USER_ID, true, mSystemAppsSnapshot); in testLeaveAllSystemApps()
66 verifyZeroInteractions(mSystemAppsSnapshot); in testLeaveAllSystemApps()
72 MANAGED_USER_USER_ID, false, mSystemAppsSnapshot); in testTakeSnapshot()
76 verify(mSystemAppsSnapshot).takeNewSnapshot(MANAGED_USER_USER_ID); in testTakeSnapshot()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
H A DSystemAppsSnapshotTest.java59 private SystemAppsSnapshot mSystemAppsSnapshot; field in SystemAppsSnapshotTest
71 mSystemAppsSnapshot = new SystemAppsSnapshot(mContext, mockIPackageManager, mUtils); in setUp()
86 assertFalse(mSystemAppsSnapshot.hasSnapshot(TEST_USER_ID)); in testHasSnapshot()
89 mSystemAppsSnapshot.takeNewSnapshot(TEST_USER_ID); in testHasSnapshot()
92 assertTrue(mSystemAppsSnapshot.hasSnapshot(TEST_USER_ID)); in testHasSnapshot()
101 assertTrue(mSystemAppsSnapshot.getSnapshot(TEST_USER_ID).isEmpty()); in testGetSnapshot()
104 mSystemAppsSnapshot.takeNewSnapshot(TEST_USER_ID); in testGetSnapshot()
107 assertSetEquals(mSystemAppsSnapshot.getSnapshot(TEST_USER_ID), in testGetSnapshot()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DProvisionFullyManagedDeviceTaskTest.java78 @Mock private SystemAppsSnapshot mSystemAppsSnapshot; field in ProvisionFullyManagedDeviceTaskTest
106 verify(mSystemAppsSnapshot).takeNewSnapshot(TEST_USER_ID); in testSuccess()
119 verifyNoMoreInteractions(mSystemAppsSnapshot); in testError()
131 verifyNoMoreInteractions(mSystemAppsSnapshot); in testLeaveSystemAppsEnabled()
142 verify(mSystemAppsSnapshot).takeNewSnapshot(TEST_USER_ID); in testCanGrantSensorsPermissionsByDefault()
161 verify(mSystemAppsSnapshot).takeNewSnapshot(TEST_USER_ID); in testCanOptOutOfGrantingSensorsPermissions()
172 mSystemAppsSnapshot, in createProvisioningTask()
H A DCreateAndProvisionManagedProfileTaskTest.java77 @Mock private SystemAppsSnapshot mSystemAppsSnapshot; field in CreateAndProvisionManagedProfileTaskTest
106 verify(mSystemAppsSnapshot).takeNewSnapshot(TEST_USER_ID); in testSuccess()
120 verifyNoMoreInteractions(mSystemAppsSnapshot); in testError()
136 verifyNoMoreInteractions(mSystemAppsSnapshot); in testLeaveSystemAppsEnabled()
144 mSystemAppsSnapshot, in createProvisioningTask()
H A DMigrateSystemAppsSnapshotTaskTest.java80 private SystemAppsSnapshot mSystemAppsSnapshot; field in MigrateSystemAppsSnapshotTaskTest
95 mSystemAppsSnapshot = new SystemAppsSnapshot(mContext); in setup()
170 Set<String> actual = mSystemAppsSnapshot.getSnapshot(userId); in assertSnapshotFileContent()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/manageduser/
H A DManagedUserCreationController.java33 final private SystemAppsSnapshot mSystemAppsSnapshot; field in ManagedUserCreationController
47 mSystemAppsSnapshot = requireNonNull(systemAppsSnapshot); in ManagedUserCreationController()
56 mSystemAppsSnapshot.takeNewSnapshot(mUserId); in run()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DProvisionFullyManagedDeviceTask.java46 private final SystemAppsSnapshot mSystemAppsSnapshot; field in ProvisionFullyManagedDeviceTask
75 mSystemAppsSnapshot = requireNonNull(systemAppsSnapshot); in ProvisionFullyManagedDeviceTask()
132 mSystemAppsSnapshot.takeNewSnapshot(userId); in maybeTakeSystemAppsSnapshots()
H A DCreateAndProvisionManagedProfileTask.java47 private final SystemAppsSnapshot mSystemAppsSnapshot; field in CreateAndProvisionManagedProfileTask
80 mSystemAppsSnapshot = requireNonNull(systemAppsSnapshot); in CreateAndProvisionManagedProfileTask()
143 mSystemAppsSnapshot.takeNewSnapshot(mProfileUserId); in takeAppsSnapshots()