diff options
author | Bryce Lee <brycelee@google.com> | 2015-09-25 16:43:01 -0700 |
---|---|---|
committer | Bryce Lee <brycelee@google.com> | 2015-09-25 16:43:01 -0700 |
commit | bc58f59da6226c6f1d240c95d566186f679fc310 (patch) | |
tree | 778b861c7bf3544cdca8b07baec17bd3f46f5d7a /core/java/android/content | |
parent | 184440cea399d2332b5dc138a9e8a47e9cde3398 (diff) | |
download | frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.zip frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.tar.gz frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.tar.bz2 |
Add ThermalObserver system service to capture thermal state uevents.
Bug: 21445745
Change-Id: I980d60b66ca51942a1fd62502d6cf1f09208fc3a
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/Intent.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 12c2632..6bbee56 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -3022,6 +3022,39 @@ public class Intent implements Parcelable, Cloneable { public static final String EXTRA_PROCESS_TEXT_READONLY = "android.intent.extra.PROCESS_TEXT_READONLY"; + /** + * Broadcast action: reports when a new thermal event has been reached. When the device + * is reaching its maximum temperatue, the thermal level reported + * {@hide} + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_THERMAL_EVENT = "android.intent.action.THERMAL_EVENT"; + + /** {@hide} */ + public static final String EXTRA_THERMAL_STATE = "android.intent.extra.THERMAL_STATE"; + + /** + * Thermal state when the device is normal. This state is sent in the + * {@link ACTION_THERMAL_EVENT} broadcast as {@link EXTRA_THERMAL_STATE}. + * {@hide} + */ + public static final int EXTRA_THERMAL_STATE_NORMAL = 0; + + /** + * Thermal state where the device is approaching its maximum threshold. This state is sent in + * the {@link ACTION_THERMAL_EVENT} broadcast as {@link EXTRA_THERMAL_STATE}. + * {@hide} + */ + public static final int EXTRA_THERMAL_STATE_WARNING = 1; + + /** + * Thermal state where the device has reached its maximum threshold. This state is sent in the + * {@link ACTION_THERMAL_EVENT} broadcast as {@link EXTRA_THERMAL_STATE}. + * {@hide} + */ + public static final int EXTRA_THERMAL_STATE_EXCEEDED = 2; + + // --------------------------------------------------------------------- // --------------------------------------------------------------------- // Standard intent categories (see addCategory()). |