Commit Graph

17701 Commits

Author SHA1 Message Date
Joshua Trask
554dcb5a72 System->Unbundled, AppPrediction availability bit.
The current logic in ChooserActivity depends on checking
for the presence of a particular AppPredictionService
component in AiAi, but that check always fails in the
unbundled Chooser. Instead, only check when we're
running on the system side, and hand off the bit in an
extra on the delegation intent.

Test: trivial (needs other changes for meaningful behavior)
Bug: 206831012
Change-Id: I86919d962ac25fc1a4dd4a25d672d400abc64ff2
2021-11-19 14:39:03 -05:00
Treehugger Robot
32928fecf0 Merge "Framework and system_server classes can access public vendor libraries" am: 8cb6d28329 am: 1f479b99ce am: 6d0d1ff1e6 am: aad398ed08
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885792

Change-Id: Ie41aef3be08b7a579e3fa24a1b21bd9057c9a45a
2021-11-19 01:22:56 +00:00
Treehugger Robot
aad398ed08 Merge "Framework and system_server classes can access public vendor libraries" am: 8cb6d28329 am: 1f479b99ce am: 6d0d1ff1e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885792

Change-Id: I46c8afc6889b9e01e0d48e011092b49f5cee5a12
2021-11-19 01:05:19 +00:00
Treehugger Robot
6d0d1ff1e6 Merge "Framework and system_server classes can access public vendor libraries" am: 8cb6d28329 am: 1f479b99ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885792

Change-Id: I924242f514458f53cfb71ef83b5084646c8b1b73
2021-11-19 00:47:09 +00:00
Treehugger Robot
1f479b99ce Merge "Framework and system_server classes can access public vendor libraries" am: 8cb6d28329
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885792

Change-Id: Ia8fe285e3668fac4c2d6ca8ffff2976df88f90c3
2021-11-19 00:29:06 +00:00
Treehugger Robot
8cb6d28329 Merge "Framework and system_server classes can access public vendor libraries" 2021-11-19 00:08:57 +00:00
Joshua Trask
622adb8ffe Merge ""Springboard" from system to new chooser." 2021-11-18 22:41:14 +00:00
Issei Suzuki
69700e2f2b Merge "Stop output WM_DEBUG_WALLPAPER logs to logcat" into sc-v2-dev am: 8dfb06f117 am: b6bb0424f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16283220

Change-Id: If81d94312dfbaf5814ab8b4256626a03e2bb4591
2021-11-18 20:31:53 +00:00
Issei Suzuki
b6bb0424f0 Merge "Stop output WM_DEBUG_WALLPAPER logs to logcat" into sc-v2-dev am: 8dfb06f117
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16283220

Change-Id: I2e622e390e341f1ef11088eff9265bb53ed39ed1
2021-11-18 19:51:05 +00:00
Joshua Trask
83c3ba2809 "Springboard" from system to new chooser.
These changes are somewhat hacky, but they allow
us to conditionally hand over to the new unbundled
chooser with minimal impact if the experiment
is disabled.

For a safer implementation, we could consider
starting with a separate springboard activity that
launches a normal (reverted) version of the
"bundled" chooser if we intend to show the UI
from the system side, but that would incur some
latency even when the flag is disabled.

Test: manual, as described in ag/16286296.
Bug: 202165481
Change-Id: I4073776b293806052e9ff66c50fea1181afd642a
2021-11-18 12:24:16 -05:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Prabir Pradhan
be380be6dd Remove focus change callbacks from IWindow
Since window focus changes are dispatched by InputDispatcher, remove
focus change callbacks from IWindow so that WM cannot dispatch focus
changes without going through InputDispatcher.

Bug: None
Test: presubmit
Change-Id: Idff4c18084f35febf2bb6e5622b7e987130e8c76
2021-11-18 08:38:34 -08:00
Jiyong Park
24c57c33ea Framework and system_server classes can access public vendor libraries
This CL fixes a regression caused by [1] which introduced
<uses-native-library> tag [2]. With the change, public vendor libraries
[3] became accessible only when they are listed in the caller's
AndroidManifest.xml using the new tag. However, this caused a problem to
the places where AndroidManifest.xml doesn't exist: framework and
system_server classes. For those cases, [1] incorrectly used a null list
as the requested native libraries, and as a result, no public vendor
libraries were accessible.

