Lines Matching refs:pid
62 static bool checkRecordingInternal(const String16& opPackageName, pid_t pid, in checkRecordingInternal() argument
75 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid); in checkRecordingInternal()
105 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in recordingAllowed() argument
106 return checkRecordingInternal(opPackageName, pid, uid, /*start*/ false); in recordingAllowed()
109 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid) { in startRecording() argument
110 return checkRecordingInternal(opPackageName, pid, uid, /*start*/ true); in startRecording()
130 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { in captureAudioOutputAllowed() argument
133 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed()
138 bool captureMediaOutputAllowed(pid_t pid, uid_t uid) { in captureMediaOutputAllowed() argument
141 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
146 bool captureHotwordAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in captureHotwordAllowed() argument
148 bool ok = recordingAllowed(opPackageName, pid, uid); in captureHotwordAllowed()
153 ok = PermissionCache::checkPermission(sCaptureHotwordAllowed, pid, uid); in captureHotwordAllowed()
181 bool modifyDefaultAudioEffectsAllowed(pid_t pid, uid_t uid) { in modifyDefaultAudioEffectsAllowed() argument
187 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
202 bool modifyPhoneStateAllowed(pid_t pid, uid_t uid) { in modifyPhoneStateAllowed() argument
203 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
209 bool bypassInterruptionPolicyAllowed(pid_t pid, uid_t uid) { in bypassInterruptionPolicyAllowed() argument
211 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
212 || PermissionCache::checkPermission(sWriteSecureSettings, pid, uid) in bypassInterruptionPolicyAllowed()
213 || PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in bypassInterruptionPolicyAllowed()