Commit Graph

55 Commits

Author SHA1 Message Date
Mark Renouf
e2395016e2 SystemUI: add dep androidx.concurrent_concurrent-futures
Allows use of ListenableFuture via CallbackToFutureAdapter

Built, flashed, tested. No dependency issues found with
SystemUIGoogle (which already depends directly on Guava.)

Test: atest SystemUITests
Change-Id: Ie402a172b64142aebed4d6eb8c77fb5ded08fd74
2021-01-05 13:47:27 -05:00
Miranda Kephart
e1a22b9237 Fix screenshot exif attributes
Update to using the androidx support library for exif data. Also
update the error notification since failing to save isn't always
caused by limited storage space.

Test: manual
Bug: 173543930
Fix: 173543930
Change-Id: I31ca5ac30eadc5b2ff781784c3c0f0f9ac6c586f
2020-12-16 14:39:11 -05:00
Dave Mankoff
8012d7bd4f Refactor parts of FalsingManager into FalsingCollector
This CL separates out the two roles of the FalsingManager. It
introduces the FalsingCollector, used by SystemUI to report events
that may be interesting to Falsing, such as touch events, sensor
events, and general user actions.

The FalsingManager, meanwhile, continues to support the methods

This helps breakup the monolithic FalsingManger into more manageable
pieces, reducing the API surface area of FalsingManager significantly.

Bug: 172655679
Test: atest SystemUITests && manual
Change-Id: I92f8e3747f5c4a04eaa64e1a8b626c2a07c480aa
2020-11-20 09:24:26 -05:00
Jeff Sharkey
d23b5379c0 Enable Error Prone to detect obscure bugs.
We've been writing many new framework-specific Error Prone checkers
to help detect obscure platform bugs, and this change starts enabling
those checkers for more packages across the platform.

Bug: 155703208
Test: manual
Exempt-From-Owner-Approval: trivial blueprint changes
Change-Id: I1db3412b0be40f6f78c68331ae01756887192071
2020-10-23 16:55:30 -06:00
Tadashi G. Takaoka
c7340fbddb Dismiss ScreenRecordDialog when test finishes
The GlobalActionsDialogTest#testShoudLogScreenshotsLongPress test
opens ScreenRecordDialog while testing but remains it opened when test
finishes.

Bug: 171271162
Test: atest SystemUITest:GlobalActionsDialogTest
Change-Id: Ic84fed37d6eef818489ebb4a6e2052a4215014b2
2020-10-20 18:04:54 +09:00
Winson Chung
eb1aa3d9a5 Extending SysUI proto dump to WMShell
Bug: 161980310
Test: adb shell cmd statusbar tracing start/stop
      adb pull /data/user_de/0/com.android.systemui/files/sysui_trace.pb

Change-Id: Ie99eac753905ee9938a84571943c85b0a2ad29ee
2020-08-27 07:11:36 +00:00
Winson Chung
b754f5281b Add some protologs for window organizers & shell
- Refactor out base protolog impl so that shell can have it's own
  implementation which takes a different viewer config (from the resources
  directly instead of a separate file in /system/etc)
- Setup the protolog transform for shell classes
- Add some basic protologs for displayarea/task organizer controller
  & shell task org (for now only text logging)

Bug: 161980327
Test: adb shell wm logging enable-text WM_DEBUG_WINDOW_ORGANIZER
Test: adb shell dumpsys activity service SystemUIService WMShell enable-text-logging WM_SHELL_TASK_ORG
Test: atest ProtoLogImplTest \
            ProtoLogViewerConfigReaderTest \
            WmTests:ProtoLogIntegrationTest \
            LogDataTypeTest \
            protologtool-tests
Change-Id: I4c3fd6aaea04987c26ac56e9baf9fc8ab75a3f34
Signed-off-by: Winson Chung <winsonc@google.com>
2020-08-25 10:07:55 -07:00
Jerry Chang
919d1d280e Migrate wm package in sysui to WM shell lib (1/n)
Bug: 161655636
Test: atest WindowManagerShellTests
Test: atest SystemUITests
Change-Id: I42f13ee7fbb14ba3b7f33ed5654ec72454dc6dba
2020-07-22 11:46:04 +08:00
Bill Lin
a17858d1f3 SystemUI include static lib WindowManager-Shell(1/N)
Test: make SystemUI
Test: $OUT_TARGET/common/obj/APPS/SystemUI_intermediates/classes.jar \
      include /com/android/wm/shell/WindowManagerShell.class
Test: $OUT/system_ext/priv-app/SystemUI/SystemUI.apk \
      decompile classes.dex to find WindowManagerShell.class
Test: atest SystemUITests

Bug: 161118569
Change-Id: I886222562458b8b1f5a2ec36dc5345073d08221c
2020-07-14 11:13:15 +08:00
Dave Mankoff
dffcc471d1 Update Dagger2 dependencies.
Fixes: 160781930
Test: manual
Change-Id: Ic3b43bb8247c6a7ebe4257651bcb5de51699c60a
2020-07-09 09:34:47 -04:00
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