summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Automatic AICP translation importHEADp9.0Ralf Luther2020-02-2228-316/+0
| | | | Change-Id: I6584a74746364b1f4a3a0c71f376dd60bdfc5295
* Automatic AICP translation importRalf Luther2019-09-153-0/+177
| | | | Change-Id: I194266089e556a58e5dc8e1777367ace129a58a8
* Automatic AICP translation importCarlos Solano2019-06-251-0/+59
| | | | Change-Id: I3950d1dd33813ad7967315bb95d020bc4a6b80fd
* Pulse: Backend redesign [1/2]bigrushdog2019-06-089-233/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | Over time, Pulse has evolved into a getter/setter/callback web of complexity that has made the feature nearly impossible to manage, let alone develop. It is high time to remedy this deficiency. -- Inject PulseController as a SystemUI Dependency and completely remove from the NavigationBarFragment/Navigator space. Use all necessary SystemUI interfaces, receivers, and observers to facilitate this. -- Render Pulse on PulseView. We attach/detatch this view to NavigationBarFrame freeing Pulse from race condition insanity when changing navbar implementations. -- Pulse completely removed from Navigator except for a simple start/stop Pulse callback. We call on PulseController in a couple spots still to check rendering state but that's OK because we grab the controller from Dependency -- General clean up everywhere making it easier to optimize and create Change-Id: Id8ca05e6f8e493050b49011a2e85f0b6fc14e606
* SmartNav: Eliminate needless BroadcastReceiver in BaseNavigationBar [2/2]bigrushdog2019-06-084-35/+8
| | | | | Change-Id: I13083e3745a7f2d8c95f516e9eb5b817afde0502 Signed-off-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
* Automatic AICP translation importCarlos Solano2019-06-047-0/+21
| | | | Change-Id: Ibae4ffe13c801b0ffeb48fcded7c96e6e23d8e0e
* Merge "SmartNav: add swiftNavigationBarItems to public methods" into p9.0Ali B2019-04-241-3/+4
|\
| * SmartNav: add swiftNavigationBarItems to public methodsJosh Fox (XlxFoXxlX)2019-04-191-3/+4
| | | | | | | | | | Change-Id: I6b96ea41191d9f5b8aa3ed1fe5afbf49bd7a0517 Signed-off-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
* | Automatic AICP translation importCarlos Solano2019-04-164-0/+12
|/ | | | Change-Id: I5a7f00245be47482af84d6d0b9c86e2f957e0c86
* Merge changes Ibee4332b,Ic8e711ae,Ia0220c62,I825a73c0 into p9.0Ali B2019-04-1611-0/+192
|\ | | | | | | | | | | | | | | * changes: Add in camera action to bindable actions (2/2) SmartNav: Reload icons from storage when boot completes SmartActions: Turn on Tri-state ringer toggle [2/2] SmartActions: Add Play/Pause media to bindable actions [2/2]
| * Add in camera action to bindable actions (2/2)pimpmaneaton2019-04-114-0/+18
| | | | | | | | Change-Id: Ibee4332b8baa12b6a71e1d1ea397eae4eebf0846
| * SmartNav: Reload icons from storage when boot completesbigrushdog2019-04-113-0/+14
| | | | | | | | | | | | | | | | | | | | This is necessary for the outlying usecase where icons from storage are set and the device is encrypted. The navbar may have been created before the device became decrypted thus not being able to load icons from storage. In the future, it would be better to respond to a acutal callback when device becomes decrypted Change-Id: Ic8e711aebc4089ecf1e69e226fa2258fd6afe57b
| * SmartActions: Turn on Tri-state ringer toggle [2/2]bigrushdog2019-04-114-0/+142
| | | | | | | | Change-Id: Ia0220c623846de2304454707fc4c22ddefa920fe
| * SmartActions: Add Play/Pause media to bindable actions [2/2]bigrushdog2019-04-114-0/+18
| | | | | | | | Change-Id: I825a73c069c813cb7edc9de19acd78273eb7a422
* | Automatic AICP translation importRalf Luther2019-04-153-0/+168
|/ | | | Change-Id: I6355838a566b8fb5ef62418412e5849799c6cf9f
* Automatic AICP translation importRalf Luther2019-03-0832-128/+0
| | | | Change-Id: Ib3ea8254cb75dc3e2216c4ee82a72e4f37833b29
* Allow to set a full gesture navbar (swipe left for back action) [3/3]bigrushdog2019-03-011-0/+5
| | | | | | Add a new public default method to Navigator interface Change-Id: I4220e06615f8d51e0ae1add410a79173a7c6d212
* Allow home action on keyguardSpiritCroc2019-02-012-3/+5
| | | | | | Same behaviour as stock navigation bar. Change-Id: I1b9dd6736f9ad2f655b8af30bb7304e5da013c68
* Automatic AICP translation importRalf Luther2019-01-1834-1561/+678
| | | | Change-Id: I8668472249a996e46633d15d1192eeb9261dd4a2
* Use offload thread (ExecutorService) to start pulsingezio842018-12-071-39/+46
| | | | | | | when unlocking it's better to follow what Google does in Statusbar, offloading expensive operations from the main ui thread Change-Id: I22b53dcf64f08e89810a8f736cee894f14371c24
* Pulse: fix defaulting to user color if no album color availablePranav Vashi2018-12-072-3/+3
| | | | | Change-Id: Ica718fc07df98a6878baccf3d77f8885e7d2658e Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Change default fling logoSpiritCroc2018-12-014-102/+96
| | | | | | (cherry picked from commit cb5f51c) Change-Id: Icb55de8c3e873e05af662279f1d2bc9ff5f8dcb8
* Initial checkin on Pie for SmartNav navigation suitebigrushdog2018-10-1357-147/+261
| | | | | | | | | | | | | | | | | | | Interesting changes for bring up: Minor refactoring for change in utils class paths Introduction of shadow support for KeyButtonDrawable class. Shadows disabled by default for now Guava static library is required in SystemUI makefile for trail drawing library support All vector drawables that overlapped with stock navigation have been renamed with "smartnav" in their name. This allows for a truly stock experience with minimal impact to themers. This includes the back, home, recents, menu, and docked series of drawables Change-Id: I51a227c81ba89a5858763a7a610b08f22fb01853
* Fix potential Smartbar FC for buttons custom applicationezio842018-03-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes this: https://jira.dirtyunicorns.com/projects/DU12/issues/DU12-18?filter=allopenissues atm we can't replicate the issue so this is a generic fix not focusing on the root of the problem, but it's good anyway as a general npe protection. 03-09 23:45:09.869 3235 3235 E AndroidRuntime: FATAL EXCEPTION: main 03-09 23:45:09.869 3235 3235 E AndroidRuntime: Process: com.android.systemui, PID: 3235 03-09 23:45:09.869 3235 3235 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarHelper.resizeCustomButtonIcon(SmartBarHelper.java:82) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarView.setButtonDrawable(SmartBarView.java:340) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarHelper.generatePrimaryKey(SmartBarHelper.java:113) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarView.recreateButtonLayout(SmartBarView.java:701) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarView.recreateLayouts(SmartBarView.java:573) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.navigation.smartbar.SmartBarView.setResourceMap(SmartBarView.java:276) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.systemui.statusbar.phone.NavigationBarFragment.onViewCreated(NavigationBarFragment.java:233) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1289) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2407) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2186) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2142) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:719) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) 03-09 23:45:09.869 3235 3235 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Change-Id: I33aa4678064c6a4ac88f2c3e666b63a9a209222c
* Fix Pulse disappearing sometimes after skipping tracksEzio Lacandia Bijelkic2018-03-141-2/+4
| | | | | | | don't unlink the visualizer when the playing state is the same (this happens for most players when skipping tracks) Change-Id: I7eff649a1e00492875e3d2bbceeb02032806092f
* Pulse: don't elaborate useless waveformEzio Lacandia Bijelkic2018-03-121-1/+1
| | | | | | atm we don't use waveform, let's skip it Change-Id: I6663d6ffc6564371812d8837563499855d2f701f
* Fix smartbar media arrows not showing sometimesEzio Lacandia Bijelkic2018-03-111-1/+1
| | | | | | | AudioManager isMusicActive() api is not reliable, and anyway we check blacklisted packages in StatusBar setMediaPlaying Change-Id: I6a4537ebfd8e03aff14166aaafca5271891b70df
* Fling kb cursors: long press left/right to keep moving cursor [1/2]ezio842018-02-253-17/+68
| | | | | | | | | - the 2nd move will be triggered after a bigger delay to avoid unwanted cursor move actions after the first move - single tap right and single tap left actions will go to home screen as fallback when the feature is enabled and kb is showing Change-Id: I07e470e33b653972e2cf77514049456fcd368879
* Expose moar DUI partsAlex Cruz2018-02-223-3/+7
| | | | Change-Id: I37ceec94fcbe4d17b9e6e0b93129a6e6be86d8b7
* Fix FC for Fling when unpinning an appEzio Lacandia Bijelkic2018-02-201-0/+2
| | | | | | | | | | | | | | | to replicate: enable fling navbar, pin an app, stock navbar will come up. then long press back and recent buttons to unpin the app, but keep tapping with the fingers a bit longer then release the tap. This is because when after the unpin event we switch back to Fling navbar, FlingView onAttachedToWindow sets the mFlingTouchListener that sends the event to the FlingGestureHandler onFling, but the start event is null so SystemUI FC. So we can just add a null check there to fix the issue. Change-Id: I186d795822d9c9a1a8c8645273e5277c2bc5f763
* Merge "Japanese Translation" into o8xAlex Cruz2018-02-171-0/+6
|\
| * Japanese Translationaletheia2018-02-171-0/+6
| | | | | | | | | | | | Some translation added. Change-Id: Ie993e4db7a1c02ed5214410b6d1e937c718033bf
* | French TranslationsKevinMinions2018-02-141-0/+1
|/ | | | Change-Id: I2af7cccfb5965cc45cb82f86821ce07267cc85ca
* DUI: Add Google Sound Search action [1/2]ezio842018-02-093-0/+51
| | | | Change-Id: Ic8af82ee2cafe3201dd8783f31aad5ef3332247d
* Pulse: don't lose color when changing render modeezio842018-02-073-10/+28
| | | | Change-Id: Idea74bdcc593d97460dafa61d7232ec08bd48fb5
* Pulse fading blocks render: use more visible colorsezio842018-02-051-7/+7
| | | | | | | | | | We already apply a fade paint to add transparency to the blocks, no need to make them less visible adding transparency to the main color too. With the new automatic pulse color it's nice to get the same color as the media notification. Change-Id: I66f1f31ff078f3c2f071f1bccc8726db024d84b4
* DUI Pulse: add Automatic albumart base color mode [2/3]ezio842018-01-257-8/+86
| | | | Change-Id: Ia2ed29210fb08c58102f9bb4a8b14177b3e8862c
* Update Japanese translationkazu2018-01-211-7/+7
| | | | | | Update some strings English to Japanese. Change-Id: I131360a6b6451d2fb79990d31ef80e1b6b678de3
* Implement darkintensity also for smartbar button ripple animationezio842018-01-163-6/+36
| | | | Change-Id: Iac860d5a07cfa352311b0f478a16ec9001955de5
* Merge "Smartbar: skip empty fake buttons animations and allow dt2s on them" ↵Alex Cruz2018-01-011-0/+9
|\ | | | | | | into o8x
| * Smartbar: skip empty fake buttons animations and allow dt2s on themezio842017-12-311-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | people would like to set some empty fake buttons this way: https://plus.google.com/+EzioLacandiaBijelkic/posts/Du77oXaQQEn to get a compact layout or customize other buttons spacing. When tapping on those fake buttons, let's skip all uselss animations and other specific button touch events. This will allow also to make smartbar double tap to sleep work when tapping on them. Change-Id: Icedd190610ce5fd8f039bf4603e3e7921cadf8a4
* | DUI Smartbar double tap to sleep [2/3]ezio842017-12-314-31/+61
|/ | | | Change-Id: I5d66aaa6ff0b15a1092ebf76a715e51325f9bd88
* Smartbar custom icon scaling option: fix white buttons on white navbarezio842017-12-311-0/+5
| | | | Change-Id: Iea0c097a1ebad188262cbaf120b05cecf2e2f7dc
* Merge "Fling and Smartbar: darken also custom buttons icons on light navbar" ↵Alex Cruz2017-12-313-22/+54
|\ | | | | | | into o8x
| * Fling and Smartbar: darken also custom buttons icons on light navbarezio842017-12-263-22/+54
| | | | | | | | | | | | but still keep them recognizable Change-Id: I2714a5c70fb606691f8fc83873cfa440fe1f934a
* | Fix smartbar Ime switcher icon not showing [2/2]ezio842017-12-312-0/+50
| | | | | | | | Change-Id: Ic60fd77e20818df4a2e11fc99fd81c9b0eee1569
* | Fix smartbar editor edit popups not showing sometimesezio842017-12-312-38/+72
| | | | | | | | | | | | | | | | | | | | | | | | e.g. when system animations are set to 0.5x in dev settings, or when triggering the popup a few times, and other potential cases. PopupWindow let us set a new popup content without dismissing the existing popup, so we can get rid of the -sometimes broken- dismiss listener to show the new content for the 2nd popup Change-Id: I3eef58ac9f6cdbf8e8a83d78bb68073bca71d994
* | DUI: don't initialize pulse and media arrows for some apps [2/2]Ezio Lacandia Bijelkic2017-12-311-0/+4
|/ | | | | | pretty useless in those cases Change-Id: Ic8a361dcb24be22e8d74ae46553931d9c80c357a
* Be sure to set buttons darkintensity when neededezio842017-12-194-3/+20
| | | | | | | e.g. on Fling open Settings to have light navbar and dark fling logo, rotate the screen, logo should be dark but will be white. Change-Id: I28f7d53b0659d9121021a0df7c0b4be04df8ce51
* Remove notifyScreenOn booleancamcory2017-12-111-1/+1
| | | | | Due to frameworks commit https://github.com/aosp-mirror/platform_frameworks_base/commit/d002a0a96eb857804b3aafbcd32cf66a378c5b6c