/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantControllerTest.java | 60 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/ |
D | UpdateInteractAcrossProfilesAppOpTaskTest.java | 65 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/ |
D | InteractAcrossProfilesSettingsTest.java | 70 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()
|
D | InteractAcrossProfilesDetailsTest.java | 53 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/ |
D | UpdateInteractAcrossProfilesAppOpTask.java | 47 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/ |
D | CrossProfileAppsPregrantController.java | 45 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/ |
D | InteractAcrossProfilesController.java | 40 private final CrossProfileApps mCrossProfileApps; field in InteractAcrossProfilesController 47 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in InteractAcrossProfilesController() 65 mContext, mPackageManager, mUserManager, mCrossProfileApps); in getSummary()
|
D | InteractAcrossProfilesDetails.java | 72 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()
|
D | InteractAcrossProfilesSettings.java | 54 private CrossProfileApps mCrossProfileApps; field in InteractAcrossProfilesSettings 65 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in onCreate() 76 collectConfigurableApps(mPackageManager, mUserManager, mCrossProfileApps); in onResume()
|