summaryrefslogtreecommitdiffstats
path: root/packages
Commit message (Collapse)AuthorAgeFilesLines
* Forward port battery icon optionsDanesh M2015-10-2813-395/+1079
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squash of following patches from cm-12.1 : Battery text mode (1/2) PS2: Make battery level more fit current solution PS3: Fix displaing battery level inside the icon PS6: Show battery level in status bar header when charging and percentage mode set to inside icon (it's replaced by charging icon) Change-Id: I537c99827e78c796b4980ec7751e5f9b58a88251 Signed-off-by: kecinzer <kecinzer@gmail.com> Forward port battery icon options [1/2] Bring forward the various battery icon options. Portrait, Landscape, Circle, Text. Still retains new options for where to display battery percentage text. Change-Id: Icfc14d989eebde9014538291c24aa76d328df234 Cleanup battery style code * Cleanup commented out code * Fix landscape battery icon padding * Fix landscape battery icon charging indicator * Fix landscape battery icon percentage indicator * Fix circle battery frame color on some black backgrounds * Fix circle battery artifact on low percentage * Fix percentage not shown while charging * Fix percentage always showing on expanded status bar * Fix battery icon showing after reboot on text/hidden modes Change-Id: Ic56878c26e9a3416149eaaa8a9325d56d664e22e SystemUI : Make BatteryMeterView multi-user compatible Change-Id: Ib9a266dc74732b7ad328a6503898a8fbc46af58e Clean up battery handling. Use a single observer for all battery meter and level views, and remove no-longer used callback registrations. Change-Id: I8f9db5e484628d7fbc74fe892d64bef5f08cea24 SystemUI: Fix blinking when reported battery level is 0 Canvas::drawArc has a bug where, if the sweepAngle is 0, depending on the startAngle it will draw an empty or full circle. In the rare cases where the battery reports 0% this would cause the circular meter to blink furiously as it animates through several values of startAngle. As a workaround, let's avoid drawing the percentage bar if the reported battery level is zero. Change-Id: I4c1c767f3616c9d2f8a60df63d64ec1f4e266583 SystemUI: improve circle battery While plugged in, the circle animation would cause the statusbar to keep redrawing itself repeatedly, using up unnecessary cpu cycles, even when idle. - Removed circle animation in status bar - Left animations on keyguard/notificaiton header - Set layer type to hardware when animating for optimized quick drawing - Cleaned up some logic and unnecessary locking - Removed extra work done in each draw - override onDraw instead of draw to let the View system decide when we should draw Change-Id: If0624ab6e3723f4522ebbd9ce583b142c1cb4606 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI : Clock position support + am/pm stylesDanesh M2015-10-285-20/+201
| | | | | | Based on Dave Kessler's work from cm-12.0 Change-Id: I88e630fcfcffd8a795f1abbeecd71a258d0e8e81
* Recents long press: add pluggable implementationSteve Kondik2015-10-282-21/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds a Secure.Setting for the activity component to handle Intent.ACTION_RECENTS_LONG_PRESS. - Adds a new intent ACTION_RECENTS_LONG_PRESS for the long press of the recents button. Other system applications can register for the intent to provide custom handling. Handlers of this intent are queried for in the settings application, and if no handlers are found, the default implementation falls back on ActionUtils.switchToLastApp(). The long press listener on the recents button is replaced with a touch handler to allow for more custom handling. For cm-12.0, the following modifications were made: - With the full deprecation of ActivityManager.getRecentTasks(), applications can not query for the last foreground application. To aid these applications, the framework will include an EXTRA_CURRENT_PACKAGE_NAME with ACTION_RECENTS_LONG_PRESS. - Instead of re-evaluating packages on every Long Press, PhoneStatusBar now tracks Settings changes and package activities and incrementally caches the desired Recents long press behavior. This is a roll-up CR from cm-11.0, and also contains the following Change-Ids: - I689e8b5c26b39e100cb166d2f93e7ee49e83f93a Change-Id: I8a27ae0fe58d92a1626f0bd661c5f57c589fac17
* Multiple LEDs [3/3]: Illumination Bars supportAdrianDC2015-10-281-0/+4
| | | | | | | | | | | | | | | | Implement the support of a multiple LEDs settings. The setting is deactivated by default and will be ignored by the unimplemented phones. Current LibLights will simply not use the new variable. Changes includes : frameworks/base hardware/libhardware packages/Apps/Settings Change-Id: Ie8712c13e43f823996f10ca83b4a9f95fb750e96 Signed-off-by: AdrianDC <radian.dc@gmail.com>
* Fix race condition in panel expansion handling.Danny Baumann2015-10-281-12/+14
| | | | | | | | If a call to instantExpand() immediately was followed by a call to instantCollapse() without a layout pass happening inbetween, the panel ended up being expanded instead of collapsed. Change-Id: I5d0f159f3dc2c24c84defc1f5e4279bce8a032a3
* SystemUI: Fix NPEBadDaemon2015-10-282-1/+9
| | | | | | | | | Should fix "Attempt to read from field 'int com.android.systemui.recents.RecentsConfiguration.maxNumTasksToLoad' on a null object reference" Change-Id: I05e36b64db610249dc2be55a95d1bd8dae7bfb9c
* SpamFilter : Avoid a requery for each itemDanesh M2015-10-282-47/+51
| | | | | | | Keep an up to date in memory cache of spam item, to avoid the lookup cost of querying the content provider each time. Change-Id: I9e772584792eb22489ab72c0e741b6f8af57d5bc
* Spam: Close writable DB after used34d2015-10-281-5/+14
| | | | | | | | | | | Writable DBs in the SpamMessageProvider were not being closed due to the way the methods were chained together. This patch gets an instance of a writable SQLiteDatabase and then closes that instance after performing the required operations. This patch also removes the moveToFirst call in the MESSAGE query. Change-Id: Ibe29aaa553b9c1d06cd39bf6c95d6d6f571b9f12
* Show infinity for large notification countsd34d2015-10-282-1/+7
| | | | | | | | | | This patch adds a new string to SystemUI for displaying the infinity symbol when a notification has a count larger than 999. This only affects the notification icon in the status bar and does not change the text displayed in the actual notification. Change-Id: Ie1b06c888a7e4e82147bb930b2715a3e97b6f009 REF: CYNGNOS-592
* Let liblights adjust the brightness of LEDs while previewing itGabriele M2015-10-281-3/+2
| | | | | | | | | | Each device might use the information about the brightness of LEDs in a unique way. Currently the slider to adjust the brightness of LEDs is using an already scaled RGB color to preview the intensity of the light. Instead of doing this, use a white colored light and add to it the information about the brightness. Change-Id: I4dd35944debc744ea6c7f1fcc5dd7a909e8863fa
* LEDs Brightness [2/2]: Lights notifications brightness supportAdrianDC2015-10-285-0/+347
| | | | | | | | | | | | | | | Implement the support of an overall brightness control for the LEDs. The setting is deactivated by default and will be ignored by the unimplemented phones. Current LibLights will simply not use the new variable. Changes includes : frameworks/base packages/Apps/Settings Change-Id: I1c0de01b1c6a2a2cf1432028a2e69f90b2373b2c Signed-off-by: AdrianDC <radian.dc@gmail.com>
* systemui: Fix ClassCastExceptionsSteve Kondik2015-10-271-7/+8
| | | | Change-Id: I10a90bd21e4fbf99c6eae1fa6d3ed151f0fc10f7
* Keyguard: Remove bouncer when re-registering status bard34d2015-10-272-1/+2
| | | | | | | | | | | When changing themes we restart the keyguard which causes the StatusBarKeyguardViewManager to recreate the bouncer without first removing the old bouncer. This would cause a user to not be able to correctly enter their pin since the wrong PasswordTextView would be found via findViewById(). This patch removes the bouncer view if mBouncer is non-null when registering the status bar. Change-Id: I392502bb648f04016d0b39fbf337054ff4ca3a89
* Get themed resources in KeyButtonViewd34d2015-10-271-0/+24
| | | | | | | | | | When saving a customized button layout for the navigation bar, the buttons load resources from the theme applied to systemui, regardless if the navigation bar is being themed by a different package. This is not correct behavior. Change-Id: I4e44ef517c2ea9ac3828e790f6a4b850726bc840 REF: NIGHTLIES-1377
* SystemUI: Expose values in status bar expanded headerDave Kover2015-10-274-5/+52
| | | | | | | | | | Expose values related to weather and battery status. Consolidate attributes into styles and remove the separate values. Also expose the alarm status color. Themers gotta theme. Change-Id: I599cb2e697aa1b714c8c383eb6fb9577b7347180
* SystemUI: Add new dimens values for expanded status bar paddingDave Kover2015-10-273-4/+10
| | | | | | | | | | Currently, the notification header and QS panel use the same side padding as the notifications themselves. Adding new values that allow more complex theming scenarios for these layouts. The stuff that dreams are made of. Change-Id: I7166ab08e3e35b8907b3c2e65039f02df18dfd72
* Don't dismiss keyguard if recreating status bard34d2015-10-271-1/+2
| | | | | | | | | | During the recreation of the status bar, showBouncer() gets called and ends up dismissing the keyguard. If mRecreating is true then we do not want to dismiss the keyguard. Change-Id: Ieb8d4be19794f37250bc47dbfb2b5fbe1307244b REF: THEMES-647
* SysUI: Invert notification backgroundsd34d2015-10-271-10/+17
| | | | | | | | | | | | | Notifications for ambient display were enhanced to support fading back into full color and saturation. This change involved hiding the notification background instead of inverting it along with the rest of the notification view. This doesn't play well with themes that use a darker background and lighter text color. This patch keeps the background visible and inverts it along with the rest of the notification, which allows the text to be visible. Change-Id: I8e7cb5b77be096c6a426751ad4c98de2529059d1
* VolumeUI: Call mContext.recreateTheme() on theme changed34d2015-10-271-0/+1
| | | | | | | | | This resolves an issue where the theme object is holding on to themed resources that no longer exist. See http://review.cyanogenmod.org/91826 for more details. Change-Id: I6a6fd560791de42cf2f89807800ea158f4c591af
* Clear Theme in System UIAndy Mast2015-10-271-2/+1
| | | | | | | | | | | | | When SystemUI first starts an android theme object is created which contains references to the currently applied CM theme. When the theme is changed to system, the theme remains in memory with old references to the prior applied theme. (See mPackages in ResTable::Theme) This patch introduces a recreate theme method into Context so that SystemUI can recreate its own theme object. Change-Id: I086a76afa6f456a69c0390573bc8af2eafa4fb4e
* Themes: Always clone the new theme if non-nulld34d2015-10-271-2/+3
| | | | | | | | | | The new theme was only being cloned when shouldUpdateStatusbar() returned true. This causes the navigation bar to not be themed when no components changed that required the status bar to be recreated. This patch always clones the new theme so that the proper navigation bar resources can be loaded. Change-Id: I8d70c54d3bfcd91141ce40f513744e260fe87639
* SysUI: Clip to outline in ActivatableNotificationViewd34d2015-10-271-0/+1
| | | | | | | | This will ensure the entire notification is clipped to the background drawable. If that drawable is a shape, such as a rounded rectangle then the entire notification should be clipped to that. Change-Id: I0a59712618223f28325126e2f0b96b4cfe000fbe
* Themes: Check if newTheme has null fonts, icons, or overlaysd34d2015-10-271-6/+11
| | | | Change-Id: Iee9e84b1106da8ee0e0f466e7be9f9c4a9e51fb5
* SysUI: Be smarter about theme changesd34d2015-10-271-7/+25
| | | | | | | | | A theme config could change that does not require us to recreate the status bar. This patch looks for the cases where the theme change requires recreating the status bar and only then do we call recreateStatusbar(). Change-Id: I88a6e5aad9306adca6ace05418379698437bfbed
* SystemUI: Expose values for themes.Dave Kover2015-10-278-7/+62
| | | | | | | | | Allow theming of volume panel separately from status. Allow status bar icons to be tinted. Expose battery meter base color. Expose status bar header elevation value. Add themeable ripple color for navigation button press. Change-Id: Ie3dbde82692a19927ba6c1da179e5d2f03391f6f
* Themes: Don't recreate network controllersClark Scheff2015-10-271-1/+14
| | | | | | | | | When re-creating the network controllers we lose their current state, which results in a bug on multi-sim devices where the first sim slot will show the no connectivity icon rather than the no sim icon when no sim is present. Change-Id: I169734b1f5c7b17e11cc15a3434a22ed9f7bce1f
* Keyguard: Fix scramblepin logic.Adnan Begovic2015-10-271-1/+1
| | | | Change-Id: I71e6d26e853fa7bfaeea4b3256902881ac7f74fc
* Keyguard: Don't disable visibility when scrambling pin.Adnan Begovic2015-10-271-1/+4
| | | | | | | Otherwise the first numbers text is flipped to invisible even though it shouldn't be. Change-Id: Ia2b80d594e7f11af7a60a85bdb4ea9909d0ac20b
* SystemUI: Expose weather text colorsDave Kover2015-10-272-2/+6
| | | | | | | | | | Weather text colors in the expanded status bar are hardcoded to white. Expose these via cm_colors so that themes can color them however they'd like. A martini. Shaken, not stirred. Change-Id: I5e5a738c8b97f556562114a66d102fcb924a0493
* Themes: Making DocumentsUI fully themeableThyrus112015-10-273-4/+27
| | | | | | | | | | | | Changes added for main activitity and ItemGrid text colors Default values: drawer_background_color>#ffffffff font_color_doc_grid">#ffffffff PS2: move colors to cm_colors.xml and clear whitespaces Change-Id: Ia25030f3c2d2c19d43cadda149705d7086f2c155
* Themes: Don't clip notification when a theme defines a larger radiusd34d2015-10-271-2/+10
| | | | | | | | | The normal behavior is to clip notifications as they go behind other notifications. The clipping is much more obvious when a larger radius is being used so we should forgoe clipping in this situation. Change-Id: Iacffc8bdb146d47dd61686314297ddb851416a65
* Themes: Add tm command line toolClark Scheff2015-10-271-0/+1
| | | | | | | | This will allow us to perform automated testing using the theme manager as well as a quick way to perform the various functions that the theme service provides via the command line. Change-Id: Id0aa906bb3400225b93080f7a8c2284a8fcf3c44
* Themes: Handle case when keyguard is showing during theme changeClark Scheff2015-10-271-0/+6
| | | | | | | | | | After we recreate the status bar we need to check if the keyguard was showing and if so make sure it is showing after the theme change. We also need to make sure the phone status bar is not visible if the keyguard was showing, otherwise you see two status bars. Change-Id: Iba09e3e5c8cf52d49f292423a50034a3cf84d9c1
* Themes: Call startKeyguard() when recreating status barClark Scheff2015-10-271-0/+2
| | | | | | | | | | | | mStatusBarKeyguardViewManager holds on to a reference of ScrimController and we need to update this otherwise the scrim will remain on the screen and consume all touch events. This is easily reproduced by changing a theme and then turning the screen off and on to display the keyguard. Once the keyguard is dismissed the scrim remains on the screen. Change-Id: Ie050a951117ed4aebef4ea3343366b9b9361b8a6
* dozeui: Broadcast an intent when beginning a doze pulseChristopher R. Palmer2015-10-261-0/+1
| | | | | | | | This will allow other components that need to update their state to properly render the lock screen to do so rather than display stale information. Change-Id: I383c657c1b760fe8610ef431d494c0fe05d63fdb
* Fix IllegalStateException in Printspoolernaman142015-10-261-1/+11
| | | | | | | | | | Open webpage in chrome(or any thing to print) and click print and then press back, throws a IllegalStateException. Currently in onDestroy, doFinish() is called which further calls unbindService()in PrintSpoolerProvider,but since service has already been unbinded,it throws a Service not registered error. Change-Id: If58a951e9e66a4048f0ece3100aabe49cee0ab84
* SystemUI: small optimization for notification icon numbersRoman Birg2015-10-261-12/+13
| | | | | | | | | Don't create the paint object used to draw notification icon count badges in the status bar unless the user actually wants to see those counts. Change-Id: Iabba316102583a798acdc124d9fb51c0d7826a0d Signed-off-by: Roman Birg <roman@cyngn.com>
* optimize wallpaper load,avoid show black wallpaper.longyu.huang2015-10-261-1/+3
| | | | | | | | | | | | | [Preconditions] open auto-rotate [Procedures] 1.enter Contacts app, and rotate 90 degrees to the right 2.press power key to lock screen,and unlock 3.rotare 90 degrees to the left and exit Contacts app 4.the wallpaper will be black first,then show the really wallpaper. Change-Id: Ia8f77b9a685c49cfc0a33e661ef073d90b8b363c
* doze: Separate proximity check by reasonEthan Chen2015-10-263-5/+15
| | | | | | | | * Devices that pulse by intent typically check the proximity sensor as part of sensor wakeup. Allow pulse by intent to control proximity check separate from pulse by sensor wakeup. Change-Id: I9955013b864746c52ee576ff0f4de3672bf7fe0e
* doze: Make delay and duration of intent triggered dozes configurableChristopher R. Palmer2015-10-264-19/+39
| | | | | | | | | | | | | Devices that have IR sensors can trigger dozes due directly to user action (gestures) and the user expects a more immediate response to this actions because the user may be looking directly at the screen and expecting immediate feedback. It makes sense to differentiate this from the pickup sensor values and notification sensor values because of the different user focus (directly acting on the phone). Change-Id: I085701bb7e5c0e1feb632ce945d615c7ae4e24a5
* frameworks: add ongoing notification while collecting bug reportRoman Birg2015-10-263-0/+36
| | | | | Change-Id: I644da7046b3cbbd0ec601f0e35dfbad6adf4dcf5 Signed-off-by: Roman Birg <roman@cyngn.com>
* printspooler: Print view crash.lingyan.wang2015-10-261-0/+6
| | | | | | | | | | 1.put a txt file into device. 2.Go to File Manager->long press the txt file->Print->Long press home key->Clear all 3.Go to File Manager->long press the txt file->Print The result: Print view crash. Change-Id: I46a71b8e1196f69b6b40f38b418a88d794918429
* doze: Do not bother checking proximity for the DOZE_ACTION intentChristopher R. Palmer2015-10-261-1/+2
| | | | | | | The intent is a desire to show the intent and trust the sender to determine whether or not it should really be shown. Change-Id: I1c613071b136de61f12bc0556283a80e1248a4a8
* Add overlay option for Settings.System.ACCELEROMETER_ROTATION_ANGLESHoward M. Harte2015-10-262-0/+10
| | | | | Change-Id: Icd5e47051554a7b2464e4fbdaac868aafda7b853 (cherry picked from commit 6bfea6065178a29d4622a89e2944c16e086923b1)
* SystemUI: survive notification update spamRoman Birg2015-10-261-2/+12
| | | | | | | | | | When handling a very high number of incoming notification updates, SystemUI can choke up at updateNotifications() in PhoneStatusBar. Funnel updateNotification() calls through the StatusBar's handler and don't stack them up. Change-Id: I806d1fd8eac73c4af0820319d127423ae6467f60 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: fix small jump when expanding QS w/o notificationsRoman Birg2015-10-261-0/+1
| | | | | | | | | When expanding with two fingers, or one finger quick-setting pull down, the disappearing "No notifications" animation would cause some jumpiness without this. Change-Id: I71881a86df217cedc8b8bc648b2e9d389aeb6cdd Signed-off-by: Roman Birg <roman@cyngn.com>
* systemui: Fix race condition in setting notification panel heightSteve Kondik2015-10-261-1/+1
| | | | | | | | | | * setExpandedHeightInternal has multiple entry points, including from an animator. A very subtle race condition exists which was causing the blur effect to flicker. So subtle in fact that a heisenbug was created when logging to debug the issue. * Make the damn thing synchronized so this can't happen for good. Change-Id: I14a4cd3824a5665e4c7198fb7f61bf0ca9ab2b79
* SystemUI: fix incorrectly sized nav bar iconsRoman Birg2015-10-261-0/+16
| | | | | | | This partially apply commit 1bd137dc72ae92c36f2d898f363b6cf5b7a94f17 Change-Id: I90c533a10830c641e657f48ee6f8407d4c67c830 Signed-off-by: Roman Birg <roman@cyngn.com>
* improve lock screen wallpaper behaviorRoman Birg2015-10-261-1/+6
| | | | | | | | | | | | | | | | | | | - Fix lockscreen wallpaper not being reloaded on user switch. There was an issue where the wrong user id was being queried for the keyguard wallpaper. Always use the current user id. - Also clean up a left-over call for some regular wallpaper migration logic that the lock screen wallpaper - Add method for removing references to the current lock screen wallpaper, which we call from systemui when switching users. - Only apply the lock screen wallpaper if there is no media metadata to show. There were some cases when it would still appear even when music was playing. Change-Id: I610a38ac11a19638298ca9490b3c87b7ab6106f2 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: Allow seperate theming of guts iconsDave Kover2015-10-263-3/+43
| | | | | | | Allows themes to assign different drawables for the notification guts instead of using drawables used in other views. Change-Id: I5f92e15de4aabde732e7cb89fd02432f32e8f329