Commit Graph

477225 Commits

Author SHA1 Message Date
Paul Duffin
bee7404dcc Add framework-module-defaults for java_sdk_library
Provides defaults for java_sdk_library to that are equivalent to those
already used by the framework modules to simplify conversion.

* The java_api_finder is in the defaults as that should be used by
  all mainline modules.
* The public/system/module_lib scopes are explicitly specified in the
  defaults to include module_lib but exclude test as changing that
  behaviour by default would break upwards of 24 existing
  java_sdk_library usages.
* The stubs for each API scope is compiled against module_current
  because if they compiled against the scope specific sdk version it
  would create cycles for "current" and "system_current" because some
  of the modules contribute to those.

Test: m update-api
Bug: 155164730
Change-Id: Icd5b893b080d3a8b92b11b856a71b700be96dafa
2020-05-14 11:26:18 +01:00
Galia Peycheva
4e46cf22a4 Merge "Give extras bundle to showSessionForActiveService" into rvc-dev 2020-05-14 09:06:12 +00:00
Wei Sheng Shih
3443ba8dc9 Merge "Fix the starting window could not be removed." into rvc-dev 2020-05-14 08:33:36 +00:00
TreeHugger Robot
0e58daf022 Merge "Pass window type to the InputWindowHandle of embedded window" into rvc-dev 2020-05-14 08:32:00 +00:00
Ryan Lin
22eadd2455 Merge "Swipe: use event times to check for expiration rather than handlers." into rvc-dev 2020-05-14 07:51:52 +00:00
Tony Huang
a08db2de29 Merge "Set allowTouches after the fling animation end" into rvc-dev 2020-05-14 06:17:21 +00:00
Feng Cao
c06c034ac7 Merge "Only clear inline suggestions when IMS.onInputFinish is called" into rvc-dev 2020-05-14 06:07:33 +00:00
Mark Chien
86f2ef9d5b Merge "Make members final in TetheringService" into rvc-dev 2020-05-14 05:48:24 +00:00
TreeHugger Robot
f92fd5a117 Merge "Catch possible exception while uploading texture" into rvc-dev 2020-05-14 05:03:07 +00:00
TreeHugger Robot
3b6ade6a89 Merge "Make sure only the top-most running activity can be active" into rvc-dev 2020-05-14 04:39:21 +00:00
wilsonshih
e5cad56d4e Fix the starting window could not be removed.
When trying to remove the starting window from an activity and
there is another new transition applied, the starting window
could not be removed because
1. ActivityRecord#startingDisplayed were set to false.
2. Cannot apply TRANSIT_PREV_DONE animation in removeIfPossible
because firstWindowDrawn and startingDisplayed are both false.
3. Because the task is animating, so it thought the animation is
applied and we should wait for #onAnimationFinished.

There are two things to do for fix this issue
1. Only set startingDisplayed to false when the starting window
must not exist.
2. Check the animation is applied for the starting window instead
check isAnimating for whole task.

Fixes: 154189349
Test: atest AppWindowTokenTests
Change-Id: I9bda35c792aaa4d0865b370faca09f1a90035c29
2020-05-14 04:24:12 +00:00
arthurhung
d3f17d7df7 Pass window type to the InputWindowHandle of embedded window
A windowless SurfaceControl could grant input via
IWindowSession.grantInputChannel, but other window may receive the
obscured events because of the type value of input window is always 0.

The obscured or partially obscured flag indicates that the window
received this motion event is wholly or partially obscured by another
visible window above it.

We have to filter out the trusted overlap so the motion event could
properly dispatch to the view if it is a security sensitive application.

Bug: 156063505
Test: enter split window mode and check the motion event
Change-Id: I10f63ea131a70ee8cc7d5c4b3e5ca4e5f06fdbad
2020-05-14 11:59:23 +08:00
Feng Cao
7c978ecc8f Only clear inline suggestions when IMS.onInputFinish is called
* Don't clear inline suggestions when receiving VIEW_EXIT from
  Autofill session
* Don't clear inline suggestions when IME becomes invisible
  from IMS.onInputViewFinish(), instead only clear when
  IMS.onInputFinish() is called
* Don't clear inline suggestions when launching an intent from
  inline action chip (be it authentication intent or regular
  action)

Test: atest android.autofillservice.cts.inline
Bug: 156099633

Change-Id: I8bebec3135410131e12c62e37b8a63a3702f7fac
2020-05-13 20:34:34 -07:00
Ming-Shin Lu
ce36e4413e Merge "Revert "Fix resize info activity not showing in some cases"" into rvc-dev 2020-05-14 03:29:32 +00:00
Diego Vela
25cbe9d7c7 Revert "Fix resize info activity not showing in some cases"
This reverts commit 671c007d11.


