Thursday, July 18, 2024

Android Builders Weblog: Put on OS hybrid interface: Boosting energy and efficiency

Android Builders Weblog: Put on OS hybrid interface: Boosting energy and efficiency



Posted by Kseniia Shumelchyk, Android Developer Relations Engineer

In collaboration with our {hardware} companions, we’ve continued to prioritize the Put on OS by Google consumer expertise. As such, we’ve made elementary design modifications to the platform and considerably expanded the capabilities of the Put on OS hybrid interface that enhance two key areas: energy and efficiency.

With OnePlus Watch 2, powered with the newest model of Put on OS (Put on OS 4), the dual-chipset structure works with our hybrid interface to get each chips to work higher in tandem. This permits much more use instances to profit from dramatically prolonged battery lifetime of as much as 100 hours of standard use with all functionalities accessible in Good Mode.

Collectively, we’ve created a premium smartwatch expertise that doesn’t compromise the superior characteristic set or battery life. On this submit, we’ll share how one can profit from these modifications when constructing experiences for Put on OS.

On the sting of innovation: redesigned smartwatch structure

Put on OS smartwatches have a dual-chipset structure inclusive of a robust software processor (AP) and extremely low-power co-processor microcontroller unit (MCU). The structure has a robust AP able to dealing with advanced operations en-masse, and is seamlessly coupled with a low energy MCU.

The Put on OS hybrid interface permits clever switching between the MCU or the AP, permitting the AP to be suspended when not wanted to protect battery life. It helps, as an example, obtain extra power-efficient experiences, like sensor information processing on the MCU whereas the AP is asleep. On the identical time, the hybrid interface supplies a seamless transition between these states, holding a wealthy and premium consumer expertise with out jarring transitions between energy modes.

ALT TEXT

Connectivity and notification expertise

To reinforce connectivity-reliant interactions like notifications and telephone calls, OnePlus utilized platform capabilities with the notification API within the hybrid interface, enabling the MCU to course of common notification experiences and cut back the necessity to activate the AP.

For instance, bridged notifications will likely be delivered to the watch with out waking up the high-performance AP. Customers can learn and dismiss these notifications whereas the watch remains to be powered by the MCU. The MCU may deal with wearable-specific actions in notifications, resembling fast replies or distant actions.

What this implies for growth

You’ll be able to leverage current Put on OS APIs to get these optimizations with none added effort – no code modifications required!

Notifications

The notification hybrid interface permits seamless transitions between energy modes to work with the Put on OS notification stack. You get the most effective notification efficiency through the use of the Notification API.

Well being & Health experiences

The Put on OS hybrid interface additionally elevates the health expertise with extra exact exercise monitoring, computerized sports activities recognition and smarter well being information monitoring. All of those will be provided to customers with out compromising battery life.

Beginning with Put on OS 3, builders use Well being Companies on Put on OS to achieve entry to sensor information. The well being hybrid interface works underneath the hood to allow energy optimizations by batching sensor information on the MCU and periodically updating developer apps by means of the Well being Companies API on the AP.

Watch Faces

With Put on OS 4, we launched the Watch Face Format, a declarative XML format to create customizable and power-efficient watch faces.

The platform has created capabilities to implement Watch Face Format rendering on the MCU, so utilizing the brand new format helps future-proof sure watch faces to make the most of rising optimizations in future units for higher battery utilization.

Try the watch face format documentation and design pointers for Put on OS watch faces.

Develop your attain with Put on OS

With the additions to the Put on OS smartwatch ecosystem and expanded gadget capabilities, it is a perfect time to construct experiences for smartwatches that may attain extra customers and profit what you are promoting.

To start creating apps for Put on OS, strive our Compose for Put on OS codelab, and take a look at the documentation and samples.

Learn extra about developer updates in Put on OS 4, and how one can get your apps prepared for the newest Put on OS watches.

We are able to’t wait to see what experiences you’ll construct!



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles