├── Android.bp
├── Android.mk
├── AndroidProducts.mk
├── BoardConfig.mk
├── README.md
├── audio
├── audio_effects.xml
├── audio_output_policy.conf
├── audio_platform_info_intcodec.xml
├── audio_policy_configuration.xml
└── mixer_paths_mtp.xml
├── biometrics
├── Android.bp
├── BiometricsFingerprint.cpp
├── BiometricsFingerprint.h
├── android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido.rc
├── android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido.xml
└── service.cpp
├── bluetooth
└── bdroid_buildcfg.h
├── camera
├── Android.mk
├── CleanSpec.mk
├── MODULE_LICENSE_BSD
├── QCamera2
│ ├── Android.mk
│ ├── HAL
│ │ ├── QCamera2HWI.cpp
│ │ ├── QCamera2HWI.h
│ │ ├── QCamera2HWICallbacks.cpp
│ │ ├── QCameraAllocator.h
│ │ ├── QCameraChannel.cpp
│ │ ├── QCameraChannel.h
│ │ ├── QCameraMem.cpp
│ │ ├── QCameraMem.h
│ │ ├── QCameraMuxer.cpp
│ │ ├── QCameraMuxer.h
│ │ ├── QCameraParameters.cpp
│ │ ├── QCameraParameters.h
│ │ ├── QCameraParametersIntf.cpp
│ │ ├── QCameraParametersIntf.h
│ │ ├── QCameraPostProc.cpp
│ │ ├── QCameraPostProc.h
│ │ ├── QCameraStateMachine.cpp
│ │ ├── QCameraStateMachine.h
│ │ ├── QCameraStream.cpp
│ │ ├── QCameraStream.h
│ │ ├── QCameraThermalAdapter.cpp
│ │ ├── QCameraThermalAdapter.h
│ │ ├── android
│ │ │ └── QCamera2External.h
│ │ ├── tsMakeuplib
│ │ │ └── include
│ │ │ │ ├── ts_detectface_engine.h
│ │ │ │ ├── ts_makeup_data.h
│ │ │ │ ├── ts_makeup_engine.h
│ │ │ │ └── ts_makeup_image.h
│ │ └── wrapper
│ │ │ ├── QualcommCamera.cpp
│ │ │ └── QualcommCamera.h
│ ├── HAL3
│ │ ├── QCamera3Channel.cpp
│ │ ├── QCamera3Channel.h
│ │ ├── QCamera3CropRegionMapper.cpp
│ │ ├── QCamera3CropRegionMapper.h
│ │ ├── QCamera3HALHeader.h
│ │ ├── QCamera3HWI.cpp
│ │ ├── QCamera3HWI.h
│ │ ├── QCamera3Mem.cpp
│ │ ├── QCamera3Mem.h
│ │ ├── QCamera3PostProc.cpp
│ │ ├── QCamera3PostProc.h
│ │ ├── QCamera3Stream.cpp
│ │ ├── QCamera3Stream.h
│ │ ├── QCamera3StreamMem.cpp
│ │ ├── QCamera3StreamMem.h
│ │ ├── QCamera3VendorTags.cpp
│ │ ├── QCamera3VendorTags.h
│ │ ├── QCameraFormat.h
│ │ └── android
│ │ │ └── QCamera3External.h
│ ├── QCamera2Factory.cpp
│ ├── QCamera2Factory.h
│ ├── QCamera2Hal.cpp
│ ├── stack
│ │ ├── Android.mk
│ │ ├── common
│ │ │ ├── cam_intf.h
│ │ │ ├── cam_list.h
│ │ │ ├── cam_queue.h
│ │ │ ├── cam_semaphore.h
│ │ │ ├── cam_types.h
│ │ │ ├── mm_camera_interface.h
│ │ │ ├── mm_camera_shim.h
│ │ │ └── mm_jpeg_interface.h
│ │ ├── mm-camera-interface
│ │ │ ├── Android.mk
│ │ │ ├── inc
│ │ │ │ ├── mm_camera.h
│ │ │ │ ├── mm_camera_dbg.h
│ │ │ │ └── mm_camera_sock.h
│ │ │ └── src
│ │ │ │ ├── mm_camera.c
│ │ │ │ ├── mm_camera_channel.c
│ │ │ │ ├── mm_camera_interface.c
│ │ │ │ ├── mm_camera_sock.c
│ │ │ │ ├── mm_camera_stream.c
│ │ │ │ └── mm_camera_thread.c
│ │ ├── mm-jpeg-interface
│ │ │ ├── Android.mk
│ │ │ ├── inc
│ │ │ │ ├── mm_jpeg.h
│ │ │ │ ├── mm_jpeg_dbg.h
│ │ │ │ ├── mm_jpeg_inlines.h
│ │ │ │ ├── mm_jpeg_ionbuf.h
│ │ │ │ └── mm_jpeg_mpo.h
│ │ │ └── src
│ │ │ │ ├── mm_jpeg.c
│ │ │ │ ├── mm_jpeg_exif.c
│ │ │ │ ├── mm_jpeg_interface.c
│ │ │ │ ├── mm_jpeg_ionbuf.c
│ │ │ │ ├── mm_jpeg_mpo_composer.c
│ │ │ │ ├── mm_jpeg_queue.c
│ │ │ │ ├── mm_jpegdec.c
│ │ │ │ └── mm_jpegdec_interface.c
│ │ └── mm-lib2d-interface
│ │ │ ├── Android.mk
│ │ │ ├── inc
│ │ │ └── mm_lib2d.h
│ │ │ └── src
│ │ │ └── mm_lib2d.c
│ └── util
│ │ ├── QCameraBufferMaps.cpp
│ │ ├── QCameraBufferMaps.h
│ │ ├── QCameraCmdThread.cpp
│ │ ├── QCameraCmdThread.h
│ │ ├── QCameraCommon.cpp
│ │ ├── QCameraCommon.h
│ │ ├── QCameraDisplay.cpp
│ │ ├── QCameraDisplay.h
│ │ ├── QCameraFlash.cpp
│ │ ├── QCameraFlash.h
│ │ ├── QCameraPerf.cpp
│ │ ├── QCameraPerf.h
│ │ ├── QCameraQueue.cpp
│ │ ├── QCameraQueue.h
│ │ └── QCameraTrace.h
└── mm-image-codec
│ ├── Android.mk
│ ├── qexif
│ ├── qexif.h
│ └── qmpo.h
│ └── qomx_core
│ ├── Android.mk
│ ├── QOMX_JpegExtensions.h
│ ├── qomx_core.c
│ └── qomx_core.h
├── compatibility_matrix.xml
├── config.fs
├── configs
├── cgroups.json
├── component-overrides.xml
├── gps
│ └── gps.conf
├── media
│ ├── media_codecs.xml
│ ├── media_codecs_performance.xml
│ ├── media_codecs_performance_v1.xml
│ ├── media_codecs_vendor_v1.xml
│ └── media_profiles_V1_0.xml
├── msm_irqbalance.conf
├── perf
│ ├── commonresourceconfigs.xml
│ ├── commonsysnodesconfigs.xml
│ ├── perf-profile0.conf
│ ├── perfboostsconfig.xml
│ ├── perfconfigstore.xml
│ ├── powerhint.xml
│ ├── targetconfig.xml
│ └── targetresourceconfigs.xml
├── public.libraries.txt
├── qmi
│ └── qmi_fw.conf
├── qti_whitelist.xml
├── sec_config
├── sensors
│ ├── hals.conf
│ └── sensor_def_qcomdev.conf
├── task_profiles.json
└── thermal-engine.conf
├── consumerir
├── Android.bp
├── ConsumerIr.cpp
├── ConsumerIr.h
├── android.hardware.ir@1.0-service.xiaomi_mido.rc
├── android.hardware.ir@1.0-service.xiaomi_mido.xml
└── service.cpp
├── device.mk
├── extract-files.sh
├── framework_manifest.xml
├── include
├── sound
│ └── voice_params.h
└── surround_rec_interface.h
├── init
├── Android.bp
└── init_mido.cpp
├── keylayout
├── ft5435_ts.kl
├── gf3208.kl
├── goodix-ts.kl
├── gpio-keys.kl
├── ist30xx_ts_input.kl
├── msm8953-snd-card-mtp_Button_Jack.kl
└── uinput-fpc.kl
├── libhidl
└── Android.bp
├── libshims
├── Android.bp
├── GraphicBuffer.cpp
├── Surface.cpp
├── fakelogprint.cpp
├── gxfpd_shim.cpp
└── libshims.cpp
├── light
├── Android.bp
├── Light.cpp
├── Light.h
├── android.hardware.light@2.0-service.xiaomi_mido.rc
├── android.hardware.light@2.0-service.xiaomi_mido.xml
└── service.cpp
├── lineage_mido.mk
├── manifest.xml
├── odm.prop
├── overlay
├── frameworks
│ └── base
│ │ ├── core
│ │ └── res
│ │ │ └── res
│ │ │ ├── values
│ │ │ └── config.xml
│ │ │ └── xml
│ │ │ └── power_profile.xml
│ │ └── packages
│ │ ├── SettingsProvider
│ │ └── res
│ │ │ └── values
│ │ │ └── defaults.xml
│ │ └── SystemUI
│ │ ├── res-keyguard
│ │ ├── values-en-rAU
│ │ │ └── strings.xml
│ │ ├── values-en-rCA
│ │ │ └── strings.xml
│ │ ├── values-en-rGB
│ │ │ └── strings.xml
│ │ ├── values-en-rIN
│ │ │ └── strings.xml
│ │ └── values
│ │ │ ├── config.xml
│ │ │ └── strings.xml
│ │ └── res
│ │ ├── values-en-rAU
│ │ └── strings.xml
│ │ ├── values-en-rCA
│ │ └── strings.xml
│ │ ├── values-en-rGB
│ │ └── strings.xml
│ │ ├── values-en-rIN
│ │ └── strings.xml
│ │ ├── values-sw372dp
│ │ └── dimens.xml
│ │ └── values
│ │ ├── config.xml
│ │ └── strings.xml
└── packages
│ ├── apps
│ ├── Dialer
│ │ └── java
│ │ │ └── com
│ │ │ └── android
│ │ │ └── dialer
│ │ │ └── callrecord
│ │ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ └── Snap
│ │ └── res
│ │ └── values
│ │ └── qcomarrays.xml
│ └── services
│ └── Telephony
│ └── res
│ ├── values
│ └── config.xml
│ └── xml
│ └── telephony_injection.xml
├── parts
├── Android.bp
├── AndroidManifest.xml
├── proguard.flags
├── res
│ ├── color
│ │ └── switch_bar_bg.xml
│ ├── drawable
│ │ ├── action_presets.xml
│ │ ├── action_reset.xml
│ │ ├── active_dot.xml
│ │ ├── dirac_qs_tile_icon.xml
│ │ ├── ic_custom_seekbar_minus.xml
│ │ ├── ic_custom_seekbar_plus.xml
│ │ ├── ic_custom_seekbar_reset.xml
│ │ ├── ic_dirac.xml
│ │ ├── ic_hand.xml
│ │ ├── ic_headphone.xml
│ │ ├── ic_kcal.xml
│ │ ├── ic_mic.xml
│ │ ├── ic_pickup.xml
│ │ ├── ic_pocket.xml
│ │ ├── ic_preset.xml
│ │ ├── ic_speaker.xml
│ │ ├── ic_speaker_cleaner_icon.xml
│ │ ├── ic_torch.xml
│ │ ├── ic_torch_icon.xml
│ │ ├── inactive_dot.xml
│ │ ├── kcal_image_one.jpg
│ │ ├── kcal_image_two.png
│ │ └── switchbar_background.xml
│ ├── layout
│ │ ├── image_layout.xml
│ │ ├── kcal_layout.xml
│ │ ├── preference_custom_seekbar.xml
│ │ └── switch_bar.xml
│ ├── menu
│ │ └── menu_reset.xml
│ ├── raw
│ │ └── clear_speaker_sound.mp3
│ ├── values-ar-rSA
│ │ └── strings.xml
│ ├── values-as-rIN
│ │ └── strings.xml
│ ├── values-az-rAZ
│ │ └── strings.xml
│ ├── values-be-rBY
│ │ └── strings.xml
│ ├── values-bg-rBG
│ │ └── strings.xml
│ ├── values-bn-rBD
│ │ └── strings.xml
│ ├── values-bs-rBA
│ │ └── strings.xml
│ ├── values-ca-rES
│ │ └── strings.xml
│ ├── values-cs-rCZ
│ │ └── strings.xml
│ ├── values-da-rDK
│ │ └── strings.xml
│ ├── values-de-rDE
│ │ └── strings.xml
│ ├── values-el-rGR
│ │ └── strings.xml
│ ├── values-es-rES
│ │ └── strings.xml
│ ├── values-es-rMX
│ │ └── strings.xml
│ ├── values-et-rEE
│ │ └── strings.xml
│ ├── values-eu-rES
│ │ └── strings.xml
│ ├── values-fa-rIR
│ │ └── strings.xml
│ ├── values-fi-rFI
│ │ └── strings.xml
│ ├── values-fr-rFR
│ │ └── strings.xml
│ ├── values-gl-rES
│ │ └── strings.xml
│ ├── values-gu-rIN
│ │ └── strings.xml
│ ├── values-ha-rHG
│ │ └── strings.xml
│ ├── values-hi-rIN
│ │ └── strings.xml
│ ├── values-hr-rHR
│ │ └── strings.xml
│ ├── values-hu-rHU
│ │ └── strings.xml
│ ├── values-hy-rAM
│ │ └── strings.xml
│ ├── values-in-rID
│ │ └── strings.xml
│ ├── values-it-rIT
│ │ └── strings.xml
│ ├── values-iw-rIL
│ │ └── strings.xml
│ ├── values-ja-rJP
│ │ └── strings.xml
│ ├── values-ka-rGE
│ │ └── strings.xml
│ ├── values-kk-rKZ
│ │ └── strings.xml
│ ├── values-km-rKH
│ │ └── strings.xml
│ ├── values-kn-rIN
│ │ └── strings.xml
│ ├── values-ko-rKR
│ │ └── strings.xml
│ ├── values-lt-rLT
│ │ └── strings.xml
│ ├── values-lv-rLV
│ │ └── strings.xml
│ ├── values-mk-rMK
│ │ └── strings.xml
│ ├── values-ml-rIN
│ │ └── strings.xml
│ ├── values-mr-rIN
│ │ └── strings.xml
│ ├── values-ms-rMY
│ │ └── strings.xml
│ ├── values-mt-rMT
│ │ └── strings.xml
│ ├── values-my-rMM
│ │ └── strings.xml
│ ├── values-nb-rNO
│ │ └── strings.xml
│ ├── values-ne-rIN
│ │ └── strings.xml
│ ├── values-ne-rNP
│ │ └── strings.xml
│ ├── values-night
│ │ └── colors.xml
│ ├── values-nl-rNL
│ │ └── strings.xml
│ ├── values-or-rIN
│ │ └── strings.xml
│ ├── values-pa-rIN
│ │ └── strings.xml
│ ├── values-pl-rPL
│ │ └── strings.xml
│ ├── values-pt-rBR
│ │ └── strings.xml
│ ├── values-pt-rPT
│ │ └── strings.xml
│ ├── values-ro-rRO
│ │ └── strings.xml
│ ├── values-ru-rRU
│ │ └── strings.xml
│ ├── values-sk-rSK
│ │ └── strings.xml
│ ├── values-sl-rSI
│ │ └── strings.xml
│ ├── values-sq-rAL
│ │ └── strings.xml
│ ├── values-sr-rSP
│ │ └── strings.xml
│ ├── values-sv-rSE
│ │ └── strings.xml
│ ├── values-ta-rIN
│ │ └── strings.xml
│ ├── values-te-rIN
│ │ └── strings.xml
│ ├── values-th-rTH
│ │ └── strings.xml
│ ├── values-tr-rTR
│ │ └── strings.xml
│ ├── values-uk-rUA
│ │ └── strings.xml
│ ├── values-ur-rIN
│ │ └── strings.xml
│ ├── values-ur-rPK
│ │ └── strings.xml
│ ├── values-uz-rUZ
│ │ └── strings.xml
│ ├── values-vi-rVN
│ │ └── strings.xml
│ ├── values-zh-rCN
│ │ └── strings.xml
│ ├── values-zh-rHK
│ │ └── strings.xml
│ ├── values-zh-rSG
│ │ └── strings.xml
│ ├── values-zh-rTW
│ │ └── strings.xml
│ ├── values
│ │ ├── arrays.xml
│ │ ├── attrs.xml
│ │ ├── colors.xml
│ │ ├── custom_seekbar_strings.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── xml
│ │ ├── clear_speaker_settings.xml
│ │ ├── dirac_settings.xml
│ │ ├── doze_settings.xml
│ │ ├── kcal_preferences.xml
│ │ ├── soundcontrol_settings.xml
│ │ └── torch_settings.xml
└── src
│ └── org
│ └── lineageos
│ └── settings
│ ├── BootCompletedReceiver.java
│ ├── Controller.java
│ ├── dirac
│ ├── DiracActivity.java
│ ├── DiracSettingsFragment.java
│ ├── DiracSound.java
│ ├── DiracTileService.java
│ └── DiracUtils.java
│ ├── doze
│ ├── DozeService.java
│ ├── DozeSettingsActivity.java
│ ├── DozeSettingsFragment.java
│ ├── DozeUtils.java
│ ├── ProximitySensor.java
│ └── TiltSensor.java
│ ├── kcal
│ ├── FadeOutTransformation.java
│ ├── FileUtils.java
│ ├── KcalSettings.java
│ ├── KcalSettingsActivity.java
│ ├── PresetDialog.java
│ └── ViewPagerAdapter.java
│ ├── preferences
│ ├── CustomSeekBarPreference.java
│ ├── FileUtils.java
│ ├── SecureSettingCustomSeekBarPreference.java
│ ├── SecureSettingListPreference.java
│ ├── SecureSettingSeekBarPreference.java
│ ├── SecureSettingSwitchPreference.java
│ └── SecureSettingsStore.java
│ ├── soundcontrol
│ ├── SoundControlSettings.java
│ └── SoundControlSettingsActivity.java
│ ├── speaker
│ ├── ClearSpeakerActivity.java
│ └── ClearSpeakerFragment.java
│ └── torch
│ ├── TorchSettings.java
│ └── TorchSettingsActivity.java
├── power
└── power-mode.cpp
├── product.prop
├── proprietary-files.txt
├── qcom-caf
├── Android.bp
├── Android.mk
├── audio
│ ├── Android.mk
│ ├── Makefile.am
│ ├── NOTICE
│ ├── adsprpcd
│ │ ├── Android.bp
│ │ ├── adsprpcd.c
│ │ └── vendor.qti.audio-adsprpc-service.rc
│ ├── audiod
│ │ ├── Android.mk
│ │ ├── AudioDaemon.cpp
│ │ ├── AudioDaemon.h
│ │ └── audiod_main.cpp
│ ├── configs
│ │ ├── apq8098_latv
│ │ │ ├── apq8098_latv.mk
│ │ │ ├── audio_policy.conf
│ │ │ └── audio_policy_configuration.xml
│ │ ├── atoll
│ │ │ ├── atoll.mk
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_wcd937x.xml
│ │ │ ├── mixer_paths_wcd937xqrd.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd937x.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── audio_vendor_product.mk
│ │ ├── bengal
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_platform_info_scubaidp.xml
│ │ │ ├── audio_platform_info_scubaqrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── bengal.mk
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_scubaidp.xml
│ │ │ ├── mixer_paths_scubaqrd.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_scubaidp.xml
│ │ │ ├── sound_trigger_mixer_paths_scubaqrd.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── common
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── base
│ │ │ │ ├── mixer_paths_base.xml
│ │ │ │ └── sound_trigger_mixer_paths_base.xml
│ │ │ ├── bluetooth_qti_audio_policy_configuration.xml
│ │ │ ├── bluetooth_qti_hearing_aid_audio_policy_configuration.xml
│ │ │ ├── copyright.txt
│ │ │ ├── default.mk
│ │ │ ├── media_codecs_vendor_audio.xml
│ │ │ ├── mixer_xml_utils.py
│ │ │ └── overlay
│ │ │ │ └── frameworks
│ │ │ │ └── base
│ │ │ │ └── core
│ │ │ │ └── res
│ │ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── common_au
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── car_audio_configuration.xml
│ │ │ └── overlay
│ │ │ │ ├── frameworks
│ │ │ │ └── base
│ │ │ │ │ └── core
│ │ │ │ │ └── res
│ │ │ │ │ └── res
│ │ │ │ │ └── values
│ │ │ │ │ └── config.xml
│ │ │ │ └── packages
│ │ │ │ └── services
│ │ │ │ └── Car
│ │ │ │ └── service
│ │ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── holi
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── holi.mk
│ │ │ ├── holi_overlay
│ │ │ │ ├── mixer_paths_overlay.xml
│ │ │ │ ├── mixer_paths_qrd_overlay.xml
│ │ │ │ ├── mixer_paths_usbc_overlay.xml
│ │ │ │ ├── sound_trigger_mixer_paths_overlay.xml
│ │ │ │ ├── sound_trigger_mixer_paths_qrd_overlay.xml
│ │ │ │ └── sound_trigger_mixer_paths_usbc_overlay.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_usbc.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_usbc.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── kona
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── kona.mk
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_cdp.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_cdp.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── lahaina
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_hdk.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_platform_info_shimaidp.xml
│ │ │ ├── audio_platform_info_shimaqrd.xml
│ │ │ ├── audio_platform_info_yupikidp.xml
│ │ │ ├── audio_platform_info_yupikqrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── lahaina.mk
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_cdp.xml
│ │ │ ├── mixer_paths_hdk.xml
│ │ │ ├── mixer_paths_hhg.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_shimaidp.xml
│ │ │ ├── mixer_paths_shimaidps.xml
│ │ │ ├── mixer_paths_shimaqrd.xml
│ │ │ ├── shima_overlay
│ │ │ │ ├── mixer_paths_shimaidp_overlay.xml
│ │ │ │ ├── mixer_paths_shimaidps_overlay.xml
│ │ │ │ ├── mixer_paths_shimaqrd_overlay.xml
│ │ │ │ ├── sound_trigger_mixer_paths_shimaidp_overlay.xml
│ │ │ │ ├── sound_trigger_mixer_paths_shimaidps_overlay.xml
│ │ │ │ └── sound_trigger_mixer_paths_shimaqrd_overlay.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_cdp.xml
│ │ │ ├── sound_trigger_mixer_paths_hdk.xml
│ │ │ ├── sound_trigger_mixer_paths_hhg.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_shimaidp.xml
│ │ │ ├── sound_trigger_mixer_paths_shimaidps.xml
│ │ │ ├── sound_trigger_mixer_paths_shimaqrd.xml
│ │ │ ├── sound_trigger_platform_info.xml
│ │ │ └── yupik_overlay
│ │ │ │ ├── mixer_paths_yupikidp_overlay.xml
│ │ │ │ ├── mixer_paths_yupikqrd_overlay.xml
│ │ │ │ ├── sound_trigger_mixer_paths_yupikidp_overlay.xml
│ │ │ │ └── sound_trigger_mixer_paths_yupikqrd_overlay.xml
│ │ ├── lito
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_lagoon_qrd.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_policy_configuration_odm.xml
│ │ │ ├── lito.mk
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_cdp.xml
│ │ │ ├── mixer_paths_lagoonmtp.xml
│ │ │ ├── mixer_paths_lagoonqrd.xml
│ │ │ ├── mixer_paths_orchidmtp.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_cdp.xml
│ │ │ ├── sound_trigger_mixer_paths_lagoonmtp.xml
│ │ │ ├── sound_trigger_mixer_paths_lagoonqrd.xml
│ │ │ ├── sound_trigger_mixer_paths_orchidmtp.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msm8909
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_extcodec.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_msm8909_pm8916.xml
│ │ │ ├── mixer_paths_qrd_skuh.xml
│ │ │ ├── mixer_paths_qrd_skui.xml
│ │ │ ├── mixer_paths_qrd_skut.xml
│ │ │ ├── mixer_paths_skua.xml
│ │ │ ├── mixer_paths_skuc.xml
│ │ │ ├── mixer_paths_skue.xml
│ │ │ ├── mixer_paths_wcd9326_i2s.xml
│ │ │ ├── mixer_paths_wcd9326_i2s_tdm.xml
│ │ │ ├── msm8909.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9326.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msm8937
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_mtp.xml
│ │ │ ├── audio_platform_info_sdm429w.xml
│ │ │ ├── audio_platform_info_sdm429w_dvt2.xml
│ │ │ ├── audio_platform_info_tasha.xml
│ │ │ ├── audio_platform_info_tashalite.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_policy_configuration_common.xml
│ │ │ ├── audio_policy_configuration_sdm429w.xml
│ │ │ ├── audio_policy_configuration_sdm429w_law.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_mtp.xml
│ │ │ ├── mixer_paths_sdm429w.xml
│ │ │ ├── mixer_paths_sdm429w_dvt2.xml
│ │ │ ├── mixer_paths_sku1.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tashalite.xml
│ │ │ ├── msm8937.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9306.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9330.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msm8953
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_sku3_tasha.xml
│ │ │ ├── audio_platform_info_sku4.xml
│ │ │ ├── audio_platform_info_tasha.xml
│ │ │ ├── audio_platform_info_tashalite.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_policy_configuration_common.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_mtp.xml
│ │ │ ├── mixer_paths_sku3_tasha.xml
│ │ │ ├── mixer_paths_sku4.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tashalite.xml
│ │ │ ├── msm8953.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9306.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9330.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msm8996
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_i2s.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_dtp.xml
│ │ │ ├── mixer_paths_i2s.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── msm8996.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9330.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msm8998
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_i2s.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_dtp.xml
│ │ │ ├── mixer_paths_i2s.xml
│ │ │ ├── mixer_paths_skuk.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── msm8998.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9330.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msmnile
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_policy_configuration_odm.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_pahu.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── msmnile.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340_qrd.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msmnile_au
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_configs_stock.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_adp.xml
│ │ │ ├── mixer_paths_custom.xml
│ │ │ ├── msmnile_au.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msmsteppe
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_policy_configuration_odm.xml
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_idp.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── mixer_paths_wcd9375.xml
│ │ │ ├── mixer_paths_wcd9375qrd.xml
│ │ │ ├── msmsteppe.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── msmsteppe_au
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_adp.xml
│ │ │ ├── mixer_paths_custom.xml
│ │ │ ├── msmsteppe_au.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── qssi
│ │ │ └── qssi.mk
│ │ ├── sdm660
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info_i2s.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_skush.xml
│ │ │ ├── audio_platform_info_tasha.xml
│ │ │ ├── audio_platform_info_tasha_skus.xml
│ │ │ ├── audio_platform_info_tashalite.xml
│ │ │ ├── audio_platform_info_tavil.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── audio_tuning_mixer_tasha.txt
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_i2s.xml
│ │ │ ├── mixer_paths_mtp.xml
│ │ │ ├── mixer_paths_skush.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tasha_skus.xml
│ │ │ ├── mixer_paths_tashalite.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── sdm660.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9330.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── sdm710
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_i2s.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_skuw.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer.txt
│ │ │ ├── audio_tuning_mixer_tasha.txt
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths.xml
│ │ │ ├── mixer_paths_360cam.xml
│ │ │ ├── mixer_paths_i2s.xml
│ │ │ ├── mixer_paths_mtp.xml
│ │ │ ├── mixer_paths_skuw.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tashalite.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── sdm710.mk
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_skuw.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ ├── sdm845
│ │ │ ├── audio_configs.xml
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_output_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_i2s.xml
│ │ │ ├── audio_policy.conf
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_i2s.xml
│ │ │ ├── mixer_paths_qvr.xml
│ │ │ ├── mixer_paths_skuk.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── sdm845.mk
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ └── sound_trigger_platform_info.xml
│ │ └── trinket
│ │ │ ├── audio_effects.conf
│ │ │ ├── audio_effects.xml
│ │ │ ├── audio_io_policy.conf
│ │ │ ├── audio_platform_info.xml
│ │ │ ├── audio_platform_info_intcodec.xml
│ │ │ ├── audio_platform_info_qrd.xml
│ │ │ ├── audio_policy_configuration.xml
│ │ │ ├── audio_tuning_mixer_tavil.txt
│ │ │ ├── graphite_ipc_platform_info.xml
│ │ │ ├── listen_platform_info.xml
│ │ │ ├── mixer_paths_idp.xml
│ │ │ ├── mixer_paths_qrd.xml
│ │ │ ├── mixer_paths_tasha.xml
│ │ │ ├── mixer_paths_tashalite.xml
│ │ │ ├── mixer_paths_tavil.xml
│ │ │ ├── sound_trigger_mixer_paths.xml
│ │ │ ├── sound_trigger_mixer_paths_qrd.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9335.xml
│ │ │ ├── sound_trigger_mixer_paths_wcd9340.xml
│ │ │ ├── sound_trigger_platform_info.xml
│ │ │ └── trinket.mk
│ ├── configure.ac
│ ├── hal
│ │ ├── Android.mk
│ │ ├── Makefile.am
│ │ ├── acdb.c
│ │ ├── acdb.h
│ │ ├── ahal_config_helper.cpp
│ │ ├── ahal_config_helper.h
│ │ ├── audio_extn
│ │ │ ├── Android.mk
│ │ │ ├── Makefile.am
│ │ │ ├── PowerPolicyClient.cpp
│ │ │ ├── PowerPolicyClient.h
│ │ │ ├── a2dp.c
│ │ │ ├── adsp_hdlr.c
│ │ │ ├── adsp_hdlr.h
│ │ │ ├── audio_defs.h
│ │ │ ├── audio_extn.c
│ │ │ ├── audio_extn.h
│ │ │ ├── audio_feature_manager.c
│ │ │ ├── audio_feature_manager.h
│ │ │ ├── audio_hidl.cpp
│ │ │ ├── audio_hidl.h
│ │ │ ├── audio_stub.c
│ │ │ ├── audio_stub.h
│ │ │ ├── audiozoom.c
│ │ │ ├── audiozoom.h
│ │ │ ├── auto_hal.c
│ │ │ ├── auto_hal.h
│ │ │ ├── battery_listener.cpp
│ │ │ ├── battery_listener.h
│ │ │ ├── bt_hal.c
│ │ │ ├── cirrus_playback.c
│ │ │ ├── compress_capture.c
│ │ │ ├── compress_in.c
│ │ │ ├── dev_arbi.c
│ │ │ ├── device_utils.c
│ │ │ ├── device_utils.h
│ │ │ ├── dolby.c
│ │ │ ├── dts_eagle.c
│ │ │ ├── edid.c
│ │ │ ├── edid.h
│ │ │ ├── ext_hw_plugin.c
│ │ │ ├── ffv.c
│ │ │ ├── fm.c
│ │ │ ├── gef.c
│ │ │ ├── hfp.c
│ │ │ ├── hw_loopback.c
│ │ │ ├── icc.c
│ │ │ ├── ip_hdlr_intf.c
│ │ │ ├── ip_hdlr_intf.h
│ │ │ ├── keep_alive.c
│ │ │ ├── listen.c
│ │ │ ├── maxxaudio.c
│ │ │ ├── maxxaudio.h
│ │ │ ├── passthru.c
│ │ │ ├── pm.c
│ │ │ ├── pm.h
│ │ │ ├── power_policy_launcher.cpp
│ │ │ ├── qaf.c
│ │ │ ├── qap.c
│ │ │ ├── sndmonitor.c
│ │ │ ├── soundtrigger.c
│ │ │ ├── source_track.c
│ │ │ ├── spkr_protection.c
│ │ │ ├── ssr.c
│ │ │ ├── surround_rec_interface.h
│ │ │ ├── synth.c
│ │ │ ├── usb.c
│ │ │ └── utils.c
│ │ ├── audio_hal_plugin.h
│ │ ├── audio_hw.c
│ │ ├── audio_hw.h
│ │ ├── audio_hw_extn_api.c
│ │ ├── audio_hw_extn_api.h
│ │ ├── audio_perf.cpp
│ │ ├── audio_perf.h
│ │ ├── msm8916
│ │ │ ├── hw_info.c
│ │ │ ├── platform.c
│ │ │ └── platform.h
│ │ ├── msm8960
│ │ │ ├── platform.c
│ │ │ └── platform.h
│ │ ├── msm8974
│ │ │ ├── hw_info.c
│ │ │ ├── platform.c
│ │ │ └── platform.h
│ │ ├── platform_api.h
│ │ ├── platform_info.c
│ │ ├── voice.c
│ │ ├── voice.h
│ │ └── voice_extn
│ │ │ ├── compress_voip.c
│ │ │ ├── voice_extn.c
│ │ │ └── voice_extn.h
│ ├── hdmi_in_test
│ │ ├── Android.mk
│ │ ├── Makefile.am
│ │ └── src
│ │ │ ├── edid.h
│ │ │ ├── fmt_change_test.c
│ │ │ └── hdmi_in_event_test.c
│ ├── mm-audio
│ │ ├── Android.mk
│ │ ├── Makefile
│ │ ├── Makefile.am
│ │ ├── aenc-aac
│ │ │ ├── Android.mk
│ │ │ ├── Makefile
│ │ │ ├── Makefile.am
│ │ │ └── qdsp6
│ │ │ │ ├── Android.mk
│ │ │ │ ├── Makefile
│ │ │ │ ├── Makefile.am
│ │ │ │ ├── inc
│ │ │ │ ├── Map.h
│ │ │ │ ├── aenc_svr.h
│ │ │ │ └── omx_aac_aenc.h
│ │ │ │ ├── src
│ │ │ │ ├── aenc_svr.c
│ │ │ │ └── omx_aac_aenc.cpp
│ │ │ │ └── test
│ │ │ │ └── omx_aac_enc_test.c
│ │ ├── aenc-amrnb
│ │ │ ├── Android.mk
│ │ │ ├── Makefile
│ │ │ ├── Makefile.am
│ │ │ └── qdsp6
│ │ │ │ ├── Android.mk
│ │ │ │ ├── Makefile
│ │ │ │ ├── Makefile.am
│ │ │ │ ├── inc
│ │ │ │ ├── Map.h
│ │ │ │ ├── aenc_svr.h
│ │ │ │ └── omx_amr_aenc.h
│ │ │ │ ├── src
│ │ │ │ ├── aenc_svr.c
│ │ │ │ └── omx_amr_aenc.cpp
│ │ │ │ └── test
│ │ │ │ └── omx_amr_enc_test.c
│ │ ├── aenc-evrc
│ │ │ ├── Android.mk
│ │ │ ├── Makefile
│ │ │ └── qdsp6
│ │ │ │ ├── Android.mk
│ │ │ │ ├── Makefile
│ │ │ │ ├── inc
│ │ │ │ ├── Map.h
│ │ │ │ ├── aenc_svr.h
│ │ │ │ └── omx_evrc_aenc.h
│ │ │ │ ├── src
│ │ │ │ ├── aenc_svr.c
│ │ │ │ └── omx_evrc_aenc.cpp
│ │ │ │ └── test
│ │ │ │ └── omx_evrc_enc_test.c
│ │ ├── aenc-g711
│ │ │ ├── Android.mk
│ │ │ ├── Makefile
│ │ │ ├── Makefile.am
│ │ │ └── qdsp6
│ │ │ │ ├── Android.mk
│ │ │ │ ├── Makefile
│ │ │ │ ├── Makefile.am
│ │ │ │ ├── inc
│ │ │ │ ├── Map.h
│ │ │ │ ├── aenc_svr.h
│ │ │ │ ├── omx_g711_aenc.h
│ │ │ │ └── omx_log.h
│ │ │ │ ├── src
│ │ │ │ ├── aenc_svr.c
│ │ │ │ ├── omx_g711_aenc.cpp
│ │ │ │ └── omx_log.cpp
│ │ │ │ └── test
│ │ │ │ └── omx_g711_enc_test.c
│ │ ├── aenc-qcelp13
│ │ │ ├── Android.mk
│ │ │ ├── Makefile
│ │ │ └── qdsp6
│ │ │ │ ├── Android.mk
│ │ │ │ ├── Makefile
│ │ │ │ ├── inc
│ │ │ │ ├── Map.h
│ │ │ │ ├── aenc_svr.h
│ │ │ │ └── omx_qcelp13_aenc.h
│ │ │ │ ├── src
│ │ │ │ ├── aenc_svr.c
│ │ │ │ └── omx_qcelp13_aenc.cpp
│ │ │ │ └── test
│ │ │ │ └── omx_qcelp13_enc_test.c
│ │ ├── autogen.sh
│ │ └── configure.ac
│ ├── post_proc
│ │ ├── Android.mk
│ │ ├── EffectsHwAcc.cpp
│ │ ├── EffectsHwAcc.h
│ │ ├── Makefile.am
│ │ ├── bass_boost.c
│ │ ├── bass_boost.h
│ │ ├── bundle.c
│ │ ├── bundle.h
│ │ ├── effect_api.c
│ │ ├── effect_api.h
│ │ ├── effect_util.c
│ │ ├── effect_util.h
│ │ ├── equalizer.c
│ │ ├── equalizer.h
│ │ ├── hw_accelerator.c
│ │ ├── hw_accelerator.h
│ │ ├── ma_listener.c
│ │ ├── reverb.c
│ │ ├── reverb.h
│ │ ├── virtualizer.c
│ │ ├── virtualizer.h
│ │ └── volume_listener.c
│ ├── qahw
│ │ ├── Android.mk
│ │ ├── Makefile.am
│ │ ├── configure.ac
│ │ ├── inc
│ │ │ ├── qahw.h
│ │ │ ├── qahw_defs.h
│ │ │ └── qahw_effect_api.h
│ │ └── src
│ │ │ ├── qahw.c
│ │ │ └── qahw_effect.c
│ ├── qahw_api
│ │ ├── Android.mk
│ │ ├── Makefile.am
│ │ ├── inc
│ │ │ ├── qahw_api.h
│ │ │ ├── qahw_defs.h
│ │ │ ├── qahw_effect_audiosphere.h
│ │ │ ├── qahw_effect_bassboost.h
│ │ │ ├── qahw_effect_environmentalreverb.h
│ │ │ ├── qahw_effect_equalizer.h
│ │ │ ├── qahw_effect_presetreverb.h
│ │ │ ├── qahw_effect_trumpet.h
│ │ │ ├── qahw_effect_virtualizer.h
│ │ │ └── qahw_effect_visualizer.h
│ │ ├── src
│ │ │ └── qahw_api.cpp
│ │ └── test
│ │ │ ├── Android.mk
│ │ │ ├── Makefile.am
│ │ │ ├── qahw_effect_test.c
│ │ │ ├── qahw_effect_test.h
│ │ │ ├── qahw_multi_record_test.c
│ │ │ ├── qahw_playback_test.c
│ │ │ ├── qahw_playback_test.h
│ │ │ ├── qahw_voice_test.c
│ │ │ ├── qahw_voice_test.h
│ │ │ ├── qap_wrapper_extn.c
│ │ │ └── trans_loopback_test.c
│ ├── visualizer
│ │ ├── Android.mk
│ │ ├── MODULE_LICENSE_APACHE2
│ │ ├── NOTICE
│ │ └── offload_visualizer.c
│ └── voice_processing
│ │ ├── Android.mk
│ │ └── voice_processing.c
├── display
│ ├── .clang-format
│ ├── .gitignore
│ ├── Android.bp
│ ├── Android.mk
│ ├── Makefile.am
│ ├── common.mk
│ ├── configure.ac
│ ├── display-commonsys-intf
│ │ ├── .clang-format
│ │ ├── .gitignore
│ │ ├── Android.bp
│ │ ├── Makefile.am
│ │ ├── aidl
│ │ │ └── config
│ │ │ │ ├── Android.bp
│ │ │ │ ├── NOTICE
│ │ │ │ ├── aidl_api
│ │ │ │ └── vendor.qti.hardware.display.config
│ │ │ │ │ ├── 1
│ │ │ │ │ ├── .hash
│ │ │ │ │ └── vendor
│ │ │ │ │ │ └── qti
│ │ │ │ │ │ └── hardware
│ │ │ │ │ │ └── display
│ │ │ │ │ │ └── config
│ │ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ │ ├── 2
│ │ │ │ │ ├── .hash
│ │ │ │ │ └── vendor
│ │ │ │ │ │ └── qti
│ │ │ │ │ │ └── hardware
│ │ │ │ │ │ └── display
│ │ │ │ │ │ └── config
│ │ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ │ ├── 3
│ │ │ │ │ ├── .hash
│ │ │ │ │ └── vendor
│ │ │ │ │ │ └── qti
│ │ │ │ │ │ └── hardware
│ │ │ │ │ │ └── display
│ │ │ │ │ │ └── config
│ │ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ │ ├── 4
│ │ │ │ │ ├── .hash
│ │ │ │ │ └── vendor
│ │ │ │ │ │ └── qti
│ │ │ │ │ │ └── hardware
│ │ │ │ │ │ └── display
│ │ │ │ │ │ └── config
│ │ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ │ ├── 5
│ │ │ │ │ ├── .hash
│ │ │ │ │ └── vendor
│ │ │ │ │ │ └── qti
│ │ │ │ │ │ └── hardware
│ │ │ │ │ │ └── display
│ │ │ │ │ │ └── config
│ │ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ │ │ ├── Concurrency.aidl
│ │ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ │ └── current
│ │ │ │ │ └── vendor
│ │ │ │ │ └── qti
│ │ │ │ │ └── hardware
│ │ │ │ │ └── display
│ │ │ │ │ └── config
│ │ │ │ │ ├── Attributes.aidl
│ │ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ │ ├── Concurrency.aidl
│ │ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ │ ├── DisplayType.aidl
│ │ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ │ ├── PowerMode.aidl
│ │ │ │ │ ├── QsyncMode.aidl
│ │ │ │ │ ├── Rect.aidl
│ │ │ │ │ └── TUIEventType.aidl
│ │ │ │ └── vendor
│ │ │ │ └── qti
│ │ │ │ └── hardware
│ │ │ │ └── display
│ │ │ │ └── config
│ │ │ │ ├── Attributes.aidl
│ │ │ │ ├── CameraSmoothOp.aidl
│ │ │ │ ├── Concurrency.aidl
│ │ │ │ ├── DisplayPortType.aidl
│ │ │ │ ├── DisplayType.aidl
│ │ │ │ ├── DynRefreshRateOp.aidl
│ │ │ │ ├── ExternalStatus.aidl
│ │ │ │ ├── HDRCapsParams.aidl
│ │ │ │ ├── IDisplayConfig.aidl
│ │ │ │ ├── IDisplayConfigCallback.aidl
│ │ │ │ ├── PowerMode.aidl
│ │ │ │ ├── QsyncMode.aidl
│ │ │ │ ├── Rect.aidl
│ │ │ │ └── TUIEventType.aidl
│ │ ├── config
│ │ │ ├── display-interfaces-product.mk
│ │ │ └── display-product-system.mk
│ │ ├── configure.ac
│ │ ├── gralloc
│ │ │ ├── QtiGralloc.h
│ │ │ ├── QtiGrallocDefs.h
│ │ │ ├── QtiGrallocMetadata.h
│ │ │ ├── QtiGrallocPriv.h
│ │ │ ├── gr_priv_handle.h
│ │ │ └── gralloc_priv.h
│ │ ├── include
│ │ │ ├── color_metadata.h
│ │ │ ├── composer_extn_intf.h
│ │ │ ├── display_color_processing.h
│ │ │ ├── display_extn_intf.h
│ │ │ ├── frame_extn_intf.h
│ │ │ ├── frame_scheduler_intf.h
│ │ │ ├── layer_extn_intf.h
│ │ │ ├── phase_offset_extn_intf.h
│ │ │ ├── smomo_config.h
│ │ │ └── smomo_interface.h
│ │ ├── libqdmetadata
│ │ │ ├── qdMetaData.h
│ │ │ └── qd_utils.h
│ │ └── services
│ │ │ └── config
│ │ │ ├── client_interface.h
│ │ │ ├── config_defs.h
│ │ │ └── device_interface.h
│ ├── display-commonsys
│ │ ├── .clang-format
│ │ ├── .gitignore
│ │ ├── config
│ │ │ └── display-product-commonsys.mk
│ │ ├── gralloc
│ │ │ ├── Android.bp
│ │ │ └── QtiGralloc.cpp
│ │ ├── libqdmetadata
│ │ │ ├── Android.bp
│ │ │ ├── Makefile.am
│ │ │ ├── qdMetaData.cpp
│ │ │ └── qd_utils.cpp
│ │ └── services
│ │ │ └── config
│ │ │ └── src
│ │ │ ├── Android.bp
│ │ │ ├── client_impl.cpp
│ │ │ ├── client_impl.h
│ │ │ ├── client_interface.cpp
│ │ │ ├── device_impl.cpp
│ │ │ ├── device_impl.h
│ │ │ ├── device_interface.cpp
│ │ │ └── opcode_types.h
│ ├── gpu_tonemapper
│ │ ├── Android.mk
│ │ ├── EGLImageBuffer.cpp
│ │ ├── EGLImageBuffer.h
│ │ ├── EGLImageWrapper.cpp
│ │ ├── EGLImageWrapper.h
│ │ ├── TonemapFactory.cpp
│ │ ├── TonemapFactory.h
│ │ ├── Tonemapper.cpp
│ │ ├── Tonemapper.h
│ │ ├── engine.h
│ │ ├── forward_tonemap.inl
│ │ ├── fullscreen_vertex_shader.inl
│ │ ├── glengine.cpp
│ │ ├── glengine.h
│ │ └── rgba_inverse_tonemap.inl
│ ├── gralloc
│ │ ├── Android.bp
│ │ ├── Android.mk
│ │ ├── QtiGralloc.cpp
│ │ ├── gr_adreno_info.cpp
│ │ ├── gr_adreno_info.h
│ │ ├── gr_allocator.cpp
│ │ ├── gr_allocator.h
│ │ ├── gr_buf_descriptor.h
│ │ ├── gr_buf_mgr.cpp
│ │ ├── gr_buf_mgr.h
│ │ ├── gr_device_impl.cpp
│ │ ├── gr_device_impl.h
│ │ ├── gr_ion_alloc.cpp
│ │ ├── gr_ion_alloc.h
│ │ ├── gr_utils.cpp
│ │ └── gr_utils.h
│ ├── hdmi_cec
│ │ ├── Android.mk
│ │ ├── qhdmi_cec.cpp
│ │ └── qhdmi_cec.h
│ ├── include
│ │ ├── Android.mk
│ │ └── display_properties.h
│ ├── libcopybit
│ │ ├── Android.mk
│ │ ├── MODULE_LICENSE_APACHE2
│ │ ├── NOTICE
│ │ ├── c2d2.h
│ │ ├── copybit.cpp
│ │ ├── copybit.h
│ │ ├── copybit_c2d.cpp
│ │ ├── copybit_priv.h
│ │ ├── software_converter.cpp
│ │ └── software_converter.h
│ ├── libdisplayconfig
│ │ ├── Android.mk
│ │ ├── DisplayConfig.cpp
│ │ └── DisplayConfig.h
│ ├── libdrmutils
│ │ ├── Android.mk
│ │ ├── drm_interface.h
│ │ ├── drm_lib_loader.cpp
│ │ ├── drm_lib_loader.h
│ │ ├── drm_logger.h
│ │ ├── drm_master.cpp
│ │ ├── drm_master.h
│ │ ├── drm_res_mgr.cpp
│ │ └── drm_res_mgr.h
│ ├── libgralloc
│ │ ├── Android.mk
│ │ ├── MODULE_LICENSE_APACHE2
│ │ ├── Makefile.am
│ │ ├── NOTICE
│ │ ├── adreno_utils.h
│ │ ├── alloc_controller.cpp
│ │ ├── alloc_controller.h
│ │ ├── fb_priv.h
│ │ ├── framebuffer.cpp
│ │ ├── gpu.cpp
│ │ ├── gpu.h
│ │ ├── gr.h
│ │ ├── gralloc.cpp
│ │ ├── ionalloc.cpp
│ │ ├── ionalloc.h
│ │ ├── mapper.cpp
│ │ └── memalloc.h
│ ├── liblight
│ │ ├── Android.mk
│ │ ├── NOTICE
│ │ └── lights.c
│ ├── libmemtrack
│ │ ├── Android.mk
│ │ ├── kgsl.c
│ │ ├── memtrack_msm.c
│ │ └── memtrack_msm.h
│ ├── libqdmetadata
│ │ ├── Android.bp
│ │ ├── Makefile.am
│ │ ├── qdMetaData.cpp
│ │ └── qd_utils.cpp
│ ├── libqdutils
│ │ ├── Android.bp
│ │ ├── Makefile.am
│ │ ├── display_config.cpp
│ │ ├── display_config.h
│ │ ├── profiler.cpp
│ │ ├── profiler.h
│ │ ├── qdMetaData.cpp
│ │ ├── qd_utils.cpp
│ │ └── qd_utils.h
│ ├── libqservice
│ │ ├── Android.bp
│ │ ├── IQClient.cpp
│ │ ├── IQClient.h
│ │ ├── IQHDMIClient.cpp
│ │ ├── IQHDMIClient.h
│ │ ├── IQService.cpp
│ │ ├── IQService.h
│ │ ├── Makefile.am
│ │ ├── QService.cpp
│ │ ├── QService.h
│ │ └── QServiceUtils.h
│ ├── sdm
│ │ ├── include
│ │ │ ├── core
│ │ │ │ ├── buffer_allocator.h
│ │ │ │ ├── buffer_sync_handler.h
│ │ │ │ ├── core_interface.h
│ │ │ │ ├── debug_interface.h
│ │ │ │ ├── display_interface.h
│ │ │ │ ├── layer_buffer.h
│ │ │ │ ├── layer_stack.h
│ │ │ │ ├── sdm_types.h
│ │ │ │ └── socket_handler.h
│ │ │ ├── private
│ │ │ │ ├── color_interface.h
│ │ │ │ ├── color_params.h
│ │ │ │ ├── dpps_control_interface.h
│ │ │ │ ├── extension_interface.h
│ │ │ │ ├── hw_info_types.h
│ │ │ │ ├── partial_update_interface.h
│ │ │ │ ├── resource_interface.h
│ │ │ │ └── strategy_interface.h
│ │ │ └── utils
│ │ │ │ ├── constants.h
│ │ │ │ ├── debug.h
│ │ │ │ ├── factory.h
│ │ │ │ ├── formats.h
│ │ │ │ ├── locker.h
│ │ │ │ ├── rect.h
│ │ │ │ ├── sync_task.h
│ │ │ │ ├── sys.h
│ │ │ │ └── utils.h
│ │ └── libs
│ │ │ ├── core
│ │ │ ├── Android.mk
│ │ │ ├── Makefile.am
│ │ │ ├── color_manager.cpp
│ │ │ ├── color_manager.h
│ │ │ ├── comp_manager.cpp
│ │ │ ├── comp_manager.h
│ │ │ ├── core_impl.cpp
│ │ │ ├── core_impl.h
│ │ │ ├── core_interface.cpp
│ │ │ ├── display_base.cpp
│ │ │ ├── display_base.h
│ │ │ ├── display_hdmi.cpp
│ │ │ ├── display_hdmi.h
│ │ │ ├── display_primary.cpp
│ │ │ ├── display_primary.h
│ │ │ ├── display_virtual.cpp
│ │ │ ├── display_virtual.h
│ │ │ ├── drm
│ │ │ │ ├── hw_color_manager_drm.cpp
│ │ │ │ ├── hw_color_manager_drm.h
│ │ │ │ ├── hw_device_drm.cpp
│ │ │ │ ├── hw_device_drm.h
│ │ │ │ ├── hw_events_drm.cpp
│ │ │ │ ├── hw_events_drm.h
│ │ │ │ ├── hw_info_drm.cpp
│ │ │ │ ├── hw_info_drm.h
│ │ │ │ ├── hw_scale_drm.cpp
│ │ │ │ └── hw_scale_drm.h
│ │ │ ├── fb
│ │ │ │ ├── hw_color_manager.cpp
│ │ │ │ ├── hw_color_manager.h
│ │ │ │ ├── hw_device.cpp
│ │ │ │ ├── hw_device.h
│ │ │ │ ├── hw_events.cpp
│ │ │ │ ├── hw_events.h
│ │ │ │ ├── hw_hdmi.cpp
│ │ │ │ ├── hw_hdmi.h
│ │ │ │ ├── hw_info.cpp
│ │ │ │ ├── hw_info.h
│ │ │ │ ├── hw_primary.cpp
│ │ │ │ ├── hw_primary.h
│ │ │ │ ├── hw_scale.cpp
│ │ │ │ ├── hw_scale.h
│ │ │ │ ├── hw_virtual.cpp
│ │ │ │ └── hw_virtual.h
│ │ │ ├── hw_events_interface.cpp
│ │ │ ├── hw_events_interface.h
│ │ │ ├── hw_info_interface.cpp
│ │ │ ├── hw_info_interface.h
│ │ │ ├── hw_interface.cpp
│ │ │ ├── hw_interface.h
│ │ │ ├── resource_default.cpp
│ │ │ ├── resource_default.h
│ │ │ ├── strategy.cpp
│ │ │ └── strategy.h
│ │ │ ├── hwc
│ │ │ ├── Android.mk
│ │ │ ├── blit_engine.h
│ │ │ ├── blit_engine_c2d.cpp
│ │ │ ├── blit_engine_c2d.h
│ │ │ ├── cpuhint.cpp
│ │ │ ├── cpuhint.h
│ │ │ ├── hwc_buffer_allocator.cpp
│ │ │ ├── hwc_buffer_allocator.h
│ │ │ ├── hwc_buffer_sync_handler.cpp
│ │ │ ├── hwc_buffer_sync_handler.h
│ │ │ ├── hwc_color_manager.cpp
│ │ │ ├── hwc_color_manager.h
│ │ │ ├── hwc_debugger.cpp
│ │ │ ├── hwc_debugger.h
│ │ │ ├── hwc_display.cpp
│ │ │ ├── hwc_display.h
│ │ │ ├── hwc_display_external.cpp
│ │ │ ├── hwc_display_external.h
│ │ │ ├── hwc_display_external_test.cpp
│ │ │ ├── hwc_display_external_test.h
│ │ │ ├── hwc_display_null.cpp
│ │ │ ├── hwc_display_null.h
│ │ │ ├── hwc_display_primary.cpp
│ │ │ ├── hwc_display_primary.h
│ │ │ ├── hwc_display_virtual.cpp
│ │ │ ├── hwc_display_virtual.h
│ │ │ ├── hwc_session.cpp
│ │ │ ├── hwc_session.h
│ │ │ ├── hwc_socket_handler.cpp
│ │ │ ├── hwc_socket_handler.h
│ │ │ ├── hwc_tonemapper.cpp
│ │ │ └── hwc_tonemapper.h
│ │ │ ├── hwc2
│ │ │ ├── Android.mk
│ │ │ ├── display_null.cpp
│ │ │ ├── display_null.h
│ │ │ ├── hwc_buffer_allocator.cpp
│ │ │ ├── hwc_buffer_allocator.h
│ │ │ ├── hwc_callbacks.cpp
│ │ │ ├── hwc_callbacks.h
│ │ │ ├── hwc_color_manager.cpp
│ │ │ ├── hwc_color_manager.h
│ │ │ ├── hwc_display.cpp
│ │ │ ├── hwc_display.h
│ │ │ ├── hwc_display_dummy.cpp
│ │ │ ├── hwc_display_dummy.h
│ │ │ ├── hwc_display_external.cpp
│ │ │ ├── hwc_display_external.h
│ │ │ ├── hwc_display_external_test.cpp
│ │ │ ├── hwc_display_external_test.h
│ │ │ ├── hwc_display_primary.cpp
│ │ │ ├── hwc_display_primary.h
│ │ │ ├── hwc_display_virtual.cpp
│ │ │ ├── hwc_display_virtual.h
│ │ │ ├── hwc_layers.cpp
│ │ │ ├── hwc_layers.h
│ │ │ ├── hwc_session.cpp
│ │ │ ├── hwc_session.h
│ │ │ ├── hwc_session_services.cpp
│ │ │ ├── hwc_tonemapper.cpp
│ │ │ └── hwc_tonemapper.h
│ │ │ └── utils
│ │ │ ├── Android.mk
│ │ │ ├── Makefile.am
│ │ │ ├── debug.cpp
│ │ │ ├── formats.cpp
│ │ │ ├── rect.cpp
│ │ │ ├── sys.cpp
│ │ │ └── utils.cpp
│ └── services
│ │ └── config
│ │ └── src
│ │ ├── Android.bp
│ │ ├── client_impl.cpp
│ │ ├── client_impl.h
│ │ ├── client_interface.cpp
│ │ ├── device_impl.cpp
│ │ ├── device_impl.h
│ │ ├── device_interface.cpp
│ │ └── opcode_types.h
└── media
│ ├── Android.mk
│ ├── CleanSpec.mk
│ ├── Makefile.am
│ ├── NOTICE
│ ├── conf_files
│ ├── config.mk
│ └── msm8937
│ │ ├── media_codecs_8937.xml
│ │ ├── media_codecs_performance_8937.xml
│ │ └── media_profiles_8937.xml
│ ├── configure.ac
│ ├── hypv-intercept
│ ├── Android.mk
│ ├── Makefile.am
│ ├── hypv_intercept.cpp
│ └── hypv_intercept.h
│ ├── libaac
│ ├── Android.mk
│ ├── aacDecode.cpp
│ ├── aacDecode.h
│ ├── aacEncode.cpp
│ └── aacEncode.h
│ ├── libc2dcolorconvert
│ ├── Android.mk
│ ├── C2DColorConverter.cpp
│ ├── C2DColorConverter.h
│ └── Makefile.am
│ ├── libsidebandstreamhandle
│ ├── Android.mk
│ ├── SidebandHandleBase.h
│ ├── SidebandStreamHandle.cpp
│ ├── SidebandStreamHandle.h
│ └── test
│ │ └── SidebandStreamHandleTest.cpp
│ ├── libstagefrighthw
│ ├── Android.mk
│ ├── MODULE_LICENSE_APACHE2
│ ├── NOTICE
│ ├── QComOMXMetadata.h
│ ├── QComOMXPlugin.cpp
│ └── QComOMXPlugin.h
│ ├── mm-core
│ ├── Android.mk
│ ├── Makefile.am
│ ├── inc
│ │ ├── OMX_Audio.h
│ │ ├── OMX_Component.h
│ │ ├── OMX_ContentPipe.h
│ │ ├── OMX_Core.h
│ │ ├── OMX_CoreExt.h
│ │ ├── OMX_IVCommon.h
│ │ ├── OMX_Image.h
│ │ ├── OMX_Index.h
│ │ ├── OMX_IndexExt.h
│ │ ├── OMX_Other.h
│ │ ├── OMX_QCOMExtns.h
│ │ ├── OMX_Skype_VideoExtensions.h
│ │ ├── OMX_Types.h
│ │ ├── OMX_Video.h
│ │ ├── OMX_VideoExt.h
│ │ ├── QCMediaDefs.h
│ │ ├── QCMetaData.h
│ │ ├── QOMX_AudioExtensions.h
│ │ ├── QOMX_AudioIndexExtensions.h
│ │ ├── QOMX_CoreExtensions.h
│ │ ├── QOMX_FileFormatExtensions.h
│ │ ├── QOMX_IVCommonExtensions.h
│ │ ├── QOMX_SourceExtensions.h
│ │ ├── QOMX_StreamingExtensions.h
│ │ ├── QOMX_VideoExtensions.h
│ │ ├── drmplay_version.h
│ │ ├── qc_omx_common.h
│ │ ├── qc_omx_component.h
│ │ └── qc_omx_msg.h
│ ├── mm-core.pc.in
│ └── src
│ │ ├── 7630
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8084
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8092
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8226
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8610
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8660
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8909
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── 8916
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── 8937
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── 8952
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── 8960
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 8974
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── 7627A
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── common
│ │ ├── omx_core_cmp.cpp
│ │ ├── omx_core_cmp.h
│ │ ├── qc_omx_core.c
│ │ └── qc_omx_core.h
│ │ ├── default
│ │ ├── qc_registry_table.c
│ │ └── qc_registry_table_android.c
│ │ ├── msm8953
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── msm8992
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── msm8994
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── msm8996
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ ├── msm8998
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ │ └── sdm660
│ │ ├── registry_table.c
│ │ └── registry_table_android.c
│ └── mm-video-v4l2
│ ├── Android.mk
│ ├── Makefile.am
│ └── vidc
│ ├── Android.mk
│ ├── Makefile.am
│ ├── common
│ ├── Android.mk
│ ├── inc
│ │ ├── extra_data_handler.h
│ │ ├── vidc_color_converter.h
│ │ ├── vidc_debug.h
│ │ └── vidc_vendor_extensions.h
│ └── src
│ │ ├── extra_data_handler.cpp
│ │ ├── vidc_color_converter.cpp
│ │ └── vidc_vendor_extensions.cpp
│ ├── vdec
│ ├── Android.mk
│ ├── Makefile.am
│ ├── inc
│ │ ├── Map.h
│ │ ├── decoder_driver_test.h
│ │ ├── frameparser.h
│ │ ├── h264_utils.h
│ │ ├── hevc_utils.h
│ │ ├── message_queue.h
│ │ ├── mp4_utils.h
│ │ ├── omx_swvdec.h
│ │ ├── omx_swvdec_utils.h
│ │ ├── omx_vdec.h
│ │ ├── power_module.h
│ │ ├── qtypes.h
│ │ ├── queue.h
│ │ └── ts_parser.h
│ └── src
│ │ ├── frameparser.cpp
│ │ ├── h264_utils.cpp
│ │ ├── hevc_utils.cpp
│ │ ├── message_queue.c
│ │ ├── mp4_utils.cpp
│ │ ├── omx_swvdec.cpp
│ │ ├── omx_swvdec_utils.cpp
│ │ ├── omx_vdec_extensions.hpp
│ │ ├── omx_vdec_v4l2.cpp
│ │ └── ts_parser.cpp
│ └── venc
│ ├── Android.mk
│ ├── Makefile.am
│ ├── inc
│ ├── camera_test.h
│ ├── fb_test.h
│ ├── gpustats.h
│ ├── omx_swvenc_mpeg4.h
│ ├── omx_video_base.h
│ ├── omx_video_common.h
│ ├── omx_video_encoder.h
│ ├── queue.h
│ ├── venc_util.h
│ ├── video_encoder_device_v4l2.h
│ └── video_encoder_test.h
│ └── src
│ ├── omx_swvenc_mpeg4.cpp
│ ├── omx_video_base.cpp
│ ├── omx_video_encoder.cpp
│ ├── omx_video_extensions.hpp
│ └── video_encoder_device_v4l2.cpp
├── rootdir
├── Android.mk
├── bin
│ ├── init.goodix.sh
│ ├── init.qcom.early_boot.sh
│ ├── init.qcom.post_boot.sh
│ ├── init.qcom.sh
│ ├── init.qcom.usb.sh
│ └── init.veth_ipa_config.sh
└── etc
│ ├── fstab.qcom
│ ├── fstab.recovery.qcom
│ ├── init.qcom.rc
│ ├── init.qcom.usb.rc
│ ├── init.recovery.qcom.rc
│ ├── init.recovery.qcom.usb.rc
│ ├── init.soundcontrol.rc
│ ├── init.target.rc
│ └── ueventd.qcom.rc
├── rro_overlays
├── CarrierConfigOverlay
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── xml
│ │ ├── vendor.xml
│ │ ├── vendor_device.xml
│ │ └── vendor_miui.xml
├── TetheringOverlay
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ └── config.xml
└── WifiOverlay
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ └── values
│ └── config.xml
├── sepolicy
├── private
│ ├── clean_scratch_files.te
│ ├── file_contexts
│ ├── init.te
│ ├── iorap_inode2filename.te
│ ├── iorap_prefetcherd.te
│ ├── property_contexts
│ └── storaged.te
└── vendor
│ ├── adsprpcd_file.te
│ ├── bluetooth.te
│ ├── bootanim.te
│ ├── cnd.te
│ ├── device.te
│ ├── domain.te
│ ├── dontaudit.te
│ ├── file.te
│ ├── file_contexts
│ ├── fsck.te
│ ├── genfs_contexts
│ ├── gmscore_app.te
│ ├── gx_fpd.te
│ ├── hal_audio_default.te
│ ├── hal_bluetooth_qti.te
│ ├── hal_camera_default.te
│ ├── hal_cas_default.te
│ ├── hal_fingerprint_default.te
│ ├── hal_gnss_default.te
│ ├── hal_gnss_qti.te
│ ├── hal_graphics_composer_default.te
│ ├── hal_imsrtp.te
│ ├── hal_ir_default.te
│ ├── hal_light_default.te
│ ├── hal_perf_default.te
│ ├── hal_power_default.te
│ ├── hal_power_stats_default.te
│ ├── hal_sensors_default.te
│ ├── hal_wifi_default.te
│ ├── hostapd.te
│ ├── hvdcp.te
│ ├── hwservice.te
│ ├── hwservice_contexts
│ ├── ims.te
│ ├── init.te
│ ├── init_fingerprint.te
│ ├── installd.te
│ ├── kernel.te
│ ├── location.te
│ ├── mediaserver.te
│ ├── mm-qcamerad.te
│ ├── netmgrd.te
│ ├── platform_app.te
│ ├── poweroffalarm_app.te
│ ├── priv_app.te
│ ├── proc_net.te
│ ├── proc_touchpanel.te
│ ├── property.te
│ ├── property_contexts
│ ├── qti_init_shell.te
│ ├── qtidataservices_app.te
│ ├── radio.te
│ ├── rfs_access.te
│ ├── rild.te
│ ├── sensors.te
│ ├── shell.te
│ ├── system_app.te
│ ├── system_server.te
│ ├── tee.te
│ ├── thermal-engine.te
│ ├── thermal_engine.te
│ ├── traced_probes.te
│ ├── ueventd.te
│ ├── untrusted_app.te
│ ├── untrusted_app_29.te
│ ├── vdc.te
│ ├── vendor_dataservice_app.te
│ ├── vendor_dpmd.te
│ ├── vendor_fm_app.te
│ ├── vendor_init.te
│ ├── vendor_per_mgr.te
│ ├── vendor_qtelephony.te
│ ├── vndservice.te
│ ├── vndservice_contexts
│ ├── vold.te
│ ├── wcnss_service.te
│ └── zygote.te
├── setup-makefiles.sh
├── system.prop
├── system_ext.prop
├── thermal
├── Android.bp
├── thermal-8953.c
├── thermal.c
├── thermal_common.c
└── thermal_common.h
├── update-sha1sums.py
├── vendor.prop
└── wifi
├── WCNSS_cfg.dat
├── WCNSS_qcom_cfg.ini
├── p2p_supplicant_overlay.conf
└── wpa_supplicant_overlay.conf
/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | }
3 |
--------------------------------------------------------------------------------
/AndroidProducts.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2017-2019 The LineageOS Project
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | PRODUCT_MAKEFILES := \
17 | $(LOCAL_DIR)/lineage_mido.mk
18 |
19 | COMMON_LUNCH_CHOICES := \
20 | lineage_mido-user \
21 | lineage_mido-userdebug \
22 | lineage_mido-eng
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Device Tree for Xiaomi Redmi Note 4 & 4x (Mido)
2 |
3 | ## Spec Sheet
4 |
5 | | Feature | Specification |
6 | | :---------------------- | :-------------------------------- |
7 | | CPU | Octa-core 2.0 GHz Cortex-A53 |
8 | | Chipset | Qualcomm MSM8953 Snapdragon 625 |
9 | | GPU | Adreno 506 |
10 | | Memory | 2/3/4 GB |
11 | | Shipped Android Version | 6.0.1 |
12 | | Storage | 32/64 GB |
13 | | MicroSD | Up to 256 GB |
14 | | Battery | 4100 mAh (non-removable) |
15 | | Dimensions | 151 x 76 x 8.5 mm |
16 | | Display | 1920x1080 pixels, 5.5 (~401 PPI) |
17 | | Rear Camera | 13 MP, LED flash |
18 | | Front Camera | 5 MP |
19 | | Release Date | January 2017 |
20 |
21 | ## Device Picture
22 |
23 | 
24 |
--------------------------------------------------------------------------------
/biometrics/Android.bp:
--------------------------------------------------------------------------------
1 | cc_binary {
2 | name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido",
3 | defaults: ["hidl_defaults"],
4 | init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido.rc"],
5 | vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido.xml"],
6 | vendor: true,
7 | relative_install_path: "hw",
8 | srcs: [
9 | "BiometricsFingerprint.cpp",
10 | "service.cpp",
11 | ],
12 |
13 | shared_libs: [
14 | "libbase",
15 | "libbinder",
16 | "libcutils",
17 | "liblog",
18 | "libhidlbase",
19 | "libhardware",
20 | "libutils",
21 | "android.hardware.biometrics.fingerprint@2.1",
22 | ],
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_mido.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.biometrics.fingerprint
4 | hwbinder
5 | 2.1
6 |
7 | IBiometricsFingerprint
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/bluetooth/bdroid_buildcfg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef _BDROID_BUILDCFG_H
18 | #define _BDROID_BUILDCFG_H
19 |
20 | #define BTM_DEF_LOCAL_NAME "Redmi Note 4"
21 | #define MAX_ACL_CONNECTIONS 16
22 | #define MAX_L2CAP_CHANNELS 16
23 | #define BLE_VND_INCLUDED TRUE
24 |
25 | // Wide-band speech support
26 | #define BTIF_HF_WBS_PREFERRED TRUE
27 |
28 | /* Disable enhanced sco commands */
29 | #define BTM_SCO_ENHANCED_SYNC_ENABLED FALSE
30 |
31 | /* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */
32 | #define AVDT_NUM_SEPS 12
33 |
34 | #endif /* _BDROID_BUILDCFG_H */
35 |
--------------------------------------------------------------------------------
/camera/Android.mk:
--------------------------------------------------------------------------------
1 | MM_V4L2_DRIVER_LIST += msm8960
2 | MM_V4L2_DRIVER_LIST += msm8974
3 | MM_V4L2_DRIVER_LIST += msm8916
4 | MM_V4L2_DRIVER_LIST += msm8226
5 | MM_V4L2_DRIVER_LIST += msm8610
6 | MM_V4L2_DRIVER_LIST += apq8084
7 | MM_V4L2_DRIVER_LIST += mpq8092
8 | MM_V4L2_DRIVER_LIST += msm_bronze
9 | MM_V4L2_DRIVER_LIST += msm8916
10 | MM_V4L2_DRIVER_LIST += msm8994
11 | MM_V4L2_DRIVER_LIST += msm8084
12 | MM_V4L2_DRIVER_LIST += msm8909
13 | MM_V4L2_DRIVER_LIST += msm8952
14 | MM_V4L2_DRIVER_LIST += msm8996
15 | MM_V4L2_DRIVER_LIST += msm8992
16 | MM_V4L2_DRIVER_LIST += msm8937
17 | MM_V4L2_DRIVER_LIST += msm8953
18 | MM_V4L2_DRIVER_LIST += msmcobalt
19 | MM_V4L2_DRIVER_LIST += msmfalcon
20 |
21 | ifneq (,$(filter $(MM_V4L2_DRIVER_LIST),$(TARGET_BOARD_PLATFORM)))
22 | ifneq ($(strip $(USE_CAMERA_STUB)),true)
23 | ifneq ($(BUILD_TINY_ANDROID),true)
24 | include $(call all-subdir-makefiles)
25 | endif
26 | endif
27 | endif
28 |
--------------------------------------------------------------------------------
/camera/MODULE_LICENSE_BSD:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/camera/MODULE_LICENSE_BSD
--------------------------------------------------------------------------------
/camera/QCamera2/stack/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 | include $(LOCAL_PATH)/mm-camera-interface/Android.mk
3 | include $(LOCAL_PATH)/mm-jpeg-interface/Android.mk
4 |
--------------------------------------------------------------------------------
/camera/QCamera2/stack/common/cam_intf.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/camera/QCamera2/stack/common/cam_intf.h
--------------------------------------------------------------------------------
/camera/QCamera2/stack/mm-lib2d-interface/Android.mk:
--------------------------------------------------------------------------------
1 | OLD_LOCAL_PATH := $(LOCAL_PATH)
2 | LOCAL_PATH := $(call my-dir)
3 |
4 | include $(CLEAR_VARS)
5 |
6 | LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
7 | LOCAL_CFLAGS+= -D_ANDROID_ -DQCAMERA_REDEFINE_LOG
8 |
9 | LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
10 |
11 | LOCAL_HEADER_LIBRARIES += generated_kernel_headers
12 |
13 | IMGLIB_HEADER_PATH := $(TARGET_OUT_INTERMEDIATES)/include/mm-camera/imglib
14 |
15 | LOCAL_C_INCLUDES += \
16 | $(IMGLIB_HEADER_PATH) \
17 | $(LOCAL_PATH)/inc \
18 | $(LOCAL_PATH)/../common \
19 | $(LOCAL_PATH)/../mm-camera-interface/inc \
20 |
21 | LOCAL_HEADER_LIBRARIES := libutils_headers
22 | ifeq ($(strip $(TARGET_USES_ION)),true)
23 | LOCAL_CFLAGS += -DUSE_ION
24 | endif
25 |
26 |
27 | LOCAL_SRC_FILES := \
28 | src/mm_lib2d.c
29 |
30 | LOCAL_MODULE := libmmlib2d_interface
31 | LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libmmcamera_interface
32 | LOCAL_MODULE_TAGS := optional
33 | LOCAL_VENDOR_MODULE := true
34 |
35 | LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
36 | include $(BUILD_SHARED_LIBRARY)
37 |
38 | LOCAL_PATH := $(OLD_LOCAL_PATH)
39 |
--------------------------------------------------------------------------------
/camera/mm-image-codec/Android.mk:
--------------------------------------------------------------------------------
1 | ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm arm64))
2 | include $(call all-subdir-makefiles)
3 | endif
4 |
--------------------------------------------------------------------------------
/camera/mm-image-codec/qomx_core/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | # ------------------------------------------------------------------------------
4 | # Make the shared library (libqomx_core)
5 | # ------------------------------------------------------------------------------
6 |
7 | include $(CLEAR_VARS)
8 | LOCAL_MODULE_TAGS := optional
9 |
10 | LOCAL_CFLAGS := -Werror \
11 | -g -O0
12 |
13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../qexif
14 |
15 | LOCAL_HEADER_LIBRARIES := libutils_headers
16 | LOCAL_HEADER_LIBRARIES += media_plugin_headers
17 |
18 | LOCAL_INC_FILES := qomx_core.h \
19 | QOMX_JpegExtensions.h
20 |
21 | LOCAL_SRC_FILES := qomx_core.c
22 |
23 | LOCAL_MODULE := libqomx_core
24 | LOCAL_VENDOR_MODULE := true
25 | LOCAL_SHARED_LIBRARIES := libcutils libdl liblog libutils
26 |
27 | LOCAL_32_BIT_ONLY := true
28 | include $(BUILD_SHARED_LIBRARY)
29 |
--------------------------------------------------------------------------------
/configs/cgroups.json:
--------------------------------------------------------------------------------
1 | {
2 | "Cgroups": [
3 | {
4 | "Controller": "schedtune",
5 | "Path": "/dev/stune",
6 | "Mode": "0755",
7 | "UID": "system",
8 | "GID": "system"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/configs/component-overrides.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/configs/msm_irqbalance.conf:
--------------------------------------------------------------------------------
1 | PRIO=1,1,0,0,0,0,0,0
2 | IGNORED_IRQ=39,200,203
3 |
--------------------------------------------------------------------------------
/configs/perf/commonsysnodesconfigs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/configs/perf/perf-profile0.conf:
--------------------------------------------------------------------------------
1 | [priority] # This profile is reserved for perflock requests
2 | 99
3 |
--------------------------------------------------------------------------------
/configs/public.libraries.txt:
--------------------------------------------------------------------------------
1 | libqti-perfd-client.so
2 | libadsprpc.so
3 | libcdsprpc.so
4 | libsdsprpc.so
5 | libfastcvopt.so
6 | liblistensoundmodel2.so
7 | libOpenCL.so
8 |
--------------------------------------------------------------------------------
/configs/qmi/qmi_fw.conf:
--------------------------------------------------------------------------------
1 | #Debug messages with priority >= ANDROID_LOG_WARN
2 | QMI_CCI_DEBUG_LEVEL=5
3 | QMI_CSI_DEBUG_LEVEL=5
4 |
--------------------------------------------------------------------------------
/configs/sensors/hals.conf:
--------------------------------------------------------------------------------
1 | sensors.ssc.so
2 |
--------------------------------------------------------------------------------
/consumerir/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2019-2020 The LineageOS Project
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 |
16 | cc_binary {
17 | name: "android.hardware.ir@1.0-service.xiaomi_mido",
18 | relative_install_path: "hw",
19 | defaults: ["hidl_defaults"],
20 | init_rc: ["android.hardware.ir@1.0-service.xiaomi_mido.rc"],
21 | vintf_fragments: ["android.hardware.ir@1.0-service.xiaomi_mido.xml"],
22 | srcs: ["service.cpp", "ConsumerIr.cpp"],
23 | shared_libs: [
24 | "libbase",
25 | "libhardware",
26 | "libhidlbase",
27 | "libutils",
28 | "android.hardware.ir@1.0",
29 | ],
30 | proprietary: true,
31 | }
32 |
--------------------------------------------------------------------------------
/consumerir/android.hardware.ir@1.0-service.xiaomi_mido.rc:
--------------------------------------------------------------------------------
1 | service vendor.ir-hal-1-0 /vendor/bin/hw/android.hardware.ir@1.0-service.xiaomi_mido
2 | interface android.hardware.ir@1.0::IConsumerIr default
3 | oneshot
4 | disabled
5 | class hal
6 | user system
7 | group system
8 |
--------------------------------------------------------------------------------
/consumerir/android.hardware.ir@1.0-service.xiaomi_mido.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.ir
4 | hwbinder
5 | 1.0
6 |
7 | IConsumerIr
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/include/sound/voice_params.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | ****************************************************************************
3 | ***
4 | *** This header was automatically generated from a Linux kernel header
5 | *** of the same name, to make information necessary for userspace to
6 | *** call into the kernel available to libc. It contains only constants,
7 | *** structures, and macros generated from the original header, and thus,
8 | *** contains no copyrightable information.
9 | ***
10 | *** To edit the content of this header, modify the corresponding
11 | *** source file (e.g. under external/kernel-headers/original/) then
12 | *** run bionic/libc/kernel/tools/update_all.py
13 | ***
14 | *** Any manual change here will be lost the next time this script will
15 | *** be run. You've been warned!
16 | ***
17 | ****************************************************************************
18 | ****************************************************************************/
19 | #ifndef __VOICE_PARAMS_H__
20 | #define __VOICE_PARAMS_H__
21 | #include
22 | #include
23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 | enum voice_lch_mode {
25 | VOICE_LCH_START = 1,
26 | VOICE_LCH_STOP
27 | };
28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 | #define SNDRV_VOICE_IOCTL_LCH _IOW('U', 0x00, enum voice_lch_mode)
30 | #endif
--------------------------------------------------------------------------------
/init/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2019 The LineageOS Project
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 | //
16 |
17 | cc_library_static {
18 | name: "libinit_mido",
19 | recovery_available: true,
20 | srcs: ["init_mido.cpp"],
21 | include_dirs: [
22 | "system/libbase/include",
23 | "system/core/init"
24 | ],
25 | shared_libs: [
26 | "libbase",
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/keylayout/gf3208.kl:
--------------------------------------------------------------------------------
1 | #
2 | # Goodix fingerprint sensor driver
3 | #
4 | # Copyright (c) 2013,2014 Fingerprint Cards AB
5 | #
6 | # This program is free software; you can redistribute it and/or
7 | # modify it under the terms of the GNU General Public License Version 2
8 | # as published by the Free Software Foundation.
9 | #
10 |
11 | key 195 SYSTEM_NAVIGATION_UP
12 | key 196 SYSTEM_NAVIGATION_DOWN
13 | key 197 SYSTEM_NAVIGATION_LEFT
14 | key 198 SYSTEM_NAVIGATION_RIGHT
15 | #key 353 CAMERA
16 |
--------------------------------------------------------------------------------
/keylayout/uinput-fpc.kl:
--------------------------------------------------------------------------------
1 | #
2 | # FPC1020 Touch sensor driver
3 | #
4 | # Copyright (c) 2013,2014 Fingerprint Cards AB
5 | #
6 | # This program is free software; you can redistribute it and/or
7 | # modify it under the terms of the GNU General Public License Version 2
8 | # as published by the Free Software Foundation.
9 | #
10 |
11 | key 195 SYSTEM_NAVIGATION_UP
12 | key 196 SYSTEM_NAVIGATION_DOWN
13 | key 197 SYSTEM_NAVIGATION_LEFT
14 | key 198 SYSTEM_NAVIGATION_RIGHT
15 | #key 353 CAMERA
16 |
--------------------------------------------------------------------------------
/libhidl/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2020 The LineageOS Project
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 |
16 | cc_library_shared {
17 | name: "android.hidl.base@1.0",
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/libshims/GraphicBuffer.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | #include
4 |
5 | extern "C" void _ZN7android13GraphicBufferC1EjjijjjP13native_handleb(
6 | const native_handle_t* handle,
7 | android::GraphicBuffer::HandleWrapMethod method,
8 | uint32_t width,
9 | uint32_t height,
10 | int format,
11 | uint32_t layerCount,
12 | uint64_t usage,
13 | uint32_t stride);
14 |
15 | extern "C" void _ZN7android13GraphicBufferC1EjjijjP13native_handleb(
16 | uint32_t inWidth,
17 | uint32_t inHeight,
18 | int inFormat,
19 | uint32_t inUsage,
20 | uint32_t inStride,
21 | native_handle_t* inHandle,
22 | bool keepOwnership)
23 | {
24 | android::GraphicBuffer::HandleWrapMethod inMethod =
25 | (keepOwnership ? android::GraphicBuffer::TAKE_HANDLE : android::GraphicBuffer::WRAP_HANDLE);
26 | _ZN7android13GraphicBufferC1EjjijjjP13native_handleb(inHandle, inMethod, inWidth, inHeight,
27 | inFormat, static_cast(1), static_cast(inUsage), inStride);
28 | }
29 |
--------------------------------------------------------------------------------
/libshims/Surface.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | namespace android {
4 |
5 | extern "C" void
6 | _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
7 | const sp &, bool, sp &);
8 |
9 | extern "C" void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb(
10 | const sp &bufferProducer, bool controlledByApp) {
11 | sp handle = static_cast>(nullptr);
12 | return _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
13 | bufferProducer, controlledByApp, handle);
14 | }
15 |
16 | } // namespace android
17 |
--------------------------------------------------------------------------------
/libshims/fakelogprint.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | int __android_log_print(int /*prio*/, const char* /*tag*/, const char* /*fmt*/, ...) {
4 | // Goodix: please don't spam that much!
5 | return 0;
6 | }
7 |
--------------------------------------------------------------------------------
/libshims/gxfpd_shim.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | extern "C" void _ZN7android22checkCallingPermissionERKNS_8String16E() {}
18 |
--------------------------------------------------------------------------------
/libshims/libshims.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | namespace android {
4 | // libandroid.so
5 | extern "C" void ALooper_forThread() {}
6 | extern "C" void ALooper_pollOnce() {}
7 | extern "C" void ALooper_prepare() {}
8 | extern "C" void ALooper_wake() {}
9 | extern "C" void ASensor_getMaxRange() {}
10 | extern "C" void ASensor_getMinDelay() {}
11 | extern "C" void ASensor_getName() {}
12 | extern "C" void ASensor_getVendor() {}
13 | extern "C" void ASensorEventQueue_disableSensor() {}
14 | extern "C" void ASensorEventQueue_enableSensor() {}
15 | extern "C" void ASensorEventQueue_getEvents() {}
16 | extern "C" void ASensorEventQueue_setEventRate() {}
17 | extern "C" void ASensorManager_createEventQueue() {}
18 | extern "C" void ASensorManager_destroyEventQueue() {}
19 | extern "C" void ASensorManager_getDefaultSensor() {}
20 | extern "C" void ASensorManager_getInstanceForPackage() {}
21 | // libandroid_runtime.so
22 | extern "C" void _ZNK7android6Sensor11getMaxValueEv() {}
23 | }
24 |
--------------------------------------------------------------------------------
/light/Android.bp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2019 The LineageOS Project
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | cc_binary {
16 | relative_install_path: "hw",
17 | defaults: ["hidl_defaults"],
18 | name: "android.hardware.light@2.0-service.xiaomi_mido",
19 | proprietary: true,
20 | init_rc: ["android.hardware.light@2.0-service.xiaomi_mido.rc"],
21 | vintf_fragments: ["android.hardware.light@2.0-service.xiaomi_mido.xml"],
22 | srcs: ["service.cpp", "Light.cpp"],
23 | shared_libs: [
24 | "libhardware",
25 | "libhidlbase",
26 | "liblog",
27 | "libutils",
28 | "android.hardware.light@2.0",
29 | ],
30 | }
31 |
--------------------------------------------------------------------------------
/light/android.hardware.light@2.0-service.xiaomi_mido.rc:
--------------------------------------------------------------------------------
1 | on init
2 | # Notification LED
3 | chown system system /sys/class/leds/red/blink
4 | chown system system /sys/class/leds/green/blink
5 | chown system system /sys/class/leds/blue/blink
6 | chown system system /sys/class/leds/red/brightness
7 | chown system system /sys/class/leds/green/brightness
8 | chown system system /sys/class/leds/blue/brightness
9 |
10 | service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_mido
11 | interface android.hardware.light@2.0::ILight default
12 | class hal
13 | user system
14 | group system
15 | shutdown critical
16 | task_profiles ServiceCapacityLow
17 |
--------------------------------------------------------------------------------
/light/android.hardware.light@2.0-service.xiaomi_mido.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.light
4 | hwbinder
5 | 2.0
6 |
7 | ILight
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/light/service.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2019 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #define LOG_TAG "android.hardware.light@2.0-service.xiaomi_mido"
18 |
19 | #include
20 |
21 | #include "Light.h"
22 |
23 | using android::hardware::configureRpcThreadpool;
24 | using android::hardware::joinRpcThreadpool;
25 |
26 | using android::hardware::light::V2_0::ILight;
27 | using android::hardware::light::V2_0::implementation::Light;
28 |
29 | using android::OK;
30 | using android::sp;
31 | using android::status_t;
32 |
33 | int main() {
34 | sp service = new Light();
35 |
36 | configureRpcThreadpool(1, true);
37 |
38 | status_t status = service->registerAsService();
39 | if (status != OK) {
40 | ALOGE("Cannot register Light HAL service.");
41 | return 1;
42 | }
43 |
44 | ALOGI("Light HAL service ready.");
45 |
46 | joinRpcThreadpool();
47 |
48 | ALOGI("Light HAL service failed to join thread pool.");
49 | return 1;
50 | }
51 |
--------------------------------------------------------------------------------
/odm.prop:
--------------------------------------------------------------------------------
1 | #
2 | # odm.prop for mido
3 | #
4 |
5 | # Qualcomm
6 | ro.vendor.qti.va_odm.support=1
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/xml/power_profile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | - 63
4 | - 261
5 | - 0.1
6 | - 0.1
7 | - 0.1
8 |
9 | 8
10 |
11 |
12 | 652800
13 | 1036800
14 | 1401600
15 | 1689600
16 | 1804800
17 | 1958400
18 | 2016000
19 |
20 |
21 | 151
22 | 169
23 | 177
24 | 195
25 | 259
26 | 307
27 | 353
28 |
29 | - 1.6
30 | - 1.6
31 | - 4100
32 |
33 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 | true
23 |
24 |
25 | true
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rAU/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rCA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rGB/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
24 | 2000000
25 |
26 |
27 | 5500000
28 |
29 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rAU/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rCA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rGB/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 0dp
20 | 0dp
21 |
22 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | %2$s • Turbo Charging (%1$s until full)
7 |
8 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | true
16 |
19 | 4
20 |
21 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/qcomarrays.xml:
--------------------------------------------------------------------------------
1 |
20 |
21 |
22 |
23 |
24 | - @string/pref_camera_hfr_entry_off
25 |
26 |
27 |
28 | - off
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/parts/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2017-2021 The LineageOS Project
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | //
6 |
7 | android_app {
8 | name: "XiaomiParts",
9 |
10 | srcs: ["src/**/*.java"],
11 | resource_dirs: ["res"],
12 | certificate: "platform",
13 | platform_apis: true,
14 | privileged: true,
15 |
16 | static_libs: [
17 | "org.lineageos.settings.resources",
18 | ],
19 |
20 | optimize: {
21 | proguard_flags_files: ["proguard.flags"],
22 | },
23 | }
24 |
--------------------------------------------------------------------------------
/parts/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.settings.dirac.* {
2 | *;
3 | }
4 |
5 | -keep class org.lineageos.settings.doze.* {
6 | *;
7 | }
8 |
9 | -keep class org.lineageos.settings.soundcontrol.* {
10 | *;
11 | }
12 |
13 | -keep class org.lineageos.settings.torch.* {
14 | *;
15 | }
16 |
17 | -keep class org.lineageos.settings.speaker.* {
18 | *;
19 | }
20 |
--------------------------------------------------------------------------------
/parts/res/color/switch_bar_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/parts/res/drawable/action_presets.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/action_reset.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/active_dot.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/parts/res/drawable/dirac_qs_tile_icon.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_custom_seekbar_minus.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_custom_seekbar_plus.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_dirac.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_hand.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_headphone.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_kcal.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_mic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_pickup.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_pocket.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_preset.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_speaker.xml:
--------------------------------------------------------------------------------
1 |
6 |
14 |
15 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_speaker_cleaner_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
11 |
14 |
15 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_torch.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_torch_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/inactive_dot.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/parts/res/drawable/kcal_image_one.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/parts/res/drawable/kcal_image_one.jpg
--------------------------------------------------------------------------------
/parts/res/drawable/kcal_image_two.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/parts/res/drawable/kcal_image_two.png
--------------------------------------------------------------------------------
/parts/res/drawable/switchbar_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/parts/res/layout/image_layout.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/parts/res/layout/kcal_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
15 |
16 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/parts/res/menu/menu_reset.xml:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/parts/res/raw/clear_speaker_sound.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/parts/res/raw/clear_speaker_sound.mp3
--------------------------------------------------------------------------------
/parts/res/values-night/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | #82000000
19 | @android:color/black
20 |
21 |
--------------------------------------------------------------------------------
/parts/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/parts/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | #66000000
16 | @*android:color/material_grey_600
17 | #BFFFFFFF
18 | @android:color/white
19 |
20 |
--------------------------------------------------------------------------------
/parts/res/values/custom_seekbar_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Value: %s
4 | Default
5 | Default value: %s\nLong press to set
6 | Default value is set
7 |
8 |
--------------------------------------------------------------------------------
/parts/res/xml/clear_speaker_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/dirac/DiracActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.lineageos.settings.dirac;
18 |
19 | import android.os.Bundle;
20 |
21 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
22 | import com.android.settingslib.collapsingtoolbar.R;
23 |
24 | public class DiracActivity extends CollapsingToolbarBaseActivity {
25 |
26 | private static final String TAG_DIRAC = "dirac";
27 |
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | getFragmentManager().beginTransaction().replace(R.id.content_frame,
33 | new DiracSettingsFragment(), TAG_DIRAC).commit();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/dirac/DiracTileService.java:
--------------------------------------------------------------------------------
1 | package org.lineageos.settings.dirac;
2 |
3 | import android.service.quicksettings.Tile;
4 | import android.service.quicksettings.TileService;
5 |
6 | public class DiracTileService extends TileService {
7 |
8 | private DiracUtils mDiracUtils;
9 |
10 | @Override
11 | public void onStartListening() {
12 |
13 | mDiracUtils = new DiracUtils(getApplicationContext());
14 |
15 | boolean enhancerEnabled = mDiracUtils.isDiracEnabled();
16 |
17 | Tile tile = getQsTile();
18 | if (enhancerEnabled) {
19 | tile.setState(Tile.STATE_ACTIVE);
20 | } else {
21 | tile.setState(Tile.STATE_INACTIVE);
22 | }
23 |
24 | tile.updateTile();
25 |
26 | super.onStartListening();
27 | }
28 |
29 | @Override
30 | public void onClick() {
31 | Tile tile = getQsTile();
32 | if (mDiracUtils.isDiracEnabled()) {
33 | mDiracUtils.setEnabled(false);
34 | tile.setState(Tile.STATE_INACTIVE);
35 | } else {
36 | mDiracUtils.setEnabled(true);
37 | tile.setState(Tile.STATE_ACTIVE);
38 | }
39 | tile.updateTile();
40 | super.onClick();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015-2016 The CyanogenMod Project
3 | * 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.settings.doze;
19 |
20 | import android.os.Bundle;
21 |
22 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
23 | import com.android.settingslib.collapsingtoolbar.R;
24 |
25 | public class DozeSettingsActivity extends CollapsingToolbarBaseActivity {
26 |
27 | private static final String TAG_DOZE = "doze";
28 |
29 | @Override
30 | protected void onCreate(Bundle savedInstanceState) {
31 | super.onCreate(savedInstanceState);
32 |
33 | getFragmentManager().beginTransaction().replace(R.id.content_frame,
34 | new DozeSettingsFragment(), TAG_DOZE).commit();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/kcal/FadeOutTransformation.java:
--------------------------------------------------------------------------------
1 | package org.lineageos.settings.kcal;
2 |
3 | import androidx.viewpager.widget.ViewPager;
4 | import android.view.View;
5 |
6 | public class FadeOutTransformation implements ViewPager.PageTransformer {
7 | @Override
8 | public void transformPage(View page, float position) {
9 | page.setTranslationX(-position*page.getWidth());
10 | page.setAlpha(1-Math.abs(position));
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/preferences/SecureSettingSeekBarPreference.java:
--------------------------------------------------------------------------------
1 | package org.lineageos.settings.preferences;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 |
6 | public class SecureSettingSeekBarPreference extends CustomSeekBarPreference {
7 |
8 | public SecureSettingSeekBarPreference(Context context, AttributeSet attrs, int defStyle) {
9 | super(context, attrs, defStyle);
10 | setPreferenceDataStore(new SecureSettingsStore(context.getContentResolver()));
11 | }
12 |
13 | public SecureSettingSeekBarPreference(Context context, AttributeSet attrs) {
14 | super(context, attrs);
15 | setPreferenceDataStore(new SecureSettingsStore(context.getContentResolver()));
16 | }
17 |
18 | public SecureSettingSeekBarPreference(Context context) {
19 | super(context, null);
20 | setPreferenceDataStore(new SecureSettingsStore(context.getContentResolver()));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/product.prop:
--------------------------------------------------------------------------------
1 | #
2 | # product.prop for mido
3 | #
4 |
5 | # Default to BFQ I/O scheduler
6 | #persist.sys.io.scheduler=bfq
7 |
--------------------------------------------------------------------------------
/qcom-caf/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | }
3 |
--------------------------------------------------------------------------------
/qcom-caf/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(call first-makefiles-under,$(LOCAL_PATH))
4 |
--------------------------------------------------------------------------------
/qcom-caf/audio/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(DUAL_AUDIO_FRAMEWORK_AR), true)
2 | ifneq ($(AUDIO_USE_STUB_HAL), true)
3 | ifneq ($(filter mpq8092 msm8960 msm8226 msm8x26 msm8610 msm8974 msm8x74 apq8084 msm8916 msm8994 msm8992 msm8909 msm8996 msm8952 msm8937 thorium msm8953 msmgold msm8998 sdm660 sdm845 sdm710 apq8098_latv qcs605 sdmshrike msmnile kona lahaina holi $(MSMSTEPPE) $(TRINKET) atoll lito bengal,$(TARGET_BOARD_PLATFORM)),)
4 |
5 | MY_LOCAL_PATH := $(call my-dir)
6 |
7 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
8 | include $(MY_LOCAL_PATH)/legacy/Android.mk
9 | else
10 | ifneq ($(filter mpq8092,$(TARGET_BOARD_PLATFORM)),)
11 | include $(MY_LOCAL_PATH)/hal_mpq/Android.mk
12 | else
13 | include $(MY_LOCAL_PATH)/hal/Android.mk
14 | endif
15 | include $(MY_LOCAL_PATH)/hal/audio_extn/Android.mk
16 | include $(MY_LOCAL_PATH)/voice_processing/Android.mk
17 | include $(MY_LOCAL_PATH)/mm-audio/Android.mk
18 | include $(MY_LOCAL_PATH)/visualizer/Android.mk
19 | include $(MY_LOCAL_PATH)/post_proc/Android.mk
20 | include $(MY_LOCAL_PATH)/qahw/Android.mk
21 | include $(MY_LOCAL_PATH)/qahw_api/Android.mk
22 | endif
23 |
24 | ifeq ($(USE_LEGACY_AUDIO_DAEMON), true)
25 | include $(MY_LOCAL_PATH)/audiod/Android.mk
26 | endif
27 |
28 | endif
29 | endif
30 | endif
31 |
--------------------------------------------------------------------------------
/qcom-caf/audio/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = hal hal/audio_extn
2 |
3 | if QAHW_SUPPORT
4 | SUBDIRS += qahw_api qahw_api/test
5 | endif
6 |
7 | if AUDIO_HW_LOOPBACK
8 | SUBDIRS += hdmi_in_test
9 | endif
10 |
11 | ACLOCAL_AMFLAGS = -I m4
12 |
--------------------------------------------------------------------------------
/qcom-caf/audio/adsprpcd/Android.bp:
--------------------------------------------------------------------------------
1 | cc_binary {
2 | name: "audioadsprpcd",
3 |
4 | srcs: ["adsprpcd.c"],
5 |
6 | shared_libs: [
7 | "liblog",
8 | "libdl",
9 | ],
10 |
11 | init_rc: ["vendor.qti.audio-adsprpc-service.rc"],
12 |
13 | vendor: true,
14 |
15 | owner: "qti",
16 |
17 | sanitize: {
18 | integer_overflow: true,
19 | },
20 | }
21 |
--------------------------------------------------------------------------------
/qcom-caf/audio/audiod/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | ifneq (,$(findstring $(PLATFORM_VERSION), 5.0 5.1 5.1.1))
6 | include external/stlport/libstlport.mk
7 | endif
8 |
9 | LOCAL_SRC_FILES:= \
10 | audiod_main.cpp \
11 | AudioDaemon.cpp \
12 |
13 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
14 |
15 | LOCAL_SHARED_LIBRARIES := \
16 | libcutils \
17 | libutils \
18 | libbinder \
19 | libmedia
20 |
21 | ifneq (,$(findstring $(PLATFORM_VERSION), 5.0 5.1 5.1.1))
22 | LOCAL_SHARED_LIBRARIES += libstlport
23 | endif
24 |
25 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
26 |
27 | LOCAL_MODULE:= audiod
28 |
29 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
30 | LOCAL_SANITIZE := integer_overflow
31 | endif
32 | include $(BUILD_EXECUTABLE)
33 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/common/default.mk:
--------------------------------------------------------------------------------
1 | # for HIDL related packages
2 | PRODUCT_PACKAGES += android.hardware.audio@2.0-service
3 |
4 | # enable audio hidl hal 5.0
5 | PRODUCT_PACKAGES += \
6 | android.hardware.audio@5.0 \
7 | android.hardware.audio@5.0-impl \
8 | android.hardware.audio.common@5.0 \
9 | android.hardware.audio.common@5.0-util \
10 | android.hardware.audio.effect@5.0 \
11 | android.hardware.audio.effect@5.0-impl
12 |
13 | # enable audio hidl hal 6.0
14 | PRODUCT_PACKAGES += \
15 | android.hardware.audio@6.0 \
16 | android.hardware.audio.common@6.0 \
17 | android.hardware.audio.common@6.0-util \
18 | android.hardware.audio@6.0-impl \
19 | android.hardware.audio.effect@6.0 \
20 | android.hardware.audio.effect@6.0-impl
21 |
22 | # enable sound trigger hidl hal 2.2
23 | PRODUCT_PACKAGES += \
24 | android.hardware.soundtrigger@2.2-impl \
25 |
26 | # enable sound trigger hidl hal 2.3
27 | PRODUCT_PACKAGES += \
28 | android.hardware.soundtrigger@2.3-impl \
29 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/common/media_codecs_vendor_audio.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/common_au/overlay/frameworks/base/core/res/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
25 |
26 | true
27 |
30 | true
31 |
32 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/common_au/overlay/packages/services/Car/service/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
28 |
29 |
32 | true
33 |
34 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/sdm660/audio_tuning_mixer.txt:
--------------------------------------------------------------------------------
1 | #RAS_TEST_SPKR_PHONE_SPKR_STEREO
2 | acdb_dev_id:136
3 | !Playback
4 | Rxdevice:0
5 |
6 | enable
7 | INT4_MI2S_RX Channels:Two
8 | RX4 MIX1 INP1:RX4
9 | RX5 MIX1 INP1:RX5
10 | COMP1 Switch:1
11 | COMP2 Switch:1
12 | SpkrLeft COMP Switch:1
13 | SpkrLeft BOOST Switch:1
14 | SpkrLeft VISENSE Switch:1
15 | SpkrLeft SWR DAC_Port Switch:1
16 | SpkrRight COMP Switch:1
17 | SpkrRight BOOST Switch:1
18 | SpkrRight VISENSE Switch:1
19 | SpkrRight SWR DAC_Port Switch:1
20 | SpkrLeft WSA PA Mute:0
21 | SpkrRight WSA PA Mute:0
22 | INT4_MI2S_RX Audio Mixer MultiMedia1:1
23 |
24 | disable
25 | INT4_MI2S_RX Channels:One
26 | RX4 MIX1 INP1:ZERO
27 | RX5 MIX1 INP1:ZERO
28 | COMP1 Switch:0
29 | COMP2 Switch:0
30 | SpkrLeft COMP Switch:0
31 | SpkrLeft BOOST Switch:0
32 | SpkrLeft VISENSE Switch:0
33 | SpkrLeft SWR DAC_Port Switch:0
34 | SpkrRight COMP Switch:0
35 | SpkrRight BOOST Switch:0
36 | SpkrRight VISENSE Switch:0
37 | SpkrRight SWR DAC_Port Switch:0
38 | SpkrLeft WSA PA Mute:0
39 | SpkrRight WSA PA Mute:0
40 | INT4_MI2S_RX Audio Mixer MultiMedia1:0
41 |
42 |
--------------------------------------------------------------------------------
/qcom-caf/audio/configs/sdm710/audio_tuning_mixer.txt:
--------------------------------------------------------------------------------
1 | #RAS_TEST_SPKR_PHONE_SPKR_STEREO
2 | acdb_dev_id:136
3 | !Playback
4 | Rxdevice:0
5 |
6 | enable
7 | INT4_MI2S_RX Channels:Two
8 | RX4 MIX1 INP1:RX4
9 | RX5 MIX1 INP1:RX5
10 | COMP1 Switch:1
11 | COMP2 Switch:1
12 | SpkrLeft COMP Switch:1
13 | SpkrLeft BOOST Switch:1
14 | SpkrLeft VISENSE Switch:1
15 | SpkrLeft SWR DAC_Port Switch:1
16 | SpkrRight COMP Switch:1
17 | SpkrRight BOOST Switch:1
18 | SpkrRight VISENSE Switch:1
19 | SpkrRight SWR DAC_Port Switch:1
20 | SpkrLeft WSA PA Mute:0
21 | SpkrRight WSA PA Mute:0
22 | INT4_MI2S_RX Audio Mixer MultiMedia1:1
23 |
24 | disable
25 | INT4_MI2S_RX Channels:One
26 | RX4 MIX1 INP1:ZERO
27 | RX5 MIX1 INP1:ZERO
28 | COMP1 Switch:0
29 | COMP2 Switch:0
30 | SpkrLeft COMP Switch:0
31 | SpkrLeft BOOST Switch:0
32 | SpkrLeft VISENSE Switch:0
33 | SpkrLeft SWR DAC_Port Switch:0
34 | SpkrRight COMP Switch:0
35 | SpkrRight BOOST Switch:0
36 | SpkrRight VISENSE Switch:0
37 | SpkrRight SWR DAC_Port Switch:0
38 | SpkrLeft WSA PA Mute:0
39 | SpkrRight WSA PA Mute:0
40 | INT4_MI2S_RX Audio Mixer MultiMedia1:0
41 |
42 |
--------------------------------------------------------------------------------
/qcom-caf/audio/hal/audio_extn/audiozoom.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2019 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef AUDIOZOOM_H_
18 | #define AUDIOZOOM_H_
19 |
20 | int audiozoom_init(audiozoom_init_config_t init_config);
21 | int audiozoom_set_microphone_direction(struct stream_in *stream,
22 | audio_microphone_direction_t dir);
23 | int audiozoom_set_microphone_field_dimension(struct stream_in *stream, float zoom);
24 |
25 | #endif /* AUDIOZOOM_H_ */
26 |
--------------------------------------------------------------------------------
/qcom-caf/audio/hal/audio_extn/maxxaudio.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef MAXXAUDIO_H_
18 | #define MAXXAUDIO_H_
19 |
20 | void ma_init(void *platform, maxx_audio_init_config_t init_config);
21 | void ma_deinit();
22 | bool ma_set_state(struct audio_device *adev, int stream_type,
23 | float vol, bool active);
24 | void ma_set_device(struct audio_usecase *usecase);
25 | void ma_set_parameters(struct audio_device *adev,
26 | struct str_parms *parms);
27 | bool ma_supported_usb();
28 | #endif /* MAXXAUDIO_H_ */
29 |
--------------------------------------------------------------------------------
/qcom-caf/audio/hal/audio_extn/surround_rec_interface.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Extrapolated / reversed header for SSR
3 | */
4 |
5 | #ifndef _SURROUND_REC_INTERFACE_H_
6 | #define _SURROUND_REC_INTERFACE_H_
7 |
8 | typedef char *get_param(void *arg);
9 | typedef void set_param(void *arg, const char *arg1);
10 |
11 | typedef struct get_param_data {
12 | const char *name;
13 | get_param *get_param_fn;
14 | } get_param_data_t;
15 |
16 | typedef struct set_param_data {
17 | const char *name;
18 | set_param *set_param_fn;
19 | } set_param_data_t;
20 |
21 | const get_param_data_t* surround_rec_get_get_param_data(void);
22 |
23 | const set_param_data_t* surround_rec_get_set_param_data(void);
24 |
25 | int surround_rec_init(void **arg, int arg1, int arg2, int arg3,
26 | int arg4, const char *arg5);
27 |
28 | void surround_rec_deinit(void *arg);
29 |
30 | void surround_rec_process(void *arg, const int16_t *arg1, int16_t *arg2);
31 |
32 | #endif /* #ifndef _SURROUND_REC_INTERFACE_H_ */
--------------------------------------------------------------------------------
/qcom-caf/audio/hal/audio_perf.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef __QAUDIOPERF_H__
18 | #define __QAUDIOPERF_H__
19 |
20 | #include
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | // return true on success, false on failure
27 | bool audio_streaming_hint_start();
28 | bool audio_streaming_hint_end();
29 | bool audio_low_latency_hint_start();
30 | bool audio_low_latency_hint_end();
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 |
36 | #endif //__QAUDIOPERF_H__
37 |
--------------------------------------------------------------------------------
/qcom-caf/audio/hdmi_in_test/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE := hdmi_in_test
5 | LOCAL_MODULE_TAGS := optional
6 | LOCAL_MODULE_OWNER := qti
7 |
8 | LOCAL_SRC_FILES := \
9 | src/hdmi_in_event_test.c
10 |
11 | LOCAL_SHARED_LIBRARIES := \
12 | liblog \
13 | libcutils
14 |
15 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
16 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
17 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
18 | LOCAL_STATIC_LIBRARIES += libprofile_rt
19 | endif
20 |
21 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
22 | LOCAL_SANITIZE := integer_overflow
23 | endif
24 | include $(BUILD_EXECUTABLE)
25 |
--------------------------------------------------------------------------------
/qcom-caf/audio/hdmi_in_test/Makefile.am:
--------------------------------------------------------------------------------
1 |
2 | ACLOCAL_AMFLAGS = -I m4
3 | bin_PROGRAMS = hdmi_in_test
4 | bin_PROGRAMS += fmt_change_test
5 | pkgconfigdir = $(libdir)/pkgconfig
6 |
7 | REC_INCLUDES = -I $(top_srcdir)/qahw_api/inc
8 | REC_INCLUDES += -I $(top_srcdir)/qahw/inc
9 |
10 | hdmi_in_test_SOURCES = src/hdmi_in_event_test.c
11 | hdmi_in_test_CFLAGS = $(CFLAGS) -Wno-sign-compare -Werror
12 | hdmi_in_test_LDADD = -llog -lpthread
13 |
14 | fmt_change_test_SOURCES = src/fmt_change_test.c
15 | fmt_change_test_CFLAGS = $(CFLAGS) -Wno-sign-compare -Werror $(REC_INCLUDES)
16 | fmt_change_test_LDADD = -llog -lpthread ../qahw_api/libqahw.la
17 |
18 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(AUDIO_USE_STUB_HAL), true)
2 | LOCAL_CFLAGS += -Wno-unused-variable
3 | LOCAL_CFLAGS += -Wno-sign-compare
4 | LOCAL_CFLAGS += -Wno-unused-parameter
5 | LOCAL_CFLAGS += -Wno-unused-label
6 | LOCAL_CFLAGS += -Wno-gnu-designator
7 | LOCAL_CFLAGS += -Wno-typedef-redefinition
8 | LOCAL_CFLAGS += -Wno-shorten-64-to-32
9 | LOCAL_CFLAGS += -Wno-tautological-compare
10 | LOCAL_CFLAGS += -Wno-unused-function
11 | LOCAL_CFLAGS += -Wno-unused-local-typedef
12 |
13 | ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
14 | include $(call all-subdir-makefiles)
15 | endif
16 | endif
17 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C adec-mp3
4 | $(MAKE) -C adec-aac
5 | $(MAKE) -C aenc-aac
6 |
7 | install:
8 | $(MAKE) -C adec-mp3 install
9 | $(MAKE) -C adec-aac install
10 | $(MAKE) -C aenc-aac install
11 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for mm-omxaudio
2 | #
3 | ACLOCAL_AMFLAGS = -I m4
4 |
5 | SUBDIRS = aenc-aac aenc-amrnb aenc-g711
6 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-aac/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(filter arm aarch64 arm64, $(TARGET_ARCH)),)
2 |
3 |
4 | AENC_AAC_PATH:= $(call my-dir)
5 |
6 | include $(AENC_AAC_PATH)/qdsp6/Android.mk
7 |
8 | endif
9 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-aac/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C qdsp6
4 |
5 | install:
6 | $(MAKE) -C qdsp6 install
7 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-aac/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = qdsp6
2 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-aac/qdsp6/Makefile.am:
--------------------------------------------------------------------------------
1 | # sources and intermediate files are separated
2 |
3 | AM_CFLAGS = -Wall
4 | AM_CFLAGS += -Wundef
5 | AM_CFLAGS += -Wstrict-prototypes
6 | AM_CFLAGS += -Wno-trigraphs
7 | AM_CFLAGS += -g -O3
8 | AM_CFLAGS += -DNDEBUG
9 |
10 | AM_CPPFLAGS = -D__packed__=
11 | AM_CPPFLAGS += -DIMAGE_APPS_PROC
12 | AM_CPPFLAGS += -DFEATURE_Q_SINGLE_LINK
13 | AM_CPPFLAGS += -DFEATURE_Q_NO_SELF_QPTR
14 | AM_CPPFLAGS += -DFEATURE_LINUX
15 | AM_CPPFLAGS += -DFEATURE_NATIVELINUX
16 | AM_CPPFLAGS += -DFEATURE_DSM_DUP_ITEMS
17 | AM_CPPFLAGS += -DNDEBUG
18 | AM_CPPFLAGS += -Iinc
19 | AM_CPPFLAGS += -I ${WORKSPACE}/$(call project-path-for,qcom-media)/mm-core/inc/
20 | AM_CPPFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/audio-kernel
21 |
22 | c_sources =src/omx_aac_aenc.cpp
23 | c_sources +=src/aenc_svr.c
24 |
25 | lib_LTLIBRARIES = libOmxAacEnc.la
26 | libOmxAacEnc_la_SOURCES = $(c_sources)
27 | libOmxAacEnc_la_CFLAGS = $(AM_CFLAGS) -fPIC $(GLIB_CFLAGS) -include glib.h -Dstrlcpy=g_strlcpy
28 | libOmxAacEnc_la_CPPFLAGS = $(AM_CPPFLAGS) -fPIC $(GLIB_CFLAGS) -include glib.h -Dstrlcpy=g_strlcpy
29 | libOmxAacEnc_la_LIBADD = -lmm-omxcore -lstdc++ -lpthread $(GLIB_LIBS) -ldl -llog
30 | libOmxAacEnc_la_LDFLAGS = -shared $(GLIB_LIBS) -avoid-version $(OMXAUDIO_LIBRARY_VERSION)
31 |
32 | bin_PROGRAMS = mm-aenc-omxaac-test
33 | mm_aenc_omxaac_test_SOURCES = ./test/omx_aac_enc_test.c
34 | mm_aenc_omxaac_test_CFLAGS = -include errno.h -include limits.h
35 | mm_aenc_omxaac_test_LDADD = -lmm-omxcore -ldl -lpthread -llog libOmxAacEnc.la
36 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-amrnb/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(filter arm aarch64 arm64, $(TARGET_ARCH)),)
2 |
3 |
4 | AENC_AMR_PATH:= $(call my-dir)
5 |
6 | include $(AENC_AMR_PATH)/qdsp6/Android.mk
7 |
8 | endif
9 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-amrnb/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C qdsp6
4 |
5 | install:
6 | $(MAKE) -C qdsp6 install
7 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-amrnb/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = qdsp6
2 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-evrc/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(filter arm aarch64 arm64, $(TARGET_ARCH)),)
2 |
3 | AENC_EVRC_PATH:= $(call my-dir)
4 |
5 | include $(AENC_EVRC_PATH)/qdsp6/Android.mk
6 |
7 | endif
8 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-evrc/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C qdsp6
4 |
5 | install:
6 | $(MAKE) -C qdsp6 install
7 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-g711/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(filter arm aarch64 arm64, $(TARGET_ARCH)),)
2 |
3 | AENC_G7111_PATH:= $(call my-dir)
4 |
5 | include $(AENC_G7111_PATH)/qdsp6/Android.mk
6 |
7 | endif
8 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-g711/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C qdsp6
4 |
5 | install:
6 | $(MAKE) -C qdsp6 install
7 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-g711/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = qdsp6
2 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-g711/qdsp6/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = -Wall \
2 | -Wundef \
3 | -Wstrict-prototypes \
4 | -Wno-trigraphs \
5 | -fPIC \
6 | -g -O3 \
7 | -DQC_MODIFIED \
8 | -D_ANDROID_ \
9 | -D_ENABLE_QC_MSG_LOG_ \
10 | -DVERBOSE \
11 | -DNDEBUG \
12 | -DAUDIOV2 \
13 | -I inc \
14 | -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/audio-kernel \
15 | -I ${WORKSPACE}/$(call project-path-for,qcom-media)/mm-core/inc/
16 |
17 | C_SOURCES = src/aenc_svr.c \
18 | src/omx_g711_aenc.cpp \
19 | src/omx_log.cpp
20 |
21 | lib_LTLIBRARIES = libOmxG711Enc.la
22 | libOmxG711Enc_la_SOURCES = $(C_SOURCES)
23 | libOmxG711Enc_la_CFLAGS = $(AM_CFLAGS) -Dstrlcpy=g_strlcpy $(GLIB_CFLAGS) -include glib.h
24 | libOmxG711Enc_la_CPPFLAGS = $(AM_CFLAGS) -Dstrlcpy=g_strlcpy $(GLIB_CFLAGS) -include glib.h
25 | libOmxG711Enc_la_LIBADD = $(GLIB_LIBS) -lcutils -llog -lstdc++
26 | libOmxG711Enc_la_LDFLAGS = -shared -avoid-version
27 |
28 | bin_PROGRAMS = mm_aenc_omxg711_test
29 | mm_aenc_omxg711_test_SOURCES = ./test/omx_g711_enc_test.c
30 | mm_aenc_omxg711_test_CFLAGS = $(AM_CFLAGS) -Dstrlcpy=g_strlcpy $(GLIB_CFLAGS) -include glib.h
31 | mm_aenc_omxg711_test_LDADD = $(GLIB_LIBS) -lmm-omxcore -lpthread libOmxG711Enc.la
32 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-qcelp13/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(filter arm aarch64 arm64, $(TARGET_ARCH)),)
2 |
3 | AENC_QCELP13_PATH:= $(call my-dir)
4 |
5 | include $(AENC_QCELP13_PATH)/qdsp6/Android.mk
6 |
7 | endif
8 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/aenc-qcelp13/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo "invoking omxaudio make"
3 | $(MAKE) -C qdsp6
4 |
5 | install:
6 | $(MAKE) -C qdsp6 install
7 |
--------------------------------------------------------------------------------
/qcom-caf/audio/mm-audio/autogen.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # autogen.sh -- Autotools bootstrapping
4 |
5 | libtoolize --copy --force
6 | aclocal &&\
7 | autoheader &&\
8 | autoconf &&\
9 | automake --add-missing --copy
10 |
11 |
--------------------------------------------------------------------------------
/qcom-caf/audio/post_proc/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = -I ${WORKSPACE}/external/tinyalsa/include \
2 | -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/audio-kernel \
3 | -I ${WORKSPACE}/system/media/audio_effects/include
4 |
5 | c_sources = bundle.c \
6 | equalizer.c \
7 | bass_boost.c \
8 | virtualizer.c \
9 | reverb.c \
10 | effect_api.c \
11 | effect_util.c
12 |
13 | if AFE_PROXY
14 | AM_CFLAGS += -DAFE_PROXY_ENABLED
15 | endif
16 |
17 | AM_CFLAGS += -DAUDIO_GKI_ENABLED
18 |
19 | if HW_ACC_EFFECT
20 | AM_CFLAGS += -DHW_ACCELERATED_EFFECTS
21 | c_sources += hw_accelerator.c
22 | endif
23 |
24 | library_include_HEADERS = $(h_sources)
25 | library_includedir = $(includedir)
26 |
27 | lib_LTLIBRARIES = libqcompostprocbundle.la
28 | libqcompostprocbundle_la_SOURCES = $(c_sources)
29 | libqcompostprocbundle_la_LIBADD = $(GLIB_LIBS) -llog -lcutils -ltinyalsa -ldl
30 | libqcompostprocbundle_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
31 | libqcompostprocbundle_la_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
32 | libqcompostprocbundle_la_LDFLAGS = -module -shared -avoid-version
33 |
--------------------------------------------------------------------------------
/qcom-caf/audio/post_proc/effect_util.h:
--------------------------------------------------------------------------------
1 | /*
2 | * (C) 2014 DTS, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef EFFECT_UTIL_H_
18 | #define EFFECT_UTIL_H_
19 |
20 | #ifdef DTS_EAGLE
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | enum {
27 | EFFECT_TYPE_EQ = 0,
28 | EFFECT_TYPE_VIRT,
29 | EFFECT_TYPE_BB,
30 | };
31 |
32 | enum {
33 | EFFECT_SET_PARAM = 0,
34 | EFFECT_ENABLE_PARAM,
35 | };
36 |
37 |
38 | #define EFFECT_NO_OP 0
39 | #define PCM_DEV_ID 9
40 |
41 | void create_effect_state_node(int device_id);
42 | void update_effects_node(int device_id, int effect_type, int enable_or_set, int enable_disable, int strength, int band, int level);
43 | void remove_effect_state_node(int device_id);
44 |
45 | #endif /*DTS_EAGLE*/
46 |
47 | #endif /*EFFECT_UTIL_H_*/
48 |
--------------------------------------------------------------------------------
/qcom-caf/audio/qahw/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(AUDIO_USE_STUB_HAL), true)
2 | ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true)
3 |
4 | LOCAL_PATH := $(call my-dir)
5 |
6 | include $(CLEAR_VARS)
7 |
8 | libqahw-inc := $(LOCAL_PATH)/inc
9 |
10 | LOCAL_MODULE := libqahwwrapper
11 | LOCAL_MODULE_TAGS := optional
12 | LOCAL_C_INCLUDES := $(libqahw-inc)
13 |
14 | LOCAL_HEADER_LIBRARIES := libutils_headers \
15 | libsystem_headers \
16 | libhardware_headers
17 |
18 | LOCAL_SRC_FILES := \
19 | src/qahw.c \
20 | src/qahw_effect.c
21 |
22 | LOCAL_SHARED_LIBRARIES := \
23 | liblog \
24 | libcutils \
25 | libhardware \
26 | libdl
27 |
28 | LOCAL_CFLAGS += -Wall -Werror
29 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
30 | LOCAL_PROPRIETARY_MODULE := true
31 | LOCAL_VENDOR_MODULE := true
32 |
33 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
34 | LOCAL_SANITIZE := integer_overflow
35 | endif
36 | include $(BUILD_SHARED_LIBRARY)
37 |
38 | endif
39 | endif
40 |
--------------------------------------------------------------------------------
/qcom-caf/audio/qahw/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = -I $(top_srcdir)/inc
2 |
3 | h_sources = inc/qahw.h \
4 | inc/qahw_effect_api.h
5 |
6 | qahw_include_HEADERS = $(h_sources)
7 | qahw_includedir = $(includedir)/mm-audio/qahw/inc
8 |
9 | qahw_api_include_HEADERS = inc/qahw_defs.h
10 | qahw_api_includedir = $(includedir)/mm-audio/qahw_api/inc
11 |
12 | lib_LTLIBRARIES = libqahwwrapper.la
13 | libqahwwrapper_la_SOURCES = src/qahw.c \
14 | src/qahw_effect.c
15 |
16 | if SVA_AUDIO_CONCURRENCY
17 | AM_CFLAGS += -DSVA_AUDIO_CONC
18 | endif
19 |
20 | if QAHW_V1
21 | AM_CFLAGS += -DQAHW_V1
22 | endif
23 |
24 | libqahwwrapper_la_CFLAGS = $(AM_CFLAGS)
25 | libqahwwrapper_la_CFLAGS += -include stddef.h
26 | libqahwwrapper_la_CFLAGS += -Dstrlcpy=g_strlcpy $(GLIB_CFLAGS) -include glib.h
27 | libqahwwrapper_la_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
28 | libqahwwrapper_la_CFLAGS += -Werror -Wall
29 | libqahwwrapper_la_CFLAGS += -DNDEBUG
30 | libqahwwrapper_la_LDFLAGS = -shared -avoid-version -llog -lcutils -lhardware $(GLIB_LIBS)
31 |
--------------------------------------------------------------------------------
/qcom-caf/audio/qahw_api/Android.mk:
--------------------------------------------------------------------------------
1 | ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true)
2 |
3 | LOCAL_PATH := $(call my-dir)
4 |
5 | include $(CLEAR_VARS)
6 |
7 | libqahwapi-inc := $(LOCAL_PATH)/inc
8 |
9 | LOCAL_MODULE := libqahw
10 | LOCAL_MODULE_TAGS := optional
11 | LOCAL_C_INCLUDES := $(libqahwapi-inc)
12 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc
13 |
14 | LOCAL_SRC_FILES := \
15 | src/qahw_api.cpp
16 |
17 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
18 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
19 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
20 | LOCAL_STATIC_LIBRARIES += libprofile_rt
21 | endif
22 |
23 | LOCAL_SHARED_LIBRARIES := \
24 | liblog \
25 | libcutils \
26 | libhardware \
27 | libdl \
28 | libutils \
29 | libqahwwrapper
30 |
31 | LOCAL_CFLAGS += -Wall -Werror
32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
33 | LOCAL_VENDOR_MODULE := true
34 |
35 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
36 | LOCAL_SANITIZE := integer_overflow
37 | endif
38 | include $(BUILD_SHARED_LIBRARY)
39 |
40 | #test app compilation
41 | include $(LOCAL_PATH)/test/Android.mk
42 |
43 | endif
44 |
--------------------------------------------------------------------------------
/qcom-caf/audio/qahw_api/Makefile.am:
--------------------------------------------------------------------------------
1 | h_sources = inc/qahw_api.h \
2 | inc/qahw_effect_audiosphere.h \
3 | inc/qahw_effect_bassboost.h \
4 | inc/qahw_effect_environmentalreverb.h \
5 | inc/qahw_effect_equalizer.h \
6 | inc/qahw_effect_presetreverb.h \
7 | inc/qahw_effect_virtualizer.h \
8 | inc/qahw_effect_visualizer.h \
9 | inc/qahw_effect_trumpet.h
10 |
11 | AM_CPPFLAGS := -I $(top_srcdir)/qahw_api/inc/
12 | AM_CPPFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/mm-audio/audio-hal-server
13 | AM_CPPFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/mm-audio/qahw/inc
14 | AM_CPPFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
15 |
16 | library_include_HEADERS = $(h_sources)
17 | library_includedir = $(includedir)/mm-audio/qahw_api/inc
18 |
19 | lib_LTLIBRARIES = libqahw.la
20 | libqahw_la_SOURCES = src/qahw_api.cpp
21 | libqahw_la_LIBADD = -lqahwwrapper
22 | libqahw_la_CPPFLAGS := $(AM_CPPFLAGS)
23 | libqahw_la_CPPFLAGS += -std=c++11 -DHAVE_PTHREADS -DHAVE_ANDROID_OS
24 | libqahw_la_CPPFLAGS += -DDEBUG_REFS_CALLSTACK_ENABLED=0
25 | libqahw_la_CPPFLAGS += -DNDEBUG
26 | libqahw_la_CPPFLAGS += $(GLIB_CFLAGS) -include glib.h
27 | libqahw_la_LDFLAGS = -ltinyalsa -lhardware -lexpat -lcutils -llog -ldl -shared -avoid-version -lpthread -lutils $(GLIB_LIBS)
28 | if QTI_AUDIO_SERVER_ENABLED
29 | AM_CPPFLAGS += -DQTI_AUDIO_SERVER_ENABLED
30 | libqahw_la_LDFLAGS += -lqtiaudioserver -lbinder
31 | endif
32 | if QAHW_V1
33 | AM_CPPFLAGS += -DQAHW_V1
34 | endif
35 |
36 |
--------------------------------------------------------------------------------
/qcom-caf/audio/visualizer/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/audio/visualizer/MODULE_LICENSE_APACHE2
--------------------------------------------------------------------------------
/qcom-caf/display/.clang-format:
--------------------------------------------------------------------------------
1 | ---
2 | Language: Cpp
3 | BasedOnStyle: Google
4 | AllowShortIfStatementsOnASingleLine: false
5 | AllowShortLoopsOnASingleLine: false
6 | AllowShortFunctionsOnASingleLine: Inline
7 | AllowShortBlocksOnASingleLine: false
8 | ColumnLimit: 100
9 | ConstructorInitializerAllOnOneLineOrOnePerLine: true
10 | ConstructorInitializerIndentWidth: 4
11 | DerivePointerAlignment: false
12 | PointerAlignment: Right
13 | #ReflowComments: false
14 |
--------------------------------------------------------------------------------
/qcom-caf/display/.gitignore:
--------------------------------------------------------------------------------
1 | CMakeLists.txt
2 | .idea/
3 | .editorconfig
4 | .clang-complete
5 |
--------------------------------------------------------------------------------
/qcom-caf/display/Android.bp:
--------------------------------------------------------------------------------
1 | cc_defaults {
2 | name: "display_defaults",
3 | cflags: [
4 | "-Wno-missing-field-initializers",
5 | "-Wconversion",
6 | "-Wall",
7 | "-Werror",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libcutils",
12 | "libutils",
13 | ],
14 | header_libs: ["display_headers"],
15 | clang: true,
16 | }
17 |
18 | cc_library_headers {
19 | name: "display_headers",
20 | vendor_available: true,
21 | export_include_dirs: [
22 | "include",
23 | "libcopybit",
24 | "libdrmutils",
25 | "libqdutils",
26 | "libqservice",
27 | "gpu_tonemapper",
28 | "sdm/include",
29 | "gralloc",
30 | ],
31 | header_libs: ["libhardware_headers", "display_intf_headers"],
32 | export_header_lib_headers: ["libhardware_headers", "display_intf_headers"],
33 | }
34 |
35 | subdirs = [
36 | "libqservice",
37 | "libqdutils",
38 | ]
39 |
--------------------------------------------------------------------------------
/qcom-caf/display/Android.mk:
--------------------------------------------------------------------------------
1 | sdm-libs := sdm/libs
2 | display-hals := include $(sdm-libs)/utils $(sdm-libs)/core
3 |
4 | ifneq ($(TARGET_IS_HEADLESS), true)
5 | display-hals += libcopybit liblight libmemtrack hdmi_cec \
6 | $(sdm-libs)/hwc $(sdm-libs)/hwc2 gpu_tonemapper libdrmutils libdisplayconfig
7 | endif
8 |
9 | display-hals += gralloc
10 |
11 | ifeq ($(call is-vendor-board-platform,QCOM),true)
12 | include $(call all-named-subdir-makefiles,$(display-hals))
13 | else
14 | ifneq ($(filter msm% apq%,$(TARGET_BOARD_PLATFORM)),)
15 | include $(call all-named-subdir-makefiles,$(display-hals))
16 | endif
17 | endif
18 |
--------------------------------------------------------------------------------
/qcom-caf/display/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for sdm
2 |
3 | ACLOCAL_AMFLAGS = -I m4
4 |
5 | SUBDIRS = libqservice libqdutils libgralloc sdm/libs/utils sdm/libs/core
6 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/.clang-format:
--------------------------------------------------------------------------------
1 | ---
2 | Language: Cpp
3 | BasedOnStyle: Google
4 | Standard : C++11
5 | AllowShortIfStatementsOnASingleLine: false
6 | AllowShortLoopsOnASingleLine: false
7 | AllowShortFunctionsOnASingleLine: Inline
8 | AllowShortBlocksOnASingleLine: false
9 | ColumnLimit: 100
10 | ConstructorInitializerAllOnOneLineOrOnePerLine: true
11 | ConstructorInitializerIndentWidth: 4
12 | DerivePointerAlignment: false
13 | PointerAlignment: Right
14 | #ReflowComments: false
15 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/.gitignore:
--------------------------------------------------------------------------------
1 | CMakeLists.txt
2 | .idea/
3 | .editorconfig
4 | .clang-complete
5 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_headers {
2 | name: "display_intf_headers",
3 | vendor_available: true,
4 | export_include_dirs: [
5 | "gralloc",
6 | "include",
7 | "libqdmetadata",
8 | "services",
9 | ],
10 | }
11 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/Makefile.am:
--------------------------------------------------------------------------------
1 | ACLOCAL_AMFLAGS = -I m4
2 | HEADER_PATH = ${srcdir}/include
3 | display_commonsys_h_sources = $(HEADER_PATH)/*.h
4 | display_commonsys_includedir = $(includedir)
5 | display_commonsys_include_HEADERS = $(display_commonsys_h_sources)
6 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/Android.bp:
--------------------------------------------------------------------------------
1 | aidl_interface {
2 | name: "vendor.qti.hardware.display.config",
3 | vendor_available: true,
4 | srcs: [
5 | "vendor/qti/hardware/display/config/*.aidl",
6 | ],
7 | stability: "vintf",
8 | imports: [
9 | "android.hardware.common-V2",
10 | ],
11 | backend: {
12 | java: {
13 | enabled: false,
14 | },
15 | cpp: {
16 | enabled: false,
17 | },
18 | },
19 | versions: [
20 | "1",
21 | "2",
22 | "3",
23 | "4",
24 | "5",
25 | ],
26 | owner: "qti",
27 | }
28 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/.hash:
--------------------------------------------------------------------------------
1 | 85e19ab4932644825750604ee629a47aec7589fd
2 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/Attributes.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @VintfStability
20 | parcelable Attributes {
21 | int vsyncPeriod;
22 | int xRes;
23 | int yRes;
24 | float xDpi;
25 | float yDpi;
26 | vendor.qti.hardware.display.config.DisplayPortType panelType;
27 | boolean isYuv;
28 | }
29 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/DisplayPortType.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum DisplayPortType {
21 | INVALID = 0,
22 | DEFAULT = 1,
23 | DSI = 2,
24 | DTV = 3,
25 | WRITEBACK = 4,
26 | LVDS = 5,
27 | EDP = 6,
28 | DP = 7,
29 | }
30 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/DisplayType.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum DisplayType {
21 | INVALID = 0,
22 | PRIMARY = 1,
23 | EXTERNAL = 2,
24 | VIRTUAL = 3,
25 | BUILTIN2 = 4,
26 | }
27 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/DynRefreshRateOp.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum DynRefreshRateOp {
21 | INVALID = 0,
22 | DISABLE_METADATA = 1,
23 | ENABLE_METADATA = 2,
24 | SET_BINDER = 3,
25 | }
26 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/ExternalStatus.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum ExternalStatus {
21 | INVALID = 0,
22 | OFFLINE = 1,
23 | ONLINE = 2,
24 | PAUSE = 3,
25 | RESUME = 4,
26 | }
27 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/HDRCapsParams.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @VintfStability
20 | parcelable HDRCapsParams {
21 | int[] supportedHdrTypes;
22 | float maxAvgLuminance;
23 | float minLuminance;
24 | }
25 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/PowerMode.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum PowerMode {
21 | OFF = 0,
22 | DOZE = 1,
23 | ON = 2,
24 | DOZE_SUSPEND = 3,
25 | }
26 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/QsyncMode.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum QsyncMode {
21 | NONE = 0,
22 | WAIT_FOR_FENCES_ONE_FRAME = 1,
23 | WAIT_FOR_FENCES_EACH_FRAME = 2,
24 | WAIT_FOR_COMMIT_EACH_FRAME = 3,
25 | }
26 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/Rect.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @VintfStability
20 | parcelable Rect {
21 | int left;
22 | int top;
23 | int right;
24 | int bottom;
25 | }
26 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/1/vendor/qti/hardware/display/config/TUIEventType.aidl:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////////////
2 | // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
3 | ///////////////////////////////////////////////////////////////////////////////
4 |
5 | // This file is a snapshot of an AIDL interface (or parcelable). Do not try to
6 | // edit this file. It looks like you are doing that because you have modified
7 | // an AIDL interface in a backward-incompatible way, e.g., deleting a function
8 | // from an interface or a field from a parcelable and it broke the build. That
9 | // breakage is intended.
10 | //
11 | // You must not make a backward incompatible changes to the AIDL files built
12 | // with the aidl_interface module type with versions property set. The module
13 | // type is used to build AIDL files in a way that they can be used across
14 | // independently updatable components of the system. If a device is shipped
15 | // with such a backward incompatible change, it has a high risk of breaking
16 | // later when a module using the interface is updated, e.g., Mainline modules.
17 |
18 | package vendor.qti.hardware.display.config;
19 | @Backing(type="int") @VintfStability
20 | enum TUIEventType {
21 | NONE = 0,
22 | PREPARE_TUI_TRANSITION = 1,
23 | START_TUI_TRANSITION = 2,
24 | END_TUI_TRANSITION = 3,
25 | }
26 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/2/.hash:
--------------------------------------------------------------------------------
1 | 9f8811d148870ba13ad00a04ab64eb33a89096ed
2 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/3/.hash:
--------------------------------------------------------------------------------
1 | 7032a3bb26923a9c92a0232040ec529fd1ea540f
2 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/4/.hash:
--------------------------------------------------------------------------------
1 | 18cddc4bdfe771f65e927312feaf69128a8406db
2 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/aidl/config/aidl_api/vendor.qti.hardware.display.config/5/.hash:
--------------------------------------------------------------------------------
1 | 407d89c996c7b2f55a33bf704c21e275526eb2b3
2 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/config/display-product-system.mk:
--------------------------------------------------------------------------------
1 | PRODUCT_PACKAGES += vendor.display.config@1.0 \
2 | vendor.display.config@1.1 \
3 | vendor.display.config@1.2 \
4 | vendor.display.config@1.3 \
5 | vendor.display.config@1.4 \
6 | vendor.display.config@1.5 \
7 | vendor.qti.hardware.display.config-V1-ndk_platform \
8 | vendor.qti.hardware.display.config-V2-ndk_platform \
9 | vendor.qti.hardware.display.config-V3-ndk_platform \
10 | vendor.qti.hardware.display.config-V4-ndk_platform \
11 | vendor.qti.hardware.display.config-V5-ndk_platform \
12 | vendor.qti.hardware.display.config-V6-ndk_platform
13 |
14 | SOONG_CONFIG_NAMESPACES += qtiunifeddraw
15 | # Soong Keys
16 | SOONG_CONFIG_qtiunifeddraw := qtiunifeddraw_enabled
17 | # Soong Values
18 | SOONG_CONFIG_qtiunifeddraw_qtiunifeddraw_enabled := true
19 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys-intf/configure.ac:
--------------------------------------------------------------------------------
1 | # -*- Autoconf -*-
2 | # configure.ac -- Autoconf script for display commonsys intf
3 | #
4 |
5 | # Process this file with autoconf to produce a configure script
6 |
7 | # Requires autoconf tool later than 2.61
8 | AC_PREREQ(2.61)
9 | # Initialize the display commonsys intf package version 1.0.0
10 | AC_INIT([disp-commonsys-intf],1.0.0)
11 | # Does not strictly follow GNU Coding standards
12 | AM_INIT_AUTOMAKE([foreign])
13 | # Disables auto rebuilding of configure, Makefile.ins
14 | AM_MAINTAINER_MODE
15 | # defines some macros variable to be included by source
16 | AC_CONFIG_HEADERS([config.h])
17 | AC_CONFIG_MACRO_DIR([m4])
18 | AC_SUBST([AM_CPPFLAGS], [--std=c++11])
19 |
20 | # Checks for programs.
21 | AC_PROG_CC
22 | AM_PROG_CC_C_O
23 | AC_PROG_CXX
24 | AC_PROG_LIBTOOL
25 | AC_PROG_AWK
26 | AC_PROG_CPP
27 | AC_PROG_INSTALL
28 | AC_PROG_LN_S
29 | AC_PROG_MAKE_SET
30 |
31 | AC_SUBST([CFLAGS])
32 | AC_SUBST([CC])
33 | AC_CONFIG_FILES([ \
34 | Makefile
35 | ])
36 | AC_OUTPUT
37 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/.clang-format:
--------------------------------------------------------------------------------
1 | ---
2 | Language: Cpp
3 | BasedOnStyle: Google
4 | Standard : C++11
5 | AllowShortIfStatementsOnASingleLine: false
6 | AllowShortLoopsOnASingleLine: false
7 | AllowShortFunctionsOnASingleLine: Inline
8 | AllowShortBlocksOnASingleLine: false
9 | ColumnLimit: 100
10 | ConstructorInitializerAllOnOneLineOrOnePerLine: true
11 | ConstructorInitializerIndentWidth: 4
12 | DerivePointerAlignment: false
13 | PointerAlignment: Right
14 | #ReflowComments: false
15 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/.gitignore:
--------------------------------------------------------------------------------
1 | CMakeLists.txt
2 | .idea/
3 | .editorconfig
4 | .clang-complete
5 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/config/display-product-commonsys.mk:
--------------------------------------------------------------------------------
1 | PRODUCT_PACKAGES += libdisplayconfig.system \
2 | libqdMetaData.system \
3 | libgralloc.system.qti \
4 | libdrm \
5 | libsmomo.qti \
6 | liblayerext.qti \
7 | libsmomoconfig.qti \
8 | libcomposerextn.qti \
9 | libdisplayconfig.system.qti
10 |
11 | SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
12 | SOONG_CONFIG_NAMESPACES += qtiunifeddraw
13 | # Soong Keys
14 | SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
15 | SOONG_CONFIG_qtiunifeddraw := qtiunifeddraw_enabled
16 | # Soong Values
17 | SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := false
18 | SOONG_CONFIG_qtiunifeddraw_qtiunifeddraw_enabled := true
19 |
20 | ifeq ($(call is-vendor-board-platform,QCOM),true)
21 | SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
22 | endif
23 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/gralloc/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libgralloc.system.qti",
3 | system_ext_specific: true,
4 | cflags: [
5 | "-Wno-sign-conversion",
6 | "-DLOG_TAG=\"qtigralloc\"",
7 | ],
8 | shared_libs: [
9 | "liblog",
10 | "libcutils",
11 | "libutils",
12 | "libgralloctypes",
13 | "libhidlbase",
14 | "libhardware",
15 | "android.hardware.graphics.mapper@4.0",
16 | ],
17 |
18 | srcs: ["QtiGralloc.cpp"],
19 |
20 | header_libs: ["display_intf_headers"],
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/libqdmetadata/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libqdMetaData.system",
3 | system_ext_specific: true,
4 | cflags: [
5 | "-Wno-sign-conversion",
6 | "-DLOG_TAG=\"qdmetadata\"",
7 | "-D__QTI_DISPLAY_GRALLOC__",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libcutils",
12 | "libutils",
13 | "libhidlbase",
14 | "libgralloc.system.qti",
15 | "libgralloctypes",
16 | ],
17 | header_libs: ["libhardware_headers", "display_intf_headers"],
18 | srcs: ["qdMetaData.cpp", "qd_utils.cpp"],
19 | export_header_lib_headers: ["display_intf_headers"],
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/libqdmetadata/Makefile.am:
--------------------------------------------------------------------------------
1 | h_sources = qdMetaData.h
2 |
3 | cpp_sources = qdMetaData.cpp
4 |
5 | AM_CPPFLAGS += -D__QTI_NO_GRALLOC4__
6 |
7 | qdMetaData_includedir = $(pkgincludedir)/display
8 | qdMetaData_include_HEADERS = $(h_sources)
9 |
10 | lib_LTLIBRARIES = libqdMetaData.la
11 | libqdMetaData_la_CC = @CC@
12 | libqdMetaData_la_SOURCES = $(cpp_sources)
13 | libqdMetaData_la_CFLAGS = $(AM_CFLAGS) -DLOG_TAG=\"DisplayMetaData\"
14 | libqdMetaData_la_CPPFLAGS = $(AM_CPPFLAGS)
15 | libqdMetaData_LDADD = -lcutils -llog
16 | libqdMetaData_la_LDFLAGS = -shared -avoid-version
--------------------------------------------------------------------------------
/qcom-caf/display/display-commonsys/services/config/src/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libdisplayconfig.system.qti",
3 | system_ext_specific: true,
4 | cflags: [
5 | "-Wno-sign-conversion",
6 | "-Wno-unused-parameter",
7 | "-DLOG_TAG=\"libdisplayconfigqti\"",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libhidlbase",
12 | "libutils",
13 | "vendor.display.config@2.0"
14 | ],
15 | header_libs: ["libhardware_headers", "display_intf_headers"],
16 | srcs: [
17 | "client_interface.cpp",
18 | "client_impl.cpp",
19 | "device_impl.cpp",
20 | "device_interface.cpp",
21 | ],
22 | export_header_lib_headers: ["display_intf_headers"],
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/qcom-caf/display/gpu_tonemapper/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(LOCAL_PATH)/../common.mk
3 |
4 | include $(CLEAR_VARS)
5 | LOCAL_MODULE := libgpu_tonemapper
6 | LOCAL_VENDOR_MODULE := true
7 | LOCAL_MODULE_TAGS := optional
8 | LOCAL_HEADER_LIBRARIES := display_headers
9 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
10 | LOCAL_SHARED_LIBRARIES := libEGL libGLESv2 libGLESv3 libui libutils liblog
11 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
12 |
13 | LOCAL_CFLAGS := $(version_flag) -Wno-missing-field-initializers -Wall \
14 | -Wno-unused-parameter -Wno-unreachable-code-loop-increment -DLOG_TAG=\"GPU_TONEMAPPER\"
15 | LOCAL_SRC_FILES := TonemapFactory.cpp \
16 | glengine.cpp \
17 | EGLImageBuffer.cpp \
18 | EGLImageWrapper.cpp \
19 | Tonemapper.cpp
20 |
21 | include $(BUILD_SHARED_LIBRARY)
22 |
--------------------------------------------------------------------------------
/qcom-caf/display/gpu_tonemapper/TonemapFactory.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, The Linux Foundation. All rights reserved.
3 | * Not a Contribution.
4 | *
5 | * Copyright 2015 The Android Open Source Project
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #ifndef __TONEMAPPER_TONEMAPPERFACTORY_H__
21 | #define __TONEMAPPER_TONEMAPPERFACTORY_H__
22 |
23 | #include "Tonemapper.h"
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | // returns an instance of Tonemapper
30 | Tonemapper *TonemapperFactory_GetInstance(int type, void *colorMap, int colorMapSize,
31 | void *lutXform, int lutXformSize, bool isSecure);
32 |
33 | #ifdef __cplusplus
34 | }
35 | #endif
36 |
37 | #endif //__TONEMAPPER_TONEMAPPERFACTORY_H__
38 |
--------------------------------------------------------------------------------
/qcom-caf/display/gpu_tonemapper/glengine.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, The Linux Foundation. All rights reserved.
3 | * Not a Contribution.
4 | *
5 | * Copyright 2015 The Android Open Source Project
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | #ifndef __TONEMAPPER_GLENGINE_H__
21 | #define __TONEMAPPER_GLENGINE_H__
22 | #include
23 | #define EGL_EGLEXT_PROTOTYPES
24 | #include
25 | #include
26 | #define GL_GLEXT_PROTOTYPES
27 | #include
28 | #include
29 |
30 | #if defined(CHECK_GL_ERRORS)
31 | #define GL(func) func;
32 | #define EGL(func) func;
33 | #else
34 | #define GL(func) \
35 | func; \
36 | checkGlError(__FILE__, __LINE__);
37 | #define EGL(func) \
38 | func; \
39 | checkEglError(__FILE__, __LINE__);
40 | #endif
41 |
42 | #define EGL_PROTECTED_CONTENT_EXT 0x32C0
43 |
44 | void checkGlError(const char *file, int line);
45 | void checkEglError(const char *file, int line);
46 |
47 | #endif //__TONEMAPPER_GLENGINE_H__
48 |
--------------------------------------------------------------------------------
/qcom-caf/display/gralloc/Android.bp:
--------------------------------------------------------------------------------
1 | //libgralloc
2 | cc_library_shared {
3 | name: "libgralloc.qti",
4 | vendor: true,
5 | cflags: [
6 | "-Wno-sign-conversion",
7 | "-DLOG_TAG=\"qtigralloc\"",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libcutils",
12 | "libutils",
13 | "libgralloctypes",
14 | "libhidlbase",
15 | "libhardware",
16 | "android.hardware.graphics.mapper@4.0",
17 | ],
18 |
19 | srcs: ["QtiGralloc.cpp"],
20 |
21 | header_libs: ["display_intf_headers"],
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/qcom-caf/display/hdmi_cec/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(LOCAL_PATH)/../common.mk
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := hdmi_cec.$(TARGET_BOARD_PLATFORM)
6 | LOCAL_VENDOR_MODULE := true
7 | LOCAL_MODULE_RELATIVE_PATH := hw
8 | LOCAL_MODULE_TAGS := optional
9 | LOCAL_C_INCLUDES := $(common_includes)
10 | LOCAL_HEADER_LIBRARIES := display_headers
11 | LOCAL_SHARED_LIBRARIES := $(common_libs)
12 |
13 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdhdmi_cec\" -Wno-sign-conversion
14 | LOCAL_CLANG := true
15 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
16 | LOCAL_SRC_FILES := qhdmi_cec.cpp
17 |
18 | include $(BUILD_SHARED_LIBRARY)
19 |
--------------------------------------------------------------------------------
/qcom-caf/display/include/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 | include $(LOCAL_PATH)/../common.mk
3 | include $(CLEAR_VARS)
4 |
--------------------------------------------------------------------------------
/qcom-caf/display/libcopybit/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/display/libcopybit/MODULE_LICENSE_APACHE2
--------------------------------------------------------------------------------
/qcom-caf/display/libdisplayconfig/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 | LOCAL_MODULE := libdisplayconfig
5 | LOCAL_MODULE_TAGS := optional
6 | LOCAL_C_INCLUDES := $(common_includes)
7 | LOCAL_HEADER_LIBRARIES := display_headers
8 | LOCAL_SRC_FILES := DisplayConfig.cpp
9 | LOCAL_SHARED_LIBRARIES := libhidlbase libhidltransport libutils \
10 | vendor.display.config@1.0
11 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
12 |
13 | include $(BUILD_SHARED_LIBRARY)
14 |
--------------------------------------------------------------------------------
/qcom-caf/display/libdrmutils/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE := libdrmutils
5 | LOCAL_VENDOR_MODULE := true
6 | LOCAL_MODULE_TAGS := optional
7 | LOCAL_C_INCLUDES := external/libdrm \
8 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
9 | LOCAL_SHARED_LIBRARIES := libdrm libdl
10 | LOCAL_CFLAGS := -DLOG_TAG=\"DRMUTILS\" -Wall -Werror -fno-operator-names
11 | LOCAL_CLANG := true
12 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
13 | LOCAL_SRC_FILES := drm_master.cpp drm_res_mgr.cpp drm_lib_loader.cpp
14 |
15 | include $(BUILD_SHARED_LIBRARY)
16 |
--------------------------------------------------------------------------------
/qcom-caf/display/libgralloc/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/display/libgralloc/MODULE_LICENSE_APACHE2
--------------------------------------------------------------------------------
/qcom-caf/display/libgralloc/Makefile.am:
--------------------------------------------------------------------------------
1 | HEADER_PATH := ${WORKSPACE}/display/display-hal/include
2 | h_sources = alloc_controller.h \
3 | memalloc.h
4 |
5 | cpp_sources = ionalloc.cpp \
6 | alloc_controller.cpp
7 |
8 | memalloc_includedir = $(pkgincludedir)
9 | memalloc_include_HEADERS = $(h_sources)
10 |
11 | lib_LTLIBRARIES = libmemalloc.la
12 | libmemalloc_la_CC = @CC@
13 | libmemalloc_la_SOURCES = $(cpp_sources)
14 | libmemalloc_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdmemalloc\"
15 | libmemalloc_la_CPPFLAGS = $(AM_CPPFLAGS)
16 | libmemalloc_la_LIBADD = ../libqdutils/libqdutils.la
17 | libmemalloc_la_LIBADD += -lhardware -lcutils -llog -lutils -ldl
18 | libmemalloc_la_LDFLAGS = -shared -avoid-version
19 |
20 | header_sources = gralloc_priv.h \
21 | gr.h \
22 | adreno_utils.h \
23 | $(HEADER_PATH)/color_metadata.h
24 |
25 | c_sources = gpu.cpp \
26 | gralloc.cpp \
27 | framebuffer.cpp \
28 | mapper.cpp
29 |
30 | library_includedir = $(pkgincludedir)
31 | library_include_HEADERS = $(header_sources)
32 |
33 | lib_LTLIBRARIES += libgralloc.la
34 | libgralloc_la_CC = @CC@
35 | libgralloc_la_SOURCES = $(c_sources)
36 | libgralloc_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdgralloc\"
37 | libgralloc_la_CPPFLAGS = $(AM_CPPFLAGS)
38 | libgralloc_la_LIBADD = ../libqdutils/libqdutils.la
39 | libgralloc_la_LIBADD += ../libqdutils/libqdMetaData.la
40 | libgralloc_la_LIBADD += -lhardware -lcutils -llog -lutils -lbinder
41 | libgralloc_la_LIBADD += libmemalloc.la
42 | libgralloc_la_LDFLAGS = -shared -avoid-version
43 |
--------------------------------------------------------------------------------
/qcom-caf/display/liblight/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH:= $(call my-dir)
16 | # HAL module implemenation stored in
17 | # hw/..so
18 | include $(CLEAR_VARS)
19 |
20 |
21 | LOCAL_SRC_FILES := lights.c
22 | LOCAL_MODULE_RELATIVE_PATH := hw
23 | LOCAL_SHARED_LIBRARIES := liblog
24 | LOCAL_HEADER_LIBRARIES := libhardware_headers
25 | LOCAL_CFLAGS := -DLOG_TAG=\"qdlights\"
26 | LOCAL_CLANG := true
27 | LOCAL_MODULE := lights.$(TARGET_BOARD_PLATFORM)
28 | LOCAL_MODULE_TAGS := optional
29 | LOCAL_VENDOR_MODULE := true
30 |
31 | include $(BUILD_SHARED_LIBRARY)
32 |
--------------------------------------------------------------------------------
/qcom-caf/display/libmemtrack/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2013 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH := $(call my-dir)
16 |
17 | # HAL module implemenation stored in
18 | # hw/..so
19 | include $(CLEAR_VARS)
20 |
21 | LOCAL_MODULE_RELATIVE_PATH := hw
22 | LOCAL_VENDOR_MODULE := true
23 | LOCAL_C_INCLUDES += hardware/libhardware/include
24 | LOCAL_CFLAGS := -Wconversion -Wall -Werror -Wno-sign-conversion
25 | LOCAL_CLANG := true
26 | LOCAL_SHARED_LIBRARIES := liblog
27 | LOCAL_HEADER_LIBRARIES := libhardware_headers
28 | LOCAL_SRC_FILES := memtrack_msm.c kgsl.c
29 | LOCAL_MODULE := memtrack.$(TARGET_BOARD_PLATFORM)
30 | include $(BUILD_SHARED_LIBRARY)
31 |
--------------------------------------------------------------------------------
/qcom-caf/display/libmemtrack/memtrack_msm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef _MEMTRACK_MSM_H_
18 | #define _MEMTRACK_MSM_H_
19 |
20 | int kgsl_memtrack_get_memory(pid_t pid, enum memtrack_type type,
21 | struct memtrack_record *records,
22 | size_t *num_records);
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/qcom-caf/display/libqdmetadata/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libqdMetaData",
3 | vendor: true,
4 | cflags: [
5 | "-Wno-sign-conversion",
6 | "-DLOG_TAG=\"qdmetadata\"",
7 | "-D__QTI_DISPLAY_GRALLOC__",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libcutils",
12 | "libutils",
13 | "libhidlbase",
14 | "libgralloc.qti",
15 | "libgralloctypes",
16 | ],
17 | header_libs: ["libhardware_headers", "display_intf_headers"],
18 | srcs: ["qdMetaData.cpp", "qd_utils.cpp"],
19 | export_header_lib_headers: ["display_intf_headers"],
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/qcom-caf/display/libqdmetadata/Makefile.am:
--------------------------------------------------------------------------------
1 | h_sources = qdMetaData.h
2 |
3 | cpp_sources = qdMetaData.cpp
4 |
5 | AM_CPPFLAGS += -D__QTI_NO_GRALLOC4__
6 |
7 | qdMetaData_includedir = $(pkgincludedir)/display
8 | qdMetaData_include_HEADERS = $(h_sources)
9 |
10 | lib_LTLIBRARIES = libqdMetaData.la
11 | libqdMetaData_la_CC = @CC@
12 | libqdMetaData_la_SOURCES = $(cpp_sources)
13 | libqdMetaData_la_CFLAGS = $(AM_CFLAGS) -DLOG_TAG=\"DisplayMetaData\"
14 | libqdMetaData_la_CPPFLAGS = $(AM_CPPFLAGS)
15 | libqdMetaData_LDADD = -lcutils -llog
16 | libqdMetaData_la_LDFLAGS = -shared -avoid-version
--------------------------------------------------------------------------------
/qcom-caf/display/libqdutils/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libqdutils",
3 | vendor: true,
4 | defaults: ["display_defaults"],
5 | header_libs: ["libhardware_headers", "libutils_headers"],
6 | shared_libs: [
7 | "libbinder",
8 | "libqservice",
9 | ],
10 | cflags: [
11 | "-DDEBUG_CALC_FPS",
12 | "-DLOG_TAG=\"qdutils\"",
13 | "-Wno-sign-conversion",
14 | ],
15 | srcs: [
16 | "qd_utils.cpp",
17 | "display_config.cpp",
18 | "profiler.cpp"
19 | ],
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/qcom-caf/display/libqdutils/Makefile.am:
--------------------------------------------------------------------------------
1 | h_sources = qdMetaData.h
2 |
3 | cpp_sources = qdMetaData.cpp
4 |
5 | library_includedir = $(includedir)
6 | library_include_HEADERS = $(h_sources)
7 |
8 | lib_LTLIBRARIES = libqdMetaData.la
9 | libqdMetaData_la_CC = @CC@
10 | libqdMetaData_la_SOURCES = $(cpp_sources)
11 | libqdMetaData_la_CFLAGS = $(AM_CFLAGS) -DLOG_TAG=\"DisplayMetaData\"
12 | libqdMetaData_la_CPPFLAGS = $(AM_CPPFLAGS)
13 | libqdMetaData_LDADD = -lcutils -llog
14 | libqdMetaData_la_LDFLAGS = -shared -avoid-version
15 |
16 | header_sources = display_config.h
17 |
18 | c_sources = profiler.cpp \
19 | qd_utils.cpp \
20 | display_config.cpp
21 |
22 | library_includedir = $(includedir)
23 | library_include_HEADERS = $(header_sources)
24 |
25 | lib_LTLIBRARIES += libqdutils.la
26 | libqdutils_la_CC = @CC@
27 | libqdutils_la_SOURCES = $(c_sources)
28 | libqdutils_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdutils\"
29 | libqdutils_la_CPPFLAGS = $(AM_CPPFLAGS)
30 | libqdutils_LDADD = -lhardware -lcutils -llog -lbinder
31 | libqdutils_la_LIBADD = ../libqservice/libqservice.la
32 | libqdutils_la_LDFLAGS = -shared -avoid-version
--------------------------------------------------------------------------------
/qcom-caf/display/libqservice/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libqservice",
3 | vendor: true,
4 | defaults: ["display_defaults"],
5 | shared_libs: ["libbinder"],
6 | cflags: [
7 | "-DLOG_TAG=\"qdqservice\"",
8 | "-Wno-sign-conversion",
9 | "-DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES",
10 | ],
11 | srcs: [
12 | "QService.cpp",
13 | "IQService.cpp",
14 | "IQClient.cpp",
15 | "IQHDMIClient.cpp",
16 | ],
17 | }
18 |
--------------------------------------------------------------------------------
/qcom-caf/display/libqservice/Makefile.am:
--------------------------------------------------------------------------------
1 | h_sources = IQService.h \
2 | IQClient.h
3 |
4 | cpp_sources = QService.cpp \
5 | IQService.cpp \
6 | IQClient.cpp \
7 | IQHDMIClient.cpp
8 |
9 | library_includedir = $(includedir)
10 | library_include_HEADERS = $(h_sources)
11 |
12 | lib_LTLIBRARIES = libqservice.la
13 | libqservice_la_CC = @CC@
14 | libqservice_la_SOURCES = $(cpp_sources)
15 | libqservice_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdqservice\"
16 | libqservice_la_CPPFLAGS = $(AM_CPPFLAGS)
17 | libqservice_LDADD = -lhardware -lcutils -llog -lbinder
18 | libqservice_la_LDFLAGS = -shared -avoid-version
--------------------------------------------------------------------------------
/qcom-caf/display/sdm/libs/utils/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 | include $(LOCAL_PATH)/../../../common.mk
4 |
5 | LOCAL_MODULE := libsdmutils
6 | LOCAL_VENDOR_MODULE := true
7 | LOCAL_MODULE_TAGS := optional
8 | LOCAL_C_INCLUDES := $(common_includes)
9 | LOCAL_HEADER_LIBRARIES := display_headers
10 | LOCAL_CFLAGS := -DLOG_TAG=\"SDM\" $(common_flags)
11 | LOCAL_SRC_FILES := debug.cpp \
12 | rect.cpp \
13 | sys.cpp \
14 | formats.cpp \
15 | utils.cpp
16 |
17 | include $(BUILD_SHARED_LIBRARY)
18 |
--------------------------------------------------------------------------------
/qcom-caf/display/sdm/libs/utils/Makefile.am:
--------------------------------------------------------------------------------
1 | cpp_sources = debug.cpp \
2 | rect.cpp \
3 | sys.cpp \
4 | formats.cpp \
5 | utils.cpp
6 |
7 | lib_LTLIBRARIES = libsdmutils.la
8 | libsdmutils_la_CC = @CC@
9 | libsdmutils_la_SOURCES = $(cpp_sources)
10 | libsdmutils_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"SDM\"
11 | libsdmutils_la_CPPFLAGS = $(AM_CPPFLAGS)
12 | libsdmutils_la_LDFLAGS = -shared -avoid-version
13 |
--------------------------------------------------------------------------------
/qcom-caf/display/services/config/src/Android.bp:
--------------------------------------------------------------------------------
1 | cc_library_shared {
2 | name: "libdisplayconfig.qti",
3 | vendor: true,
4 | cflags: [
5 | "-Wno-sign-conversion",
6 | "-Wno-unused-parameter",
7 | "-DLOG_TAG=\"libdisplayconfigqti\"",
8 | ],
9 | shared_libs: [
10 | "liblog",
11 | "libhidlbase",
12 | "libutils",
13 | "vendor.display.config@2.0"
14 | ],
15 | header_libs: ["libhardware_headers", "display_intf_headers"],
16 | srcs: [
17 | "client_interface.cpp",
18 | "client_impl.cpp",
19 | "device_impl.cpp",
20 | "device_interface.cpp",
21 | ],
22 | export_header_lib_headers: ["display_intf_headers"],
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/qcom-caf/media/Android.mk:
--------------------------------------------------------------------------------
1 | QCOM_MEDIA_ROOT := $(call my-dir)
2 |
3 | #Compile these for all targets under QCOM_BOARD_PLATFORMS list.
4 | ifeq ($(call is-board-platform-in-list, $(QCOM_BOARD_PLATFORMS)),true)
5 | include $(QCOM_MEDIA_ROOT)/mm-core/Android.mk
6 | include $(QCOM_MEDIA_ROOT)/libstagefrighthw/Android.mk
7 | include $(QCOM_MEDIA_ROOT)/libaac/Android.mk
8 | endif
9 |
10 | ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)),true)
11 | include $(QCOM_MEDIA_ROOT)/mm-video-v4l2/Android.mk
12 |
13 | ifeq ($(BOARD_USES_ADRENO), true)
14 | include $(QCOM_MEDIA_ROOT)/libc2dcolorconvert/Android.mk
15 | endif
16 |
17 | include $(QCOM_MEDIA_ROOT)/hypv-intercept/Android.mk
18 |
19 | ifeq ($(TARGET_BOARD_AUTO),true)
20 | include $(QCOM_MEDIA_ROOT)/libsidebandstreamhandle/Android.mk
21 | endif
22 |
23 | endif
24 |
--------------------------------------------------------------------------------
/qcom-caf/media/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for mm-omxvideo
2 | #
3 | ACLOCAL_AMFLAGS = -I m4
4 |
5 | BUILD_COMPONENTS := mm-core hypv-intercept
6 |
7 | if BUILD_MM_VIDEO
8 | BUILD_COMPONENTS += mm-video-v4l2
9 | endif
10 |
11 | SUBDIRS := $(BUILD_COMPONENTS)
12 |
--------------------------------------------------------------------------------
/qcom-caf/media/conf_files/config.mk:
--------------------------------------------------------------------------------
1 | ifeq ($(TARGET_BOARD_PLATFORM),msm8937)
2 | PRODUCT_COPY_FILES += hardware/qcom/media/conf_files/msm8937/media_profiles_8937.xml:system/etc/media_profiles.xml \
3 | hardware/qcom/media/conf_files/msm8937/media_codecs_8937.xml:system/etc/media_codecs.xml \
4 | hardware/qcom/media/conf_files/msm8937/media_codecs_performance_8937.xml:system/etc/media_codecs_performance.xml
5 | endif #TARGET_BOARD_PLATFORM
6 |
--------------------------------------------------------------------------------
/qcom-caf/media/hypv-intercept/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_SRC_FILES := \
6 | hypv_intercept.cpp
7 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../mm-video-v4l2/vidc/common/inc
8 |
9 | LOCAL_SHARED_LIBRARIES := liblog libdl
10 |
11 | LOCAL_MODULE_TAGS := optional
12 |
13 | LOCAL_MODULE := libhypv_intercept
14 |
15 | LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
16 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
17 |
18 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
19 |
20 | include $(BUILD_SHARED_LIBRARY)
21 |
--------------------------------------------------------------------------------
/qcom-caf/media/hypv-intercept/Makefile.am:
--------------------------------------------------------------------------------
1 | # -----------------------------------------------------------------------------
2 | # Common definitons
3 | # -----------------------------------------------------------------------------
4 |
5 | AM_CFLAGS = -g -O3
6 | AM_CFLAGS += -Werror
7 |
8 | AM_CPPFLAGS = -D_LINUX_
9 | AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc
10 |
11 | # -----------------------------------------------------------------------------
12 | # Make the Shared library (libhypv_intercept)
13 | # -----------------------------------------------------------------------------
14 | h_sources = hypv_intercept.h
15 | c_sources = hypv_intercept.cpp
16 |
17 | include_HEADERS = $(h_source)
18 | lib_LTLIBRARIES = libhypv_intercept.la
19 | libhypv_intercept_la_SOURCES = $(c_sources)
20 | libhypv_intercept_la_CFLAGS = $(AM_CFLAGS) -fPIC
21 | libhypv_intercept_la_CPPFLAGS = $(AM_CPPFLAGS)
22 | libhypv_intercept_la_LDFLAGS = -shared -llog -ldl
23 |
--------------------------------------------------------------------------------
/qcom-caf/media/libaac/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_SRC_FILES := aacEncode.cpp
5 | LOCAL_SRC_FILES += aacDecode.cpp
6 |
7 | LOCAL_C_INCLUDES := $(LOCAL_PATH)
8 | LOCAL_C_INCLUDES += $(TOP)/external/aac/libAACenc/include
9 | LOCAL_C_INCLUDES += $(TOP)/external/aac/libAACdec/include
10 | LOCAL_C_INCLUDES += $(TOP)/external/aac/libSYS/include
11 |
12 | LOCAL_SHARED_LIBRARIES := liblog
13 | LOCAL_STATIC_LIBRARIES := libFraunhoferAAC
14 |
15 | LOCAL_32_BIT_ONLY := true
16 | LOCAL_MODULE := libaacwrapper
17 |
18 | include $(BUILD_SHARED_LIBRARY)
19 |
--------------------------------------------------------------------------------
/qcom-caf/media/libc2dcolorconvert/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_SRC_FILES := \
6 | C2DColorConverter.cpp
7 |
8 | LOCAL_C_INCLUDES := \
9 | $(TARGET_OUT_HEADERS)/adreno
10 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
11 |
12 | LOCAL_HEADER_LIBRARIES := \
13 | display_headers \
14 | libutils_headers \
15 | libhardware_headers \
16 | display_headers
17 |
18 | LOCAL_SHARED_LIBRARIES := liblog libdl
19 |
20 | LOCAL_MODULE_TAGS := optional
21 |
22 | LOCAL_MODULE := libc2dcolorconvert
23 |
24 | LOCAL_VENDOR_MODULE := true
25 |
26 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
27 |
28 | include $(BUILD_SHARED_LIBRARY)
29 |
--------------------------------------------------------------------------------
/qcom-caf/media/libc2dcolorconvert/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = -Wall
2 | AM_CFLAGS += -Wundef
3 | AM_CFLAGS += -Wstrict-prototypes
4 | AM_CFLAGS += -Wno-trigraphs
5 | AM_CFLAGS += -g -O3
6 | AM_CFLAGS += "-include stdint.h"
7 | AM_CFLAGS += "-std=c++11"
8 |
9 |
10 | AM_CPPFLAGS = $(CPPFLAGS)
11 |
12 | c_sources = C2DColorConverter.cpp
13 | h_sources = C2DColorConverter.h
14 |
15 | lib_LTLIBRARIES = libc2dcolorconvert.la
16 | libc2dcolorconvert_la_SOURCES = $(c_sources) $(h_sources)
17 | libc2dcolorconvert_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
18 | libc2dcolorconvert_la_LIBADD = -ldl -lpthread -llog
19 |
--------------------------------------------------------------------------------
/qcom-caf/media/libsidebandstreamhandle/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_SRC_FILES := \
5 | SidebandStreamHandle.cpp
6 |
7 | LOCAL_CFLAGS :=
8 |
9 | LOCAL_HEADER_LIBRARIES := display_headers
10 |
11 | LOCAL_SHARED_LIBRARIES := \
12 | libcutils \
13 | liblog
14 |
15 | LOCAL_MODULE := libsidebandstreamhandle
16 | LOCAL_MODULE_TAGS := optional
17 | LOCAL_VENDOR_MODULE := true
18 | include $(BUILD_SHARED_LIBRARY)
19 |
20 | #####################################################################################
21 |
22 | include $(CLEAR_VARS)
23 |
24 | LOCAL_SRC_FILES := test/SidebandStreamHandleTest.cpp
25 | LOCAL_MODULE := SidebandStreamHandleTest
26 | LOCAL_SHARED_LIBRARIES := libcutils libc libhardware libsidebandstreamhandle liblog
27 |
28 | LOCAL_MODULE_TAGS := optional
29 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/ \
30 | hardware/libhardware/include/hardware \
31 |
32 | LOCAL_MODULE_OWNER := qti
33 | LOCAL_VENDOR_MODULE := true
34 | include $(BUILD_EXECUTABLE)
35 |
36 | #####################################################################################
37 |
--------------------------------------------------------------------------------
/qcom-caf/media/libstagefrighthw/Android.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2009 The Android Open Source Project
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | LOCAL_PATH := $(call my-dir)
18 | include $(CLEAR_VARS)
19 |
20 | LOCAL_SRC_FILES := \
21 | QComOMXPlugin.cpp \
22 |
23 | LOCAL_CFLAGS := $(PV_CFLAGS_MINUS_VISIBILITY)
24 |
25 | ifeq ($(PLATFORM_SDK_VERSION), 18) #JB_MR2
26 | LOCAL_CFLAGS += -DANDROID_JELLYBEAN_MR2=1
27 | endif
28 |
29 | ifeq ($(TARGET_USES_MEDIA_EXTENSIONS),true)
30 | LOCAL_CFLAGS += -DUSE_NATIVE_HANDLE_SOURCE
31 | endif
32 |
33 | LOCAL_HEADER_LIBRARIES := \
34 | media_plugin_headers \
35 | libcutils_headers \
36 | libutils_headers
37 |
38 | LOCAL_SHARED_LIBRARIES := \
39 | libutils \
40 | libcutils \
41 | libdl \
42 |
43 | LOCAL_MODULE := libstagefrighthw
44 |
45 | LOCAL_VENDOR_MODULE := true
46 |
47 | include $(BUILD_SHARED_LIBRARY)
48 |
49 |
--------------------------------------------------------------------------------
/qcom-caf/media/libstagefrighthw/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/media/libstagefrighthw/MODULE_LICENSE_APACHE2
--------------------------------------------------------------------------------
/qcom-caf/media/mm-core/inc/OMX_Other.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/media/mm-core/inc/OMX_Other.h
--------------------------------------------------------------------------------
/qcom-caf/media/mm-core/inc/OMX_QCOMExtns.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/media/mm-core/inc/OMX_QCOMExtns.h
--------------------------------------------------------------------------------
/qcom-caf/media/mm-core/inc/QOMX_IVCommonExtensions.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/qcom-caf/media/mm-core/inc/QOMX_IVCommonExtensions.h
--------------------------------------------------------------------------------
/qcom-caf/media/mm-core/mm-core.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: mm-core
7 | Description: mm-core library
8 | Version: @VERSION@
9 | Libs: -L${libdir} -lOmxCore -lmm-omxcore
10 | Cflags: -I${includedir}/mm-core/omxcore
11 |
--------------------------------------------------------------------------------
/qcom-caf/media/mm-video-v4l2/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(call all-makefiles-under,$(LOCAL_PATH))
3 |
--------------------------------------------------------------------------------
/qcom-caf/media/mm-video-v4l2/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for mm-omxvideo
2 | #
3 | ACLOCAL_AMFLAGS = -I m4
4 |
5 | SUBDIRS = vidc
6 |
--------------------------------------------------------------------------------
/qcom-caf/media/mm-video-v4l2/vidc/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(call all-makefiles-under, $(LOCAL_PATH))
3 |
--------------------------------------------------------------------------------
/qcom-caf/media/mm-video-v4l2/vidc/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for mm-omxvideo
2 | #
3 | ACLOCAL_AMFLAGS = -I m4
4 |
5 | SUBDIRS = vdec venc
6 |
--------------------------------------------------------------------------------
/qcom-caf/media/mm-video-v4l2/vidc/venc/inc/gpustats.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Extrapolated / reversed header for PQ encoding
3 | */
4 |
5 | #ifndef GPUSTATS_H
6 | #define GPUSTATS_H
7 |
8 | #define ADAPTIVE_QP 1
9 |
10 | enum color_compression_format {
11 | LINEAR_NV12,
12 | UBWC_NV12
13 | };
14 |
15 | enum perf_hint {
16 | LOW = 1,
17 | NORMAL = 2,
18 | HIGH = 3,
19 | };
20 |
21 | struct gpu_stats_lib_buffer_params_t {
22 | int fd;
23 | int data_offset;
24 | int alloc_len;
25 | int filled_len;
26 | };
27 |
28 | struct gpu_stats_lib_caps_t {
29 | unsigned int max_width;
30 | unsigned int max_height;
31 | int color_formats;
32 | int max_mb_per_sec;
33 | };
34 |
35 | struct adaptive_qp_config_params_t {
36 | float gain;
37 | float offset;
38 | uint roi_enabled;
39 | uint pq_enabled;
40 | int minDeltaQPlimit;
41 | int maxDeltaQPlimit;
42 | };
43 |
44 | struct gpu_stats_lib_input_config {
45 | struct adaptive_qp_config_params_t a_qp;
46 | int algo;
47 | int height;
48 | int width;
49 | int mb_height;
50 | int mb_width;
51 | int stride;
52 | };
53 |
54 | enum gpu_stats_lib_op_status { /* somethings supposed to go in here but ¯\_(ツ)_/¯ */ };
55 |
56 | #endif /* GPUSTATS_H */
57 |
--------------------------------------------------------------------------------
/rootdir/etc/init.recovery.qcom.rc:
--------------------------------------------------------------------------------
1 | import /init.recovery.qcom.usb.rc
2 |
3 | on fs
4 | wait /dev/block/platform/soc/7824900.sdhci
5 | symlink /dev/block/platform/soc/7824900.sdhci /dev/block/bootdevice
6 |
7 | # Advertise system_as_root
8 | setprop ro.build.system_root_image true
9 |
--------------------------------------------------------------------------------
/rootdir/etc/init.recovery.qcom.usb.rc:
--------------------------------------------------------------------------------
1 | on init
2 | write /sys/class/backlight/panel0-backlight/brightness 200
3 |
4 | mkdir /config
5 | mount configfs none /config
6 | mkdir /config/usb_gadget/g1 0770 shell shell
7 | write /config/usb_gadget/g1/bcdUSB 0x0200
8 | write /config/usb_gadget/g1/idVendor 0x18d1
9 | write /config/usb_gadget/g1/idProduct 0xd001
10 | mkdir /config/usb_gadget/g1/strings/0x409 0770 shell shell
11 | write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
12 | write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer}
13 | write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model}
14 | mkdir /config/usb_gadget/g1/functions/ffs.adb
15 | write /config/usb_gadget/g1/os_desc/use 1
16 | write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1
17 | write /config/usb_gadget/g1/os_desc/qw_sign "MSFT100"
18 | setprop sys.usb.configfs 1
19 |
20 | on property:ro.boot.usbcontroller=*
21 | setprop sys.usb.controller ${ro.boot.usbcontroller}
22 |
23 | on property:sys.usb.ffs.ready=1
24 | mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell
25 | symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
26 | mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
27 | write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
28 | symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
29 | write /config/usb_gadget/g1/UDC ${sys.usb.controller}
30 |
--------------------------------------------------------------------------------
/rootdir/etc/init.soundcontrol.rc:
--------------------------------------------------------------------------------
1 | on property:sys.boot_completed=1
2 | # Audio gain permissions
3 | chown system system /sys/kernel/sound_control/headphone_gain
4 | chown system system /sys/kernel/sound_control/mic_gain
5 | chown system system /sys/kernel/sound_control/speaker_gain
6 | restorecon_recursive /sys/kernel/sound_control
7 | chmod 0660 /sys/kernel/sound_control/headphone_gain
8 | chmod 0660 /sys/kernel/sound_control/mic_gain
9 | chmod 0660 /sys/kernel/sound_control/speaker_gain
10 |
--------------------------------------------------------------------------------
/rro_overlays/CarrierConfigOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "CarrierConfigOverlay",
3 | theme: "CarrierConfigOverlay",
4 | sdk_version: "current",
5 | vendor: true,
6 | aaptflags: ["--keep-raw-values"],
7 | }
8 |
--------------------------------------------------------------------------------
/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
26 |
27 |
--------------------------------------------------------------------------------
/rro_overlays/TetheringOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "TetheringConfigOverlay",
3 | theme: "TetheringConfigOverlay",
4 | sdk_version: "current",
5 | vendor: true
6 | }
7 |
--------------------------------------------------------------------------------
/rro_overlays/TetheringOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
18 |
19 |
24 |
25 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "WifiOverlay",
3 | theme: "WifiOverlay",
4 | sdk_version: "current",
5 | vendor: true
6 | }
7 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
28 |
29 |
--------------------------------------------------------------------------------
/sepolicy/private/clean_scratch_files.te:
--------------------------------------------------------------------------------
1 | type clean_scratch_files, domain;
2 | type clean_scratch_files_exec, exec_type, file_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/private/file_contexts:
--------------------------------------------------------------------------------
1 | # clean_scratch_files
2 | /system/bin/clean_scratch_files u:object_r:clean_scratch_files_exec:s0
3 |
4 | # Dev nodes
5 | /dev/stune(/.*)? u:object_r:cgroup:s0
6 |
--------------------------------------------------------------------------------
/sepolicy/private/init.te:
--------------------------------------------------------------------------------
1 | allow init property_type:file { append create getattr map open read relabelto rename setattr unlink write };
2 |
--------------------------------------------------------------------------------
/sepolicy/private/iorap_inode2filename.te:
--------------------------------------------------------------------------------
1 | #============= iorap_inode2filename ==============
2 | allow iorap_inode2filename adb_data_file:dir read;
3 | allow iorap_inode2filename apk_private_data_file:dir read;
4 | allow iorap_inode2filename asec_image_file:dir read;
5 | allow iorap_inode2filename cache_file:dir read;
6 | allow iorap_inode2filename ota_data_file:dir read;
7 | allow iorap_inode2filename shell_data_file:dir read;
8 | allow iorap_inode2filename tombstone_data_file:dir read;
9 | allow iorap_inode2filename netd_exec:file getattr;
10 | #allow iorap_inode2filename notify_traceur_exec:file getattr;
11 | allow iorap_inode2filename perfetto_exec:file getattr;
12 | allow iorap_inode2filename simpleperf_exec:file getattr;
13 |
--------------------------------------------------------------------------------
/sepolicy/private/iorap_prefetcherd.te:
--------------------------------------------------------------------------------
1 | #============= iorap_prefetcherd ==============
2 | allow iorap_prefetcherd vendor_file:file { open read };
3 | allow iorap_prefetcherd system_app_data_file:dir search;
4 |
--------------------------------------------------------------------------------
/sepolicy/private/property_contexts:
--------------------------------------------------------------------------------
1 | ro.hardware.chipname u:object_r:exported_default_prop:s0
2 |
--------------------------------------------------------------------------------
/sepolicy/private/storaged.te:
--------------------------------------------------------------------------------
1 | #============= storaged ==============
2 | allow storaged debugfs_mmc:file read;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/adsprpcd_file.te:
--------------------------------------------------------------------------------
1 | allow adsprpcd_file self:filesystem associate;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/bluetooth.te:
--------------------------------------------------------------------------------
1 | #============= bluetooth ==============
2 | get_prop(bluetooth, incremental_prop);
3 | get_prop(bluetooth, vendor_bluetooth_prop);
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/bootanim.te:
--------------------------------------------------------------------------------
1 | get_prop(bootanim, userspace_reboot_exported_prop)
2 | allow bootanim system_data_file:dir { read };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/cnd.te:
--------------------------------------------------------------------------------
1 | add_hwservice(cnd,hal_slmadapter_hwservice)
2 | allow cnd hal_slmadapter_hwservice:hwservice_manager find;
3 |
4 | add_hwservice(cnd,hal_mwqemadapter_hwservice)
5 | allow cnd hal_mwqemadapter_hwservice:hwservice_manager find;
6 | allow cnd diag_device:chr_file { ioctl open read write };
7 |
8 | get_prop(cnd, vendor_mwqem_prop)
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/device.te:
--------------------------------------------------------------------------------
1 | type lirc_device, dev_type;
2 | type gx_fpd_device, dev_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/domain.te:
--------------------------------------------------------------------------------
1 | # Silence /dev/stune logspam
2 | dontaudit domain device:file w_file_perms;
3 |
4 | get_prop(domain, exported_camera_prop)
5 |
6 | # Silence dalvikcache logspam
7 | dontaudit domain dalvikcache_data_file:file execmod;
8 |
9 | # Silence some proc related logspam
10 | dontaudit domain {
11 | proc
12 | proc_net
13 | proc_net_tcp_udp
14 | proc_stat
15 | proc_tty_drivers
16 | proc_version
17 | proc_vmallocinfo
18 | proc_vmstat
19 | proc_zoneinfo
20 | serialno_prop
21 | }:file { read open getattr };
22 |
--------------------------------------------------------------------------------
/sepolicy/vendor/dontaudit.te:
--------------------------------------------------------------------------------
1 | # Apps are no longer allowed open access to /dev/ashmem, unless they
2 | # target API level < Q.
3 | dontaudit untrusted_app ashmem_device:chr_file open;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/file.te:
--------------------------------------------------------------------------------
1 | # Camera
2 | type camera_socket, file_type, data_file_type;
3 |
4 | # Fingerprint
5 | type fpc_data_file, file_type, data_file_type, core_data_file_type;
6 | type fpce_socket, file_type;
7 | type fpc_sysfs, fs_type, sysfs_type;
8 | type gx_fpd_data_file, file_type, data_file_type, core_data_file_type;
9 |
10 | # /proc
11 | type proc_swap, fs_type;
12 |
13 | # Rild
14 | type rild_file, file_type, vendor_file_type;
15 |
16 | # Sensors
17 | type persist_sensors_file, file_type, vendor_persist_type;
18 |
19 | # Touchscreen
20 | type proc_touchpanel, fs_type, sysfs_type, proc_type;
21 |
22 | # Power Stats
23 | type sysfs_iio_devices, fs_type, sysfs_type;
24 | type sysfs_power_stats, sysfs_type, fs_type;
25 | type sysfs_power_stats_ignore, sysfs_type, fs_type;
26 | type sysfs_scsi_devices_0000, sysfs_type, fs_type;
27 | type sysfs_msm_wlan, sysfs_type, fs_type;
28 |
29 | # XiaomiParts
30 | type sysfs_hgain, sysfs_type, fs_type;
31 | type sysfs_mgain, sysfs_type, fs_type;
32 | type sysfs_sgain, sysfs_type, fs_type;
33 | type sysfs_torch, sysfs_type, fs_type;
34 | type kcal_dev, sysfs_type, fs_type;
35 |
36 | # I/O
37 | type sysfs_io_sched_tuneable, fs_type, sysfs_type;
38 |
39 | # Battery Saver
40 | type sysfs_battery_saver, fs_type, sysfs_type;
41 |
42 | # Netmgr
43 | type netmgr_data_file, file_type, data_file_type;
44 |
--------------------------------------------------------------------------------
/sepolicy/vendor/fsck.te:
--------------------------------------------------------------------------------
1 | dontaudit fsck self:capability { dac_override dac_read_search };
2 | allow fsck self:capability kill;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/gmscore_app.te:
--------------------------------------------------------------------------------
1 | dontaudit gmscore_app adsprpcd_file:filesystem getattr;
2 | dontaudit gmscore_app firmware_file:filesystem getattr;
3 | dontaudit gmscore_app hal_memtrack_hwservice:hwservice_manager find;
4 |
5 | binder_call(gmscore_app, hal_memtrack_default);
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/gx_fpd.te:
--------------------------------------------------------------------------------
1 | type gx_fpd, domain;
2 | type gx_fpd_exec, exec_type, vendor_file_type, file_type;
3 |
4 | # gx_fpd
5 | init_daemon_domain(gx_fpd)
6 |
7 | # Allow Binder communication
8 | vndbinder_use(gx_fpd)
9 | binder_call(gx_fpd, hal_fingerprint_default)
10 |
11 | # Add services
12 | add_service(gx_fpd, gx_fpd_service)
13 |
14 | typeattribute gx_fpd data_between_core_and_vendor_violators;
15 |
16 | # Allow storing goodix data
17 | allow gx_fpd { persist_drm_file gx_fpd_data_file }:dir create_dir_perms;
18 | allow gx_fpd { persist_drm_file gx_fpd_data_file }:file create_file_perms;
19 |
20 | # Allow access to goodix device
21 | allow gx_fpd gx_fpd_device:chr_file rw_file_perms;
22 |
23 | # Allow access to tee device
24 | allow gx_fpd tee_device:chr_file rw_file_perms;
25 |
26 | # Allow access to ion device
27 | allow gx_fpd ion_device:chr_file rw_file_perms;
28 |
29 | # Allow create socket
30 | allow gx_fpd self:socket create_socket_perms_no_ioctl;
31 | allow gx_fpd self:{ netlink_socket netlink_generic_socket } create_socket_perms_no_ioctl;
32 |
33 | # Allow reading firmware file
34 | r_dir_file(gx_fpd, firmware_file)
35 |
36 | # Ignore all logging requests
37 | dontaudit gx_fpd storage_file:dir search;
38 | dontaudit gx_fpd default_prop:file read;
39 |
40 | # Allow read/write property
41 | set_prop(gx_fpd, gxfpd_prop)
42 | get_prop(gx_fpd, gxfpd_prop)
43 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | allow hal_audio_default sysfs:dir r_dir_perms;
2 | get_prop(hal_audio_default, dirac_prop)
3 | set_prop(hal_audio_default, dirac_prop)
4 | get_prop(hal_audio_default, vendor_audio_hal_prop)
5 | allow hal_audio_default diag_device:chr_file { ioctl open read write };
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bluetooth_qti.te:
--------------------------------------------------------------------------------
1 | set_prop(hal_bluetooth_qti, vendor_bt_hal_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_camera_default.te:
--------------------------------------------------------------------------------
1 | #============= hal_camera_default ==============
2 | allow hal_camera_default camera_data_file:sock_file write;
3 | allow hal_camera_default camera_socket:sock_file write;
4 | allow hal_camera_default camera_socket:dir search;
5 | allow hal_camera_default camera_socket:dir { add_name write };
6 | allow hal_camera_default camera_socket:file { create open read write };
7 | r_dir_file(hal_camera_default, sysfs_kgsl)
8 | hal_client_domain(hal_camera_default, hal_power)
9 | get_prop(hal_camera_default, vendor_system_prop)
10 | get_prop(hal_camera_default, vendor_camera_prop)
11 | get_prop(hal_camera_default, bootanim_system_prop)
12 | dontaudit hal_camera_default default_prop:file read;
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_cas_default.te:
--------------------------------------------------------------------------------
1 | vndbinder_use(hal_cas_default);
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_gnss_default.te:
--------------------------------------------------------------------------------
1 | allow hal_gnss_qti self:capability { setuid setgid net_bind_service };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_gnss_qti.te:
--------------------------------------------------------------------------------
1 | #============= hal_gnss_qti ==============
2 | get_prop(hal_gnss_qti, vendor_pd_locater_dbg_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_graphics_composer_default.te:
--------------------------------------------------------------------------------
1 | #============= hal_graphics_composer_default ==============
2 | allow hal_graphics_composer_default diag_device:chr_file { ioctl open read write };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_imsrtp.te:
--------------------------------------------------------------------------------
1 | #============= hal_imsrtp ==============
2 | allow hal_imsrtp diag_device:chr_file { ioctl open read write };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_ir_default.te:
--------------------------------------------------------------------------------
1 | allow hal_ir_default lirc_device:chr_file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_light_default.te:
--------------------------------------------------------------------------------
1 | allow hal_light_default sysfs_battery_supply:dir search;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_perf_default.te:
--------------------------------------------------------------------------------
1 | allow hal_perf_default property_socket:sock_file write;
2 |
3 | allow hal_perf_default init:unix_stream_socket connectto;
4 |
5 | allow hal_perf_default hal_display_config_hwservice:hwservice_manager find;
6 | allow hal_perf_default hal_graphics_composer_default:binder call;
7 |
8 | allow hal_perf_default proc_meminfo:file { getattr open read };
9 | allow hal_perf_default sysfs_msm_perf:file create;
10 | allow hal_perf_default hal_audio_default:dir search;
11 | allow hal_perf_default hal_audio_default:file rw_file_perms;
12 |
13 | set_prop(hal_perf_default, vendor_init_prop)
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_default.te:
--------------------------------------------------------------------------------
1 | # Allow writing to files in /proc/touchpanel
2 | allow hal_power_default proc_touchpanel:dir search;
3 | allow hal_power_default proc_touchpanel:file rw_file_perms;
4 | allow hal_power_default cgroup:file r_file_perms;
5 |
6 | allow hal_power_default sysfs_battery_saver:dir r_dir_perms;
7 | allow hal_power_default sysfs_battery_saver:file rw_file_perms;
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_stats_default.te:
--------------------------------------------------------------------------------
1 | allow hal_power_stats_default sysfs_msm_wlan:dir search; # Needed to traverse to wlan stats file
2 | allow hal_power_stats_default sysfs_kgsl:file { r_file_perms getattr };
3 | #get_prop(hal_power_stats_default, exported_wifi_prop) # Needed to detect wifi on/off
4 | r_dir_file(hal_power_stats_default, sysfs_iio_devices) # Needed to traverse odpm files
5 | r_dir_file(hal_power_stats_default, sysfs_power_stats) # Needed to traverse platform low power stats
6 |
7 | # The following folders are incidentally accessed by hal_power_stats_default and are not needed.
8 | dontaudit hal_power_stats_default sysfs_power_stats_ignore:dir r_dir_perms;
9 | dontaudit hal_power_stats_default sysfs_power_stats_ignore:file r_file_perms;
10 | dontaudit hal_power_stats_default sysfs:file read;
11 |
12 | vndbinder_use(hal_power_stats)
13 | add_service(hal_power_stats_server, power_stats_service)
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensors_default.te:
--------------------------------------------------------------------------------
1 | #============= hal_sensors_default ==============
2 | allow hal_sensors_default diag_device:chr_file { ioctl open read write };
3 | allow hal_sensors_default persist_file:dir r_dir_perms;
4 | dontaudit hal_sensors_default default_prop:file read;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_wifi_default.te:
--------------------------------------------------------------------------------
1 | allow hal_wifi_default proc_net:file rw_file_perms;
2 | set_prop(hal_wifi_default, vendor_wifi_prop)
3 | get_prop(hal_wifi_default, persist_vendor_debug_wifi_prop)
4 | set_prop(hal_wifi_default, vendor_set_wlan_prop)
5 | allow hal_wifi_default kernel:system module_request;
6 | allow hal_wifi_default vendor_tombstone_data_file:dir rw_dir_perms;
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hostapd.te:
--------------------------------------------------------------------------------
1 | #============= hostapd ==============
2 | allow hostapd hal_wifi_hostapd_default:unix_dgram_socket sendto;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hvdcp.te:
--------------------------------------------------------------------------------
1 | # allow hvdcp to query spmi0-03 nodes
2 | allow hvdcp sysfs:dir r_dir_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type hal_mwqemadapter_hwservice, hwservice_manager_type;
2 | type hal_slmadapter_hwservice, hwservice_manager_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | vendor.qti.hardware.slmadapter::ISlmAdapter u:object_r:hal_slmadapter_hwservice:s0
2 | vendor.qti.hardware.mwqemadapter::IMwqemAdapter u:object_r:hal_mwqemadapter_hwservice:s0
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/ims.te:
--------------------------------------------------------------------------------
1 | #============= ims ==============
2 | allow ims diag_device:chr_file { ioctl open read write };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init.te:
--------------------------------------------------------------------------------
1 | allow init wcnss_device:chr_file write;
2 |
3 | # Allow init to bind mount gps_debug.conf
4 | allow init system_file:file { mounton };
5 |
6 | # adsprpcd
7 | allow init adsprpcd_file:filesystem { getattr mount relabelfrom relabelto };
8 |
9 | # Firmware
10 | allow init firmware_file:filesystem getattr;
11 |
12 | allow init wcnss_device:chr_file write;
13 |
14 | # FM
15 | allow qti_init_shell {
16 | vendor_fm_prop
17 | }:property_service set;
18 |
19 | # LEDs
20 | allow init sysfs_leds:lnk_file read;
21 | allow init sysfs_leds:file { getattr setattr write };
22 |
23 | # Allow init to chown/chmod on pseudo files in /sys
24 | allow init sysfs_type:file { setattr };
25 | allow init hwservicemanager:binder { call transfer };
26 | allow init proc:file { getattr relabelfrom write };
27 | allow init sysfs_hgain:file { getattr relabelfrom write };
28 | allow init sysfs_mgain:file { getattr relabelfrom write };
29 |
30 | allow init hidl_base_hwservice:hwservice_manager add;
31 |
32 | allow init qti_init_shell:capability kill;
33 | dontaudit init proc_dirty:file { open write };
34 | allow init sysfs_io_sched_tuneable:file write;
35 | set_prop(init, bootloader_prop)
36 | allow init vendor_init:capability kill;
37 |
38 | get_prop(vendor_init, vendor_tee_listener_prop)
39 | get_prop(vendor_init, gxfpd_prop)
40 | set_prop(vendor_init, gxfpd_prop)
41 | get_prop(vendor_init, vendor_imsradio_prop)
42 | get_prop(vendor_init, vendor_audio_hal_prop)
43 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init_fingerprint.te:
--------------------------------------------------------------------------------
1 | type init_fingerprint, domain;
2 | type init_fingerprint_exec, exec_type, vendor_file_type, file_type;
3 | typeattribute init_fingerprint data_between_core_and_vendor_violators;
4 |
5 | # Allow for transition from init domain to init_fingerprint
6 | init_daemon_domain(init_fingerprint)
7 |
8 | # Shell script needs to execute /vendor/bin/sh
9 | allow init_fingerprint vendor_shell_exec:file rx_file_perms;
10 | allow init_fingerprint vendor_toolbox_exec:file rx_file_perms;
11 |
12 | # Allow to delete file
13 | allow init_fingerprint mnt_vendor_file:dir search;
14 | allow init_fingerprint persist_drm_file:dir { read search open write remove_name getattr rmdir };
15 | allow init_fingerprint persist_drm_file:file { getattr unlink };
16 | allow init_fingerprint system_data_file:file r_file_perms;
17 | allow init_fingerprint gx_fpd_data_file:dir { getattr read search open write rmdir remove_name };
18 | allow init_fingerprint gx_fpd_data_file:file r_file_perms;
19 | allow init_fingerprint gx_fpd_data_file:file { getattr unlink };
20 |
--------------------------------------------------------------------------------
/sepolicy/vendor/installd.te:
--------------------------------------------------------------------------------
1 | allow installd adsprpcd_file:filesystem quotaget;
2 | allow installd system_data_file:dir relabelto;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/kernel.te:
--------------------------------------------------------------------------------
1 | allow kernel kernel:capability { kill };
2 | allow kernel debugfs_mmc:file read;
3 | allow kernel kernel:socket create;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/location.te:
--------------------------------------------------------------------------------
1 | #xtra-demon
2 | hal_client_domain(location, vendor_qccsyshal);
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mediaserver.te:
--------------------------------------------------------------------------------
1 | #============= mediaserver ==============
2 | get_prop(mediaserver, vendor_sys_video_prop);
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mm-qcamerad.te:
--------------------------------------------------------------------------------
1 | #typeattribute mm-qcamerad binder_in_vendor_violators;
2 | binder_use(mm-qcamerad);
3 |
4 | allow mm-qcamerad sensorservice_service:service_manager find;
5 |
6 | allow mm-qcamerad system_server:unix_stream_socket { read write };
7 |
8 | allow mm-qcamerad diag_device:chr_file { ioctl open read write };
9 | get_prop(mm-qcamerad, camera_prop)
10 | allow mm-qcamerad sysfs_jpeg:file { getattr open read };
11 | allow mm-qcamerad init:unix_stream_socket connectto;
12 | set_prop(mm-qcamerad, camera_prop)
13 | set_prop(mm-qcamerad, vendor_camera_prop)
14 | get_prop(mm-qcamerad, vendor_camera_prop)
15 |
16 | allow mm-qcamerad sysfs:file { read open };
17 | allow mm-qcamerad sysfs_graphics:file { open read };
18 | dontaudit mm-qcamerad default_prop:file read;
19 |
--------------------------------------------------------------------------------
/sepolicy/vendor/netmgrd.te:
--------------------------------------------------------------------------------
1 | typeattribute netmgrd vendor_executes_system_violators;
2 |
3 | set_prop(netmgrd, vendor_xlat_prop)
4 | allow netmgrd system_file:file { execute execute_no_trans getattr open read };
5 | allow netmgrd netutils_wrapper:process noatsecure;
6 | allow netmgrd kernel:system module_request;
7 | allow netmgrd diag_device:chr_file { ioctl open read write };
8 | allow netmgrd netmgr_data_file:dir w_dir_perms;
9 | allow netmgrd netmgr_data_file:file create_file_perms;
10 |
11 | #Allow set persist.vendor.data.shs_ko_load
12 | #Allow set persist.vendor.data.shsusr_load
13 | #Allow set persist.vendor.data.perf_ko_load
14 | #Allow set persist.vendor.data.qmipriod_load
15 | set_prop(netmgrd, vendor_radio_prop)
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | allow platform_app hal_alarm_qti_default:binder call;
2 | allow platform_app hal_alarm_qti_hwservice:hwservice_manager find;
3 | allow platform_app sysfs_kgsl:lnk_file read;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/poweroffalarm_app.te:
--------------------------------------------------------------------------------
1 | allow poweroffalarm_app cgroup:file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/priv_app.te:
--------------------------------------------------------------------------------
1 | #============= priv_app ==============
2 | allow priv_app net_dns_prop:file { getattr open };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/proc_net.te:
--------------------------------------------------------------------------------
1 | allow proc_net proc:filesystem associate;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/proc_touchpanel.te:
--------------------------------------------------------------------------------
1 | #============= proc_touchpanel ==============
2 | allow proc_touchpanel proc:filesystem { associate };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | # Audio
2 | vendor_public_prop(vendor_audio_hal_prop)
3 |
4 | # Bluetooth
5 | vendor_public_prop(vendor_bt_hal_prop)
6 |
7 | # Camera
8 | vendor_internal_prop(vendor_camera_prop)
9 |
10 | # Dirac
11 | vendor_public_prop(dirac_prop)
12 |
13 | # Wlan
14 | vendor_internal_prop(vendor_wifi_prop)
15 | vendor_internal_prop(vendor_set_wlan_prop)
16 | vendor_internal_prop(vendor_nv_prop)
17 | vendor_internal_prop(wcnss_prop)
18 |
19 | # Fingerprint
20 | vendor_internal_prop(gxfpd_prop)
21 |
22 | # mwqem property
23 | vendor_restricted_prop(vendor_mwqem_prop)
24 |
25 | # Radio
26 | vendor_restricted_prop(vendor_imsradio_prop)
27 | vendor_internal_prop(persist_sensors_radio_prop)
28 |
29 | # Init
30 | vendor_internal_prop(vendor_init_prop)
31 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qti_init_shell.te:
--------------------------------------------------------------------------------
1 | dontaudit qti_init_shell self:capability dac_override;
2 |
3 | allow qti_init_shell proc_touchpanel:dir { r_dir_perms setattr };
4 | allow qti_init_shell proc_touchpanel:file { getattr setattr };
5 |
6 | # Allow access to swappiness
7 | allow qti_init_shell proc_swap:file { open write };
8 |
9 | # Allow adjust page_cluster setting
10 | allow qti_init_shell proc_page_cluster:file { open write };
11 |
12 | # Postboot
13 | allow qti_init_shell sysfs:file { write setattr };
14 | allow qti_init_shell sysfs_leds:file { getattr setattr write };
15 |
16 | # XiaomiParts
17 | allow qti_init_shell kcal_dev:dir search;
18 | allow qti_init_shell kcal_dev:file rw_file_perms;
19 | allow qti_init_shell sysfs_torch:dir search;
20 | allow qti_init_shell sysfs_torch:file rw_file_perms;
21 |
22 | allow qti_init_shell qti_init_shell:capability kill;
23 | dontaudit qti_init_shell proc_dirty:file { open write };
24 | allow qti_init_shell sysfs_io_sched_tuneable:file write;
25 | allow qti_init_shell system_data_file:file getattr;
26 |
27 | # FM
28 | set_prop(qti_init_shell, vendor_fm_prop)
29 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qtidataservices_app.te:
--------------------------------------------------------------------------------
1 | #============= qtidataservices_app ==============
2 | allow qtidataservices_app self:socket create_socket_perms;
3 | allowxperm qtidataservices_app self:socket ioctl msm_sock_ipc_ioctls;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/radio.te:
--------------------------------------------------------------------------------
1 | allow radio gpuservice:binder call;
2 | allow radio system_app_data_file:dir getattr;
3 |
4 | get_prop(radio, vendor_qcom_ims_prop)
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rfs_access.te:
--------------------------------------------------------------------------------
1 | allow rfs_access unlabeled:dir { search open read setattr };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rild.te:
--------------------------------------------------------------------------------
1 | allow rild rild_file:file r_file_perms;
2 | allow rild diag_device:chr_file { ioctl open read write };
3 | binder_call(rild, qtidataservices_app)
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/sensors.te:
--------------------------------------------------------------------------------
1 | #============= sensors ==============
2 | allow sensors diag_device:chr_file { ioctl open read write };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/shell.te:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/sepolicy/vendor/shell.te
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | # XiaomiParts
2 | allow system_app {
3 | kcal_dev
4 | sysfs_hgain
5 | sysfs_mgain
6 | sysfs_sgain
7 | sysfs_torch
8 | }:file rw_file_perms;
9 |
10 | allow system_app {
11 | kcal_dev
12 | sysfs_leds
13 | sysfs_torch
14 | }:dir search;
15 |
16 | # zram
17 | r_dir_file(system_app sysfs_zram)
18 |
19 | allow system_app proc_touchpanel:dir search;
20 | allow system_app proc_touchpanel:file { getattr open write };
21 | binder_call(system_app, hal_power_default)
22 | binder_call(system_app, hal_vibrator_default)
23 | #binder_call(system_app, storaged)
24 | binder_call(system_app, wificond)
25 | allow system_app proc_pagetypeinfo:file read;
26 | #allow system_app tracingproxy_service:service_manager find;
27 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_server.te:
--------------------------------------------------------------------------------
1 | get_prop(system_server, userspace_reboot_config_prop)
2 | get_prop(system_server, userspace_reboot_exported_prop)
3 |
4 | # power
5 | allow system_server sysfs_battery_supply:file { read open getattr };
6 |
7 | # vibrator
8 | allow system_server sysfs_vibrator:file read;
9 |
10 | allow system_server app_zygote:process getpgid;
11 | allow system_server apexd_prop:file { getattr open };
12 | allow system_server bluetooth_a2dp_offload_prop:file { getattr open };
13 | allow system_server bluetooth_audio_hal_prop:file { getattr open };
14 | allow system_server bluetooth_prop:file { getattr open };
15 | dontaudit system_server system_file:dir write;
16 | allow system_server kernel:system syslog_read;
17 | get_prop(system_server, vendor_persist_camera_prop)
18 | get_prop(system_server, vendor_audio_hal_prop)
19 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tee.te:
--------------------------------------------------------------------------------
1 | typeattribute tee data_between_core_and_vendor_violators;
2 |
3 | # /data/goodix labeling
4 | type_transition tee system_data_file:{ dir file } gx_fpd_data_file;
5 |
6 | # allow storing goodix data
7 | allow tee mnt_vendor_file:dir { search };
8 | allow tee system_data_file:dir create_dir_perms;
9 | allow tee { persist_drm_file gx_fpd_data_file fingerprintd_data_file }:dir create_dir_perms;
10 | allow tee { persist_drm_file gx_fpd_data_file fingerprintd_data_file }:file create_file_perms;
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal-engine.te:
--------------------------------------------------------------------------------
1 | #============= thermal-engine ==============
2 | allow thermal-engine thermal-engine:capability kill;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal_engine.te:
--------------------------------------------------------------------------------
1 | allow thermal-engine sysfs:dir r_dir_perms;
2 | allow thermal-engine property_socket:sock_file write;
3 | allow thermal-engine init:unix_stream_socket connectto;
4 | allow thermal-engine self:capability kill;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/traced_probes.te:
--------------------------------------------------------------------------------
1 | dontaudit traced_probes debugfs_tracing_debug:file read;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/ueventd.te:
--------------------------------------------------------------------------------
1 | allow ueventd self:capability { sys_nice kill };
2 |
3 | allow ueventd qti_debugfs:dir relabelto;
4 | allow ueventd debugfs:dir { r_dir_perms relabelfrom };
5 |
6 | allow ueventd {
7 | debugfs
8 | debugfs_wakeup_sources
9 | }:file getattr;
10 | allow ueventd ueventd:capability kill;
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app.te:
--------------------------------------------------------------------------------
1 | dontaudit untrusted_app virtual_ab_prop:file read;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app_29.te:
--------------------------------------------------------------------------------
1 | dontaudit untrusted_app_29 hal_memtrack_hwservice:hwservice_manager { find } ;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vdc.te:
--------------------------------------------------------------------------------
1 | #============= vdc ==============
2 | allow vdc vdc:capability kill;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_dataservice_app.te:
--------------------------------------------------------------------------------
1 | allow vendor_dataservice_app hal_mwqemadapter_hwservice:hwservice_manager find;
2 | allow vendor_dataservice_app system_app_data_file:dir create_dir_perms;
3 | allow vendor_dataservice_app system_app_data_file:{ file lnk_file } create_file_perms;
4 | allow vendor_dataservice_app user_profile_root_file:dir search;
5 | get_prop(vendor_dataservice_app, vendor_mwqem_prop)
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_dpmd.te:
--------------------------------------------------------------------------------
1 | #============= vendor_dpmd ==============
2 | allow vendor_dpmd diag_device:chr_file { ioctl open read write };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_fm_app.te:
--------------------------------------------------------------------------------
1 | allow vendor_fm_app fm_radio_device:chr_file r_file_perms;
2 | set_prop(vendor_fm_app, ctl_start_prop)
3 | set_prop(vendor_fm_app, ctl_stop_prop)
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init.te:
--------------------------------------------------------------------------------
1 | typeattribute vendor_init data_between_core_and_vendor_violators;
2 |
3 | allow vendor_init {
4 | fpc_data_file
5 | proc_swap
6 | }:dir { create search getattr open read setattr ioctl write add_name remove_name rmdir relabelfrom };
7 |
8 | allow vendor_init vendor_init:capability kill;
9 | allow vendor_init proc_dirty:file w_file_perms;
10 | allow vendor_init proc_dirty_ratio:file w_file_perms;
11 |
12 | allow vendor_init proc_sched:file w_file_perms;
13 |
14 | # Fingerprint
15 | set_prop(vendor_init, gxfpd_prop)
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_per_mgr.te:
--------------------------------------------------------------------------------
1 | allow vendor_per_mgr self:capability net_raw;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_qtelephony.te:
--------------------------------------------------------------------------------
1 | #============= vendor_qtelephony ==============
2 | allow vendor_qtelephony hal_datafactory_hwservice:hwservice_manager find;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vndservice.te:
--------------------------------------------------------------------------------
1 | type gx_fpd_service, vndservice_manager_type;
2 | type power_stats_service, vndservice_manager_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vndservice_contexts:
--------------------------------------------------------------------------------
1 | goodix.fp u:object_r:gx_fpd_service:s0
2 | power.stats-vendor u:object_r:power_stats_service:s0
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vold.te:
--------------------------------------------------------------------------------
1 | allow vold proc_touchpanel:dir r_dir_perms;
2 |
3 | # For setting read_ahead_kb
4 | allow vold sysfs_mmc_host:file create_file_perms;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wcnss_service.te:
--------------------------------------------------------------------------------
1 | typeattribute wcnss_service data_between_core_and_vendor_violators;
2 |
3 | dontaudit wcnss_service serialno_prop:file { read getattr open };
4 | allow wcnss_service wifi_data_file:dir search;
5 | allow wcnss_service property_socket:sock_file write;
6 | allow wcnss_service init:unix_stream_socket connectto;
7 | set_prop(wcnss_service, vendor_set_wlan_prop);
8 | set_prop(wcnss_service, vendor_set_wlan_prop);
9 | get_prop(wcnss_service, wcnss_prop);
10 | get_prop(wcnss_service, vendor_nv_prop);
11 | set_prop(wcnss_service, vendor_wifi_prop);
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/zygote.te:
--------------------------------------------------------------------------------
1 | #============= zygote ==============
2 | allow zygote zygote:capability { kill };
3 | allow zygote self:capability kill;
4 | allow zygote cgroup:file setattr;
5 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2020 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | # Required!
12 | DEVICE=mido
13 | VENDOR=xiaomi
14 |
15 | # Load extract_utils and do some sanity checks
16 | MY_DIR="${BASH_SOURCE%/*}"
17 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
18 |
19 | ANDROID_ROOT="${MY_DIR}/../../.."
20 |
21 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
22 | if [ ! -f "$HELPER" ]; then
23 | echo "Unable to find helper script at $HELPER"
24 | exit 1
25 | fi
26 | source "${HELPER}"
27 |
28 | # Initialize the helper
29 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
30 |
31 | # Warning headers and guards
32 | write_headers
33 |
34 | write_makefiles "${MY_DIR}/proprietary-files.txt" true
35 |
36 | # Finish
37 | write_footers
38 |
--------------------------------------------------------------------------------
/system_ext.prop:
--------------------------------------------------------------------------------
1 | #
2 | # system_ext.prop for mido
3 | #
4 |
5 | # DPM
6 | persist.vendor.dpm.feature=11
7 | persist.vendor.dpm.loglevel=0
8 |
--------------------------------------------------------------------------------
/thermal/Android.bp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2015 The Android Open Source Project
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | cc_library_shared {
16 |
17 | name: "thermal.msm8953",
18 | relative_install_path: "hw",
19 | proprietary: true,
20 |
21 | srcs: ["thermal.c"] + ["thermal_common.c"] + ["thermal-8953.c"],
22 |
23 | header_libs: [
24 | "libutils_headers",
25 | "libhardware_headers",
26 | ],
27 | shared_libs: [
28 | "liblog",
29 | "libcutils",
30 | ],
31 |
32 | cflags: ["-Wno-unused-parameter"],
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/wifi/WCNSS_cfg.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Redmi-note-4x/platform_device_xiaomi_mido/17c48a996d25aecc3f984c0fdc5f9035c702c366/wifi/WCNSS_cfg.dat
--------------------------------------------------------------------------------
/wifi/p2p_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_no_group_iface=1
3 | persistent_reconnect=1
4 | bss_max_count=400
5 |
--------------------------------------------------------------------------------
/wifi/wpa_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_disabled=1
3 | tdls_external_control=1
4 | bss_max_count=400
5 | wowlan_triggers=magic_pkt
6 | interworking=1
7 | hs20=1
8 | auto_interworking=0
9 | bss_no_flush_when_down=1
10 | driver_param=use_p2p_group_interface=1
11 |
--------------------------------------------------------------------------------