Commit Graph

7 Commits

Author SHA1 Message Date
Jerry Chang
8a94cc7096 Clean up dependencies to SystemWindows
There're some classes reaching to DisplayController and IWindowService
through SystemWindows, decouple SystemWindows from these classes and
inject needed instances directly. Update to use view.getContext instead
of injecting context from SystemUI.

Bug: 161655636
Test: atest WindowManagerShellTests
Test: atest SystemUITests
Change-Id: Ic6da21d6e407d222660b86bfb0f975c4f784b7f5
2020-07-22 14:58:33 +08: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
Ben Lin
be8b9eb16d Add ability to change PiP menu icon locations on the fly.
This CL does:
- Add a PipMenuIconsAlgorithm, allowing calculation on the fly for
correct locations of individual icons
- Make it so that when PIP changes its bounds, it updates the location
of the action items accordingly (if needed)

Bug: 160825579
Test: enter PIP, icons are still where they are
Change-Id: I8618f7c5c36c8e09613c126c1ebb20b60e95de58
2020-07-17 23:43:32 +00:00
TreeHugger Robot
caba160489 Merge "Migrate PIP resources from SystemUI to WM shell lib (3/N)" 2020-07-17 05:20:12 +00:00
Bill Lin
78c4babe4d Migrate PIP resources from SystemUI to WM shell lib (3/N)
Note: packages/SystemUI/res/values-sl/strings.xml contain blocked
      keywords, left the strings file unchanged
Test: make SystemUI
Test: make ArcSystemUI
Test: make WindowManager-Shell
Test: atest SystemUITests
Bug: 161118569
Change-Id: I1c70d4e92befdc2e53723eec66fe1e6477b9ea14
2020-07-17 11:33:39 +08:00
Jerry Chang
aa943b2039 Compiles wm shell against the platform APIs instead of SDK
WM Shell should be compiled against the platform APIs and thus should
leave sdk version empty. The value of platform_apis will be ignored when
module's type isn't android_app, remove it as well.

Bug: 161116823
Test: manual verified it could access to @hide APIs
Test: make WindowManager-Shell
Test: atest WindowManagerShellTest
Change-Id: I145b0d6352a6e10a2f4051a561e65c282374fa7c
2020-07-16 14:42:21 +08:00
Andrii Kulian
db4f5466b9 Move WindowManager Shell from packages/ to libs/
Test: Build
Change-Id: I03833b0aff5836cc00b8371907f9059aa1acc5b1
2020-01-21 11:48:19 -08:00