Loading core/java/android/app/Notification.java +24 −0 Original line number Diff line number Diff line Loading @@ -456,6 +456,30 @@ public class Notification implements Parcelable // extras keys for other interesting pieces of information public static final String EXTRA_PEOPLE = "android.people"; /** * Notification extra to specify heads up display preference. * @hide */ public static final String EXTRA_AS_HEADS_UP = "headsup"; /** * Value for {@link #EXTRA_AS_HEADS_UP} indicating that heads up display is not appropriate. * @hide */ public static final int HEADS_UP_NEVER = 0; /** * Default value for {@link #EXTRA_AS_HEADS_UP} indicating that heads up display is appropriate. * @hide */ public static final int HEADS_UP_ALLOWED = 1; /** * Value for {@link #EXTRA_AS_HEADS_UP} that advocates for heads up display. * @hide */ public static final int HEADS_UP_REQUESTED = 2; /** * Structure to encapsulate an "action", including title and icon, that can be attached to a Notification. */ Loading packages/SystemUI/res/anim/heads_up_enter.xml +2 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" > <scale <translate android:interpolator="@android:interpolator/overshoot" android:fromXScale="0.7" android:toXScale="1.0" android:fromYScale="0.7" android:toYScale="1.0" android:pivotX="50%" android:pivotY="50%" android:fromYDelta="-50%" android:toYDelta="0" android:duration="@android:integer/config_shortAnimTime" /> <alpha android:interpolator="@android:interpolator/decelerate_quad" Loading packages/SystemUI/res/drawable/heads_up_window_bg.9.png +228 B (500 B) Loading image diff... packages/SystemUI/res/layout/heads_up.xml +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical" android:paddingTop="@*android:dimen/status_bar_height" > <FrameLayout android:layout_height="wrap_content" Loading packages/SystemUI/res/layout/status_bar_notification_row.xml +3 −2 Original line number Diff line number Diff line <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <com.android.systemui.statusbar.ExpandableNotificationRow xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" > Loading Loading @@ -62,4 +63,4 @@ android:padding="2dp" /> </FrameLayout> </com.android.systemui.statusbar.ExpandableNotificationRow> Loading
core/java/android/app/Notification.java +24 −0 Original line number Diff line number Diff line Loading @@ -456,6 +456,30 @@ public class Notification implements Parcelable // extras keys for other interesting pieces of information public static final String EXTRA_PEOPLE = "android.people"; /** * Notification extra to specify heads up display preference. * @hide */ public static final String EXTRA_AS_HEADS_UP = "headsup"; /** * Value for {@link #EXTRA_AS_HEADS_UP} indicating that heads up display is not appropriate. * @hide */ public static final int HEADS_UP_NEVER = 0; /** * Default value for {@link #EXTRA_AS_HEADS_UP} indicating that heads up display is appropriate. * @hide */ public static final int HEADS_UP_ALLOWED = 1; /** * Value for {@link #EXTRA_AS_HEADS_UP} that advocates for heads up display. * @hide */ public static final int HEADS_UP_REQUESTED = 2; /** * Structure to encapsulate an "action", including title and icon, that can be attached to a Notification. */ Loading
packages/SystemUI/res/anim/heads_up_enter.xml +2 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" > <scale <translate android:interpolator="@android:interpolator/overshoot" android:fromXScale="0.7" android:toXScale="1.0" android:fromYScale="0.7" android:toYScale="1.0" android:pivotX="50%" android:pivotY="50%" android:fromYDelta="-50%" android:toYDelta="0" android:duration="@android:integer/config_shortAnimTime" /> <alpha android:interpolator="@android:interpolator/decelerate_quad" Loading
packages/SystemUI/res/layout/heads_up.xml +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical" android:paddingTop="@*android:dimen/status_bar_height" > <FrameLayout android:layout_height="wrap_content" Loading
packages/SystemUI/res/layout/status_bar_notification_row.xml +3 −2 Original line number Diff line number Diff line <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <com.android.systemui.statusbar.ExpandableNotificationRow xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" > Loading Loading @@ -62,4 +63,4 @@ android:padding="2dp" /> </FrameLayout> </com.android.systemui.statusbar.ExpandableNotificationRow>