/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/manageduser/ |
H A D | ManagedUserCreationControllerTest.java | 42 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 D | SystemAppsSnapshotTest.java | 59 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 D | ProvisionFullyManagedDeviceTaskTest.java | 78 @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 D | CreateAndProvisionManagedProfileTaskTest.java | 77 @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 D | MigrateSystemAppsSnapshotTaskTest.java | 80 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 D | ManagedUserCreationController.java | 33 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 D | ProvisionFullyManagedDeviceTask.java | 46 private final SystemAppsSnapshot mSystemAppsSnapshot; field in ProvisionFullyManagedDeviceTask 75 mSystemAppsSnapshot = requireNonNull(systemAppsSnapshot); in ProvisionFullyManagedDeviceTask() 132 mSystemAppsSnapshot.takeNewSnapshot(userId); in maybeTakeSystemAppsSnapshots()
|
H A D | CreateAndProvisionManagedProfileTask.java | 47 private final SystemAppsSnapshot mSystemAppsSnapshot; field in CreateAndProvisionManagedProfileTask 80 mSystemAppsSnapshot = requireNonNull(systemAppsSnapshot); in CreateAndProvisionManagedProfileTask() 143 mSystemAppsSnapshot.takeNewSnapshot(mProfileUserId); in takeAppsSnapshots()
|