Commit Graph

479829 Commits

Author SHA1 Message Date
TreeHugger Robot
ecb9cfe093 Merge "Fix testMultipleConditions flake" into rvc-dev 2020-06-13 02:42:54 +00:00
TreeHugger Robot
09419a8129 Merge "Enabling New Insets API with Multi-Session IME." into rvc-dev 2020-06-13 02:42:14 +00:00
TreeHugger Robot
9ff2625493 Merge "Fixed unreadble debug messages" into rvc-dev 2020-06-13 02:23:16 +00:00
TreeHugger Robot
298dd714eb Merge "Incident dump does not include current bucket" into rvc-dev 2020-06-13 02:07:02 +00:00
Selim Cinek
3a8b73a881 Merge changes I3b8babc2,I56ea3eee into rvc-dev
* changes:
  Changed the landscape experience of quick settings
  Fixed an issue where the media player would shift when editing QS
2020-06-13 02:01:08 +00:00
TreeHugger Robot
77d0f42ff9 Merge "Dark grey overflow in dark mode" into rvc-dev 2020-06-13 01:49:25 +00:00
Sudheer Shanka
51540fe05e Merge "Move RevocableFileDescriptor creation outside the locked section." into rvc-dev 2020-06-13 01:12:05 +00:00
Muhammad Qureshi
89358feae4 Fix testMultipleConditions flake
Use vector<int> instead of vector<bool>.
vector<bool> is not thread-safe:
https://en.cppreference.com/w/cpp/container#Thread_safety

Fixes: 156690351
Test: atest --iterations=500
statsd_test:MultiConditionTrigger#TestMultipleConditions

Change-Id: I9121747ffbee0864afbff993e7fe417104827952
2020-06-12 18:09:34 -07:00
Antonio Kantek
8403a13752 Enabling New Insets API with Multi-Session IME.
New insets based IME requires windows manager to properly link the
assocaited IME window token against the target window token.

Test script:
Step 1: Patch this CL on rvc-dev repo
Step 2: Build and flash Hawk
Step 3: Build and install a sample multi-client IME
  make -j MultiClientInputMethod
  adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
Step 4: Enable multi-client IME for the side-loaded sample multi-client IME
  adb root
  adb shell setprop persist.debug.multi_client_ime com.example.android.multiclientinputmethod/.MultiClientInputMethod
  adb reboot
