Home
last modified time | relevance | path

Searched refs:mCrossProfileApps (Results 1 – 9 of 9) 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettingsTest.java70 private final CrossProfileApps mCrossProfileApps = field in InteractAcrossProfilesSettingsTest
89 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_fromPersonal_returnsCombinedPackages()
115 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_fromWork_returnsCombinedPackages()
134 mPackageManager, mUserManager, mCrossProfileApps); in collectConfigurableApps_onlyOneProfile_returnsEmpty()
152 shadowOf(mCrossProfileApps).addCrossProfilePackage(PERSONAL_CROSS_PROFILE_PACKAGE); in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
163 mContext, mPackageManager, mUserManager, mCrossProfileApps); in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
DInteractAcrossProfilesDetailsTest.java53 private final CrossProfileApps mCrossProfileApps = mContext.getSystemService( field in InteractAcrossProfilesDetailsTest
67 shadowOf(mCrossProfileApps).addCrossProfilePackage( in getPreferenceSummary_appOpAllowed_returnsAllowed()
90 shadowOf(mCrossProfileApps).addCrossProfilePackage( in getPreferenceSummary_appOpNotAllowed_returnsNotAllowed()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java47 private final CrossProfileApps mCrossProfileApps; field in UpdateInteractAcrossProfilesAppOpTask
58 mCrossProfileApps = context.getSystemService(CrossProfileApps.class); in UpdateInteractAcrossProfilesAppOpTask()
78 mCrossProfileApps.resetInteractAcrossProfilesAppOps( in updateAfterOtaChanges()
92 if (!mCrossProfileApps.canConfigureInteractAcrossProfiles(crossProfilePackageName)) { in grantNewConfigurableDefaultCrossProfilePackages()
105 mCrossProfileApps.setInteractAcrossProfilesAppOp(crossProfilePackageName, in grantNewConfigurableDefaultCrossProfilePackages()
161 if (mCrossProfileApps.canConfigureInteractAcrossProfiles(packageName)) { in getConsolidatedModeForPackagesInUid()
/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()