OSDN Git Service

android-x86/packages-apps-Taskbar.git
3 years agoUpdate README.md
Braden Farmer [Mon, 28 Sep 2020 20:14:00 +0000 (14:14 -0600)]
Update README.md

3 years agoFix secondary display toast placement on Android 11
Braden Farmer [Mon, 28 Sep 2020 20:06:11 +0000 (14:06 -0600)]
Fix secondary display toast placement on Android 11

3 years agoFix bottom margin for dashboard on Android 11
Braden Farmer [Mon, 28 Sep 2020 19:57:07 +0000 (13:57 -0600)]
Fix bottom margin for dashboard on Android 11

3 years agoDetermine minimum screen brightness programatically when dimming screen
Braden Farmer [Mon, 14 Sep 2020 04:39:25 +0000 (22:39 -0600)]
Determine minimum screen brightness programatically when dimming screen

3 years agoUpdate dependencies
Braden Farmer [Mon, 14 Sep 2020 02:25:44 +0000 (20:25 -0600)]
Update dependencies

3 years agoMerge pull request #149 from utzcoz/master
Braden Farmer [Thu, 27 Aug 2020 17:03:15 +0000 (11:03 -0600)]
Merge pull request #149 from utzcoz/master

Add description to run test and jacoco to README

3 years agoAdd description to run test and jacoco to README
utzcoz [Thu, 27 Aug 2020 16:59:34 +0000 (00:59 +0800)]
Add description to run test and jacoco to README

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #148 from utzcoz/master
Braden Farmer [Thu, 27 Aug 2020 16:46:57 +0000 (10:46 -0600)]
Merge pull request #148 from utzcoz/master

Upgrade robolectric to 4.4

3 years agoFix OutOfMemoryErrors when running robolectric tests
utzcoz [Thu, 27 Aug 2020 16:43:51 +0000 (00:43 +0800)]
Fix OutOfMemoryErrors when running robolectric tests

See https://github.com/robolectric/robolectric/issues/5131

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoRemove TaskbarShadowLauncherApps
utzcoz [Thu, 27 Aug 2020 16:22:35 +0000 (00:22 +0800)]
Remove TaskbarShadowLauncherApps

Use shadow methods from robolectric.

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoUpgrade robolectric to 4.4
utzcoz [Thu, 27 Aug 2020 16:09:24 +0000 (00:09 +0800)]
Upgrade robolectric to 4.4

Use legacy looper mode for tests compatibility. Tests will be updated
later to remove legacy looper mode.

Test: ./gardlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #145 from utzcoz/master
Braden Farmer [Sun, 23 Aug 2020 15:09:57 +0000 (09:09 -0600)]
Merge pull request #145 from utzcoz/master

Add tests for package com.farmerbb.taskbar.service part01

3 years agoAdd basic tests for FavoriteApp*
utzcoz [Sat, 22 Aug 2020 12:09:25 +0000 (20:09 +0800)]
Add basic tests for FavoriteApp*

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract intent extra count to constants
utzcoz [Sat, 22 Aug 2020 10:28:21 +0000 (18:28 +0800)]
Extract intent extra count to constants

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract value of pref start_button_image to constants
utzcoz [Sat, 22 Aug 2020 10:18:23 +0000 (18:18 +0800)]
Extract value of pref start_button_image to constants

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract start_services to EXTRA_START_SERVICES
utzcoz [Sat, 22 Aug 2020 10:09:42 +0000 (18:09 +0800)]
Extract start_services to EXTRA_START_SERVICES

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoAdd test for PowerMenuService
utzcoz [Sat, 22 Aug 2020 10:06:32 +0000 (18:06 +0800)]
Add test for PowerMenuService

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract action to EXTRA_ACTION
utzcoz [Sat, 22 Aug 2020 07:03:22 +0000 (15:03 +0800)]
Extract action to EXTRA_ACTION

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoSimplify UIHostServiceNewControllerTest
utzcoz [Sat, 22 Aug 2020 06:59:43 +0000 (14:59 +0800)]
Simplify UIHostServiceNewControllerTest

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoAdd test for QuickSettingsTileService.updateState
utzcoz [Sat, 22 Aug 2020 06:57:37 +0000 (14:57 +0800)]
Add test for QuickSettingsTileService.updateState

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoAdd tests for specific UIHostService newController
utzcoz [Sat, 22 Aug 2020 05:56:46 +0000 (13:56 +0800)]
Add tests for specific UIHostService newController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #144 from utzcoz/master
Braden Farmer [Wed, 19 Aug 2020 03:25:16 +0000 (21:25 -0600)]
Merge pull request #144 from utzcoz/master

 Split DashboardController large methods part03