This CL fixes the issue by not doing the filtering for the class loaders
created for non-app contexts like zygote or system_server. Specifically,
it uses the magic keyword "ALL" which let libnativeloader.so
accept all public vendor libraries.

[1] 6a5b8b1f6d
[2] https://developer.android.com/guide/topics/manifest/uses-native-library-element
[3] https://source.android.com/devices/tech/config/namespaces_libraries#adding-additional-native-libraries

Bug: 205164833
Test: libcuttlefish_fs.so is loaded when built with the other CLs in the
same topic

Change-Id: Id92c59642773851d70d05a05f43eb5873e9de86b
2021-11-18 23:09:27 +09:00
Maciej Żenczykowski
fe2dfc5037 Merge "switch to using OWNERS from master branch of Connectivity module" am: b86ab4ae44 am: 0700ad89f8 am: 95b11d997d am: 9dab125ae7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894917

Change-Id: Iab231e59251cc81f93dc48aed37e54e1cf7f4f33
2021-11-17 22:57:47 +00:00
Maciej Żenczykowski
9dab125ae7 Merge "switch to using OWNERS from master branch of Connectivity module" am: b86ab4ae44 am: 0700ad89f8 am: 95b11d997d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894917

Change-Id: Ib56d12889921c9238e68942d6fff004e5b7de18e
2021-11-17 19:36:42 +00:00
Maciej Żenczykowski
95b11d997d Merge "switch to using OWNERS from master branch of Connectivity module" am: b86ab4ae44 am: 0700ad89f8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894917

Change-Id: I649bf90ff9d7c20eaeb32963c3f5c5bfc9be3ea1
2021-11-17 19:13:50 +00:00
Issei Suzuki
d2f718cbf3 Stop output WM_DEBUG_WALLPAPER logs to logcat
Bug: 202392340
Test: manual
Change-Id: I0e1c06182f57a195896142f6bcdaafeb7001fb74
2021-11-17 14:22:05 +01:00
Maciej Żenczykowski
7069443319 switch to using OWNERS from master branch of Connectivity module
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ifa4a38522ac3aa830e2a7f8b23ad190a334458bc
2021-11-17 00:37:40 -08:00
Dmitri Plotnikov
03fca4a0ef Merge "Reduce object allocation in procstate CPU attribution" 2021-11-16 21:10:12 +00:00
Treehugger Robot
0bc08965b2 Merge "Fix typo in BaseIWindow.java owners file" am: b2f814064e am: 6d5a079682 am: 063df04968 am: 2d3bb1c042
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893295

Change-Id: I2c26d2b1d978fe2e03388a6ce72480caf9c6896b
2021-11-16 18:48:14 +00:00
Treehugger Robot
2d3bb1c042 Merge "Fix typo in BaseIWindow.java owners file" am: b2f814064e am: 6d5a079682 am: 063df04968
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893295

Change-Id: I1531bdbe8f5201b6265709005924aaef09e16b39
2021-11-16 18:34:24 +00:00
Treehugger Robot
063df04968 Merge "Fix typo in BaseIWindow.java owners file" am: b2f814064e am: 6d5a079682
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893295

Change-Id: Ie4a7b7432d7da4b7b5f2efc1e1eb8ee01d3ba582
2021-11-16 18:10:39 +00:00
Treehugger Robot
b2f814064e Merge "Fix typo in BaseIWindow.java owners file" 2021-11-16 17:57:38 +00:00
Treehugger Robot
295e48eb99 Merge "remove PROP_QTAGUID_ENABLED" am: 999147b4ab am: 8d888d92ed am: b3135ed72d am: fa6d0cfdb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888335

Change-Id: I74c9ca7b74391d9c365ba39e4ad8471f827c7f0c
2021-11-16 05:05:54 +00:00
Treehugger Robot
fa6d0cfdb1 Merge "remove PROP_QTAGUID_ENABLED" am: 999147b4ab am: 8d888d92ed am: b3135ed72d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888335

Change-Id: Ic0b15f0fa54ceb4f62114fd29248e7427fa5f86b
2021-11-16 04:47:59 +00:00
Treehugger Robot
b3135ed72d Merge "remove PROP_QTAGUID_ENABLED" am: 999147b4ab am: 8d888d92ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1888335

