OSDN Git Service
utzcoz [Thu, 26 Mar 2020 07:32:11 +0000 (15:32 +0800)]
Add tests for invalid position
Test: run ./gradlew test and all tests passed
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Thu, 26 Mar 2020 07:13:20 +0000 (15:13 +0800)]
Add util methods to check position group
Now adding below methods:
1. isLeft.
2. isRight.
3. isBottom.
4. isVertical.
5. isVerticalLeft.
6. isVerticalRight.
Test: run ./gradlew test and all test passed.
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Thu, 26 Mar 2020 06:20:24 +0000 (14:20 +0800)]
Extract taskbar position string to TaskbarPosition
Also we extract logic to transfer position based on rotation
to TaskbarPosition too.
Test: run ./gradlew test and all test passed, and change taskbar postion
from settings manually, and taskbar shows correctly in all cases.
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Wed, 25 Mar 2020 16:26:52 +0000 (10:26 -0600)]
Update README.md
Braden Farmer [Wed, 25 Mar 2020 16:25:46 +0000 (10:25 -0600)]
Add Jacoco test coverage report
Braden Farmer [Wed, 25 Mar 2020 15:26:41 +0000 (09:26 -0600)]
Merge pull request #95 from utzcoz/master
Add basic unit test structure
utzcoz [Wed, 25 Mar 2020 06:54:11 +0000 (14:54 +0800)]
Add basic unit test structure
Selecting robolectric as unit test library to test UI on JVM. We use the
robolectric version 4.3.1, that supports to latest Android Q(final). But
it requires Java 9 to run the tests, so to avoid this problem, we assign
the sdk to 28 in robolectric.properties for almost all tests, and
leaving Android 10 specific features left to ease the usage of
robolectric.
Now we add a test example for U.java getTaskbarPosition function.
For check the tests result, we can execute ./gradlew test on the top
code directory, or use ctrl + shift + F10 in test file to execute unit
test in Android Studio.
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Mon, 23 Mar 2020 05:04:28 +0000 (23:04 -0600)]
Abstract logic for setting components enabled / disabled
Braden Farmer [Mon, 23 Mar 2020 04:40:49 +0000 (22:40 -0600)]
Abstract LocalBroadcastManager logic out into utility methods
Braden Farmer [Mon, 23 Mar 2020 03:21:46 +0000 (21:21 -0600)]
Fix typo
Braden Farmer [Mon, 23 Mar 2020 03:18:44 +0000 (21:18 -0600)]
Merge pull request #94 from utzcoz/master
Extrac left Intent action string to TaskbarIntent constants
Braden Farmer [Mon, 23 Mar 2020 03:10:21 +0000 (21:10 -0600)]
Laying some of the groundwork for the additional desktop mode settings
utzcoz [Mon, 23 Mar 2020 02:45:36 +0000 (10:45 +0800)]
Extract UPDATE_SWITCH to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:43:09 +0000 (10:43 +0800)]
Extract ACCESSIBILITY_ACTION to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:39:04 +0000 (10:39 +0800)]
Extract SEND_SETTINGS to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:37:34 +0000 (10:37 +0800)]
Extract LAUNCHER_PREF_CHANGED to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:34:21 +0000 (10:34 +0800)]
Extract UPDATE_HOME_SCREEN_MARGINS to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:31:44 +0000 (10:31 +0800)]
Extract KILL_HOME_ACTIVITY to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:28:10 +0000 (10:28 +0800)]
Extract START/RESTART/QUIT to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:22:16 +0000 (10:22 +0800)]
Extract RECEIVE_SETTINGS to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:19:45 +0000 (10:19 +0800)]
Extract IMPORT_FINISHED to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:16:05 +0000 (10:16 +0800)]
Extract TOUCH_ABSORBER_STATE_CHANGED to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:11:59 +0000 (10:11 +0800)]
Extract HIDE_DASHBOARD to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:05:00 +0000 (10:05 +0800)]
Extract DASHBOARD_DISAPPEARING to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 02:01:51 +0000 (10:01 +0800)]
Extract DASHBOARD_APPEARING to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 01:57:56 +0000 (09:57 +0800)]
Extract TOGGLE_DASHBOARD to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 01:54:10 +0000 (09:54 +0800)]
Extract ENTER_ICON_ARRANGE_MODE to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 01:42:15 +0000 (09:42 +0800)]
Extract SORT_DESKTOP_ICONS to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 01:39:30 +0000 (09:39 +0800)]
Extract REFRESH_DESKTOP_ICONS to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Mon, 23 Mar 2020 01:22:59 +0000 (09:22 +0800)]
Extract *WIDGET* to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Sun, 22 Mar 2020 18:40:10 +0000 (12:40 -0600)]
Swap "Grid" and "List" items, as "Grid" is always the default
Braden Farmer [Sun, 22 Mar 2020 15:40:56 +0000 (09:40 -0600)]
Merge pull request #93 from utzcoz/master
Extract *CONTEXT_MENU* to TaskbarIntent constants
utzcoz [Sun, 22 Mar 2020 15:32:29 +0000 (23:32 +0800)]
Extract HIDE_CONTEXT_MENU to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 15:27:55 +0000 (23:27 +0800)]
Extract CONTEXT_MENU_DISAPPEARING to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 15:21:28 +0000 (23:21 +0800)]
Extract CONTEXT_MENU_APPEARING to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Sun, 22 Mar 2020 06:17:05 +0000 (00:17 -0600)]
Merge pull request #92 from utzcoz/master
Extract *TASKBAR* string to TaskbarIntent constants
utzcoz [Sun, 22 Mar 2020 02:45:47 +0000 (10:45 +0800)]
Extract SHOW_HIDE_TASKBAR to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 02:41:54 +0000 (10:41 +0800)]
Extract FORCE_TASKBAR_RESTART to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 02:38:24 +0000 (10:38 +0800)]
Extract SHOW_TASKBAR to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 02:28:47 +0000 (10:28 +0800)]
Extract TEMP_SHOW_TASKBAR to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sun, 22 Mar 2020 02:13:38 +0000 (10:13 +0800)]
Extract TEMP_HIDE_TASKBAR to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Sat, 21 Mar 2020 22:01:26 +0000 (16:01 -0600)]
Fixes for previous commit
Braden Farmer [Sat, 21 Mar 2020 20:47:17 +0000 (14:47 -0600)]
Add help button to action bar for certain screens
Braden Farmer [Sat, 21 Mar 2020 20:06:44 +0000 (14:06 -0600)]
Improvements for setting default home app
Braden Farmer [Sat, 21 Mar 2020 19:37:43 +0000 (13:37 -0600)]
Improved HSL intent handling
Braden Farmer [Sat, 21 Mar 2020 15:24:47 +0000 (09:24 -0600)]
Update README.md
Braden Farmer [Sat, 21 Mar 2020 15:23:12 +0000 (09:23 -0600)]
Merge pull request #91 from utzcoz/master
Extract *FREEFORM* string to TaskbarIntent constants
utzcoz [Sat, 21 Mar 2020 08:15:26 +0000 (16:15 +0800)]
Extract TOGGLE_FREEFORM_MODE to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sat, 21 Mar 2020 07:58:23 +0000 (15:58 +0800)]
Extract FREEFORM_PREF_CHANGED to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sat, 21 Mar 2020 07:50:08 +0000 (15:50 +0800)]
Extract FINISH_FREEFORM_ACTIVITY to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Sat, 21 Mar 2020 06:11:43 +0000 (14:11 +0800)]
Extract UPDATE_FREEFORM_CHECKBOX to TaskbarIntent contant
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Sat, 21 Mar 2020 06:01:52 +0000 (00:01 -0600)]
Adding a header and private constructor to TaskbarIntent
Braden Farmer [Sat, 21 Mar 2020 05:57:43 +0000 (23:57 -0600)]
Merge pull request #90 from utzcoz/master
Extract *START_MENU* string to TaskbarIntent contants
Braden Farmer [Sat, 21 Mar 2020 05:54:53 +0000 (23:54 -0600)]
Fleshing out the desktop mode preferences screen
Braden Farmer [Sat, 21 Mar 2020 04:18:32 +0000 (22:18 -0600)]
Remove unnecessary casts
utzcoz [Fri, 20 Mar 2020 06:59:52 +0000 (14:59 +0800)]
Extract SHOW/HIDE_START_MENU_SPACE to TaskbarIntent contants
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:49:52 +0000 (14:49 +0800)]
Extract HIDE_START_MENU_NO_RESET to TaskbarIntent constant
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:46:12 +0000 (14:46 +0800)]
Extract RESET_START_MENU string to TaskbarIntent.ACTION_RESET_START_MENU
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:41:36 +0000 (14:41 +0800)]
Extract START_MENU_APPEARING string to TaskbarIntent.ACTION_START_MENU_APPEARING
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:37:41 +0000 (14:37 +0800)]
Extract START_MENU_DISAPPEARING string to TaskbarIntent.ACTION_START_MENU_DISAPPEARING
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:27:02 +0000 (14:27 +0800)]
Extract TOGGLE_START_MENU string to TaskbarIntent.ACTION_TOGGLE_START_MENU
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Fri, 20 Mar 2020 06:12:25 +0000 (14:12 +0800)]
Extract HIDE_START_MENU string to TaskbarIntent.ACTION_HIDE_START_MENU
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Fri, 20 Mar 2020 05:45:23 +0000 (23:45 -0600)]
Merge pull request #89 from utzcoz/master
Extract HIDE_TASKBAR string to TaskbarIntent.ACTION_HIDE_TASKBAR
Braden Farmer [Fri, 20 Mar 2020 05:38:34 +0000 (23:38 -0600)]
Integrate HSL into Taskbar as part of desktop mode support
utzcoz [Thu, 19 Mar 2020 07:27:57 +0000 (15:27 +0800)]
Extract HIDE_TASKBAR string to TaskbarIntent.ACTION_HIDE_TASKBAR
String com.farmerbb.taskbar.HIDE_TASKBAR is used on many place,
so we should extract it to a constant field to simply the usage.
Because this string is used to Intent, we create a class called
TaskbarIntent, that is similar to system's Intent to store
constant fields used by Intent.
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Thu, 19 Mar 2020 04:48:27 +0000 (22:48 -0600)]
Continue work on standalone Android 10 Desktop Mode support
Braden Farmer [Wed, 18 Mar 2020 05:44:54 +0000 (23:44 -0600)]
Fix desktop mode icon size
Braden Farmer [Wed, 18 Mar 2020 05:26:03 +0000 (23:26 -0600)]
Initial desktop mode preference
Braden Farmer [Wed, 18 Mar 2020 03:36:09 +0000 (21:36 -0600)]
Revert "DummyActivity launches should always be either maximized or lower right"
This reverts commit
dd1e8f6532d3d8ca4b3be05781fb575a28d5ec68.
Braden Farmer [Wed, 18 Mar 2020 02:30:05 +0000 (20:30 -0600)]
Fix a few more logic errors with freeform mode
Braden Farmer [Mon, 16 Mar 2020 05:40:10 +0000 (23:40 -0600)]
Small verbiage tweak
Braden Farmer [Mon, 16 Mar 2020 04:15:43 +0000 (22:15 -0600)]
Trying another fix for collapsing logic on the home screen
Braden Farmer [Mon, 16 Mar 2020 03:59:44 +0000 (21:59 -0600)]
Revert "Explicitly tie showing / hiding Taskbar automatically on the home screen to the "Collapse Taskbar when selecting items" setting"
This reverts commit
6e3da5a8e4951302d64f9dbb4d5e4fbc566bf8d5.
Braden Farmer [Mon, 16 Mar 2020 03:59:35 +0000 (21:59 -0600)]
Revert "Fix issues with auto showing/hiding Taskbar when set as home screen"
This reverts commit
a366d36b605e82f6548f2eda7643ea7ffadacce3.
Braden Farmer [Sun, 15 Mar 2020 05:30:20 +0000 (23:30 -0600)]
Fix issues with auto showing/hiding Taskbar when set as home screen
Braden Farmer [Sat, 14 Mar 2020 17:59:20 +0000 (11:59 -0600)]
Hide desktop mode behind a preference (not exposed yet)
Braden Farmer [Sat, 14 Mar 2020 17:49:40 +0000 (11:49 -0600)]
DummyActivity launches should always be either maximized or lower right
Braden Farmer [Sat, 14 Mar 2020 17:37:00 +0000 (11:37 -0600)]
Typo fix
Braden Farmer [Sat, 14 Mar 2020 17:31:54 +0000 (11:31 -0600)]
Merge pull request #88 from utzcoz/master
Add variable to use Taskbar replace default Launchers in AOSP for Android.mk
Braden Farmer [Sat, 14 Mar 2020 17:27:29 +0000 (11:27 -0600)]
Small verbiage tweak
Braden Farmer [Thu, 12 Mar 2020 04:01:45 +0000 (22:01 -0600)]
Animation tweaks
utzcoz [Wed, 11 Mar 2020 07:57:20 +0000 (15:57 +0800)]
Add variable to control whether use Taskbar to replace default Launchers
User can define EANBLE_TASKBAR_REPLACE := true in its device makefile to
use Taskbar to replace default Launchers. If user doesn't assign true to
this value, or define this variable, the system will build Taskbar to
system/priv-app only, and other Launchers will exist too.
Signed-off-by: utzcoz <utzcoz@outlook.com>
utzcoz [Tue, 10 Mar 2020 15:24:59 +0000 (23:24 +0800)]
Use Taskbar replaces default Launcher in AOSP
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Wed, 11 Mar 2020 06:05:24 +0000 (00:05 -0600)]
Buffer input / output streams
Braden Farmer [Wed, 11 Mar 2020 05:27:58 +0000 (23:27 -0600)]
Remove xor encryption of backup files, for performance reasons
Braden Farmer [Wed, 11 Mar 2020 04:50:22 +0000 (22:50 -0600)]
Refactor backup / restore logic to implement multi-threading
Braden Farmer [Wed, 11 Mar 2020 03:14:23 +0000 (21:14 -0600)]
Update README.md
Braden Farmer [Wed, 11 Mar 2020 03:06:47 +0000 (21:06 -0600)]
Merge pull request #87 from utzcoz/master
Add Chinese translation for left string
utzcoz [Tue, 10 Mar 2020 14:49:13 +0000 (22:49 +0800)]
Add Chinese translation for left string
1. Use origin translation for some specific word, for example "freeform" ->
"自由式".
2. Use SBC case symbol to replace DBC case.
Test it with change the system language to Chinese(zh-cn), and it looks
fine.
Signed-off-by: utzcoz <utzcoz@outlook.com>
Braden Farmer [Fri, 6 Mar 2020 07:23:59 +0000 (00:23 -0700)]
Initial implementation of standalone Android 10 Desktop Mode support
Braden Farmer [Fri, 6 Mar 2020 02:51:33 +0000 (19:51 -0700)]
Finishing touches on backup & restore
Braden Farmer [Thu, 5 Mar 2020 07:04:54 +0000 (00:04 -0700)]
Change backup and restore mime types back to */*
Braden Farmer [Thu, 5 Mar 2020 07:01:15 +0000 (00:01 -0700)]
Add some basic encryption + enable backup and restore for non-debug builds
Braden Farmer [Thu, 5 Mar 2020 05:49:18 +0000 (22:49 -0700)]
Implement error handling for backup and restore
Braden Farmer [Thu, 5 Mar 2020 04:40:55 +0000 (21:40 -0700)]
Little bit of cleanup
Braden Farmer [Thu, 5 Mar 2020 04:36:23 +0000 (21:36 -0700)]
Backup & restore should now be fully working
Braden Farmer [Mon, 2 Mar 2020 04:20:41 +0000 (21:20 -0700)]
[WIP] Implement backup / restore logic
Braden Farmer [Mon, 2 Mar 2020 03:14:41 +0000 (20:14 -0700)]
Revert "Move backup classes to nonlib"
This reverts commit
ea969ce6c993fc3672db3b31e15e82f64daed6d4.
Braden Farmer [Sun, 1 Mar 2020 04:40:18 +0000 (21:40 -0700)]
Move backup classes to nonlib
Braden Farmer [Sun, 1 Mar 2020 04:27:16 +0000 (21:27 -0700)]
Add instructions for enabling system alert window and usage access permissions on recent versions of Android TV