Commit Graph

477244 Commits

Author SHA1 Message Date
Patrick Baumann
5bbb8fe00a Doc update re use of MATCH_UNINSTALLED flag
This change updates the docs for the MATCH_UNINSTALLED flag to note that
without the QUERY_ALL_PACKAGES permission, uninstalled packages will not
be returned.

Bug: 149846504
Test: builds
Change-Id: Id0c5b7f29172bd334dc1b2a32ce1f4eb7b1f0bd3
2020-05-15 16:24:12 -07:00
Eric Laurent
c12ddbbc06 Merge "AudioService BtHelper: fix isBluetoothScoOn()" into rvc-dev 2020-05-14 15:16:52 +00:00
Kweku Adams
84e2f0c582 Merge "Partially exempt headless system apps from app standby." into rvc-dev 2020-05-14 14:47:36 +00:00
Riddle Hsu
fc48f7e52a Merge changes Idb4f9a92,I8d8a926d,I8e30e87e into rvc-dev
* changes:
  Apply fixed rotation when showing snapshot starting window
  Only use snapshot starting window for the same rotation
  Do not capture task snapshot with fixed rotated activity
2020-05-14 14:25:03 +00:00
TreeHugger Robot
d99569f88a Merge "Revert "Finish input when the screen state is off"" into rvc-dev 2020-05-14 14:21:39 +00:00
TreeHugger Robot
6148bb8547 Merge "Reduce margin size below empty state header" into rvc-dev 2020-05-14 14:17:28 +00:00
TreeHugger Robot
2ec1d707fa Merge "AF: Remove the timeout for receiving InlineSuggestionsRequest from IME" into rvc-dev 2020-05-14 13:18:38 +00:00
Paul Duffin
a601967457 Merge "Switch framework-sdkextensions to use java_sdk_library" into rvc-dev 2020-05-14 11:12:49 +00:00
Paul Duffin
e01563f19f Switch framework-sdkextensions to use java_sdk_library
The names of the individual modules do not quite follow the pattern
that java_sdk_library uses so this temporarily sets the following:
    naming_scheme: "frameworks-modules"

That causes java_sdk_library to use a naming scheme that matches the
one used by the individual modules of this. It will be cleaned up
later.

Test: Removed API from current.txt, ran checkapi and it detected the
      API change. Ran update-api and it updated the API txt file.
      Added method without any nullability info, ran checkapi and API
      lint reported issues as expected.
Bug: 155164730
Change-Id: Ifcdbfd77373710481343c9ff800543eaaa8c2ea8
2020-05-14 12:10:26 +01:00
TreeHugger Robot
de2d4c29ef Merge "Throw when trying to create MediaParser before R" into rvc-dev 2020-05-14 11:09:43 +00:00
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
Riddle Hsu
db94bfd6bd Apply fixed rotation when showing snapshot starting window
Unlike splash screen starting window that inherits the size of
activity directly, task snapshot needs the final size to draw right
after adding to display. Otherwise the content will look like as
cropped because the surface size uses different orientation.

And because starting window is added before executing transition,
assume there will have transition if the owner of starting window
is also the top activity.

Bug: 155862858
Test: ActivityRecordTests#testFixedRotationSnapshotStartingWindow
Change-Id: Idb4f9a92a6e2594356416afd0ab6360e94e66497
2020-05-14 16:46:10 +08:00
Riddle Hsu
eae6ef3ebf Only use snapshot starting window for the same rotation
So the snapshot won't show half if the its has a delta of 90 degree
rotation with the actual activity. If the snapshot is not compatible
with the activity, the starting window type will be splash screen.

Bug: 155862858
Test: atest ActivityRecordTests#testIsSnapshotCompatible
Change-Id: I8d8a926d057f1d18d028fcc03bddbb17ffbbf96b
2020-05-14 16:46:01 +08: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
Riddle Hsu
742313e4c3 Do not capture task snapshot with fixed rotated activity
Because the rotation of activity and task are different, The
information of snapshot may be inconsistent. And since it is a
temporal state, in most cases the snapshot is available after
the fixed rotation is cleared. This fixes a non-rotated snapshot
is shown on a rotated activity when repeating launch and swipe
to home quickly.

Also the fixed rotation launching app should not be cleared if
there is pending rotation, otherwise it is too early that the
display is still in old rotation. This fixes flickering when
switching between activities in different rotation from quickstep.

Bug: 155862858
Test: atest TaskSnapshotControllerTest#testPrepareTaskSnapshot
      ActivityRecordTests#testActivityOnCancelFixedRotationTransform
Change-Id: I8e30e87ea4aad907c4ad4338b91fcff3078380ad
2020-05-14 16:22:48 +08: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
Ahaan Ugale
793e1bc92a AF: Remove the timeout for receiving InlineSuggestionsRequest from IME
There are a few things the timeout was protecting against:
* IME taking too long to come up or failing to come up entirely - in
  this case, the user cannot enter text anyway, so the incremental
  degradation in UX from autofill not showing either is relatively
  minimal.
* IME taking too long to send back the InlineSuggestionsRequest - this
  would happen if the IME implementation is suboptimal. There's a valid
  case for protecting against this, however there are many other ways
  the IME can prevent Autofill from working correctly (e.g. just not
  showing the chips) that we do not have a fallback for - so introducing
  a fallback for just one of these cases doesn't seem worth the added
  complexity.

Note: There doesn't seem to be any cleanup the timeout was doing that
needs to be handled.

Test: manual:
* switching focused view multiple times, also with a Thread.sleep(7000)
  in the keyboard to make sure a delayed response works fine, also
  tested with multiple partitions.
* smart reply, including clicking through from a notification
* interrupting pending request with manual request
Test: atest InlineAugmentedLoginActivityTest InlineLoginActivityTest \
  AugmentedLoginActivityTest LoginActivityTest
Fixes: 154334419

Change-Id: Id934fe3be991b5d70e9e8cb3e37b0fd869d783b7
2020-05-14 03:58:28 +00: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
Eric Laurent
1dd060f842 AudioService BtHelper: fix isBluetoothScoOn()
BtHelper.isBluetoothScoOn() should not return true if
the BT headset profile is not connected.

Bug: 154464603
Test: regression tests for calls over Bluetooth
Change-Id: I7c075977be79810cc57f06426fb9eec01c72606c
2020-05-13 17:43:24 -07:00
TreeHugger Robot
3f1696a389 Merge "applySyncTransaction: Add to syncSet earlier" into rvc-dev 2020-05-14 00:42:42 +00:00
Ming-Shin Lu
2c6e80be12 Revert "Finish input when the screen state is off"
This reverts commit 0df8812486.

The original CL is trying to reduce the dependency of PownerManager to
finish input when screen off by using display state.

However, it doesn't fully fix the original Bug 26851566 since we only
finish input connection but didn't callback onFinishInput callback for
IME client.

Also, for some scenarios, the window / view focus may not change
during screen turns off / on:
  - Focusing timing when disable keyguard, then quickly screen off / on.
  - Using P-sensor to turning screen off / on.

When the above scenario happens, makes input connection cannot re-start
and soft-keyboard can't be shown.
(The recovery is manually focus on next window or activity.)

As the above reason, we need to re-consider the lifecycle of
input connection, window / view focus when not only screen state but also
device inactive state when always-on-display.

Fix: 156045961
Fix: 154605805
Bug: 26851566
Bug: 156215187
Test: atest CtsInputMethodTestCases
Change-Id: If06daf71160aa44a4254ac125561974ecbdef4f2
2020-05-14 08:29:18 +08: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