Change-Id: Ib9e2b3e5c248b3acbfea21e6eeda1ec879acd31c
2021-11-16 04:30:08 +00:00
Antonio Kantek
abb67140e4 Merge "TouchMode (6.1/n) Fully detaching touch mode from focus event" 2021-11-16 01:32:17 +00:00
Vishnu Nair
8cd9256c50 Fix typo in BaseIWindow.java owners file
Change-Id: I7ea7fb4a9fc16aa007e4a6970d550f906da202f7
2021-11-15 23:38:05 +00:00
Ronish Kalia
55e30f38af Merge changes from topic "qr-code-and"
* changes:
  Add tests for QRCodeScannerController
  Add tests for QRCodeScannerTile
  Add a lock screen entry point for QR Code scanner
  Add settings keys for QR code scanner settings
  Add a quick settings entry point for QR Code Scanner
  Create a controller for QR Code Scanner in android
2021-11-15 16:35:44 +00:00
Wu Ahan
a7c80fad92 Merge "Add null check before notifying CUJ events" into sc-v2-dev am: 60316d327f am: 12b1a2ef2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16221675

Change-Id: I545d7f82708ae23f89f93284066290201af28367
2021-11-13 05:02:25 +00:00
Wu Ahan
12b1a2ef2e Merge "Add null check before notifying CUJ events" into sc-v2-dev am: 60316d327f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16221675

Change-Id: I406eee540d6fa8e36f5975ef39ee8228e47e2322
2021-11-13 04:50:51 +00:00
Dmitri Plotnikov
72e63c66a4 Reduce object allocation in procstate CPU attribution
Bug: 197162116
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Iee0ed61305248f69943a8e4a6c9baacdd523df0c
2021-11-12 17:37:00 -08:00
Dmitri Plotnikov
022404820c Merge "Fix CPU active time counter for isolated UIDs" 2021-11-13 01:15:21 +00:00
Dmitri Plotnikov
922617d834 Fix CPU active time counter for isolated UIDs
Bug: 204087731
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Ia7bd13aecd9c7c7321d1c6d6ea99beaed60f7e90
2021-11-12 15:26:47 -08:00
Wu Ahan
eec2d1237d Add null check before notifying CUJ events
There is a potential NPE since we didn't have null check before sending
broadcast, so add null cehck.

Bug: 205211901
Test: Manually
Change-Id: Icc60d2c87941373943ec627f669598dca684c09d
2021-11-12 09:06:44 +00:00
Antonio Kantek
d30cab4e6d TouchMode (6.1/n) Fully detaching touch mode from focus event
Note: ScreenshotTests properly exercises both IWindow#onFocusEvent and
JNI InputEventReceiver.

Bug: 193718270
Test: atest FrameworksCoreTests:ViewRootImplTest
Test: atest com.android.server.wm.ScreenshotTests
Test: atest FrameworksCoreTests
Test: atest CtsInputMethodTestCases
Test: atest CtsInputTestCases
Test: atest CtsSecurityTestCases
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: I63d973978a048498e59c8df34f624b623e8e9289
2021-11-12 02:25:58 +00:00
TreeHugger Robot
1754ce16f7 Merge "Remove isMultiClientImeEnabled from SystemUI" 2021-11-11 19:54:35 +00:00
ronish
c94f29e424 Create a controller for QR Code Scanner in android
This change adds a new controller that can enable/disable the entry
points for invoking a generic QR code scanner. This controller manages
the following:
1. Enabling/disabling the lock screen entry point
2. Enabling/disabling the quick settings entry point
3. Enabling/disabling the settings for lock screen entry point
4. Any changes to the QR code scanner device config

Bug: 200536509
Test: atest QRCodeScannerControllerTest

Change-Id: I6d1001e7597576f39f51f8cf4ef763fcc253423c
2021-11-11 12:21:44 +00:00
Wilson Wu
499e66b2d1 Remove isMultiClientImeEnabled from SystemUI
The Multi-Client IME was removed by CL[1].

We no longer need the the isMultiClientImeEnabled
related logic in SystemUI. Remove it for code health.

[1]: I0bdc8fe3d32ccabc8ea7996fc689543c3f99331a

