/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestablePermissionsTest.java | 17 import static android.content.pm.PackageManager.PERMISSION_DENIED; 47 PERMISSION_DENIED); in testCheck() 50 assertEquals(PERMISSION_DENIED, in testCheck() 57 mContext.getTestablePermissions().setPermission(URI_2, PERMISSION_DENIED); in testCheckUri() 60 assertEquals(PERMISSION_DENIED, mContext.checkUriPermission(URI_2, 0, 0, 0)); in testCheckUri() 73 PERMISSION_DENIED); in testEnforceWithException() 85 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_DENIED); in testEnforceUriWithException()
|
/frameworks/av/media/libaudioclient/ |
D | AudioSystem.cpp | 269 if (af == 0) return PERMISSION_DENIED; in muteMicrophone() 275 if (af == 0) return PERMISSION_DENIED; in isMicrophoneMuted() 282 if (af == 0) return PERMISSION_DENIED; in setMasterVolume() 289 if (af == 0) return PERMISSION_DENIED; in setMasterMute() 296 if (af == 0) return PERMISSION_DENIED; in getMasterVolume() 303 if (af == 0) return PERMISSION_DENIED; in getMasterMute() 312 if (af == 0) return PERMISSION_DENIED; in setStreamVolume() 320 if (af == 0) return PERMISSION_DENIED; in setStreamMute() 329 if (af == 0) return PERMISSION_DENIED; in getStreamVolume() 337 if (af == 0) return PERMISSION_DENIED; in getStreamMute() [all …]
|
D | AudioEffect.cpp | 637 if (af == 0) return PERMISSION_DENIED; in queryNumberEffects() 647 if (af == 0) return PERMISSION_DENIED; in queryEffect() 660 if (af == 0) return PERMISSION_DENIED; in getEffectDescriptor() 672 if (aps == 0) return PERMISSION_DENIED; in queryDefaultPreProcessing() 693 if (af == 0) return PERMISSION_DENIED; in newEffectUniqueId() 709 if (aps == 0) return PERMISSION_DENIED; in addSourceDefaultEffect() 753 if (aps == 0) return PERMISSION_DENIED; in addStreamDefaultEffect() 789 if (aps == 0) return PERMISSION_DENIED; in removeSourceDefaultEffect() 798 if (aps == 0) return PERMISSION_DENIED; in removeStreamDefaultEffect()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyClientImpl.cpp | 64 return PERMISSION_DENIED; in openOutput() 110 return PERMISSION_DENIED; in closeOutput() 121 return PERMISSION_DENIED; in suspendOutput() 132 return PERMISSION_DENIED; in restoreOutput() 149 return PERMISSION_DENIED; in openInput() 177 return PERMISSION_DENIED; in closeInput() 216 return PERMISSION_DENIED; in moveEffects() 310 return PERMISSION_DENIED; in getAudioPort() 320 return PERMISSION_DENIED; in updateSecondaryOutputs() 330 return PERMISSION_DENIED; in setDeviceConnectedState() [all …]
|
D | AudioPolicyInterfaceImpl.cpp | 102 return PERMISSION_DENIED; in validateUsage() 107 return PERMISSION_DENIED; in validateUsage() 141 return binderStatusFromStatusT(PERMISSION_DENIED); in setDeviceConnectionState() 195 return binderStatusFromStatusT(PERMISSION_DENIED); in handleDeviceConfigChange() 219 return binderStatusFromStatusT(PERMISSION_DENIED); in setPhoneState() 269 return binderStatusFromStatusT(PERMISSION_DENIED); in setForceUse() 377 return binderStatusFromStatusT(PERMISSION_DENIED); in getOutputForAttr() 406 result = PERMISSION_DENIED; in getOutputForAttr() 410 result = PERMISSION_DENIED; in getOutputForAttr() 417 result = PERMISSION_DENIED; in getOutputForAttr() [all …]
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 93 return PackageManager.PERMISSION_DENIED; in requestPriority() 99 return PackageManager.PERMISSION_DENIED; in requestPriority() 108 return PackageManager.PERMISSION_DENIED; in requestPriority() 117 return PackageManager.PERMISSION_DENIED; in requestPriority() 127 return PackageManager.PERMISSION_DENIED; in requestCpusetBoost() 133 return PackageManager.PERMISSION_DENIED; in requestCpusetBoost() 181 return PackageManager.PERMISSION_DENIED; in enableCpusetBoost()
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadService.cpp | 31 return binder::Status::fromStatusT(PERMISSION_DENIED); in attach() 60 return binder::Status::fromStatusT(PERMISSION_DENIED); in detach() 72 return binder::Status::fromStatusT(PERMISSION_DENIED); in touch() 82 return binder::Status::fromStatusT(PERMISSION_DENIED); in buttonState() 92 return binder::Status::fromStatusT(PERMISSION_DENIED); in scroll()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiPermissionCheckerTest.java | 21 import static android.content.pm.PackageManager.PERMISSION_DENIED; 75 .thenReturn(PERMISSION_DENIED); in canAccessWifiState_noPermission_returnFalse() 91 .thenReturn(PERMISSION_DENIED); in canAccessFineLocation_noPermission_returnFalse()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/ |
D | LegacyPermissionManagerServiceTest.java | 112 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkDeviceIdentifierAccess_callingAppIdWithoutAccess_returnsDenied() 205 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_callingAppIdWithoutAccess_returnsDenied() 218 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_nullPackageName_returnsDenied() 271 assertEquals(PackageManager.PERMISSION_DENIED, resultWithoutAppop); in checkPhoneNumberAccess_targetRWithReadPhoneState_returnsDenied() 272 assertEquals(PackageManager.PERMISSION_DENIED, resultWithAppop); in checkPhoneNumberAccess_targetRWithReadPhoneState_returnsDenied() 303 assertEquals(PackageManager.PERMISSION_DENIED, resultWithoutAppop); in checkPhoneNumberAccess_readPhoneNumbersGranted_returnsGranted() 320 assertEquals(PackageManager.PERMISSION_DENIED, resultWithoutAppop); in checkPhoneNumberAccess_readSmsGranted_returnsGranted() 438 PackageManager.PERMISSION_DENIED); in setupAccessTest()
|
/frameworks/native/libs/binder/trusty/ |
D | TrustyStatus.cpp | 62 return PERMISSION_DENIED; in statusFromTrusty() 80 case PERMISSION_DENIED: in statusToTrusty()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 18 import static android.content.pm.PackageManager.PERMISSION_DENIED; 199 .thenReturn(PERMISSION_DENIED); in testCheckCallingOrSelfCanGetSmscAddressPermissions_defaultSmsApp() 217 .thenReturn(PERMISSION_DENIED); in testCheckCallingOrSelfCanGetSmscAddressPermissions_noPermissions() 231 .thenReturn(PERMISSION_DENIED); in testCheckCallingOrSelfCanSetSmscAddressPermissions_defaultSmsApp() 248 Manifest.permission.MODIFY_PHONE_STATE)).thenReturn(PERMISSION_DENIED); in testCheckCallingOrSelfCanSetSmscAddressPermissions_noPermissions()
|
D | TelephonyPermissionsTest.java | 134 PID, UID)).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 461 PackageManager.PERMISSION_DENIED); in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_noPermissions() 465 PackageManager.PERMISSION_DENIED); in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_noPermissions() 499 PackageManager.PERMISSION_DENIED); in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_withPermissions() 524 PackageManager.PERMISSION_DENIED); in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_withPrivileges() 528 PackageManager.PERMISSION_DENIED); in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_withPrivileges() 617 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setupMocksForDeviceIdentifiersErrorPath() 619 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setupMocksForDeviceIdentifiersErrorPath()
|
/frameworks/native/libs/gui/include/gui/ |
D | AidlStatusUtil.h | 41 return PERMISSION_DENIED; in statusTFromExceptionCode() 99 case PERMISSION_DENIED: // throw SecurityException on Java side
|
/frameworks/base/core/java/android/app/ |
D | ForegroundServiceTypePolicy.java | 23 import static android.content.pm.PackageManager.PERMISSION_DENIED; 1069 return PERMISSION_DENIED; in checkPermissions() 1083 return anyOfGranted ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermissions() 1174 return PERMISSION_DENIED; in checkPermission() 1180 ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermission() 1191 ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermission() 1196 ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermission() 1204 ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermission() 1206 return PERMISSION_DENIED; in checkPermission() 1229 ? PERMISSION_GRANTED : PERMISSION_DENIED; in checkPermission() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/ |
D | TvRemoteProviderWatcherTest.java | 74 PackageManager.PERMISSION_DENIED); in setUp() 79 PackageManager.PERMISSION_DENIED); in setUp() 144 PackageManager.PERMISSION_DENIED); in packageManagerPermissionIsRequired()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | DeletePackageHelperTest.kt | 21 import android.content.pm.PackageManager.PERMISSION_DENIED 118 .thenReturn(PERMISSION_DENIED) in deleteSystemPackageSucceedsIfAdmin() 140 .thenReturn(PERMISSION_DENIED) in deleteSystemPackageSucceedsIfProfileOfAdmin() 158 .thenReturn(PERMISSION_DENIED) in deleteSystemPackageSucceedsIfNotAdminButDeleteSystemAppSpecified()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_aidl_status_tests.cpp | 42 PERMISSION_DENIED, NO_INIT, ALREADY_EXISTS, DEAD_OBJECT, FAILED_TRANSACTION, BAD_INDEX, in TEST() 72 PERMISSION_DENIED, NO_INIT, ALREADY_EXISTS, DEAD_OBJECT, FAILED_TRANSACTION, BAD_INDEX, in TEST()
|
/frameworks/native/services/sensorservice/hidl/ |
D | utils.cpp | 66 case PERMISSION_DENIED: in convertResult() 67 return Result::PERMISSION_DENIED; in convertResult()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceManagerServiceTest.java | 18 import static android.content.pm.PackageManager.PERMISSION_DENIED; 123 .thenReturn(PERMISSION_DENIED); in testCheckAutoGrantPermissions() 125 .thenReturn(PERMISSION_DENIED); in testCheckAutoGrantPermissions()
|
/frameworks/hardware/interfaces/cameraservice/common/aidl/android/frameworks/cameraservice/common/ |
D | Status.aidl | 33 PERMISSION_DENIED = 1, enumConstant
|
/frameworks/hardware/interfaces/cameraservice/common/aidl/aidl_api/android.frameworks.cameraservice.common/1/android/frameworks/cameraservice/common/ |
D | Status.aidl | 38 PERMISSION_DENIED = 1, enumConstant
|
/frameworks/hardware/interfaces/cameraservice/common/aidl/aidl_api/android.frameworks.cameraservice.common/current/android/frameworks/cameraservice/common/ |
D | Status.aidl | 38 PERMISSION_DENIED = 1, enumConstant
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PermissionHelperTest.java | 24 import static android.content.pm.PackageManager.PERMISSION_DENIED; 99 .thenReturn(PERMISSION_DENIED); in testHasPermission() 246 .thenReturn(PERMISSION_DENIED); in testSetNotificationPermission_grantUserSet() 261 .thenReturn(PERMISSION_DENIED); in testSetNotificationPermission_pkgPerm_grantedByDefaultPermSet_allUserSet() 295 .thenReturn(PERMISSION_DENIED); in testSetNotificationPermission_grantNotUserSet() 360 .thenReturn(PERMISSION_DENIED); in testSetNotificationPermission_alreadyRevokedNotRerevoked()
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | types.h | 34 PERMISSION_DENIED = -1, // -EPERM enumerator
|
/frameworks/base/core/jni/ |
D | android_media_AudioErrors.h | 46 case PERMISSION_DENIED: in nativeToJavaStatus()
|