Searched refs:mCrossProfileAppsSnapshot (Results 1 – 6 of 6) sorted by relevance
49 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot = field in CrossProfileAppsSnapshotTest69 assertThat(mCrossProfileAppsSnapshot.hasSnapshot(TEST_USER_ID)).isFalse(); in hasSnapshot_noSnapshotTaken_returnsFalse()74 mCrossProfileAppsSnapshot.takeNewSnapshot(TEST_USER_ID); in hasSnapshot_snapshotTaken_returnsTrue()76 assertThat(mCrossProfileAppsSnapshot.hasSnapshot(TEST_USER_ID)).isTrue(); in hasSnapshot_snapshotTaken_returnsTrue()81 assertThat(mCrossProfileAppsSnapshot.getSnapshot(TEST_USER_ID)).isEmpty(); in getSnapshot_noSnapshotTaken_returnsEmptySet()87 mCrossProfileAppsSnapshot.takeNewSnapshot(TEST_USER_ID); in getSnapshot_snapshotTaken_returnsPreviousCrossProfilePackages()89 assertThat(mCrossProfileAppsSnapshot.getSnapshot(TEST_USER_ID)) in getSnapshot_snapshotTaken_returnsPreviousCrossProfilePackages()
46 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in UpdateInteractAcrossProfilesAppOpTask58 mCrossProfileAppsSnapshot = new CrossProfileAppsSnapshot(context); in UpdateInteractAcrossProfilesAppOpTask()69 mCrossProfileAppsSnapshot.hasSnapshot(userId) ? in run()70 mCrossProfileAppsSnapshot.getSnapshot(userId) : in run()72 mCrossProfileAppsSnapshot.takeNewSnapshot(userId); in run()73 Set<String> currentCrossProfileApps = mCrossProfileAppsSnapshot.getSnapshot(userId); in run()
48 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateAndProvisionManagedProfileTask81 mCrossProfileAppsSnapshot = requireNonNull(crossProfileAppsSnapshot); in CreateAndProvisionManagedProfileTask()145 mCrossProfileAppsSnapshot.takeNewSnapshot(parentUserId); in takeAppsSnapshots()
76 @Mock private CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateAndProvisionManagedProfileTaskTest107 verify(mCrossProfileAppsSnapshot).takeNewSnapshot(TEST_PARENT_USER_ID); in testSuccess()121 verifyNoMoreInteractions(mCrossProfileAppsSnapshot); in testError()137 verify(mCrossProfileAppsSnapshot).takeNewSnapshot(TEST_PARENT_USER_ID); in testLeaveSystemAppsEnabled()145 mCrossProfileAppsSnapshot, in createProvisioningTask()
64 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot = field in CrossProfileAppsPregrantControllerTest98 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in onPrimaryProfile_noManagedProfile_doesNotPregrant()113 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in onManagedProfile_doesNotPregrant()128 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in defaultConfigurablePackage_doesPregrant()143 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in nonDefaultConfigurablePackage_doesNotPregrant()
46 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CrossProfileAppsPregrantController71 mCrossProfileAppsSnapshot = new CrossProfileAppsSnapshot(context); in CrossProfileAppsPregrantController()80 mCrossProfileAppsSnapshot.getSnapshot(mContext.getUserId()); in checkCrossProfileAppsPermissions()