Commit Graph

45 Commits

Author SHA1 Message Date
Pinyao Ting
ee191b1c69 Persists bubbles to disk (part 1)
Bubbles are now write-through an xml file on disk upon addition/update,
asynchronously.

Bug: 149713060
Test: manually verify when new bubble pops up it is write through xml
Change-Id: I5d9f58cd0858ca96d5ec05c72aad4ae3a18c0aa0
2020-05-04 19:48:55 -07:00
Pinyao Ting
059091be82 Introduces kotlin coroutine which simplifies async programming.
(go/android-kotlin-coroutines)

https://github.com/Kotlin/kotlinx.coroutines

Bug: 149713060
Test: write coroutine code and verify it compiles
Change-Id: Ic3c1daa103a18d3c0cfc0ae0840e186b1cdc18d7
2020-04-30 10:22:25 -07:00
Hyunyoung Song
5912900406 Merge "Remove SystemUI-statsd out of SystemUISharedLib" into rvc-dev 2020-04-13 20:10:18 +00:00
Hyunyoung Song
3d89c931f3 Remove SystemUI-statsd out of SystemUISharedLib
Bug: 148533500
Test: builds
Change-Id: I8609409b35d34902bf1fd3f8b308cc2825cf437c
2020-04-11 16:50:59 -07:00
Prabir Pradhan
4499bde834 Include NotificationEntryBuilder dependencies in SystemUI-tests-utils
ag/10722011 introduced FakeSystemClock as a dependency to
NotificationEntrytBuilder, so FakeSystemClock and its dependency
FakeExecutor should be included in SystemUI-tests-utils.

Bug: 153680380
Test: atest ArcSystemUITests
Change-Id: Iad7add9021ba374c138bdc266af7b2608e8a03dd
2020-04-09 22:14:24 +00:00
Fabian Kozynski
713b727362 Add Structure pages to management screens
Pages are sorted alphabetically and show all controls for that
structure. The name used is the structure name of the app name for the
empty/null structure.

Done button saves all favorites selected from all structures, not just
the visible one.

Test: manual
Fixes: 150707923

Change-Id: I8ae822ed5acb6340aa08acb0dc6f3a4e6bb2f2e4
2020-03-09 10:07:36 -04:00
Sunny Goyal
eb18d3986f Separating packageName from the AndroidManifest
Test: Verified everything builds
Change-Id: Icd425e004d8420b8c7a5d221ef98ffbc22723f04
2020-02-20 03:07:52 +00:00
TreeHugger Robot
b1d7167bfe Merge "Replace usages of @hide telephony APIs with system/public ones." 2020-01-30 18:41:21 +00:00
Amit Mahajan
75eab471f3 Replace usages of @hide telephony APIs with system/public ones.
Test: basic sanity, atest SystemUITests
Bug: 146593424
Change-Id: Ie44655551546e74412d3cc699efa687f4458d1c1
2020-01-29 11:08:44 -08:00
Amit Mahajan
06c105e8e7 Remove unused telephony jars from bp files.
Test: basic sanity
Bug: 135955937
Change-Id: Ife4b9ac546c9bbe3f0ce6d3edb29f11655343613
2020-01-29 06:10:29 +00:00
Winson Chung
10a9b4b74d Create initial shell package
- It does nothing

Bug: 146497807
Test: atest WindowManagerShellTests
Test: SystemUI builds
Change-Id: Ieda77ffdc6a6bed88e55e195a2d9f147e5d4d458
2019-12-20 21:41:11 +00:00
TreeHugger Robot
a1d5731beb Merge "Move SystemUI to /system_ext" 2019-12-19 02:17:02 +00:00
Beverly
79c89ecef7 Move NotificationEntryBuilder to collection pkg
So now we can change attributes of ListEntry using NotificationEntryBuilder
in tests.

Test: atest SystemUiTests
Bug: 145134683
Change-Id: Iccb986a5fddec41dbe00df4224634c1b19913bff
2019-12-18 08:29:44 -05:00
Jeongik Cha
d45d9e111b Move SystemUI to /system_ext
we plan to forbid hidden API in product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Test: atest SystemUITests
Change-Id: I54f86496d4a0045af3576091cce00e5cd285b4f8
2019-12-17 07:19:45 +00:00
Beverly
9028d41a7f SysUi can mock static methods + coordinator tests
- Add ability to mock static methods in SystemUI (In SystemUI, use
  mockito-target-extended-minus-junit4 and add libdexmakerjvmtiagent
  and libstaticjvmtiagent jni libraries to SystemUI tests bp/mk files
  so that we have static-mocking abilities)
