History log of /frameworks/base/core/java/android/os/health/SystemHealthManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d86b8fea43ebb6e5c31691b44d8ceb0d8d3c9072 03-Jun-2017 Jeff Sharkey <jsharkey@android.com> Annotate @SystemApi with required permissions.

Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
/frameworks/base/core/java/android/os/health/SystemHealthManager.java
49ca529a850e60482ddcc8c0762105b4aa10f35f 10-May-2016 Jeff Sharkey <jsharkey@android.com> Avoid caching services with missing binders.

When fetching system services early during boot, if the underlying
binder interface hasn't been published yet, we end up caching a
manager class that is broken for the remainder of the process
lifetime, and innocent downstream callers end up using the broken
cached manager.

Fix this by using an explicit exception to quickly abort manager
creation when the underlying binder is missing. The exception is
only used to skip the remainder of the manager creation, and it
doesn't actually crash the process.

Bug: 28634953
Change-Id: I0cb62261e6d6833660704b93a11185aa11a2ac97
/frameworks/base/core/java/android/os/health/SystemHealthManager.java
22cfef381d437bd26d23909f733ddc537a44530f 18-May-2016 Joe Onorato <joeo@google.com> @hide SystemHealthManager.from

Bug: 28820055
Change-Id: Idd434c196428178e2c66facea36a7e010246611c
/frameworks/base/core/java/android/os/health/SystemHealthManager.java
168638c5949fcff8d28aa4d4dd918cbeaf95f301 09-May-2016 Joe Onorato <joeo@google.com> Fix a couple bad links in the javadoc for android.os.health.

Bug: 28295754
Change-Id: I3b21e204bec626e4d1c6fb8f07580c2854e364eb
/frameworks/base/core/java/android/os/health/SystemHealthManager.java
181cada18a9feab90627ab27070bc00c29ec337a 09-May-2016 Joe Onorato <joeo@google.com> Flesh out the docs for the android.os.health package.

Bug: 28295754
Change-Id: I04301fbdbfb0708172adb4fd4b4a3658d5ea14eb
/frameworks/base/core/java/android/os/health/SystemHealthManager.java
713fec85b8612256211f09c62b8958a99fe5b9db 04-Mar-2016 Joe Onorato <joeo@google.com> Add an API for apps to get their System Health / Battery Stats data.

Change-Id: Ib27e1be469b826f6d83d73ce6024102bbdb1d47a
/frameworks/base/core/java/android/os/health/SystemHealthManager.java