Bug: 173341412
Fix: 205863279
Test: Build and flash
Change-Id: I042d40623ed34251a212fbf25f72de5647b88835
2021-11-11 16:32:30 +08:00
Nikolas Havrikov
b4e58c354b Merge "Add WINDOW_GAINED_FOCUS to IntDef annotation" 2021-11-11 08:27:55 +00:00
Calvin Pan
c84134d2b2 Merge "Support IME to take extra information to editor" 2021-11-11 02:26:21 +00:00
Maciej Żenczykowski
cb6164c141 remove PROP_QTAGUID_ENABLED
Remaining hits:
  $ repo grep 'net.qtaguid_enabled|PROP_QTAGUID_ENABLED' | egrep -v '^external/cpuinfo/test/mock/'
  art/Binary file tools/ahat/etc/L.hprof matches
  cts/Binary file tools/release-parser/tests/resources/boot-framework.art matches
  external/cpuinfo/test/dmesg/oppo-r9.log:2212:<14>[   12.785966] (6)[1:init]init: [PropSet]: pid:887 uid:1000 gid:1000 set net.qtaguid_enabled=1
  prebuilts/runtime/appcompat/hiddenapi-flags.csv:412141:Lcom/android/server/NetworkManagementSocketTagger;->PROP_QTAGUID_ENABLED:Ljava/lang/String;,blocked

Bug: 161325508
Test: atest, TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ifa30a7549396312a970fc07c37e8fa8ed85abec0
2021-11-10 15:52:30 -08:00
Nikolas Havrikov
4a93fae0d6 Add WINDOW_GAINED_FOCUS to IntDef annotation
This CL adds the missing WINDOW_GAINED_FOCUS annotation to the
StartInputFlags IntDef declaration to avoid compiler warnings such as
the one in IMMS#startInputOrWindowGainedFocusInternalLocked.

Also, this CL replaces decimals with bit-shift expressions as per AOSP
style guide.

Test: make
Bug: 205676419
Change-Id: I51fe293149d6f7fab5790d13764449d62cbdb668
2021-11-10 17:10:28 +00:00
satayev
f6810b1b94 Merge "Update compat owners." am: 39bf2ed7e5 am: a7e21f7e63 am: 8d8bec0ebe am: 6a34d3ad15 am: f56d99f70c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1886324

Change-Id: Iae6cdcd6b73224063d9b362865988848a70cdef0
2021-11-10 16:59:36 +00:00
satayev
f56d99f70c Merge "Update compat owners." am: 39bf2ed7e5 am: a7e21f7e63 am: 8d8bec0ebe am: 6a34d3ad15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1886324

Change-Id: I5bcd1d14b415e3b110ef6fece19b005aec231972
2021-11-10 16:40:57 +00:00
satayev
6a34d3ad15 Merge "Update compat owners." am: 39bf2ed7e5 am: a7e21f7e63 am: 8d8bec0ebe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1886324

Change-Id: I7c48d880bff946f8994807775e73d7e1b9b045bc
2021-11-10 16:23:08 +00:00
satayev
8d8bec0ebe Merge "Update compat owners." am: 39bf2ed7e5 am: a7e21f7e63
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1886324

Change-Id: I083f5358de92542a0658d348871a969ba69c9078
2021-11-10 16:12:44 +00:00
satayev
73c5df816c Update compat owners.
Bug: N/A
Test: N/A
Change-Id: I548b7310c7b77fbcdf3c6f7d85bde8d0129cf460
2021-11-10 15:35:30 +00:00
TreeHugger Robot
69c0e81d1d Merge "DeviceConfig flag to guard delegate chooser flow." 2021-11-09 20:40:51 +00:00
Joshua Trask
237b8372b7 DeviceConfig flag to guard delegate chooser flow.
This replaces the ad-hoc hard-coded flag that previously
guarded the delegation flow, and updates the config to
point to the new delegate component. Note this is still
the Phase 2 ("Delegation Trials") architecture from
go/sharesheet-unbundling-phases which delegates to the
new component only for the final step of dispatching the
user's selected target. When the new component takes
responsibility for displaying the Sharesheet UI (Phase 3)
we'll use the same DeviceConfig flag to guard the new
logic to delegate out from earlier on in the system
activity lifecycle.

I was able to test this manually (once I eventually
figured out how to get the new unbundled APK installed),
by going through Sharesheet and confirming that the
delegate activity (at the new path) is only invoked after
overriding the flag by:

adb shell device_config put systemui use_delegate_chooser true

An upcoming CL will add the server-side config that we
can use to control this experiment.

Bug: 202166034
Test: manual (as described above)
Change-Id: Ie3eb5bca6b768383156293cddbf6932df2cd3a64
2021-11-09 12:00:17 -05:00