/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/ |
D | EthernetServiceImpl.java | 43 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/ |
D | LocalCallingIdentity.java | 21 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/ |
D | PermissionUtilsTest.java | 37 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/ |
D | ActivityPermissionRationaleTest.java | 68 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()
|
D | SplitPermissionTest.java | 26 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()
|
D | PermissionFlagsTest.java | 31 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;
|
D | SharedUidPermissionsTest.java | 21 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;
|
D | PermissionControllerTest.java | 34 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()
|
D | BackgroundPermissionsTest.java | 27 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;
|
D | NearbyDevicesPermissionTest.java | 23 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;
|
D | NotificationListenerCheckTest.java | 19 import static android.permission.cts.PermissionUtils.clearAppState; 20 import static android.permission.cts.PermissionUtils.install; 21 import static android.permission.cts.PermissionUtils.uninstallApp;
|
D | RevokeSawPermissionTest.kt | 35 PermissionUtils.install(apk) in installApp() 40 PermissionUtils.uninstallApp(APP_PKG_NAME) in uninstallApp()
|
D | NotificationListenerCheckWithSafetyCenterUnsupportedTest.java | 19 import static android.permission.cts.PermissionUtils.install; 20 import static android.permission.cts.PermissionUtils.uninstallApp;
|
/packages/apps/TV/src/com/android/tv/onboarding/ |
D | OnboardingActivity.java | 37 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/ |
D | PermissionUtilsTest.kt | 28 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/ |
D | ManageCustomPermissionsFragmentTest.kt | 20 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
|
D | ManageStandardPermissionsFragmentTest.kt | 22 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/ |
D | TestAppUtils.kt | 19 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/ |
D | PermissionUsageFragmentTest.kt | 22 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/ |
D | CompanionDeviceManagerProxyService.java | 29 import com.android.net.module.util.PermissionUtils; 50 PermissionUtils.enforceNetworkStackPermission(mContext); in getAllAssociations()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | PermissionActivityTest.java | 36 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/ |
D | AttributionLabelLiveDataTest.kt | 23 import android.permission.cts.PermissionUtils.install 24 import android.permission.cts.PermissionUtils.uninstallApp
|
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/ |
D | PermissionUtils.kt | 25 object PermissionUtils { object 26 private val TAG = PermissionUtils::class.java.getSimpleName()
|
/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/ |
D | AppPermissionsTest.kt | 30 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/ |
D | LocationInfotainmentAppsPreferenceController.java | 29 import com.android.car.settings.privacy.PermissionUtils; 72 List<PackageInfo> packagesWithPermissions = PermissionUtils.getPackagesWithPermissionGroup( in loadInfotainmentAppsWithLocationPermission()
|