3 years agoExtract method DashboardController#showPlaceholderToast
utzcoz [Sat, 15 Aug 2020 07:43:07 +0000 (15:43 +0800)]
Extract method DashboardController#showPlaceholderToast

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method DashboardController#shouldSendDisappearingBroadcast
utzcoz [Sat, 15 Aug 2020 06:59:39 +0000 (14:59 +0800)]
Extract method DashboardController#shouldSendDisappearingBroadcast

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #140 from utzcoz/master
Braden Farmer [Tue, 28 Jul 2020 16:26:22 +0000 (10:26 -0600)]
Merge pull request #140 from utzcoz/master

 Split DashboardController large methods part02

3 years agoRename mAppWidgetHost to appWidgetHost
utzcoz [Tue, 28 Jul 2020 14:06:26 +0000 (22:06 +0800)]
Rename mAppWidgetHost to appWidgetHost

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoRename mAppWidgetManager to appWidgetManager
utzcoz [Tue, 28 Jul 2020 14:05:49 +0000 (22:05 +0800)]
Rename mAppWidgetManager to appWidgetManager

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract methods to provider pref keys for DashboardController
utzcoz [Tue, 28 Jul 2020 13:44:59 +0000 (21:44 +0800)]
Extract methods to provider pref keys for DashboardController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method to show dashboard tutorial toast for DashboardController
utzcoz [Tue, 28 Jul 2020 12:55:51 +0000 (20:55 +0800)]
Extract method to show dashboard tutorial toast for DashboardController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #138 from Refactor4Green/Refactor4Green
Braden Farmer [Mon, 27 Jul 2020 15:53:56 +0000 (09:53 -0600)]
Merge pull request #138 from Refactor4Green/Refactor4Green

Improve energy efficiency by applying Cache Energy Pattern

3 years agoMerge pull request #139 from lovenemesis/master
Braden Farmer [Mon, 27 Jul 2020 15:53:22 +0000 (09:53 -0600)]
Merge pull request #139 from lovenemesis/master

Update Chinese translation for desktop mode and a few terms.

3 years agoUpdate Chinese translation for desktop mode and a few terms.
Tommy He [Sat, 25 Jul 2020 02:35:32 +0000 (10:35 +0800)]
Update Chinese translation for desktop mode and a few terms.

3 years agoRefactor4Green - added comment
anasofiagribeiro [Fri, 24 Jul 2020 14:50:35 +0000 (15:50 +0100)]
Refactor4Green - added comment

3 years agoRefactor4Green - Cache EP
anasofiagribeiro [Fri, 24 Jul 2020 14:06:13 +0000 (15:06 +0100)]
Refactor4Green - Cache EP

3 years agoMerge pull request #137 from utzcoz/master
Braden Farmer [Sun, 19 Jul 2020 14:37:24 +0000 (08:37 -0600)]
Merge pull request #137 from utzcoz/master

Split DashboardController large methods part01

3 years agoExtract context_menu_fix to constant
utzcoz [Sun, 19 Jul 2020 11:25:25 +0000 (19:25 +0800)]
Extract context_menu_fix to constant

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method to save widget info for DashboardController
utzcoz [Sun, 19 Jul 2020 11:03:13 +0000 (19:03 +0800)]
Extract method to save widget info for DashboardController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract dashbarod widget string to constants
utzcoz [Sun, 19 Jul 2020 10:20:39 +0000 (18:20 +0800)]
Extract dashbarod widget string to constants

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method to add widget from Intent for DashboardController
utzcoz [Sun, 19 Jul 2020 10:04:39 +0000 (18:04 +0800)]
Extract method to add widget from Intent for DashboardController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract intent extra appWidgetId and cellId to constants
utzcoz [Sun, 19 Jul 2020 08:51:46 +0000 (16:51 +0800)]
Extract intent extra appWidgetId and cellId to constants

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method to update layout padding size based on position for DashboardController
utzcoz [Sat, 18 Jul 2020 15:08:44 +0000 (23:08 +0800)]
Extract method to update layout padding size based on position for DashboardController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMerge pull request #135 from utzcoz/master
Braden Farmer [Sun, 5 Jul 2020 19:35:40 +0000 (13:35 -0600)]
Merge pull request #135 from utzcoz/master

 Split StartMenuController large methods part03