Reason for revert: Test regressed PinnedStackTests#testFinishPipActivityWithTaskOverlay 
in ag/10841394

Bug: 135520403

Bug: 156314330
Test: atest CtsWindowManagerDeviceTestCases:PinnedStackTests#testFinishPipActivityWithTaskOverlay
Change-Id: Ib73433e8a8cdae3af0ccc20dad8079ba12283867
2020-05-14 03:24:46 +00:00
TreeHugger Robot
36c1dbd061 Merge "Fix broken test NotificatonSectionsFeatureManagerTest" into rvc-dev 2020-05-14 02:51:51 +00:00
TreeHugger Robot
3a6ec37a71 Merge "Remove divider view when exiting splitscreen" into rvc-dev 2020-05-14 02:25:24 +00:00
Wei Sheng Shih
016ea8a028 Merge "Make WallpaperMS bind wallpaper component PendingIntent immutable." into rvc-dev 2020-05-14 02:16:28 +00:00
Calvin Pan
4bf8746b40 Merge "Update getSimCarrierId() document" into rvc-dev 2020-05-14 01:59:25 +00:00
Tracy Zhou
a408cd135a Merge "Revert "Fix missing animation when launch activity from notification."" into rvc-dev 2020-05-14 01:56:23 +00:00
tim peng
7121bc89c8 Merge "When only one device is selected in dynamic group, the device should be disabled" into rvc-dev 2020-05-14 01:35:44 +00:00
TreeHugger Robot
3f1696a389 Merge "applySyncTransaction: Add to syncSet earlier" into rvc-dev 2020-05-14 00:42:42 +00:00
Remi NGUYEN VAN
2404bc617a Merge "Use the new NetworkStackConnector constructor" into rvc-dev 2020-05-14 00:08:25 +00:00
TreeHugger Robot
8f73970e57 Merge "Overflow labels: higher contrast" into rvc-dev 2020-05-14 00:07:53 +00:00
TreeHugger Robot
d36e74cf82 Merge "Make emergency NFW notification silent" into rvc-dev 2020-05-13 23:57:39 +00:00
Steve Elliott
29ea52d194 Fix broken test NotificatonSectionsFeatureManagerTest
Fixes: 156532263
Test: atest
Change-Id: Ic66cb0230a15263d74399e131e56431635fb789a
2020-05-13 19:33:59 -04:00
Kevin Chyn
6688c811a2 Merge "Fix 'verify it's you' string by using the correct single quote." into rvc-dev 2020-05-13 22:54:28 +00:00
TreeHugger Robot
bc9515e4b9 Merge "Change the timeout for integrity verification from 10 seconds to 30 seconds." into rvc-dev 2020-05-13 22:41:10 +00:00
Yu-Han Yang
8a87d0defb Make emergency NFW notification silent
Bug: 150726516
Test: manual
Change-Id: I1bc00802511c9c715b565ab839aa639d5a4b8dcd
Merged-In: I3d5cb845ddace1cb46bf095d68d7a6d3284b4f45
2020-05-13 22:40:43 +00:00
TreeHugger Robot
6922655496 Merge "Controls UI - Redlines for setup screens" into rvc-dev 2020-05-13 22:39:49 +00:00
TreeHugger Robot
4d857ccce5 Merge "Revert tab key behavior on multiline EditTexts." into rvc-dev 2020-05-13 22:30:21 +00:00
TreeHugger Robot
b7ba8ed645 Merge "Annotate ChargingStatus as a state atom." into rvc-dev 2020-05-13 22:28:50 +00:00
Selim Cinek
2cdb725ba6 Merge "Resetting the scroll position of the media players when allowed" into rvc-dev 2020-05-13 22:24:48 +00:00
TreeHugger Robot
bff3812e82 Merge "SurfaceView: positionLost locking fix" into rvc-dev 2020-05-13 22:04:58 +00:00
TreeHugger Robot
730fb0d97d Merge "Fix inline suggestion ref counting to not over-count" into rvc-dev 2020-05-13 20:58:15 +00:00
TreeHugger Robot
897187dcfa Merge "Controls API - Flag controls support" into rvc-dev 2020-05-13 20:42:42 +00:00
Robert Carr
8e653c8406 applySyncTransaction: Add to syncSet earlier
We need to add modified WindowContainers to the BLASTSync set
before applying any changes. Recall that while participating in
sync window containers stop using the Display global
pending-transaction and instead redirect their changes in to the
BLASTSync-transaction. If we add to the BLAST sync too late, some
changes could go in to the WM transaction while others go in to
the BLASTSync-transaction. This means the effects would not be
applied atomically.

