Home
last modified time | relevance | path

Searched refs:capturePolicy (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_attributes.cpp35 aaudio_allowed_capture_policy_t capturePolicy = DONT_SET, in checkAttributes() argument
61 if (capturePolicy != DONT_SET) { in checkAttributes()
62 AAudioStreamBuilder_setAllowedCapturePolicy(aaudioBuilder, capturePolicy); in checkAttributes()
92 (capturePolicy == DONT_SET || capturePolicy == AAUDIO_UNSPECIFIED) in checkAttributes()
/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java316 public void setAllowedCapturePolicy(int uid, int capturePolicy) { in setAllowedCapturePolicy() argument
318 if (capturePolicy == AudioAttributes.ALLOW_CAPTURE_BY_ALL) { in setAllowedCapturePolicy()
324 mAllowedCapturePolicies.put(uid, capturePolicy); in setAllowedCapturePolicy()
330 updateAllowedCapturePolicy(apc, capturePolicy); in setAllowedCapturePolicy()
353 private void updateAllowedCapturePolicy(AudioPlaybackConfiguration apc, int capturePolicy) { in updateAllowedCapturePolicy() argument
355 if (attr.getAllowedCapturePolicy() >= capturePolicy) { in updateAllowedCapturePolicy()
360 .setAllowedCapturePolicy(capturePolicy).build()); in updateAllowedCapturePolicy()
DAudioService.java8444 public int setAllowedCapturePolicy(int capturePolicy) { in setAllowedCapturePolicy() argument
8446 int flags = AudioAttributes.capturePolicyToFlags(capturePolicy, 0x0); in setAllowedCapturePolicy()
8451 mPlaybackMonitor.setAllowedCapturePolicy(callingUid, capturePolicy); in setAllowedCapturePolicy()
8465 int capturePolicy = mPlaybackMonitor.getAllowedCapturePolicy(callingUid); in getAllowedCapturePolicy() local
8467 return capturePolicy; in getAllowedCapturePolicy()
/frameworks/base/media/java/android/media/
DAudioAttributes.java871 public @NonNull Builder setAllowedCapturePolicy(@CapturePolicy int capturePolicy) { in setAllowedCapturePolicy() argument
872 mFlags = capturePolicyToFlags(capturePolicy, mFlags); in setAllowedCapturePolicy()
1437 public static int capturePolicyToFlags(@CapturePolicy int capturePolicy, int flags) { in capturePolicyToFlags() argument
1438 switch (capturePolicy) { in capturePolicyToFlags()
DIAudioService.aidl290 int setAllowedCapturePolicy(in int capturePolicy); in setAllowedCapturePolicy() argument
DAudioManager.java1553 public void setAllowedCapturePolicy(@AudioAttributes.CapturePolicy int capturePolicy) { in setAllowedCapturePolicy() argument
1557 int result = service.setAllowedCapturePolicy(capturePolicy); in setAllowedCapturePolicy()
/frameworks/av/media/libaaudio/include/aaudio/
DAAudio.h757 aaudio_allowed_capture_policy_t capturePolicy) __INTRODUCED_IN(29);
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1079 status_t AudioPolicyService::setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) { in setAllowedCapturePolicy() argument
1085 return mAudioPolicyManager->setAllowedCapturePolicy(uid, capturePolicy); in setAllowedCapturePolicy()
DAudioPolicyService.h194 status_t setAllowedCapturePolicy(uint_t uid, audio_flags_mask_t capturePolicy) override;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h227 status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) override;
DAudioPolicyManager.cpp3290 status_t AudioPolicyManager::setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) in setAllowedCapturePolicy() argument
3292 mAllowedCapturePolicies[uid] = capturePolicy; in setAllowedCapturePolicy()