Android L version AAL new schema

Source: Internet
Author: User

[DESCRIPTION] compared to the previous KK version, there have been some changes in the AAL architecture on the L version. Remove the previously used MTK LABC on the KK platform, using the Android native auto-backlight feature. Only two functions of CABC and Dre are kept inside the aalservice.   [solution]l version of the AAL schema as shown, you can refer to the schema diagram to read the code.   There are a few more important places to be aware of. (1) Since the automatic backlight function is used by the Android native Labc function, so LABC related to the customized parts are follow the Android native walk. The first is that the custom config file is customized. The default table value is included in CONFIG. codebase inside the MTK defaults release. As shown, the customer can be Turing and modified according to the requirements, generally do not move it. The path is alps/frameworks/base/core/res/res/values/config.xml  second is, labc from light to dark speed, labc from dark to light speed adjustment, modify two variables on it, as shown in:   (2) Finish labc, and then look at the CABC and Dre functions in Aalservice. Compared with KK, the custom part is still in cust_aal.cpp, but the path of the file has changed, some variables in the file have changed. Path in alps/vendor/mediatek/proprietary/custom/$Project/hal/aal/cust_aal.cpp because the MTK labc to phased out, so with MTK LABC related variables are also phased out. The DRE function adds a variable, lowblreadabilitylevel. CABC function The corresponding custom variables have not changed. In fact, the default value of MTK is good. Added a variable, initfunction, which is said that the AAL starts by default which features if INITFUNCTION=6,CABC and Dre are turned on. If initfunction=2, only the CABC is open. If initfunction=4, only the Dre is open. If both INITFUNCTION=0,CABC and Dre are not turned on.    (3) There's one more place to be aware of, Lightsensor's driver code. Because the DRE function needs to obtain some data of the ambient light from the Lightsensor drive. So you needTo implement an IOCTL interface in the Lightsensor driver. For example, such as Stk3x1x's lightsensor, make sure that the corresponding ALS value can be obtained by Alsps_get_als_data command in its stk3x1x_unlocked_ioctl function.    

Android L version aal new schema

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.