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
60 if (capturePolicy != DONT_SET) { in checkAttributes()
61 AAudioStreamBuilder_setAllowedCapturePolicy(aaudioBuilder, capturePolicy); in checkAttributes()
88 (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.java7384 public int setAllowedCapturePolicy(int capturePolicy) { in setAllowedCapturePolicy() argument
7386 int flags = AudioAttributes.capturePolicyToFlags(capturePolicy, 0x0); in setAllowedCapturePolicy()
7391 mPlaybackMonitor.setAllowedCapturePolicy(callingUid, capturePolicy); in setAllowedCapturePolicy()
7405 int capturePolicy = mPlaybackMonitor.getAllowedCapturePolicy(callingUid); in getAllowedCapturePolicy() local
7407 return capturePolicy; in getAllowedCapturePolicy()
/frameworks/base/media/java/android/media/
DAudioAttributes.java749 public @NonNull Builder setAllowedCapturePolicy(@CapturePolicy int capturePolicy) { in setAllowedCapturePolicy() argument
750 mFlags = capturePolicyToFlags(capturePolicy, mFlags); in setAllowedCapturePolicy()
1267 public static int capturePolicyToFlags(@CapturePolicy int capturePolicy, int flags) { in capturePolicyToFlags() argument
1268 switch (capturePolicy) { in capturePolicyToFlags()
DIAudioService.aidl266 int setAllowedCapturePolicy(in int capturePolicy); in setAllowedCapturePolicy() argument
DAudioManager.java1512 public void setAllowedCapturePolicy(@AudioAttributes.CapturePolicy int capturePolicy) { in setAllowedCapturePolicy() argument
1516 int result = service.setAllowedCapturePolicy(capturePolicy); in setAllowedCapturePolicy()
/frameworks/av/media/libaaudio/include/aaudio/
DAAudio.h730 aaudio_allowed_capture_policy_t capturePolicy) __INTRODUCED_IN(29);
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp986 status_t AudioPolicyService::setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) { in setAllowedCapturePolicy() argument
992 return mAudioPolicyManager->setAllowedCapturePolicy(uid, capturePolicy); in setAllowedCapturePolicy()
DAudioPolicyService.h189 status_t setAllowedCapturePolicy(uint_t uid, audio_flags_mask_t capturePolicy) override;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h222 status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) override;
DAudioPolicyManager.cpp3175 status_t AudioPolicyManager::setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) in setAllowedCapturePolicy() argument
3177 mAllowedCapturePolicies[uid] = capturePolicy; in setAllowedCapturePolicy()