- Add tests for new Coordinators

Test: atest SystemUiTests
Bug: 145134683
Change-Id: I0450a07c6d465c6d1f7d74acddb054538540785a
2019-12-11 16:33:16 -05:00
Sunny Goyal
b4a26016c4 Moving product specific strings to a separate directory
This allows for easier organization of gradle project

Test: Verified everything builds
Change-Id: Idde32a0ccdf0c6cf0fca7898d7ad770b709fc1f5
2019-12-06 17:48:39 +00:00
Dave Mankoff
1992ffb20e Delete unreferenced legacy code.
There is still a chance removing this code will break things
and that this will need to be reverted, but I could not find
references to this code anywhere in either android or google3.

Bug: 141383302
Test: atest SystemUITests
Change-Id: I7f49fd520abd874f41d81141b19869de87027fd3
2019-09-24 11:40:39 -04:00
Tadashi G. Takaoka
a6572dc16e Add SystemUI-tests-utils filegroup to reuse in downstream
Because SystemUI-tests android_library conatins AndroidManifest.xml,
it is diffecult to use test utility classes in SystemUITests from
downstream, such as ArcSystemUITests. Having a separate filegroup
module may help to address such difficulty.

Bug: 140464398
Test: make -j SystemUI SystemUITests
Change-Id: Idfc65a3afb30e58efee82a2eccbdbc2b26297364
2019-09-17 08:20:54 +00:00
Hyunyoung Song
8f9d34cb5f [DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791
Test: presubmit setup on source branch

Bug: 130289146 Create a Gradle build for SystemUI
Bug: 136279712 Daggerize FalsingManager
Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests
Bug: 137563419 Remove Bouncer reveal delay from bypass flow
Bug: 138787339 Allow Services and Activities to be injected into directly.
Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap
Bug: 64712476 Import translations for dev branches


Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d
2019-09-01 00:31:47 -07:00
Selim Cinek
e85c9720a2 Merge changes I5694a38e,I488f90aa,Ie9644dc8,I8d5b5b53,Ib8a0fa19 into qt-r1-dev
am: 2cfa02421b

Change-Id: I7e3a1c9041465f902afc0a1f8d4a60c289c5f384
2019-06-19 19:22:23 -07:00
Selim Cinek
820ba2d94d Continued the bypass experience
The lock icon now hides as soon as the notifications are showing
to avoid the overlap introduced in the previous CL.
We're also introducing a new listener that one can listen to
for when the notifications are fully hidden.
That same listener is now used to hide and show the aod icons

Bug: 130327302
Change-Id: I5694a38e542b82bf2738d66bdff28d122a9f89e7
2019-06-19 16:13:53 -07:00
Lyn Han
1b4f25e3d7 Normalized icon bitmap
Extend Launcher's BaseIconFactory to create bubble icon instead of manually creating AdaptiveIconDrawable.

Launcher normalizes circles bigger and squares smaller to account for the visual difference in size.
This results in padding between bubble view and the actual icon.

This change
- increases individual_bubble_size to account for this padding
- preserves the previous value in bubble_icon_bitmap_size
- includes various space / animation adjustments to preserve existing UX
- removes manual shadow drawing from bubble stack view, since it's already provided by Launcher

Bug: 129158983
Test: manual (create bubbles, size and spacing still look good in collapsed and expanded states)
Test: manual (create bubble, flyout open / close animations look good)
Test: atest SystemUITests
Change-Id: Icf63a2be57daff21ec64d2e9ac0eb0cd96af0399
2019-06-13 17:10:53 -07:00
Steve Elliott
300b48ff11 Constrain global actions panel to available space
Formerly, the global actions panel was given the entire screen, and
was rendered above the global actions menu. Now, we limit it to the
space unused by the menu.

Bug: 133511683
Test: manual
Change-Id: I74f4db0b9a2a4e030ec1fd53ddd65e7c372d229c
2019-05-30 11:23:44 -04:00
Hyunyoung Song
5347a54a3d iconloader dependency in SystemUI-core
Bug: 129158983
Change-Id: I678fbf734d158eadff365262225e6e8802d7ef4e
Test: m -j10 SystemUI-core -> Success locally
2019-05-13 23:37:59 +00:00
Hyunyoung Song
b0a4d5ecff Revert "iconloader dependency in SystemUI-core"
This reverts commit d490442068.

Reason for revert: Sharesheet implementation is staying in system server

Change-Id: I10ed6410788ac55680f697cb142053a53ff33c82
2019-03-13 06:00:25 +00:00
Hyunyoung Song
d490442068 iconloader dependency in SystemUI-core
Test: m -j10 SystemUI-core -> Success locally

Trying to run presubmit early so that if there is any issue
with bringing the dependency, I can work on it parallel.

Change-Id: I939895a1e47a0c2529d97fa623f4a81937f99d3d
2019-03-01 13:32:28 -08:00
Brett Chabot
84151d91f7 Migrate frameworks/base/tests/testables and its users to androidx.test
See go/jetpack-test-android-migration

This is the internal version of AOSP change aosp/908373

Test: m -j TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests WmTests FrameworksCoreTests

Exempt-From-Owner-Approval: automated package name refactoring; already reviewed on AOSP
Change-Id: Ib04d80954bd8536914d88c66b28e6632e60a6245
2019-03-01 16:54:09 +00:00
Anton Hansson
5641b63411 Merge "Specify no resource_dirs for SystemUI" am: 347d6ff9f9 am: a05d598bc0
am: dd33e2766b

Change-Id: Ifbd329e479ba447707d1a2a3a9492b5b9e48e331
2019-02-18 10:35:05 -08:00
Anton Hansson
7ccca9fb19 Specify no resource_dirs for SystemUI
The res directory is already included via the SystemUI-core
library. The default for resource_dirs is ["res"] if it exists,
so explicitly clear it to avoid depending on it twice.

Bug: 124035856
Test: m SystemUI
Change-Id: Ia1b06cd9eff4e614684efde34288cf9ebd895870
2019-02-18 12:12:47 +00:00
Josh Tsuji
3e6de26e7a Merge "Adds DynamicAnimation-based movement to the bubbles." 2019-01-25 16:04:51 +00:00
Joshua Tsuji
b1a796b155 Adds DynamicAnimation-based movement to the bubbles.
See go/bubble-stack-design for a high level overview of these changes. This is a large CL, but required in order to allow continued development and team testing without breaking functionality over the course of multiple CL submissions.

To integrate the new animations, the following changes have been made to existing code:
* (BubbleStackView) The bubble container (and thus, the stack view) are MATCH_PARENT to allow the bubbles to independently translate anywhere on the screen.
* (BubbleStackView) Start position is set by the stack controller, not BubbleStackView.
* (BubbleStackView) Expand positon is set by the expansion controller, not BubbleStackView.
* (BubbleStackView/BubbleTouchHandler) Added the methods onDragStart/onDragged/onDragFinish, and onBubbleDragStart/onBubbleDragged/onBubbleDragFinish, for cleaner dispatch of touch events to the appropriate animation controller.
* (BubbleStackView/BubbleController) The stack view's getBoundsOnScreen returns the first bubble's bounds, if the stack is not expanded.
* (BubbleStackView) applyCurrentState no longer manages translation of bubbles, or the expanded view, these are controlled by animation.
* (BubbleMovementHelper) Deleted, no longer needed.
* (Everywhere) Changed uses of Point to PointF, since translation values are floats anyway.

Known issues to be fixed in subsequent, far smaller CLs:
* (b/123022862) Bubble dragging out/dismissing is not animated, and the bubbles can be deposited anywhere. Tap outside the stack to collapse them back to normal.
* (b/123023502) New bubbles added while the stack is expanded are not positioned properly.
* (b/123022982) Expanded view arrow is sometimes in the wrong position.
* (b/123023410) If the stack is expanded while animating, it collapses to its original position even if not along the edge of the screen.
* (b/123023904) The expanded view doesn't animate out, it disappears instantly.
* (b/123026584) Bounds in landscape are a bit wonky.

Bug: 111236845
Test: atest SystemUITests
Test: physics-animation-testing.md
Change-Id: Icaca09e5db89c635c9bb7ca82d7d2714362e344e
2019-01-24 19:23:17 -05:00
Colin Cross
a3b22bfd14 Replace annotation_processors with plugins
The annotation_processors property is deprecated, replace it with
plugins, and use java_plugin for modules that provide annotation
processors.

Bug: 77284273
Test: m checkbuild
Change-Id: I467b899e0c8f2c8fa74a9bfbe6e952ad0f7aa009
2019-01-23 15:54:30 -08:00
Anton Hansson
b7909f3a2b Move SystemUI and its permissions to /product
Since this app is frequently customized by OEMs, it doesn't
fit in the mainline /system image right now. Move it to
/product.

Bug: 110072687
Test: make
Test: boot blueline
Test: atest SystemUITests
Change-Id: If27bcccd62f239f716db5ee7f4f1418d936e1cf4
Merged-In: If27bcccd62f239f716db5ee7f4f1418d936e1cf4
(cherry picked from commit 9068f65e4f)
2019-01-11 16:32:33 +00:00
Anton Hansson
2012be2471 Move Settings/SystemUI permissions to separate files
This makes it possible to move the permission around separately
from all the other permissions. This permission file is included
automatically when the respective app is included.

Bug: 110072687
Test: make
Change-Id: I91b30561d4a4000334ffbf3b98bb632d962f4b97
Merged-In: I91b30561d4a4000334ffbf3b98bb632d962f4b97
2019-01-11 16:24:28 +00:00
Jason Monk
27d01a624d Start using some dagger 2
Early days as we start migration, so lots of duplication between
Dependency and dagger2, but can be removed when migration is done.

Test: existing tests.
Change-Id: I00c3da6ebbd46a26e512d8a7aa1e2b828e08f33f
2018-12-19 09:47:37 -05:00
Anton Hansson
9068f65e4f Move SystemUI and its permissions to /product
Since this app is frequently customized by OEMs, it doesn't
fit in the mainline /system image right now. Move it to
/product.

Bug: 110072687
Test: make
Test: boot blueline
Test: atest SystemUITests
Change-Id: If27bcccd62f239f716db5ee7f4f1418d936e1cf4
2018-12-18 10:33:56 +00:00
Anton Hansson
c32be24d36 Move Settings/SystemUI permissions to separate files
This makes it possible to move the permission around separately
from all the other permissions. This permission file is included
automatically when the respective app is included.

Bug: 110072687
Test: make
Change-Id: I91b30561d4a4000334ffbf3b98bb632d962f4b97
2018-12-17 15:04:34 +00:00
Brad Stenning
ebb94362a9 Remove Car Deps from build file now that CarSystemUI is standalone
Test: Build
Change-Id: I0d4a582a8fb77515748b232cf059f6485174676f
2018-12-13 11:57:42 -08:00
Jason Monk
73e8ffc484 Enable dagger for sysui
Test: build
Change-Id: I9b7c726666cd09f363f110ab9221fed6c6a20871
2018-12-06 14:45:19 -05:00
Ying Zheng
149f93841b Clean up car user lib in system UI.
Bug: 118821773
Test: build
Change-Id: Ib8d723ad8bff7ec57c8909b82dc16323e714a377
2018-11-05 13:33:37 -08:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Ying Zheng
4fd6b783e3 Migrate sysUI and carSysUI to the separated car user lib.
Bug: 113868873
Test: build
Change-Id: I48fb69aab7092d256c6839377c905340f9059165
2018-09-11 13:51:49 -07:00
Jason Monk
2c3a8045cd Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
Merged-In: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
(cherry picked from commit a2f2d82f26)
(cherry picked from commit 1a8ee9d2f9)
(cherry picked from commit 83ce30d807)
2018-09-05 13:57:10 -07:00
Jason Monk
ae7ced2f95 First kotlin
Convert one class to kotlin and provide a slight amount of guidance.

Test: existing tests
Change-Id: Ie8659765b674ac7b2d82ed3d343f387195c07d83
2018-08-23 12:49:08 -04:00
Jason Monk
a2f2d82f26 Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
2018-08-16 19:40:39 -04:00