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()
39 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in UpdateInteractAcrossProfilesAppOpTask50 mCrossProfileAppsSnapshot = new CrossProfileAppsSnapshot(context); in UpdateInteractAcrossProfilesAppOpTask()60 mCrossProfileAppsSnapshot.hasSnapshot(userId) ? in run()61 mCrossProfileAppsSnapshot.getSnapshot(userId) : in run()63 mCrossProfileAppsSnapshot.takeNewSnapshot(userId); in run()64 Set<String> currentCrossProfileApps = mCrossProfileAppsSnapshot.getSnapshot(userId); in run()
53 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateManagedProfileTask85 mCrossProfileAppsSnapshot = checkNotNull(crossProfileAppsSnapshot); in CreateManagedProfileTask()106 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in run()
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()
64 private @Mock CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateManagedProfileTaskTest73 TEST_PARAMS, mCallback, mUserManager, mLogic, mCrossProfileAppsSnapshot, in setUp()97 verify(mCrossProfileAppsSnapshot).takeNewSnapshot(anyInt()); in testSuccess()