This project contains the AOSP reference implementation of the Context Hub Runtime Environment (CHRE), which is Android’s platform for developing always-on applications, called nanoapps. CHRE runs in a vendor-specific processor that is independent of the main applications processor that runs Android. This enables CHRE and its nanoapps to be more power-efficient for use cases that require frequent background processing of contextual data, like sensor inputs. Nanoapps are written to the CHRE API, which is standardized across all platforms, enabling them to be code-compatible across different devices.
The CHRE reference implementation (“CHRE framework”) is designed to be portable across hardware and software platforms. While Android does not require a particular implementation (only compliance to the contracts given in the CHRE API) using the reference implementation helps to reduce the work needed to support CHRE, while also ensuring more consistent behavior for scenarios that can be difficult to enforce via testing.
Use the navigation bar at the top and/or the links below to move through the documentation. Raw files can also be found in the /doc
folder.
The CHRE API and PAL API are also extensively documented using Doxygen syntax. Run doxygen
in the same folder as Doxyfile
to generate a browseable HTML version of the documentation.
This repository (system/chre) contains an assortment of code, structured as follows:
apps/
: Public nanoapp source code, including sample nanoapps intended to showcase how to use the CHRE APIs, and test nanoapps used to validate API functionalitybuild/
: Files related to CHRE’s Makefile-based build system, which supports building the CHRE framework and nanoapps using a configurable toolchainchpp/
: Context Hub Peripheral Protocol (CHPP) source code - see the nested README and associated documentation for detailschre_api/
: Contains the official definition of the CHRE API (current and past versions), which all CHRE implementations must adhere tocore/
: Common CHRE framework code, which is applicable to every platform (contrast to platform/
)doc/
: Contains documentation for the CHRE framework and associated topicsexternal/
: Code developed primarily outside of AOSP which (can be) leveraged by CHRE, and is potentially customized for CHRE (e.g. flatbuffers)host/
: Reference code which supports the CHRE implementation, but runs on the applications processor (“host”), for example the Context Hub HALjava/
: Java test code used in conjunction with test nanoappspal/
: The binary-stable Platform Abstraction Layer (PAL) C API definitions and tests (these PALs may optionally be used by the platform implementation)platform/
: Code related to the implementation of CHRE on a particular platform/device (compare to core/
), divided into sub-folders as follows:platform/include
: The interface between common code in core/
and platform-specific code implemented elsewhere in platform/
platform/shared
: Code that may apply to multiple platforms, but is not necessarily applicable to all platforms (as in core/
). For example, multiple platforms may choose to use the binary-stable PAL interface - this folder contains source files translating from the C++ platform abstractions to the C PAL APIs.platform/<platform_name>
: Code specific to the platform indicated by platform_name
util/
: Utility code that is not platform-specific, but not part of the core framework implementation. Includes code that is usable by nanoapps.variant/
: Code/configuration that is specific to a particular device (more detail on variants can be found below). For example, multiple generations of a given chip may use the same platform code, but the code may be configured on a per-device basis in the build via variant.mk
.Code related to CHRE also exists in other parts of the Android tree, including:
hardware/interfaces/contexthub/
: The Context Hub HAL definitionframeworks/base/core/java/android/hardware/location/ContextHub*.java
: The APIs used by privileged apps to interact with CHRE and nanoappsframeworks/base/services/core/java/com/android/server/location/ContextHub*.java
: The Context Hub service implementation in system serverIf you’re unable to find the answers you’re looking for in CHRE documentation or are looking for specific guidance for your platform, device, or nanoapp, please reach out to the CHRE team via your TAM or through the Google Issue Tracker.
经常犯困是什么原因 | 甄是什么意思 | 吃饱了胃胀是什么原因 | 秋字五行属什么 | 怀孕第一个月有什么反应 |
女真族现在是什么族 | 飓风什么意思 | 微信什么时候开始的 | 梦见黑棺材是什么征兆 | 井木犴是什么动物 |
总是拉稀是什么原因 | 嘱托是什么意思 | 龙胆草长什么样 | 高筋小麦粉适合做什么 | 女生胸部长什么样 |
什么是脑梗塞 | 天五行属性是什么 | 复合面料是什么面料 | 装修属于什么行业 | 政治面貌是什么意思 |
bgm网络语什么意思hcv8jop3ns5r.cn | 软骨病是什么病hcv9jop6ns3r.cn | 三点水的字和什么有关jingluanji.com | 什么原因导致卵巢早衰creativexi.com | 仰卧起坐有什么好处hcv9jop0ns0r.cn |
梦到门牙掉了是什么意思hcv8jop5ns7r.cn | 宣府是现在的什么地方hcv9jop4ns4r.cn | 硫酸亚铁是什么颜色hcv9jop0ns6r.cn | 副脾结节是什么意思hcv9jop7ns3r.cn | 心血管狭窄吃什么药hcv9jop6ns0r.cn |
为什么会打呼噜hcv8jop1ns6r.cn | 梦到乌龟是什么意思hcv9jop3ns3r.cn | 心跳过缓吃什么药hcv9jop5ns6r.cn | 燕麦色是什么颜色dayuxmw.com | 什么是纤维hcv8jop9ns0r.cn |
o2o模式是什么意思hcv9jop3ns3r.cn | tap什么意思hcv8jop0ns4r.cn | crp高是什么意思hcv8jop3ns1r.cn | 言尽于此是什么意思hcv8jop9ns6r.cn | 水压低用什么花洒hcv9jop1ns4r.cn |