Home
last modified time | relevance | path

Searched refs:PermissionUtils (Results 1 – 25 of 78) sorted by relevance

1234

/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetServiceImpl.java43 import com.android.net.module.util.PermissionUtils;
72 PermissionUtils.enforceSystemFeature(mContext, PackageManager.FEATURE_AUTOMOTIVE, in enforceAutomotiveDevice()
78 return PermissionUtils.hasAnyPermissionOf(mContext, in hasUseRestrictedNetworksPermission()
96 PermissionUtils.enforceAccessNetworkStatePermission(mContext, TAG); in getAvailableInterfaces()
106 PermissionUtils.enforceAccessNetworkStatePermission(mContext, TAG); in getConfiguration()
108 PermissionUtils.enforceRestrictedNetworkPermission(mContext, TAG); in getConfiguration()
121 PermissionUtils.enforceNetworkStackPermission(mContext); in setConfiguration()
123 PermissionUtils.enforceRestrictedNetworkPermission(mContext, TAG); in setConfiguration()
136 PermissionUtils.enforceAccessNetworkStatePermission(mContext, TAG); in isAvailable()
138 PermissionUtils.enforceRestrictedNetworkPermission(mContext, TAG); in isAvailable()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java21 import static com.android.providers.media.util.PermissionUtils.checkAppOpRequestInstallPackagesForS…
22 import static com.android.providers.media.util.PermissionUtils.checkIsLegacyStorageGranted;
23 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaLocation;
24 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaOwnerPacka…
25 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMtp;
26 import static com.android.providers.media.util.PermissionUtils.checkPermissionDelegator;
27 import static com.android.providers.media.util.PermissionUtils.checkPermissionInstallPackages;
28 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
29 import static com.android.providers.media.util.PermissionUtils.checkPermissionQueryAllPackages;
30 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadAudio;
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java37 import static com.android.providers.media.util.PermissionUtils.checkAppOpRequestInstallPackagesForS…
38 import static com.android.providers.media.util.PermissionUtils.checkIsLegacyStorageGranted;
39 import static com.android.providers.media.util.PermissionUtils.checkNoIsolatedStorageGranted;
40 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaLocation;
41 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMtp;
42 import static com.android.providers.media.util.PermissionUtils.checkPermissionDelegator;
43 import static com.android.providers.media.util.PermissionUtils.checkPermissionInstallPackages;
44 import static com.android.providers.media.util.PermissionUtils.checkPermissionManageMedia;
45 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
46 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadAudio;
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DActivityPermissionRationaleTest.java68 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flag, flag); in setUp()
93 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in clearData()
107 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in policyFixedNoRationale()
115 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userFixedNoRationale()
122 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in notUserSetNoRationale()
131 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userSetNeedRationale()
DSplitPermissionTest.java26 import static android.permission.cts.PermissionUtils.getAppOp;
27 import static android.permission.cts.PermissionUtils.getPermissionFlags;
28 import static android.permission.cts.PermissionUtils.getPermissions;
29 import static android.permission.cts.PermissionUtils.grantPermission;
30 import static android.permission.cts.PermissionUtils.isGranted;
31 import static android.permission.cts.PermissionUtils.revokePermission;
32 import static android.permission.cts.PermissionUtils.setPermissionFlags;
33 import static android.permission.cts.PermissionUtils.uninstallApp;
148 PermissionUtils.install(apkFile); in install()
DPermissionFlagsTest.java31 import static android.permission.cts.PermissionUtils.clearAppState;
32 import static android.permission.cts.PermissionUtils.getAllPermissionFlags;
33 import static android.permission.cts.PermissionUtils.getPermissionFlags;
34 import static android.permission.cts.PermissionUtils.install;
35 import static android.permission.cts.PermissionUtils.isGranted;
36 import static android.permission.cts.PermissionUtils.setPermissionFlags;
37 import static android.permission.cts.PermissionUtils.uninstallApp;
DSharedUidPermissionsTest.java21 import static android.permission.cts.PermissionUtils.grantPermission;
22 import static android.permission.cts.PermissionUtils.install;
23 import static android.permission.cts.PermissionUtils.isPermissionGranted;
24 import static android.permission.cts.PermissionUtils.revokePermission;
25 import static android.permission.cts.PermissionUtils.uninstallApp;
DPermissionControllerTest.java34 import static android.permission.cts.PermissionUtils.grantPermission;
35 import static android.permission.cts.PermissionUtils.isGranted;
36 import static android.permission.cts.PermissionUtils.isPermissionGranted;
392 runtimePermissions = PermissionUtils.getRuntimePermissions(APP); in getAppPermissionsForApp()
409 PermissionUtils.grantPermission(APP2, BODY_SENSORS); in getAppPermissionsForCustomApp()
410 PermissionUtils.grantPermission(APP2, READ_CONTACTS); in getAppPermissionsForCustomApp()
411 PermissionUtils.grantPermission(APP2, WRITE_CALENDAR); in getAppPermissionsForCustomApp()
418 runtimePermissions = PermissionUtils.getRuntimePermissions(APP2); in getAppPermissionsForCustomApp()
DBackgroundPermissionsTest.java27 import static android.permission.cts.PermissionUtils.getAppOp;
28 import static android.permission.cts.PermissionUtils.grantPermission;
29 import static android.permission.cts.PermissionUtils.install;
30 import static android.permission.cts.PermissionUtils.uninstallApp;
DNearbyDevicesPermissionTest.java23 import static android.permission.cts.PermissionUtils.grantPermission;
24 import static android.permission.cts.PermissionUtils.install;
25 import static android.permission.cts.PermissionUtils.revokePermission;
26 import static android.permission.cts.PermissionUtils.uninstallApp;
DNotificationListenerCheckTest.java19 import static android.permission.cts.PermissionUtils.clearAppState;
20 import static android.permission.cts.PermissionUtils.install;
21 import static android.permission.cts.PermissionUtils.uninstallApp;
DRevokeSawPermissionTest.kt35 PermissionUtils.install(apk) in installApp()
40 PermissionUtils.uninstallApp(APP_PKG_NAME) in uninstallApp()
DNotificationListenerCheckWithSafetyCenterUnsupportedTest.java19 import static android.permission.cts.PermissionUtils.install;
20 import static android.permission.cts.PermissionUtils.uninstallApp;
/packages/apps/TV/src/com/android/tv/onboarding/
DOnboardingActivity.java37 import com.android.tv.common.util.PermissionUtils;
98 if (PermissionUtils.hasAccessAllEpg(this) || PermissionUtils.hasReadTvListings(this)) { in onCreate()
108 new String[] {PermissionUtils.PERMISSION_READ_TV_LISTINGS}, in onCreate()
123 if (PermissionUtils.hasAccessAllEpg(this) || PermissionUtils.hasReadTvListings(this)) { in onCreateInitialFragment()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPermissionUtilsTest.kt28 import com.android.net.module.util.PermissionUtils.enforceAnyPermissionOf
29 import com.android.net.module.util.PermissionUtils.enforceNetworkStackPermission
30 import com.android.net.module.util.PermissionUtils.enforceNetworkStackPermissionOr
31 import com.android.net.module.util.PermissionUtils.enforcePackageNameMatchesUid
32 import com.android.net.module.util.PermissionUtils.enforceSystemFeature
33 import com.android.net.module.util.PermissionUtils.hasAnyPermissionOf
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/
DManageCustomPermissionsFragmentTest.kt20 import android.permission.cts.PermissionUtils.grantPermission
21 import android.permission.cts.PermissionUtils.install
22 import android.permission.cts.PermissionUtils.revokePermission
23 import android.permission.cts.PermissionUtils.uninstallApp
DManageStandardPermissionsFragmentTest.kt22 import android.permission.cts.PermissionUtils.grantPermission
23 import android.permission.cts.PermissionUtils.install
24 import android.permission.cts.PermissionUtils.revokePermission
25 import android.permission.cts.PermissionUtils.uninstallApp
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/
DTestAppUtils.kt19 import android.permission.cts.PermissionUtils.grantPermission
20 import android.permission.cts.PermissionUtils.install
21 import android.permission.cts.PermissionUtils.uninstallApp
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/v31/
DPermissionUsageFragmentTest.kt22 import android.permission.cts.PermissionUtils.grantPermission
23 import android.permission.cts.PermissionUtils.install
24 import android.permission.cts.PermissionUtils.uninstallApp
/packages/modules/Connectivity/service/src/com/android/server/connectivity/wear/
DCompanionDeviceManagerProxyService.java29 import com.android.net.module.util.PermissionUtils;
50 PermissionUtils.enforceNetworkStackPermission(mContext); in getAllAssociations()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java36 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaLocation;
37 import static com.android.providers.media.util.PermissionUtils.checkPermissionManageMedia;
38 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
39 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadAudio;
40 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadImages;
41 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
42 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadVideo;
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/data/
DAttributionLabelLiveDataTest.kt23 import android.permission.cts.PermissionUtils.install
24 import android.permission.cts.PermissionUtils.uninstallApp
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DPermissionUtils.kt25 object PermissionUtils { object
26 private val TAG = PermissionUtils::class.java.getSimpleName()
/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/
DAppPermissionsTest.kt30 import android.permissionmultidevice.cts.PermissionUtils.isCddCompliantScreenSize
80 assumeFalse(PermissionUtils.isAutomotive(defaultDeviceContext)) in setup()
81 assumeFalse(PermissionUtils.isTv(defaultDeviceContext)) in setup()
82 assumeFalse(PermissionUtils.isWatch(defaultDeviceContext)) in setup()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationInfotainmentAppsPreferenceController.java29 import com.android.car.settings.privacy.PermissionUtils;
72 List<PackageInfo> packagesWithPermissions = PermissionUtils.getPackagesWithPermissionGroup( in loadInfotainmentAppsWithLocationPermission()

1234