Home
last modified time | relevance | path

Searched refs:mCrossProfileApps (Results 1 – 11 of 11) sorted by relevance

/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java60 private final CrossProfileApps mCrossProfileApps = field in CrossProfileAppsPregrantControllerTest
77 mCrossProfileApps,
89 shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp( in setup()
99 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
103 assertThat(shadowOf(mCrossProfileApps) in onPrimaryProfile_noManagedProfile_doesNotPregrant()
114 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onManagedProfile_doesNotPregrant()
118 assertThat(shadowOf(mCrossProfileApps) in onManagedProfile_doesNotPregrant()
129 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in defaultConfigurablePackage_doesPregrant()
133 assertThat(shadowOf(mCrossProfileApps) in defaultConfigurablePackage_doesPregrant()
144 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_IGNORED); in nonDefaultConfigurablePackage_doesNotPregrant()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTaskTest.java65 private final CrossProfileApps mCrossProfileApps = field in UpdateInteractAcrossProfilesAppOpTaskTest
85 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2, MODE_ALLOWED); in run_firstRun_appOpIsNotReset()
89 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2)) in run_firstRun_appOpIsNotReset()
96 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2, MODE_ALLOWED); in run_packageIsRemovedButStillConfigurable_appOpIsNotReset()
97 shadowOf(mCrossProfileApps).addCrossProfilePackage(TEST_PACKAGE_NAME_2); in run_packageIsRemovedButStillConfigurable_appOpIsNotReset()
103 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2)) in run_packageIsRemovedButStillConfigurable_appOpIsNotReset()
110 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2, MODE_ALLOWED); in run_packageIsNoLongerConfigurable_appOpIsReset()
117 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2)) in run_packageIsNoLongerConfigurable_appOpIsReset()
124 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2, MODE_ALLOWED); in run_packageIsNotRemoved_appOpIsNotReset()
130 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(TEST_PACKAGE_NAME_2)) in run_packageIsNotRemoved_appOpIsNotReset()
DCreateManagedProfileTaskRoboTest.java64 private final CrossProfileApps mCrossProfileApps = field in CreateManagedProfileTaskRoboTest
82 mCrossProfileApps.setInteractAcrossProfilesAppOp(testPackage1, MODE_DEFAULT); in run_clearsNonDefaultInteractAcrossProfilesAppOps()
83 mCrossProfileApps.setInteractAcrossProfilesAppOp(testPackage2, MODE_ALLOWED); in run_clearsNonDefaultInteractAcrossProfilesAppOps()
88 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(testPackage1)) in run_clearsNonDefaultInteractAcrossProfilesAppOps()
90 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(testPackage2)) in run_clearsNonDefaultInteractAcrossProfilesAppOps()
100 mCrossProfileApps.setInteractAcrossProfilesAppOp(crossProfilePackage, MODE_DEFAULT); in run_grantsDefaultConfigurableInteractAcrossProfilesAppOps()
101 shadowOf(mCrossProfileApps).addCrossProfilePackage(crossProfilePackage); in run_grantsDefaultConfigurableInteractAcrossProfilesAppOps()
106 assertThat(shadowOf(mCrossProfileApps).getInteractAcrossProfilesAppOp(crossProfilePackage)) in run_grantsDefaultConfigurableInteractAcrossProfilesAppOps()
116 mCrossProfileApps.setInteractAcrossProfilesAppOp(nonCrossProfilePackage, MODE_ALLOWED); in run_clearsDefaultNotConfigurableInteractAcrossProfilesAppOps()
121 assertThat(shadowOf(mCrossProfileApps) in run_clearsDefaultNotConfigurableInteractAcrossProfilesAppOps()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java40 private final CrossProfileApps mCrossProfileApps; field in UpdateInteractAcrossProfilesAppOpTask
51 mCrossProfileApps = context.getSystemService(CrossProfileApps.class); in UpdateInteractAcrossProfilesAppOpTask()
71 mCrossProfileApps.resetInteractAcrossProfilesAppOps( in updateAfterOtaChanges()
84 if (!mCrossProfileApps.canConfigureInteractAcrossProfiles(crossProfilePackageName)) { in grantNewConfigurableDefaultCrossProfilePackages()
91 mCrossProfileApps.setInteractAcrossProfilesAppOp(crossProfilePackageName, in grantNewConfigurableDefaultCrossProfilePackages()
DCreateManagedProfileTask.java55 private final CrossProfileApps mCrossProfileApps; field in CreateManagedProfileTask
86 mCrossProfileApps = context.getSystemService(CrossProfileApps.class); in CreateManagedProfileTask()
113 mCrossProfileApps.clearInteractAcrossProfilesAppOps(); in resetInteractAcrossProfilesAppOps()
124 mCrossProfileApps.setInteractAcrossProfilesAppOp(packageName, MODE_ALLOWED); in pregrantDefaultInteractAcrossProfilesAppOps()
131 mCrossProfileApps::canConfigureInteractAcrossProfiles).collect(Collectors.toSet()); in getConfigurableDefaultCrossProfilePackages()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettingsTest.java71 private final CrossProfileApps mCrossProfileApps = field in InteractAcrossProfilesSettingsTest
91 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_fromPersonal_returnsCombinedPackages()
117 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_fromWork_returnsCombinedPackages()
136 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_onlyOneProfile_returnsEmpty()
154 shadowOf(mCrossProfileApps).addCrossProfilePackage(PERSONAL_CROSS_PROFILE_PACKAGE); in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
163 mContext, mPackageManager, mUserManager, mCrossProfileApps); in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
DInteractAcrossProfilesDetailsTest.java55 private final CrossProfileApps mCrossProfileApps = mContext.getSystemService( field in InteractAcrossProfilesDetailsTest
69 shadowOf(mCrossProfileApps).addCrossProfilePackage( in getPreferenceSummary_appOpAllowed_returnsAllowed()
92 shadowOf(mCrossProfileApps).addCrossProfilePackage( in getPreferenceSummary_appOpNotAllowed_returnsNotAllowed()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantController.java45 private final CrossProfileApps mCrossProfileApps; field in CrossProfileAppsPregrantController
69 mCrossProfileApps = crossProfileApps; in CrossProfileAppsPregrantController()
86 mCrossProfileApps.setInteractAcrossProfilesAppOp(crossProfilePackageName, in checkCrossProfileAppsPermissions()
105 mCrossProfileApps::canConfigureInteractAcrossProfiles).collect(Collectors.toSet()); in getConfigurableDefaultCrossProfilePackages()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesController.java40 private final CrossProfileApps mCrossProfileApps; field in InteractAcrossProfilesController
47 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in InteractAcrossProfilesController()
65 mContext, mPackageManager, mUserManager, mCrossProfileApps); in getSummary()
DInteractAcrossProfilesDetails.java72 private CrossProfileApps mCrossProfileApps; field in InteractAcrossProfilesDetails
91 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in onCreate()
134 if (!mCrossProfileApps.canConfigureInteractAcrossProfiles(mPackageName)) { in logPageLaunchMetrics()
333 mCrossProfileApps.setInteractAcrossProfilesAppOp( in enableInteractAcrossProfiles()
370 if (!mCrossProfileApps.canUserAttemptToConfigureInteractAcrossProfiles(mPackageName)) { in refreshUi()
375 if (!mCrossProfileApps.canConfigureInteractAcrossProfiles(mPackageName)) { in refreshUi()
DInteractAcrossProfilesSettings.java54 private CrossProfileApps mCrossProfileApps; field in InteractAcrossProfilesSettings
65 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in onCreate()
76 collectConfigurableApps(mPackageManager, mUserManager, mCrossProfileApps); in onResume()