3 years agoExtract method to generate app entries for StartMenuController
utzcoz [Sat, 4 Jul 2020 09:26:46 +0000 (17:26 +0800)]
Extract method to generate app entries for StartMenuController

It also extracts common test used constants to Constants.java

Test: ./gradlew test

3 years agoSpanish translation fixes
Braden Farmer [Fri, 26 Jun 2020 05:24:21 +0000 (23:24 -0600)]
Spanish translation fixes

3 years agoMerge pull request #132 from sguinetti/master
Braden Farmer [Fri, 26 Jun 2020 05:21:50 +0000 (23:21 -0600)]
Merge pull request #132 from sguinetti/master

Spanish translation

3 years agoMerge pull request #131 from utzcoz/master
Braden Farmer [Fri, 26 Jun 2020 04:49:47 +0000 (22:49 -0600)]
Merge pull request #131 from utzcoz/master

Split StartMenuController large methods part02

3 years agoAdd "es" in resconfigs
Diego [Tue, 23 Jun 2020 13:51:04 +0000 (08:51 -0500)]
Add "es" in resconfigs

3 years agoUpdate "modo ventana" expression
Diego [Tue, 23 Jun 2020 13:38:14 +0000 (08:38 -0500)]
Update "modo ventana" expression

3 years agoExtend spanish translation
Diego [Tue, 23 Jun 2020 13:38:03 +0000 (08:38 -0500)]
Extend spanish translation

3 years agoSpanish translation
Diego [Tue, 23 Jun 2020 00:38:34 +0000 (19:38 -0500)]
Spanish translation

3 years agoExtract methods to generate search intent for StartMenuController
utzcoz [Mon, 22 Jun 2020 14:33:37 +0000 (22:33 +0800)]
Extract methods to generate search intent for StartMenuController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoMinor cleanup
Braden Farmer [Sun, 21 Jun 2020 06:14:49 +0000 (00:14 -0600)]
Minor cleanup

3 years agoMerge pull request #130 from utzcoz/master
Braden Farmer [Sun, 21 Jun 2020 05:58:53 +0000 (23:58 -0600)]
Merge pull request #130 from utzcoz/master

Split StartMenuController large methods part01

3 years agoExtract methods to get start menu gravity and layout id for StartMenuController
utzcoz [Sat, 20 Jun 2020 15:55:07 +0000 (23:55 +0800)]
Extract methods to get start menu gravity and layout id for StartMenuController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
3 years agoExtract method to check shouldShowSearchBox for StartMenuController
utzcoz [Sat, 20 Jun 2020 15:30:28 +0000 (23:30 +0800)]
Extract method to check shouldShowSearchBox for StartMenuController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoMerge pull request #128 from RaspberryPiFan/master
Braden Farmer [Thu, 18 Jun 2020 03:20:40 +0000 (21:20 -0600)]
Merge pull request #128 from RaspberryPiFan/master

Update german translations

4 years agoUpdate german translations
RaspberryPiFan [Wed, 17 Jun 2020 17:05:58 +0000 (19:05 +0200)]
Update german translations

4 years agoFilter out Shell from list of launchers in HSLConfigActivity
Braden Farmer [Mon, 15 Jun 2020 02:36:32 +0000 (20:36 -0600)]
Filter out Shell from list of launchers in HSLConfigActivity

4 years agoFix tests
Braden Farmer [Sun, 14 Jun 2020 20:10:12 +0000 (14:10 -0600)]
Fix tests

4 years agoFix Taskbar being drawn below the navigation bar in desktop mode on Android 11
Braden Farmer [Sun, 14 Jun 2020 19:59:14 +0000 (13:59 -0600)]
Fix Taskbar being drawn below the navigation bar in desktop mode on Android 11

