diff --git a/core/java/android/app/INotificationManager.aidl b/core/java/android/app/INotificationManager.aidl index 9f933ca66c21..f18c18a651b6 100644 --- a/core/java/android/app/INotificationManager.aidl +++ b/core/java/android/app/INotificationManager.aidl @@ -48,4 +48,7 @@ interface INotificationManager void cancelAllNotificationsFromListener(in INotificationListener token); StatusBarNotification[] getActiveNotificationsFromListener(in INotificationListener token); -} \ No newline at end of file + + void setHoverBlacklistStatus(String pkg, boolean status); + boolean isPackageAllowedForHover(String pkg); +} diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 16f0216904ad..6bc958e4a606 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2006 The Android Open Source Project + * This code has been modified. Portions copyright (C) 2014, ParanoidAndroid Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2792,6 +2793,32 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean */ public static final String POINTER_SPEED = "pointer_speed"; + /** + * Whether to show the battery bar + * @hide + */ + public static final String STATUSBAR_BATTERY_BAR = "statusbar_battery_bar"; + + /** + * @hide + */ + public static final String STATUSBAR_BATTERY_BAR_COLOR = "statusbar_battery_bar_color"; + + /** + * @hide + */ + public static final String STATUSBAR_BATTERY_BAR_THICKNESS = "statusbar_battery_bar_thickness"; + + /** + * @hide + */ + public static final String STATUSBAR_BATTERY_BAR_STYLE = "statusbar_battery_bar_style"; + + /** + * @hide + */ + public static final String STATUSBAR_BATTERY_BAR_ANIMATE = "statusbar_battery_bar_animate"; + /** * I am the lolrus. *

@@ -3927,6 +3954,14 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean */ public static final String RECENT_PANEL_SHOW_TOPMOST = "recent_panel_show_topmost"; + /** + * Hover, default is 0 (off). + * 0 = disabled + * 1 = enabled + * @hide + */ + public static final String HOVER_STATE = "hover_state"; + /** * Settings to backup. This is here so that it's in the same place as the settings * keys and easy to update. @@ -6120,6 +6155,9 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val /** @hide */ public static final String IMMERSIVE_MODE_CONFIRMATIONS = "immersive_mode_confirmations"; + /** @hide */ + public static final String HOVER_FIRST_TIME = "hover_first_time"; + /** * This is the query URI for finding a print service to install. * diff --git a/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_normal.png b/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_normal.png new file mode 100644 index 000000000000..209d5d7ce5e7 Binary files /dev/null and b/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_normal.png differ diff --git a/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_pressed.png b/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_pressed.png new file mode 100644 index 000000000000..668e6bcf14f3 Binary files /dev/null and b/packages/SystemUI/res/drawable-hdpi/ic_notify_hover_pressed.png differ diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_normal.png b/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_normal.png new file mode 100644 index 000000000000..f67409d101d2 Binary files /dev/null and b/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_normal.png differ diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_pressed.png b/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_pressed.png new file mode 100644 index 000000000000..122bd588ba11 Binary files /dev/null and b/packages/SystemUI/res/drawable-xhdpi/ic_notify_hover_pressed.png differ diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_normal.png b/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_normal.png new file mode 100644 index 000000000000..8800220cef14 Binary files /dev/null and b/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_normal.png differ diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_pressed.png b/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_pressed.png new file mode 100644 index 000000000000..06b013889359 Binary files /dev/null and b/packages/SystemUI/res/drawable-xxhdpi/ic_notify_hover_pressed.png differ diff --git a/packages/SystemUI/res/layout/hover_cling.xml b/packages/SystemUI/res/layout/hover_cling.xml new file mode 100644 index 000000000000..23d62e589177 --- /dev/null +++ b/packages/SystemUI/res/layout/hover_cling.xml @@ -0,0 +1,67 @@ + + + + + + + + + + +