自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
耗電量
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
低功耗感應器
部分感應器類型會定義為低耗電。低功率感應器必須在低功率下運作,並在硬體中完成處理作業。也就是說,這些功能不應要求 SoC 執行。以下是一些低耗電感應器類型:
- 地磁旋轉向量
- 明顯動作
- 計步器
- 步數偵測器
- 傾斜偵測器
在「複合感應器類型摘要」表格中,這些感應器旁會顯示低耗電圖示 (
)。
這些感應器類型的主要優點是電池使用量低,因此無法以高功率實作。這些感應器可能會在 24 小時全天候啟用。建議您不要實作低耗電感應器,而非以高耗電方式實作,因為這會導致電池耗電量大幅增加。
複合型低功耗感應器類型 (例如步數偵測器) 必須在硬體中進行處理。
請參閱 CDD 瞭解具體電源需求,並預期 CTS 中的測試會驗證這些電源需求。
電力測量程序
電力會在電池上測量。若值為毫瓦,我們會使用電池的額定電壓,也就是說,4 伏特的 1 毫安電流必須計為 4 毫瓦。
系統單晶片處於休眠狀態時,系統會測量電力,並在系統單晶片處於休眠狀態的幾秒內計算平均值,以便考量感應器晶片的電力週期性尖峰。
對於一次性喚醒感應器,系統會在感應器未觸發 (因此不會喚醒 SoC) 時測量電力。同樣地,對於其他感應器,系統會在感應器資料儲存在硬體 FIFO 時測量功率,因此不會喚醒 SoC。
電力通常會以與未啟動感應器時的差異來衡量。啟用多個感應器時,電源差異不得超過每個已啟用感應器的電源總和。如果加速計耗電量為 0.5mA,步數偵測器耗電量為 0.5mA,那麼同時啟用這兩項功能時,耗電量必須低於 0.5+0.5=1mA。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Power consumption\n\nLow-power sensors\n-----------------\n\nSome sensor types are defined as being low power. Low-power sensors must\nfunction at low power, with their processing done in the hardware. This means\nthey should not require the SoC to be running. Here are some low-power sensor\ntypes:\n\n- Geomagnetic rotation vector\n- Significant motion\n- Step counter\n- Step detector\n- Tilt detector\n\nThey are accompanied by a low-power () icon in the [Composite sensor type\nsummary](/docs/core/interaction/sensors/sensor-types#composite_sensor_types) table.\n\nThese sensor types cannot be implemented at high power as their primary benefit\nis low battery use. These sensors are expected to be activated for very long\nperiods, possibly 24/7. It is better to not implement a low-power sensor at all\nrather than implement it as high power, as it would cause dramatic battery\ndrain.\n\nComposite low-power sensor types, such as the step detector, must have their\nprocessing conducted in the hardware.\n\nSee the CDD for specific power requirements, and expect tests in CTS to\nverify those power requirements.\n\nPower measurement process\n-------------------------\n\nThe power is measured at the battery. For values in milliWatts, we use the\nnominal voltage of the battery, meaning a 1mA current at 4V must be counted as\n4mW.\n\nThe power is measured when the SoC is asleep, and averaged over a few seconds\nof the SoC being asleep, so that periodic spikes in power from the sensor chips\nare taken into account.\n\nFor one-shot wake-up sensors, the power is measured while the sensor doesn't\ntrigger (so it doesn't wake the SoC up). Similarly, for other sensors, the\npower is measured while the sensor data is stored in the hardware FIFO, so the\nSoC is not woken up.\n\nThe power normally is measured as a delta with when no sensor is activated.\nWhen several sensors are activated, the delta in power must be no greater than\nthe sum of the power of each activated sensor. If an accelerometer consumes\n0.5mA and a step detector consumes 0.5mA, then activating both at the same time\nmust consume less than 0.5+0.5=1mA."]]