Home
last modified time | relevance | path

Searched refs:PERMISSION_DENIED (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/av/media/libmedia/
DAudioSystem.cpp112 if (af == 0) return PERMISSION_DENIED; in muteMicrophone()
119 if (af == 0) return PERMISSION_DENIED; in isMicrophoneMuted()
127 if (af == 0) return PERMISSION_DENIED; in setMasterVolume()
135 if (af == 0) return PERMISSION_DENIED; in setMasterMute()
143 if (af == 0) return PERMISSION_DENIED; in getMasterVolume()
151 if (af == 0) return PERMISSION_DENIED; in getMasterMute()
161 if (af == 0) return PERMISSION_DENIED; in setStreamVolume()
170 if (af == 0) return PERMISSION_DENIED; in setStreamMute()
180 if (af == 0) return PERMISSION_DENIED; in getStreamVolume()
189 if (af == 0) return PERMISSION_DENIED; in getStreamMute()
[all …]
DAudioEffect.cpp416 if (af == 0) return PERMISSION_DENIED; in queryNumberEffects()
423 if (af == 0) return PERMISSION_DENIED; in queryEffect()
431 if (af == 0) return PERMISSION_DENIED; in getEffectDescriptor()
441 if (aps == 0) return PERMISSION_DENIED; in queryDefaultPreProcessing()
/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java59 public static final int PERMISSION_DENIED = PackageManager.PERMISSION_DENIED; field in PermissionChecker
62 public static final int PERMISSION_DENIED_APP_OP = PackageManager.PERMISSION_DENIED - 1;
65 PERMISSION_DENIED,
89 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { in checkPermission()
90 return PERMISSION_DENIED; in checkPermission()
101 return PERMISSION_DENIED; in checkPermission()
143 return PackageManager.PERMISSION_DENIED; in checkCallingPermission()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp50 return PERMISSION_DENIED; in openOutput()
71 return PERMISSION_DENIED; in closeOutput()
82 return PERMISSION_DENIED; in suspendOutput()
93 return PERMISSION_DENIED; in restoreOutput()
110 return PERMISSION_DENIED; in openInput()
120 return PERMISSION_DENIED; in closeInput()
138 return PERMISSION_DENIED; in invalidateStream()
180 return PERMISSION_DENIED; in moveEffects()
DAudioPolicyInterfaceImpl.cpp38 return PERMISSION_DENIED; in setDeviceConnectionState()
71 return PERMISSION_DENIED; in setPhoneState()
105 return PERMISSION_DENIED; in setForceUse()
323 status = PERMISSION_DENIED; in getInputForAttr()
329 status = PERMISSION_DENIED; in getInputForAttr()
340 if (status == PERMISSION_DENIED) { in getInputForAttr()
408 return PERMISSION_DENIED; in initStreamVolume()
426 return PERMISSION_DENIED; in setStreamVolumeIndex()
613 return PERMISSION_DENIED; in createAudioPatch()
626 return PERMISSION_DENIED; in releaseAudioPatch()
[all …]
DAudioPolicyClientImplLegacy.cpp148 return PERMISSION_DENIED; in aps_close_output()
159 return PERMISSION_DENIED; in aps_suspend_output()
170 return PERMISSION_DENIED; in aps_restore_output()
240 return PERMISSION_DENIED; in aps_close_input()
250 return PERMISSION_DENIED; in aps_invalidate_stream()
262 return PERMISSION_DENIED; in aps_move_effects()
DAudioPolicyInterfaceImplLegacy.cpp43 return PERMISSION_DENIED; in setDeviceConnectionState()
76 return PERMISSION_DENIED; in setPhoneState()
106 return PERMISSION_DENIED; in setForceUse()
339 return PERMISSION_DENIED; in initStreamVolume()
357 return PERMISSION_DENIED; in setStreamVolumeIndex()
/frameworks/support/compat/tests/java/android/support/v4/content/
DContextCompatTest.java147 assertEquals("Access network state permission denied", PackageManager.PERMISSION_DENIED, in testCheckSelfPermission()
150 assertEquals("Bluetooth permission denied", PackageManager.PERMISSION_DENIED, in testCheckSelfPermission()
153 assertEquals("Call phone permission denied", PackageManager.PERMISSION_DENIED, in testCheckSelfPermission()
156 assertEquals("Delete packages permission denied", PackageManager.PERMISSION_DENIED, in testCheckSelfPermission()
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java51 return PackageManager.PERMISSION_DENIED; in requestPriority()
61 return PackageManager.PERMISSION_DENIED; in requestPriority()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyExceptionUtils.java32 public static final int PERMISSION_DENIED = -EPERM; field in LegacyExceptionUtils
93 } else if (errorFlag == PERMISSION_DENIED) { in throwOnServiceError()
/frameworks/base/core/jni/
Dandroid_media_AudioErrors.h46 case PERMISSION_DENIED: in nativeToJavaStatus()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java170 : PackageManager.PERMISSION_DENIED); in setHasAppOpsPermission()
176 : PackageManager.PERMISSION_DENIED); in setHasReadHistoryPermission()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java382 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_DENIED); in testRegisteredReceivePermissionDenied()
420 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testRegisteredBroadcastPermissionDenied() local
466 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testLocalBroadcastPermissionDenied() local
512 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testRemoteBroadcastPermissionDenied() local
DIntentSenderTest.java44 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_DENIED); in testRegisteredReceivePermissionDenied()
DActivityTestsBase.java29 public static final String PERMISSION_DENIED = field in ActivityTestsBase
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp111 return PERMISSION_DENIED; in listModules()
132 return PERMISSION_DENIED; in attach()
535 return PERMISSION_DENIED; in loadSoundModel()
595 return PERMISSION_DENIED; in unloadSoundModel()
623 return PERMISSION_DENIED; in startRecognition()
676 return PERMISSION_DENIED; in stopRecognition()
/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp107 return PERMISSION_DENIED; in setVideoSource()
121 return PERMISSION_DENIED; in setAudioSource()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp800 return PERMISSION_DENIED; in setMasterVolume()
841 return PERMISSION_DENIED; in setMode()
875 return PERMISSION_DENIED; in setMicMute()
922 return PERMISSION_DENIED; in setMasterMute()
985 return PERMISSION_DENIED; in checkStreamType()
996 return PERMISSION_DENIED; in setStreamVolume()
1031 return PERMISSION_DENIED; in setStreamMute()
1101 return PERMISSION_DENIED; in setParameters()
1285 return PERMISSION_DENIED; in setVoiceVolume()
1508 lStatus = PERMISSION_DENIED; in openRecord()
[all …]
/frameworks/av/include/media/stagefright/foundation/
DADebug.h38 case PERMISSION_DENIED: return "PERMISSION_DENIED";
/frameworks/native/include/binder/
DIInterface.h108 if (!data.checkInterface(this)) { return PERMISSION_DENIED; } \
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java131 == PackageManager.PERMISSION_DENIED in enforceOemUnlockReadPermission()
133 == PackageManager.PERMISSION_DENIED) { in enforceOemUnlockReadPermission()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentCompat.java69 Arrays.fill(grantResults, PackageManager.PERMISSION_DENIED); in requestPermissions()
/frameworks/native/services/surfaceflinger/
DClient.cpp99 return PERMISSION_DENIED; in onTransact()
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp97 return PERMISSION_DENIED; in setNativeWindowSizeFormatAndUsage()
/frameworks/base/docs/html/training/permissions/
Drequesting.jd141 android.content.pm.PackageManager#PERMISSION_DENIED PERMISSION_DENIED}, and
355 android.content.pm.PackageManager#PERMISSION_DENIED PERMISSION_DENIED}, the

123