1################################################################################################ 2# 3# @NOTE: 4# Audio Policy Engine configurable example for generic device build 5# 6# Any vendor shall have its own configuration within the corresponding device folder 7# 8################################################################################################ 9 10ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), phone_configurable) 11 12LOCAL_PATH := $(call my-dir) 13 14PFW_CORE := external/parameter-framework 15PFW_DEFAULT_SCHEMAS_DIR := $(PFW_CORE)/upstream/schemas 16PFW_SCHEMAS_DIR := $(PFW_DEFAULT_SCHEMAS_DIR) 17 18TOOLS := frameworks/av/services/audiopolicy/engineconfigurable/tools 19BUILD_PFW_SETTINGS := $(TOOLS)/build_audio_pfw_settings.mk 20 21################################################################## 22# CONFIGURATION FILES 23################################################################## 24########## Policy PFW Structures ######### 25######### Policy PFW Settings ######### 26include $(CLEAR_VARS) 27LOCAL_MODULE := parameter-framework.policy 28LOCAL_MODULE_STEM := PolicyConfigurableDomains.xml 29LOCAL_MODULE_CLASS := ETC 30LOCAL_VENDOR_MODULE := true 31LOCAL_MODULE_RELATIVE_PATH := parameter-framework/Settings/Policy 32LOCAL_REQUIRED_MODULES := libpolicy-subsystem 33 34PFW_EDD_FILES := \ 35 $(LOCAL_PATH)/../Settings/device_for_input_source.pfw \ 36 $(LOCAL_PATH)/../Settings/volumes.pfw \ 37 $(LOCAL_PATH)/Settings/device_for_product_strategy_media.pfw \ 38 $(LOCAL_PATH)/Settings/device_for_product_strategy_accessibility.pfw \ 39 $(LOCAL_PATH)/Settings/device_for_product_strategy_dtmf.pfw \ 40 $(LOCAL_PATH)/Settings/device_for_product_strategy_enforced_audible.pfw \ 41 $(LOCAL_PATH)/Settings/device_for_product_strategy_phone.pfw \ 42 $(LOCAL_PATH)/Settings/device_for_product_strategy_sonification.pfw \ 43 $(LOCAL_PATH)/Settings/device_for_product_strategy_sonification_respectful.pfw \ 44 $(LOCAL_PATH)/Settings/device_for_product_strategy_transmitted_through_speaker.pfw \ 45 $(LOCAL_PATH)/Settings/device_for_product_strategy_rerouting.pfw \ 46 $(LOCAL_PATH)/Settings/device_for_product_strategy_patch.pfw 47PFW_CRITERION_TYPES_FILE := $(TARGET_OUT_VENDOR_ETC)/audio_policy_engine_criterion_types.xml 48PFW_CRITERIA_FILE := $(TARGET_OUT_VENDOR_ETC)/audio_policy_engine_criteria.xml 49PFW_TOPLEVEL_FILE := $(TARGET_OUT_VENDOR_ETC)/parameter-framework/ParameterFrameworkConfigurationPolicy.xml 50PFW_SCHEMAS_DIR := $(PFW_DEFAULT_SCHEMAS_DIR) 51 52include $(BUILD_PFW_SETTINGS) 53 54endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), phone_configurable) 55