Home
last modified time | relevance | path

Searched refs:mCrossProfileAppsSnapshot (Results 1 – 6 of 6) sorted by relevance

/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/interactacrossprofiles/
DCrossProfileAppsSnapshotTest.java49 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot = field in CrossProfileAppsSnapshotTest
69 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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java39 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in UpdateInteractAcrossProfilesAppOpTask
50 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()
DCreateManagedProfileTask.java53 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateManagedProfileTask
85 mCrossProfileAppsSnapshot = checkNotNull(crossProfileAppsSnapshot); in CreateManagedProfileTask()
106 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in run()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java64 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot = field in CrossProfileAppsPregrantControllerTest
98 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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantController.java46 private final CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CrossProfileAppsPregrantController
71 mCrossProfileAppsSnapshot = new CrossProfileAppsSnapshot(context); in CrossProfileAppsPregrantController()
80 mCrossProfileAppsSnapshot.getSnapshot(mContext.getUserId()); in checkCrossProfileAppsPermissions()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DCreateManagedProfileTaskTest.java64 private @Mock CrossProfileAppsSnapshot mCrossProfileAppsSnapshot; field in CreateManagedProfileTaskTest
73 TEST_PARAMS, mCallback, mUserManager, mLogic, mCrossProfileAppsSnapshot, in setUp()
97 verify(mCrossProfileAppsSnapshot).takeNewSnapshot(anyInt()); in testSuccess()