4 years agoDon't show option to hide navbar on Android 11 due to removal of overscan support
Braden Farmer [Sun, 14 Jun 2020 18:19:20 +0000 (12:19 -0600)]
Don't show option to hide navbar on Android 11 due to removal of overscan support

4 years agoMinor changes to libtaskbar readme
Braden Farmer [Sun, 14 Jun 2020 17:09:45 +0000 (11:09 -0600)]
Minor changes to libtaskbar readme

4 years agoMerge pull request #127 from utzcoz/master
Braden Farmer [Sun, 14 Jun 2020 16:45:20 +0000 (10:45 -0600)]
Merge pull request #127 from utzcoz/master

Split TaskbarController large methods part07

4 years agoExtract raw string to constant in TaskbarControllerTest
utzcoz [Sun, 14 Jun 2020 13:02:28 +0000 (21:02 +0800)]
Extract raw string to constant in TaskbarControllerTest

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoExtract method to generate app entries for TaskbarController
utzcoz [Sun, 14 Jun 2020 12:52:02 +0000 (20:52 +0800)]
Extract method to generate app entries for TaskbarController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoUse instance methods to replace static methods in TaskbarShadowLauncherApps
utzcoz [Sun, 14 Jun 2020 09:22:04 +0000 (17:22 +0800)]
Use instance methods to replace static methods in TaskbarShadowLauncherApps

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoMerge pull request #124 from utzcoz/master
Braden Farmer [Wed, 10 Jun 2020 16:53:23 +0000 (10:53 -0600)]
Merge pull request #124 from utzcoz/master

 Split TaskbarController large methods part06

4 years agoRemove unused public modifier for @VisibleForTesting methods
utzcoz [Mon, 8 Jun 2020 06:38:30 +0000 (14:38 +0800)]
Remove unused public modifier for @VisibleForTesting methods

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoExtract method to popuplate final app entry in TaskbarController
utzcoz [Mon, 8 Jun 2020 06:27:18 +0000 (14:27 +0800)]
Extract method to popuplate final app entry in TaskbarController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoExtract method to filter real pinned apps in TaskbarController
utzcoz [Mon, 8 Jun 2020 05:10:14 +0000 (13:10 +0800)]
Extract method to filter real pinned apps in TaskbarController

Robolectric doesn't support LauncherApps.isPackageEnabled in this shadow
implementation, so we should add a new implementation to support it. And
we should ignore custom shadows from powermock to avoid the problem
that the classloader of custom shadow isn't equals to classloader
used by robolectric. For example, if we don't ignore custom shadow from
powermock, the following casting can't be executed:

TaskbarShadowLauncherApps shadowLauncherApps =
Shadows.shadowOf(launcherApps);

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoFix tests
Braden Farmer [Wed, 3 Jun 2020 18:24:15 +0000 (12:24 -0600)]
Fix tests

4 years agoTaskbar 6.0 (release 3)
Braden Farmer [Wed, 3 Jun 2020 16:49:44 +0000 (10:49 -0600)]
Taskbar 6.0 (release 3)

* String tweaks to better assist ROG Phone 2 users
* Minor dependency updates

4 years agoTaskbar 6.0 (release 2)
Braden Farmer [Mon, 1 Jun 2020 05:04:48 +0000 (23:04 -0600)]
Taskbar 6.0 (release 2)

* Make LauncherHelper.isOnSecondaryHomeScreen() return false if a secondary display is not attached
* Fix dashboard focus issues on Android 10

4 years agoTaskbar 6.0 (release 1)
Braden Farmer [Mon, 1 Jun 2020 02:01:30 +0000 (20:01 -0600)]
Taskbar 6.0 (release 1)

* Bump version code for 6.0 release

4 years agoLock orientation of DimScreenActivity programatically
Braden Farmer [Mon, 1 Jun 2020 01:38:19 +0000 (19:38 -0600)]
Lock orientation of DimScreenActivity programatically

4 years agoAdd link to xda article
Braden Farmer [Mon, 1 Jun 2020 01:35:00 +0000 (19:35 -0600)]
Add link to xda article

4 years agoClarifications regarding DisplayLink support
Braden Farmer [Mon, 1 Jun 2020 01:28:33 +0000 (19:28 -0600)]
Clarifications regarding DisplayLink support

4 years agoUpdate libtaskbar readme
Braden Farmer [Mon, 1 Jun 2020 00:13:40 +0000 (18:13 -0600)]
Update libtaskbar readme