Step 5: Open KitchenSync app, select carboard, enter text on Plain Text
tab (sample multi-session keyboard doesn't support numeric keyboard yet)

Bug: 123718661
Test: manual (see test script above)
Change-Id: I2a27c0da3a243d9cb3c98541531396cd9ff819a0
2020-06-12 18:02:44 -07:00
Tej Singh
61f869e7bb Incident dump does not include current bucket
This is to avoid value metrics skipping buckets due to
DUMP_REPORT_REQUESTED, since if the metric needs to include the current
bucket under time constraints and needs to pull, it will drop the bucket
since it cannot pull.

Test: atest statsd_test
Bug: 158879346
Change-Id: Ia61e69530456ce2b3530add03ec6e068ffb25fb5
2020-06-12 17:25:17 -07:00
Selim Cinek
2a1cab1192 Changed the landscape experience of quick settings
When introducing Media into quick settings, the landscape
experience never really worked well. The music player
would be cut off on the bottom and users could never
reach their playback controls.
Instead of the vertical layout, we're now rendering
quick settings side by side with the player.

Using some densities, this could still be too large,
so we're also introducing a scrollview for the
expanded quick settings.
This also makes sure all the paddings and spacings
are up to spec.

This also fixes behavior where a user could still collapse
the panel while the user switcher was showing.

Bug: 154332040
Test: atest SystemUITests
Change-Id: I3b8babc2cc6a91e19824b67f043aa5044dc370b9
2020-06-12 16:26:53 -07:00
TreeHugger Robot
a840c1f3ea Merge "Revert "Remove IME surface when occured in multi-window mode"" into rvc-dev 2020-06-12 23:08:13 +00:00
Jack Yu
e7580a7238 Fixed unreadble debug messages
Fix: 158875554
Test: Manual
Change-Id: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
2020-06-12 16:06:47 -07:00
Shuo Qian
46ff383585 Merge "Change the threshold for RSSNR from 10*db to db" into rvc-dev 2020-06-12 22:58:53 +00:00
Youngjun Kwak
d42606d7c4 Merge "Hide UserSwitchTransitionView if it is not hidden within timeout." into rvc-dev 2020-06-12 22:58:25 +00:00
Jerome Gaillard
2a38a35622 Revert "Remove IME surface when occured in multi-window mode"
This reverts commit 460dabda46.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testTopPositionSwitchOnTapTimeoutDifferentProcess&testClass=android.server.wm.lifecycle.ActivityLifecycleTopResumedStateTests&atpConfigName=cts%2Fframework%2Fgce-presubmit-wm-cloud-tf-3&testModule=CtsWindowManagerDeviceTestCases&fkbb=6585261&lkbb=6585728&lkgb=6581565&testResults=true&badBuildCount=13&branch=git_rvc-qpr-dev-plus-aosp&target=aosp_cf_x86_phone-userdebug, bug b/158836294

Bug: 158836294
Change-Id: Iec015564030658845a5b1262c23c5b72570af9cf
2020-06-12 22:45:20 +00:00
Lyn Han
79d10bfa49 Dark grey overflow in dark mode
Update overflow visibility after setup
Remove BubbleOverflow#getBtn (same as getIconView)

Bug: 158482996
Test: manual => Turn on dark mode
             => Pointer & overflow button/activity use same grey

Change-Id: I0f9c7d8e6dc1ac77e8601f42527f75b1b4e9ef1d
2020-06-12 15:42:04 -07:00
Lyn Han
38694c298c Merge "Hide manage menu in overflow" into rvc-dev 2020-06-12 22:38:38 +00:00
TreeHugger Robot
bbc0eda204 Merge "Hide IME on touching down on a Bubble." into rvc-dev 2020-06-12 22:26:01 +00:00
Kweku Adams
bcdd5c5321 Merge "Offload initial headless app query to handler thread." into rvc-dev 2020-06-12 22:16:44 +00:00
TreeHugger Robot
0b2bb19db4 Merge "Add SafetyNet logging for b/79776455" into rvc-dev 2020-06-12 21:35:27 +00:00
TreeHugger Robot
92b6167fc8 Merge "Avoid unexpected screen off during perf testing" into rvc-dev 2020-06-12 21:30:27 +00:00
Lyn Han
50645b6d8c Hide manage menu in overflow
Fixes: 158669549
Test: manual: manage menu hides in overflow
Change-Id: I6ad6aaced05102be7ed238bf82cd54be1ca23c69
2020-06-12 21:16:04 +00:00
Selim Cinek
516b6dfcc4 Fixed an issue where the media player would shift when editing QS
Because we were pinning it to the bottom, the player would shift
and be clipped off at times.

Bug: 154332040
Test: add media player, click on edit, observe no flicker
Change-Id: I56ea3eeecad22a588b7066f32223631127024bfe
2020-06-12 14:08:11 -07:00
Josh Tsuji
e5c1670ae3 Merge "Ignore failing tests." into rvc-dev 2020-06-12 21:07:33 +00:00
Josh Tsuji
f2c8551644 Hide IME on touching down on a Bubble.
This fixes the issue where the dragged-out bubble and the dismiss target rendered under the IME. It also improves animations all-around since it starts the IME animation earlier (vs waiting for ACTION_UP).

While the IME does hide earlier, once your finger is on a Bubble, there is nothing you can do that would not hide the IME anyway - dragging it out hides it, and if you lift your finger, you'll either switch bubbles or collapse the stack, both of which hide the IME.

Test: have IME, drag out bubble
Fixes: 158861545
Change-Id: I903897eca3c516bc953cbd70ab2102bbc4a81a4f
2020-06-12 17:05:06 -04:00
kwaky
12930e8ddc Hide UserSwitchTransitionView if it is not hidden within timeout.
This prevents being stuck in the Loading screen even if the proper
User Lifecycle event was not broadcast.

Test: Unit Tests + Manual -- Verify that the UserSwitchTransitionView is
hidden after the timeout threshold when the UserLifecycleEvent listener
is not registered.
Bug: 158705895

Change-Id: I895f04bda395bac271b01fbb414a8bf484348324
2020-06-12 14:01:24 -07:00
Josh Tsuji
72e12cb417 Ignore failing tests.
Test: this is a test
Fixes: 158853915
Change-Id: I7824f2c93ce345072e7e9f1992573d88b5a49469
2020-06-12 20:55:36 +00:00
Beth Thibodeau
e4c1cb514c Merge "Check connection state of media browser" into rvc-dev 2020-06-12 19:57:41 +00:00
Miranda Kephart
1e23e8e274 Merge "Check for null service in ScreenshotHelper" into rvc-dev 2020-06-12 19:56:36 +00:00
Beth Thibodeau
a56a27a943 Merge "Remove controls when apps are stopped or removed" into rvc-dev 2020-06-12 19:36:27 +00:00
TreeHugger Robot
b7b425e491 Merge "Make A11yServiceConnection PendingIntent immutable." into rvc-dev 2020-06-12 19:29:09 +00:00
Lyn Han
f3e7dfe156 Merge "Up char limit for dismiss option in manage menu" into rvc-dev 2020-06-12 19:10:26 +00:00
Kevin Chyn
6a9945a3c8 Add SafetyNet logging for b/79776455
Test: Auth is not started after lockdown or reboot
Fixes: 79776455
Change-Id: I9df6cb7fa59a611f81baf4f368df208598f3de3a
2020-06-12 12:04:24 -07:00
TreeHugger Robot
6bf0b87946 Merge "Internal version of isChangeEnabled." into rvc-dev 2020-06-12 18:54:22 +00:00
Winson Chung
3800919656 Merge "Restore overlay change broadcast handler for secondary users" into rvc-dev 2020-06-12 18:46:51 +00:00
Andy Hung
8cda481f5b Merge "statsd: Add audio device usage protos." into rvc-dev 2020-06-12 18:23:03 +00:00
TreeHugger Robot
12b5186f28 Merge "Notify window manager service that we are switching users" into rvc-dev 2020-06-12 18:21:20 +00:00
Mady Mellor
fe96fa8b19 Merge "Fix an obscure NPE" into rvc-dev 2020-06-12 18:20:44 +00:00
Fabian Kozynski
80e047bcbd Merge "Add multi-user support for AutoTileManager" into rvc-dev 2020-06-12 18:15:38 +00:00
TreeHugger Robot
26bc02ad4d Merge "RebootEscrowManager: service-specific exceptions" into rvc-dev 2020-06-12 18:15:22 +00:00
TreeHugger Robot
f083c15656 Merge "Don't animate reorder/add when we're about to collapse." into rvc-dev 2020-06-12 18:13:43 +00:00
TreeHugger Robot
7775314ff8 Merge "Adding blur supported check to shared lib" into rvc-dev 2020-06-12 17:54:26 +00:00
Shuo Qian
6775b77bd5 Change the threshold for RSSNR from 10*db to db
Test: SignalStrengthTest
Bug: 158539126
Change-Id: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
2020-06-12 17:39:37 +00:00
Kweku Adams
8604fd74ff Offload initial headless app query to handler thread.
Query package manager for the headless system app check on the handler
thread to avoid impacting boot time.

Bug: 157941190
Test: verify cache is still populated
Change-Id: Idb446e68c0ad4e1e693b45297d5297be855849bf
2020-06-12 10:37:45 -07:00
Mark Chien
322c525e6b Merge "Revert "Pass entitlement configuration to Settings for entitlement check"" into rvc-dev 2020-06-12 17:33:24 +00:00
TreeHugger Robot
d6fb5e2151 Merge "Controls UI - Tap for NO_TEMPLATE" into rvc-dev 2020-06-12 17:21:21 +00:00
TreeHugger Robot
d32c56d24d Merge "Merge "Add mutual exclusion access for addOrUpdateStream and removeStream" am: af108c45d6 am: 760c2bccd2 am: bd580a07b4 am: 91e082a90d am: 7f6cc71fe5" into rvc-dev 2020-06-12 17:21:01 +00:00
Beth Thibodeau
7a1721ad71 Check connection state of media browser
We need to verify that the browser is actually connected before calling
getRoot or getSessionToken, otherwise it will throw an exception (and
crash sysui).

This is not typical but could happen if the service we connected to had
some problem and disconnected soon after we got the onConnected callback

Bug: 156104922
Test: atest com.android.systemui.media

Change-Id: I9b73e2167612a287b527c7bf7bdba1ca2455d55b
2020-06-12 13:11:15 -04:00
Miranda Kephart
33aff26285 Check for null service in ScreenshotHelper
We were testing whether mScreenshotConnection was null as a proxy
for whether we had a running screenshot service. In principle
mScreenshotService should never be null if mScreenshotConnection
is not null, but it's safer to check. This may fix the crash noticed in
early May (attached bug), and either way is better for the stability
of the process.

Bug: 156366251
Fix: 156366251
Test: manual
Change-Id: Iea669a5a2ca2334760141ec6fec8ec7ffb01f25c
2020-06-12 13:04:18 -04:00