Home
last modified time | relevance | path

Searched defs:hasPermission (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsAccessTest.java178 private void setHasAppOpsPermission(int appOpsMode, boolean hasPermission) { in setHasAppOpsPermission()
186 private void setHasReadHistoryPermission(boolean hasPermission) { in setHasReadHistoryPermission()
192 private void setHasNetworkStackPermission(boolean hasPermission) { in setHasNetworkStackPermission()
198 private void setHasMainlineNetworkStackPermission(boolean hasPermission) { in setHasMainlineNetworkStackPermission()
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java310 private static boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil
372 public boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil.TelecomUtilImpl
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java55 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in PermissionsUtil
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DPermissionHelper.java137 public static boolean hasPermission( in hasPermission() method in PermissionHelper
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java79 private boolean hasPermission(String permission, int uid) { in hasPermission() method in AppStateInstallAppsBridge
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DDevicePermissionsTest.kt505 private fun hasPermission(permissionFlags: Int, permissionBit: Int): Boolean = in hasPermission() method
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java194 public static boolean hasPermission(final String permission) { in hasPermission() method in OsUtil
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java138 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in PermissionsUtil
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java355 private volatile int hasPermission; field in LocalCallingIdentity
358 public boolean hasPermission(int permission) { in hasPermission() method in LocalCallingIdentity
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java6952 boolean hasPermission, boolean shouldSetToNative) throws Exception { in verifySetVendorElement()
7033 private void verifyAddExternalApprover(boolean hasPermission, in verifyAddExternalApprover()
7038 private void verifyAddExternalApprover(Binder binder, boolean hasPermission, in verifyAddExternalApprover()
7045 private void verifyAddExternalApprover(Binder binder, boolean hasPermission, in verifyAddExternalApprover()
7085 private void verifyRemoveExternalApprover(boolean hasPermission, in verifyRemoveExternalApprover()
7130 boolean hasPermission, boolean shouldSucceed, in verifySetConnectionRequestResult()
7184 hasApprover, hasPermission, shouldSucceed, in testSetConnectionRequestResultSuccess() local
7281 hasApprover, hasPermission, shouldSucceed, in testSetConnectionRequestResultFailureWithoutPermission() local
7293 hasApprover, hasPermission, shouldSucceed, in testSetConnectionRequestResultFailureWithoutApprover() local
7326 hasApprover, hasPermission, shouldSucceed, in testSetConnectionRequestResultDeferPinToFramework() local
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DRegisteredNfcFServicesCacheTest.java791 private ResolveInfo getResolveInfo(boolean hasPermission, String packageName, String className) { in getResolveInfo()
DRegisteredServicesCacheTest.java1168 private ResolveInfo createServiceResolveInfo(boolean hasPermission, in createServiceResolveInfo()
/packages/services/Telephony/tests/src/com/android/phone/
DServiceStateProviderTest.java648 private void setLocationPermissions(boolean hasPermission) { in setLocationPermissions()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java266 private void setBluetoothAvailable(boolean hasPermission) { in setBluetoothAvailable()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java1101 private boolean hasPermission(String permission) { in hasPermission() method in CellBroadcastHandler.LocationRequester
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java501 String[] opList, boolean hasPermission) throws Exception { in pollForAppOpPermissions()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java673 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in CarServiceUtils
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java574 private void assertBackgroundPermission(boolean hasPermission, String name, int uid, in assertBackgroundPermission()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java510 boolean hasPermission(@NonNull final PackageInfo app, @NonNull final String permission) { in hasPermission() method in PermissionMonitor
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2816 private boolean hasPermission(String permissionName) { in hasPermission() method in IpClient