4 years agoIconics and HTML formatting don't play well together
Braden Farmer [Sun, 31 May 2020 21:43:33 +0000 (15:43 -0600)]
Iconics and HTML formatting don't play well together

4 years agoRevert "Use Iconics when rendering help text"
Braden Farmer [Sun, 31 May 2020 21:42:16 +0000 (15:42 -0600)]
Revert "Use Iconics when rendering help text"

This reverts commit 0b7cde3f8de7917d4a8a3a64f2c9a1036d0fb4bf.

4 years agoUse Iconics when rendering help text
Braden Farmer [Sun, 31 May 2020 21:04:23 +0000 (15:04 -0600)]
Use Iconics when rendering help text

4 years agoString tweaks
Braden Farmer [Sun, 31 May 2020 20:34:47 +0000 (14:34 -0600)]
String tweaks

4 years agoProactively finish DimScreenActivity in case of System UI crashes
Braden Farmer [Sun, 31 May 2020 20:05:35 +0000 (14:05 -0600)]
Proactively finish DimScreenActivity in case of System UI crashes

4 years agoUse display context when hiding navbar from desktop mode settings
Braden Farmer [Sun, 31 May 2020 19:40:05 +0000 (13:40 -0600)]
Use display context when hiding navbar from desktop mode settings

4 years agoFilter out group summary notifications instead
Braden Farmer [Sun, 31 May 2020 18:03:52 +0000 (12:03 -0600)]
Filter out group summary notifications instead

4 years agoDon't include notifications with id 0 in the notification count
Braden Farmer [Sun, 31 May 2020 15:51:00 +0000 (09:51 -0600)]
Don't include notifications with id 0 in the notification count

4 years agoMake GlobalHelper account for multiple instances of MainActivity
Braden Farmer [Sun, 31 May 2020 15:07:00 +0000 (09:07 -0600)]
Make GlobalHelper account for multiple instances of MainActivity

4 years agoRename AppHelper to GlobalHelper
Braden Farmer [Sun, 31 May 2020 14:40:52 +0000 (08:40 -0600)]
Rename AppHelper to GlobalHelper

4 years agoBug fixes
Braden Farmer [Sun, 31 May 2020 06:49:30 +0000 (00:49 -0600)]
Bug fixes

4 years agoDependency updates
Braden Farmer [Sun, 31 May 2020 05:40:30 +0000 (23:40 -0600)]
Dependency updates

4 years agoMove helpers into their own package
Braden Farmer [Sun, 31 May 2020 05:34:47 +0000 (23:34 -0600)]
Move helpers into their own package

4 years agoPrevent DimScreenActivity from starting while on MainActivity
Braden Farmer [Sun, 31 May 2020 05:19:05 +0000 (23:19 -0600)]
Prevent DimScreenActivity from starting while on MainActivity

4 years agoUpdate CHANGELOG.md
Braden Farmer [Sun, 31 May 2020 05:01:24 +0000 (23:01 -0600)]
Update CHANGELOG.md

4 years agoCouple of bug fixes
Braden Farmer [Sun, 31 May 2020 04:26:17 +0000 (22:26 -0600)]
Couple of bug fixes

4 years agoBetter method of allowing reflection at runtime
Braden Farmer [Sun, 31 May 2020 02:47:56 +0000 (20:47 -0600)]
Better method of allowing reflection at runtime

4 years agoProperly fix rawtypes suppressions
Braden Farmer [Sun, 31 May 2020 01:50:08 +0000 (19:50 -0600)]
Properly fix rawtypes suppressions

4 years agoMove reflection removal code
Braden Farmer [Sat, 30 May 2020 23:34:44 +0000 (17:34 -0600)]
Move reflection removal code

4 years agoUpdate README.md
Braden Farmer [Sat, 30 May 2020 21:19:12 +0000 (15:19 -0600)]
Update README.md

4 years agoUpdate libtaskbar readme
Braden Farmer [Sat, 30 May 2020 17:55:54 +0000 (11:55 -0600)]
Update libtaskbar readme

4 years agoDecouple the changelog version from the version code
Braden Farmer [Sat, 30 May 2020 17:07:53 +0000 (11:07 -0600)]
Decouple the changelog version from the version code