summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
Commit message (Collapse)AuthorAgeFilesLines
* SystemUI: Do not show hardware-absent features in tablet settingsPaul Kocialkowski2013-04-291-0/+10
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Fix 5761: Power widget bar widens if >6 toggle buttons enabledJorge Ruesga2012-07-291-6/+11
| | | | | | | | | | | | If more that 6 button widgets are enabled in the power widget, and hide scrollbar is active, the space of the scrollbars is not recovered This change make 2 modifications: - Recreate the button layout, when a EXPANDED_HIDE_SCROLLBAR is received, instead of only update the scrollview. This remove the scrollview if it is not needed. - Move the setPadding of the buttonLayout to updateScrollbar to determine the correct botton padding Change-Id: Ib8f149d9d220391ea0606da2252df4ace8cd7611
* Tablet powerwidget improvements (1/2)rob432012-06-301-67/+68
| | | | | | | | Removes a lot of unecessary code, and does not limit toggles by 6 but dinamically adds the views to layout patchset 2: remove tab Change-Id: Id125605791d2de353e7466c4dfe135c32fb80df6
* Port power widget improvements from CM7 to CM9.Danny Baumann2012-06-1524-656/+645
| | | | | | | | | This is a squash of the following change IDs: I42b4ad02c4eb8b57a2f4cf51a31148c4b0546b81 I6f619740659cfedec3a3c9517fb55275f601d792 Iaee471b29b306e9ebcc6a81799f7e36872951002 Change-Id: I4e40d8e27b9bb11367e30223ffb8024985476e74
* Merge "Status Bar Brightness Control Padding" into icsSteve Kondik2012-06-141-1/+12
|\
| * Status Bar Brightness Control Paddingnebkat2012-06-131-1/+12
| | | | | | | | | | | | | | Add a padding to the brightness control on both sides to make it easier to reach the min/max brightness. Change-Id: Ia42444321f82aaac97c0c442796dec551b1bcd65
* | Fix long click intent for Wimax notification pulldown / power widgetRobert Burns2012-06-101-1/+2
|/ | | | Change-Id: Ibc2ea21b136aa390a371fa997c07c7dae7d83676
* Frameworks: tablet powerwidget management (1/2)Jesus David2012-06-106-42/+495
| | | | | | | | | | | | | | | | Settings: http://review.cyanogenmod.com/#/c/16842/ Adds basic powerwidget management for tablet devices Allows to setup up to 6 different toggles, or remove all of them patchset 2: remove whitespaces and tabs patchset 3: remove some other tabs left patchset 4: some other tabs were hidden patchset 5: *changed strings for consistency with phone powerwidget *added license header on some files patchset 6: remove WIP tag Change-Id: I2e643401aaac0146857abe8c2d2dbc652d28e666
* Merge "Hide the Automatic brightness button on tablets when there's no ↵Steve Kondik2012-06-102-2/+15
|\ | | | | | | support" into ics
| * Hide the Automatic brightness button on tablets when there's no supportEmilio López2012-06-052-2/+15
| | | | | | | | Change-Id: Ib715a4703af6d91e1496bbfa2fe1aa31c1a1cbba
* | Merge "Status bar: Make brightness control more responsive" into icsRicardo Cerqueira2012-06-101-2/+1
|\ \
| * | Status bar: Make brightness control more responsivePhil Tunstall2012-06-081-2/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | When touching the status bar, screen brightness can be changed after a counter reaches a threshold. Previously any y-axis movement above a certain velocity would reset the counter, making it very difficult for the user to smoothly adjust brightness. With this patch such movements will simply cause the counter not to increment. Will need testing to determine whether this makes it too easy to adjust brightness by mistake. Change-Id: I3dc9185f0240b58b59dd0b641f96f8cf8e97ed9f
* | Merge "SystemUI: disable dock_battery_text if no dock_battery" into icsSteve Kondik2012-06-091-0/+2
|\ \
| * | SystemUI: disable dock_battery_text if no dock_batteryJames Sullins2012-06-041-0/+2
| |/ | | | | | | Change-Id: I984f3a161198ab5936520b4a6efc29f11baca25e
* | systemui: Add option to enable notification countsSteve Kondik2012-06-082-6/+54
|/ | | | | | * The code is already there, this adds a runtime toggle for it. Change-Id: I093fae9b0e2e263c11a41f07c9669c18afda978d
* Merge "Enable Dock Battery Percentage" into icsSteve Kondik2012-06-032-1/+28
|\
| * Enable Dock Battery PercentageScott2012-05-292-1/+28
| | | | | | | | | | | | Displays the dock battery percentage while docked, according to the users system settings. Change-Id: I68b3739e2ccbaf0f4a1b64ec4aca27466ed4c11a
* | Merge "SystemUI : Dismiss keyguard on powerwidget longpress" into icsSteve Kondik2012-05-281-2/+6
|\ \
| * | SystemUI : Dismiss keyguard on powerwidget longpressDanesh M2012-05-221-2/+6
| |/ | | | | | | | | | | Dismiss the keyguard on longpress of toggle similar to settings button Change-Id: I45b64f3f3ac822f5137a2db263bf2e9c3e8a1a45
* | NavigationBar : RecentButton fix after theme changeDanesh M2012-05-251-1/+1
|/ | | | | | | Recent button stops working after theme change since the listeners are not set in time for them to be invoked. This patchset addresses that. Change-Id: If69328c859a86bd3068a48994918c5d9f990d154
* NavigationBar : CustomizationDanesh Mondegarian2012-05-174-36/+662
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows user to customize navigation bar. Features : - Choose from 1-6 # of buttons - Re-arrange / assign buttons Patchset 1 : Initial commit Patchset 2 : Resize side drawables to avoid requestRelayout() [HACK] Patchset 3 : Added extras to intent to explicity change state Patchset 4 : New drawables (David Tonder) Fix button animation Patchset 5 : Switch button layout to stock dimensions Adjust padding according to new layout Patchset 6 : Change "Blank" to "Empty" where applicable Patchset 7 : Lowercase key names (Will require a wipe of the database entry) Fix issue where during edit mode if screen turns off, layout gets distorted on restore Add "save" extra to intent to clarify whether to save the layout or not Patchset 8 : Rebase for 4.0.4 Patchset 9 : Fix padding / lowLights Patchset 10 : Minor fixes Patchset 11 : Fix issue with losing edit mode after theme changes : Fix whitespace issue : Fix low light gravity in landscape : Add regular menu button option (icons by DvTonder) : Localize resources : Fix padding issue Patchset 12 : Hide searchbutton like others on lockscreen Patchset 13 : Fix lowLight padding Patchset 14 : Code cleanup Patchset 15 : Minor edit Change-Id: If24a4413f99b8b4661ffd7ad9565c005fa22d7ba
* SystemUI: calculate height for tablet status_bar_settings_viewJames Sullins2012-05-101-0/+14
| | | | | | | | | | Use the minimum height required for no scrolling. If that height will exceed the device's display height, reduce it accordingly. This removes the need for hardcoded height in resource file and the use of overlays to adjust it. Change-Id: I0a85f19c2619dedd70a3e686982e0c483f9e3d32
* SystemUI: Recreate navigation bar when rebuilding the status barRicardo Cerqueira2012-05-081-0/+4
| | | | | | | | Ensure that all listeners (such as orientation change...) get properly linked in the newly generated view, to avoid errors due to non-attached views after applying a theme Change-Id: I46992694844944564739ac12a8da43b6348658c9
* PowerWidget: Use resources for the indicator color maskRicardo Cerqueira2012-05-081-2/+1
| | | | | | | Replace direct usage of the color hex by the corresponding named Holo resource, to ease redirection/overload by themes. Change-Id: I3ac2018f54e5dd6c238e2e25bcf96caa1017cc7c
* Merge branch 'themes-4.0' into 'ics'Ricardo Cerqueira2012-05-0510-19/+200
|\ | | | | | | Change-Id: Idc363f8140be2d252bee2aeba46c944032fb0ae9
| * Merge remote-tracking branch 'tmo/themes-2.3.1_r1' into themes-4.0Ricardo Cerqueira2012-05-0410-19/+200
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adapt to ICS API changes * Remove part of idmap due to conflicts * Restructure statusbar code * Fix issues with PowerWidget on phones to avoid the CM7 hackish restart of SystemUI * Add reinflation to properly redo status icons on tablets Conflicts: core/java/android/app/ActivityManager.java core/java/android/app/ActivityThread.java core/java/android/app/ContextImpl.java core/java/android/content/pm/ApplicationInfo.java core/java/android/content/pm/IPackageManager.aidl core/java/android/content/pm/PackageParser.java core/java/android/content/res/AssetManager.java core/java/android/content/res/CompatibilityInfo.java core/java/android/content/res/Configuration.java core/java/android/content/res/Resources.java core/java/com/android/internal/os/ZygoteInit.java core/jni/AndroidRuntime.cpp core/jni/android_util_AssetManager.cpp core/res/AndroidManifest.xml data/etc/platform.xml include/utils/AssetManager.h include/utils/ResourceTypes.h libs/utils/Android.mk libs/utils/AssetManager.cpp libs/utils/ResourceTypes.cpp media/java/android/media/RingtoneManager.java packages/SystemUI/res/layout/status_bar.xml packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java packages/SystemUI/src/com/android/systemui/statusbar/StatusBarView.java packages/SystemUI/src/com/android/systemui/statusbar/TrackingView.java policy/src/com/android/internal/policy/impl/PhoneWindowManager.java services/java/com/android/server/PackageManagerService.java services/java/com/android/server/SystemServer.java services/java/com/android/server/am/ActivityManagerService.java test-runner/src/android/test/mock/MockPackageManager.java Change-Id: Icabcd2c7b07dcbf174789b34f960360b87d7f27a
| | * Replace status bar theme change hack with a proper reinflation approach.Josh Guilfoyle2011-03-175-98/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, when the theme changes we reinflate all status bar views and reattach them. This is an approximate simulation of the normal Activity onDestroy/onCreate cycle that the system goes through when a config change (in our case, a theme change) occurs. Also reverts "Hack to update status bar service drawables on theme change.", a478f39ef58713a8c64823988b952f1d596123f1
| | * Hack to update status bar service drawables on theme change.Josh Guilfoyle2011-01-262-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | The status bar UI is running in a service which doesn't have the typical activity lifecycle to trigger a View reinflation that is normally used to apply a theme. Manual reinflation is tricky for the status bar because of hacks in the PhoneWindowManager which attach to the initial status bar view added to it (it apparently cannot be removed in a stable fashion). More research is needed to solve this issue properly.
* | | Adjust statusbar PowerWidget indicator color to match ICS blueblunden2012-05-041-1/+1
|/ / | | | | | | | | | | | | | | The current color of the indicator when active doesn't match the blue line below it due to the resulting alpha value. This also makes the on/off status more noticeable. Change-Id: I45923e0cadf60950f8c7566178b97bb8f0e99fc5
* | Telephony: Add getLteOnGsmMode() methodRicardo Cerqueira2012-04-171-4/+8
| | | | | | | | | | | | | | | | | | | | Same functionality as the existing getLteOnCdmaMode, but for GSM LTE devices. Enable with the telephony.lteOnGsmDevice system property Additionally, support GSM LTE in the SystemUI LTE power widget Change-Id: Ibfb47ca608e51393b99d3308e0a6c66050b3f32e
* | Merge "Frameworks/SystemUI: Hide expanded dialog when screen is off" into icsSteve Kondik2012-04-161-0/+11
|\ \
| * | Frameworks/SystemUI: Hide expanded dialog when screen is offSiddartha Pothapragada2012-03-241-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hide the expanded dialog while screen is off. Otherwise it causes continuous buffer updates to SurfaceTexture even when SCREEN is turned off and while In-Call causing a spike in power consumtion. This fix ensures that the power consumption is kept to a minimum in such a scenario. CRs-Fixed: 339815 Change-Id: Ib9154528d4f88ba12ca234be7f929a61ed098be7
* | | Merge "Show dock battery level if available" into icsSteve Kondik2012-04-152-0/+150
|\ \ \
| * | | Show dock battery level if availableDalingrin2012-04-122-0/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patchset 1: Initial commit without icons patchset 2: Add icons patchset 3: Remove nested layout Change-Id: Ie853087999d929579ececf3f6b3b01ced32dff85
* | | | Disable UMS splash when phone in locked stateSimon Davie2012-04-141-1/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently devices which use UMS will display the UMS toggle screen over the lockscreen. This would allow unauthorised users to access the contents of the SD card, when plugged into USB, without first unlocking the device. Disable the UMS splash if the phone is in a locked state. Change-Id: Ic18462758344c327e70e6a70d674f08d8ad51cb0
* | | SystemUI: Fix data activity overlay not being removed when data is disabledPawit Pornkitprasan2012-04-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If mobile data connection is disabled while there is active data activity, the data activity overlay will not be removed and will be stuck there. This patch fixes that. (Previously merged 5c39b1ce3897d166d9c4578106e10a17037b0213 but it was accidentally removed in 874c5d8cf02054037d137fc38b32b3924e312e8b due to merge error.) Change-Id: I0eda652a7533fed8db58d7dca2ba60b0b28a4b81
* | | frameworks/base: SystemUI: fix merge error in NetworkControllerEthan Chen2012-03-291-2/+0
| | | | | | | | | | | | | | | | | | Remove dangling else statement. Change-Id: I40e9facc6d81e70abb7d179c71765520437b89bf
* | | Merge branch 'ics-mr1-release' of ↵Steve Kondik2012-03-295-74/+231
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into aosp Conflicts: core/res/res/values-de/strings.xml core/res/res/values-el/strings.xml core/res/res/values-nl/strings.xml core/res/res/values-pt/strings.xml core/res/res/values-ru/strings.xml core/res/res/values-tr/strings.xml core/res/res/values-zh-rCN/strings.xml core/res/res/values/config.xml data/fonts/Roboto-Bold.ttf data/fonts/Roboto-BoldItalic.ttf data/fonts/Roboto-Italic.ttf data/fonts/Roboto-Regular.ttf packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java policy/src/com/android/internal/policy/impl/PhoneWindowManager.java Change-Id: I376757e52555fe45860f404da5fd2293ea45ddce
| * | Only use CDMA rssi for config_alwaysUseCdmaRssi.John Wang2012-02-131-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | If config_alwaysUseCdmaRssi is true, the RSSI signal bar only shows the CDMA value, no matter it connects to EVDO or WiMax . bug:5941743 Change-Id: I4187571898a9fb47162e1ccf0cc4c59c3136ae0b
| * | Suppress mobile-out-of-service label if wifi connected.Daniel Sandler2012-01-261-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Carrier name is shown if - in service and connected to mobile data - in service and connected to wifi Carrier name is blanked if out of service and connected to wifi. "No internet connection" is shown if out of service without any other route. Bug: 5903914 Change-Id: I59d4d0c90e4153d73c38f7f0e150becf7e021a5b
| * | Merge "Stop showing "No internet connection" when there is one." into ics-mr1Daniel Sandler2012-01-241-27/+47
| |\ \
| | * | Stop showing "No internet connection" when there is one.Daniel Sandler2012-01-241-27/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, even though the mobile data network isn't routing packets (and therefore is not an internet connection), we want to show the PLMN anyway: [MOBILE RSSI] Carrier [WIFI RSSI] WiFi SSID This change also improves the following cases: - Combines "No internet connection" from wifi and mobile into one single string in airplane mode: [AIRPLANE] No internet connection. - Removes "No internet connection" from the mobile string when wifi is on in airplane mode, making a nice compact display in this case: [AIRPLANE] [WIFI RSSI] WiFi SSID Bug: 5903914 Change-Id: I477821d2c5e9922252dd6bcb3ed494c8c57d99b0
| * | | Detect and repair invalid layouts in the navigation bar.Daniel Sandler2012-01-231-0/+65
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that something (probably layout transitions) occasionally leaves the navigation bar layout in a weird state such that most of the buttons are offscreen. For example, the portrait nav bar might have buttons with widths matching the nav bar's old width from landscape; the clickable regions will therefore be far off the right edge of the display. The navigation bar now looks for this situation when the size of the view changes and corrects for it. Bug: 5549288 Change-Id: I8464ac9fd64cb64ec18baf51478dd0f6564a2284
| * | Hide mobile RSSI on devices without mobile data.Daniel Sandler2012-01-201-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes some minor layout glitches along that row of icons (Bluetooth vertical alignment & spacing, battery text width, inter-icon padding). Bug: 5895226 Change-Id: I303c2899bf21ddb7e28914d8fb36efd7090ac5e2
| * | Merge "New out-of-service RSSI." into ics-mr1Justin Ho2012-01-201-4/+4
| |\ \
| | * | New out-of-service RSSI.Daniel Sandler2012-01-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This creates (well, restores, since we had this until Honeycomb) a user-visible state for "no service" that is distinguishable from "very very weak service" (less than one bar). Bug: 5775939 Change-Id: Idd08b1a9411d5d94e4d7a97fa7f3ffd92b8113a6
| * | | Always show appropriate mobile service label.Kazuhiro Ondo2012-01-191-0/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Fix for Carrier Verification case failure for not showing "no internet connection" text on expanded status bar while mobile data connection is not CONNECTED state. Bug:5884774 Change-Id: I433d5de626b9b0cff20d192cb6aae214f3e014b3
| * | Clean up wifi/mobile indicators in the expanded panel.Daniel Sandler2012-01-113-36/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have two separate RSSI icons, one for wifi and one for mobile data, as originally proposed in bug 5544770. Each has an accompanying label showing the appropriate network description string (PLMN or SSID or "No internet connection"); these will be truncated as necessary to avoid clobbering other UI elements in the panel. Bug: 5543495 Bug: 5621224 Change-Id: I8fc322f8471fc94000e7230de359d3f1fe561b1e
| * | Fixing crash when taking screenshot over secure window.Winson Chung2012-01-041-7/+8
| | | | | | | | | | | | Change-Id: If3d4e458030e37aae3310b23dcad2ff5fe29fa73
* | | Merge "Fix status bar brightness control key" into icsSteve Kondik2012-03-231-2/+2
|\ \ \