2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
오디오 전력 관리
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
차량별 전원 관리를 지원하기 위해 Android는 CarPowerManagementService
서비스와 CarPowerManager
인터페이스를 제공합니다. 전원 정책은 Android Automotive OS(AAOS) 오디오 스택과 오디오 구성요소 android.car.hardware.power.PowerComponent.AUDIO
가 있는 오디오 HAL에 영향을 미칩니다. 자세한 내용은 전원 관리를 참고하세요.
CarAudioService
에서 CarAudioPowerListener
는 동적 오디오 라우팅이 사용 설정될 때 CarPowerManagementService
에 등록됩니다. 이를 통해 CarAudioService
가 오디오와 관련된 전원 정책 변경사항을 수신 대기할 수 있습니다.
정원 정책으로 오디오가 사용 중지되면 다음 작업이 발생합니다.
중요한 오디오 속성 용도의 포커스 요청만 유지됩니다. 다른 포커스 요청은 취소됩니다.
중요하지 않은 오디오 속성 용도에 관한 모든 수신 포커스 요청은 거부됩니다.
자동차 볼륨 그룹 음소거를 사용하는 경우 중요한 오디오 속성 용도의 오디오 컨텍스트가 포함되지 않은 자동차 볼륨 그룹이 음소거됩니다.
다음 오디오 속성 용도가 중요한 것으로 간주됩니다.
샘플 구성(버전 2)에서는 기본 오디오 영역의 다른 컨텍스트와는 별도의 시스템 사운드(예: 응급 상황, 안전) 볼륨 그룹을 사용하는 것이 좋습니다. 이렇게 하면 오디오가 사용 중지될 때 중요하지 않은 모든 오디오 속성 용도의 볼륨 그룹이 음소거되지만 응급 상황과 안전 관련 사운드는 음소거 해제 상태를 유지합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-05-01(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-05-01(UTC)"],[],[],null,["# Audio power management\n\nTo support vehicle-specific power management, Android provides a\n`CarPowerManagementService` service and a `CarPowerManager` interface. The power\npolicy affects the Android Automotive OS (AAOS) audio stack and the audio HAL\nwith the audio component, `android.car.hardware.power.PowerComponent.AUDIO`. To\nlearn more, see [Power Management](/docs/automotive/power/power).\n\nIn `CarAudioService`, a `CarAudioPowerListener` is registered on\n`CarPowerManagementService` when the dynamic audio routing is enabled. This\nallows `CarAudioService` to listen to power policy changes related to audio.\nWhen audio is disabled by the power policy, the following actions take place:\n\n- Only focus requests of critical audio attribute usages are retained. Other\n focus requests are abandoned.\n\n- All incoming focus requests of non-critical audio attribute usages are\n rejected.\n\n- If car volume group muting is used, car volume groups that do not contain\n audio context for critical audio attribute usages are muted.\n\nThe following audio attribute usages are considered as critical:\n\n- Emergency\n- Safety\n\nIn\n[Sample configuration (version 2)](/docs/automotive/audio/audio-policy-configuration#sample),\nwe recommend you use separate volume groups for system sounds, including emergency\nand safety, from other contexts in the primary audio zone. In this way, volume\ngroups for all non-critical audio attribute usages are muted when audio is\ndisabled, while emergency and safety sounds remain unmuted."]]