Bug: 149946388
Bug: 155814541
Test: Expand PIP. No flash.
Change-Id: I9b9b8f2308098d045a44004e2cca6dcbf84efcd9
2020-05-13 13:25:51 -07:00
TreeHugger Robot
1bf7804c2a Merge "Revert "Revert "AudioService: fix volume adjustment suppression""" into rvc-dev 2020-05-13 20:13:49 +00:00
Kweku Adams
301f754b9d Annotate ChargingStatus as a state atom.
Charging status is different from plugged status and can be used as a
state for certain metrics.

Bug: 140496920
Bug: 143495340
Bug: 145838040
Test: bit statsd_test:*
Change-Id: I1ef41191588b6d26346323203dabe488d488c131
2020-05-13 13:10:34 -07:00
TreeHugger Robot
629ebb174b Merge "Link partial convo controls to Settings" into rvc-dev 2020-05-13 19:49:01 +00:00
TreeHugger Robot
021ceaecf2 Merge "Add day-night-mode permission to Shell." into rvc-dev 2020-05-13 19:41:38 +00:00
TreeHugger Robot
b375d0f628 Merge "Update resources after display size change" into rvc-dev 2020-05-13 19:32:53 +00:00
Song Pan
74b5e72f17 Change the timeout for integrity verification from 10 seconds to 30 seconds.
Context: https://buganizer.corp.google.com/issues/154486093#comment24

Bug: 154486093
Test: N/A
Change-Id: I4fae3401ad7323acfa9cc520aac0cbb6bdbf6ada
2020-05-13 20:27:40 +01:00
TreeHugger Robot
0269ef125c Merge "Dynamically enable readlogs when requested." into rvc-dev 2020-05-13 19:26:06 +00:00
Dave Mankoff
2acde9a908 Merge "Revert "Prevent NPE in PulseExpansionHandler"" into rvc-dev 2020-05-13 19:18:38 +00:00
Dave Mankoff
49b3335e0d Revert "Prevent NPE in PulseExpansionHandler"
This reverts commit 14f069b83c.

Reason for revert: http://b/156204772

Bug: 156204772
Change-Id: Ie47d41d3d6625d3769005bd46b5dfe20171d5d70
2020-05-13 19:18:23 +00:00
Feng Cao
723ba2e82b Fix inline suggestion ref counting to not over-count
* Imagine this event sequence:
  1) the IME tries to re-attach an inline suggestion view to the
  window (e.g. because IME layout changes), it calls into the system
  server which causes recreating the backing view because it was
  destroyed earlier due to 0 ref-count (this happens under the hood
  without IME knowing it happens, so the view is still attached to
  the window).
  2) the IME receives a new inline suggestion pointing to the same
  backing view (perhaps due to filtering kicks in).
  3) the recreation from step 1 finishes, but now it will callback
  to the new inline suggestion, therefore the old view doesn't receive
  the new SurfacePackage. See RemoteInlineSuggestionUi for why.
  4) the view in step 1 is detached from window, since it never
  receives a SurfacePackage from the remote view, its detach shouldn't
  cause a reference count down on the remote view.

Test: atest android.autofillservice.cts.inline (sanity test)
Bug: 154683107

Change-Id: I2e6814ef3889de603f6e170efcb795b69ec9febe
2020-05-13 11:55:58 -07:00
Selim Cinek
0260c7563b Resetting the scroll position of the media players when allowed
Previously the scroll position would never be reset anymore
unless the user actively did so. We're now resetting the position
whenever the visual stability manager tells us we're allowed to
do so.

Bug: 154137987
Test: atest SystemUITests
Change-Id: Ifd5858f47827610a64a9a12cff777bd2440334a9
2020-05-13 11:55:47 -07:00
Agatha Man
b1b07971f1 Merge "Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI" into rvc-dev 2020-05-13 18:48:36 +00:00
Jean-Michel Trivi
ac20057c01 Revert "Revert "AudioService: fix volume adjustment suppression""
This reverts commit f4580a24ab.

Reason for revert: someone submitted it by mistake

Bug: 156335617
Bug: 156010854
Test: see bug 156010854 for manual steps

Change-Id: Ia9e6b91eca5f47d35b54393cc7256fb54f58f276
2020-05-13 18:31:34 +00:00