Commit Graph

115344 Commits

Author SHA1 Message Date
Feng Cao
3767c8db8c Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11
Change-Id: I6b08fe0719dd6436f03a3443b8c98c1d9635bfeb
2020-05-04 20:35:00 +00:00
Feng Cao
98367aef11 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev 2020-05-04 20:30:01 +00:00
TreeHugger Robot
ca6c0c8075 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev am: 1e15db9ce4
Change-Id: Iff7a5eda784c27f15c7f7bde80a9af1046599a40
2020-05-04 20:21:33 +00:00
TreeHugger Robot
1e15db9ce4 Merge "SurfaceControlViewHost: Let ViewRoot release control." into rvc-dev 2020-05-04 20:19:04 +00:00
TreeHugger Robot
36f7ed1238 Merge "Fix IME visibility after lock screen" into rvc-dev am: fcaa5a8667
Change-Id: I8bc9024df8b5346263bb13576b46c0b0c70b890d
2020-05-04 20:15:51 +00:00
TreeHugger Robot
fcaa5a8667 Merge "Fix IME visibility after lock screen" into rvc-dev 2020-05-04 20:00:53 +00:00
Feng Cao
08abd46f61 Make autofill requested by augmented autofill service non-manual
* The use case of this API was for augmented autofill service to send
  updated suggestions
* Before this change, the dynamic autofill request by the augmented
  autofill service only triggers a manual request, but this has caused
  some regular autofill providers to always some suggestion due to
  their special handling for the manual request. Thus the augmented
  autofill service will not receive the request.
* With this cahnge, the request cancels the previous session to start a
  new session, and also it triggers a regular request (non-manual) so
  the autofill provider will not special handle the request.

Test: atest CtsAutoFillServiceTestCases
Bug: 154543563

Change-Id: I233125a6070394a102ad40b9a50b98a43d952b9f
2020-05-04 11:36:21 -07:00
Robert Carr
8644050a99 SurfaceControlViewHost: Let ViewRoot release control.
In SurfaceControlViewHost#release we currently immediately
release mSurfaceControl and then call ViewRootImpl#doDie.
However doDie executes on a handler so the ViewRootImpl may try
and use the SurfaceControl between posting and executing
the message. Actually this release is totally erroneous,
mSurfaceControl is the same object used by the ViewRootImpl
and the ViewRootImpl will release it when processing
doDie().

Bug: 155575445
Test: Existing tests pass
Change-Id: I6a4bf41ba38636ff884aa73d2653b1bab6958b00
2020-05-04 11:23:29 -07:00
Kevin Hufnagle
da9b8a3876 Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev am: a18b3ea71b
Change-Id: I9e2cbea57055105df82d53817a4d0a623c071b65
2020-05-04 17:08:21 +00:00
Kevin Hufnagle
a18b3ea71b Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev 2020-05-04 17:03:25 +00:00
Song Hu
c5a0b936aa Merge "Pass ChooserTarget sharing and impression info to AppPredictor. Rank ChooserTargets of the same component as per available scores returned by AppPredictor. These two features are guarded by flag "mChooserTargetRankingEnabled" Add relevant logging to make it easy to figure out root cause from bug report." into rvc-dev am: 4a9bd0da70
Change-Id: Ibf3deaa4e67ff44cc23cfee1ff011b6f20a838a4
2020-05-04 16:52:26 +00:00
Song Hu
4a9bd0da70 Merge "Pass ChooserTarget sharing and impression info to AppPredictor. Rank ChooserTargets of the same component as per available scores returned by AppPredictor. These two features are guarded by flag "mChooserTargetRankingEnabled" Add relevant logging to make it easy to figure out root cause from bug report." into rvc-dev 2020-05-04 16:39:00 +00:00
Sally Yuen
73369ee1da Merge "Add triggering the accessibility shortcut as a system action" into rvc-dev am: a2172bb23d
Change-Id: I3ac0eef0b1a309ada745d4e8cb2e4ce450323351
2020-05-04 16:20:23 +00:00
Sally Yuen
a2172bb23d Merge "Add triggering the accessibility shortcut as a system action" into rvc-dev 2020-05-04 16:07:34 +00:00
Hungyen Weng
ea25bab747 Merge "Revert "BluetoothProfileConnecter now calls the ServiceListener'..."" into rvc-dev am: 1c85c4501b
Change-Id: If2434bd41589e2a300654b4cb46c9445242f9476
2020-05-04 07:04:26 +00:00
Hungyen Weng
1c85c4501b Merge "Revert "BluetoothProfileConnecter now calls the ServiceListener'..."" into rvc-dev 2020-05-04 06:51:08 +00:00
Hungyen Weng
ba5692ea72 Revert "BluetoothProfileConnecter now calls the ServiceListener'..."
Revert submission 11348591-btmap-close-gts

Reason for revert: Droidcop reverted the change due to test failure, Test failed. https://android-build.googleplex.com/builds/tests/view?invocationId=I05500004181087103&testResultId=TR42507671126333727

Reverted Changes:
I324b4ea66:BluetoothProfileConnecter now calls the ServiceLis...
I1427f1a86:Add GTS test for BluetoothMap#close

Bug: 155587865

Change-Id: I9a2645c7bbaec9fdf0c6f5972b08ba70cfe78741
2020-05-04 04:53:46 +00:00
Lucas Dupin
926a823c27 Merge "Move media setting to a constant, disabling it" into rvc-dev am: 2d8266cdc4
Change-Id: I5399fb255df959e6308fe99c48d293ea67b74857
2020-05-04 04:07:54 +00:00
Lucas Dupin
2d8266cdc4 Merge "Move media setting to a constant, disabling it" into rvc-dev 2020-05-04 03:59:28 +00:00
Svet Ganov
8f439f08f9 Updating platform SDK version for R am: 38cd221d81
Change-Id: I28edde22542b8fd44a0633b91be3131a7ff1144d
2020-05-03 23:16:16 +00:00
Song Hu
5aab2d3fbe Pass ChooserTarget sharing and impression info to AppPredictor.
Rank ChooserTargets of the same component as per available scores returned by AppPredictor.
These two features are guarded by flag "mChooserTargetRankingEnabled"
Add relevant logging to make it easy to figure out root cause from bug report.

Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: Id8c4b373ba9e2e1ae29281791e49dde8722ba9d1
2020-05-03 15:17:54 -07:00
Svet Ganov
38cd221d81 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
Merged-In: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-03 09:58:54 -07:00
Rahul Sabnis
d3d0f2a76d Merge "BluetoothProfileConnecter now calls the ServiceListener's onServiceDisconnected method after unbinding the service" into rvc-dev am: 248896bf98
Change-Id: I4d661b90c146c389679d5e241d3cc8e2c76e00a7
2020-05-03 05:32:58 +00:00
Rahul Sabnis
248896bf98 Merge "BluetoothProfileConnecter now calls the ServiceListener's onServiceDisconnected method after unbinding the service" into rvc-dev 2020-05-03 05:20:48 +00:00
Winson Chung
9f725103be Merge "Account for getDimension() also doing a pixel conversion" into rvc-dev am: a29ccb6fa3
Change-Id: Ib26e96c742f6345d3183f93d13a798cb349dd251
2020-05-02 02:58:08 +00:00
Winson Chung
a29ccb6fa3 Merge "Account for getDimension() also doing a pixel conversion" into rvc-dev 2020-05-02 02:38:51 +00:00
Steven Thomas
a3fa60c689 Merge "Split refresh rate range into two ranges" into rvc-dev am: 5724666853
Change-Id: I3ab1225ff065704a3c560a487ff0a4e9781960d7
2020-05-02 02:24:46 +00:00
Steven Thomas
5724666853 Merge "Split refresh rate range into two ranges" into rvc-dev 2020-05-02 02:12:39 +00:00
Andrew Sapperstein
6fd486eeec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev am: 975ca816ec
Change-Id: I40f61d6aefe3e9dd74901513c4638159d8b44ecf
2020-05-02 00:29:38 +00:00
Andrew Sapperstein
1ba3a59941 Fix broken @see tags in public documentation. am: 8fe35e5f21
Change-Id: Ie98055acbc2afeb2c0a8f578161bde02d9dc615d
2020-05-02 00:29:34 +00:00
Garfield Tan
9c23045bbb Merge changes I702d89c9,Id7bfc3e6 into rvc-dev am: abe5a4f3f5
Change-Id: I8e3c2df712af8c49b76f19595b2d789a9805f128
2020-05-02 00:28:07 +00:00
Andrew Sapperstein
975ca816ec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev
* changes:
  Update inner class constructor refs to use proper syntax.
  Fix broken @see tags in public documentation.
2020-05-02 00:21:33 +00:00
Garfield Tan
abe5a4f3f5 Merge changes I702d89c9,Id7bfc3e6 into rvc-dev
* changes:
  Remove TaskRecordFactory.
  Notify when task changes requested orientation.
2020-05-02 00:10:29 +00:00
Darryl Johnson
c7a318285d Merge "Don't override activity display adjustments with app config" into rvc-dev am: ceb2befc1b
Change-Id: I04aa93179712468a90c07b68ba2c72dc5dda7721
2020-05-01 23:26:24 +00:00
Darryl Johnson
ceb2befc1b Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-05-01 23:05:10 +00:00
Rahul Sabnis
ee31c78cb8 BluetoothProfileConnecter now calls the ServiceListener's
onServiceDisconnected method after unbinding the service

Bug: 155120232
Test: atest BluetoothHostTest#testMapClose
Change-Id: I324b4ea6654261eb67d5ec184f6b3456ba3d1aa4
2020-05-01 15:39:47 -07:00
Winson Chung
4ef84183e7 Account for getDimension() also doing a pixel conversion
Change-Id: Ie35eb98d6063a0747851e06f6da17b86ede19b41
Bug: 148104018
Test: Ensure edge swipe thresholds match resources
2020-05-01 15:24:49 -07:00
Feng Cao
7783a9a800 Merge "Support receiving touch event in the inline suggestion view" into rvc-dev am: 4e20f2b97c
Change-Id: Ie6a8e6bc395f5d709d7191d6616eab069f7a352c
2020-05-01 22:23:46 +00:00
Feng Cao
4e20f2b97c Merge "Support receiving touch event in the inline suggestion view" into rvc-dev 2020-05-01 22:07:39 +00:00
sallyyuen
40dd559f9e Add triggering the accessibility shortcut as a system action
Holding down the volume keys triggers the shortcut, making it a
system-level action.

Bug: 154950547
Test: Tested with TalkBack
Change-Id: I2aac0162047f7900103eab472ff649d77836ca93
2020-05-01 15:01:55 -07:00
Winson Chiu
80fb4ca67e Merge "Add skip functionality to package parsing" into rvc-dev am: 2728af853a
Change-Id: I18807bec3194ba59bcf3b3895aed69d15cfb7e92
2020-05-01 20:24:01 +00:00
Winson Chiu
2728af853a Merge "Add skip functionality to package parsing" into rvc-dev 2020-05-01 20:20:49 +00:00
Garfield Tan
afa0de8a91 Notify when task changes requested orientation.
This allows listener know task's orientation request change before
handling display rotation through IDisplayWindowRotationController if
they can register a local TaskStackListener.

Bug: 150409355
Test: atest WmTests:TaskStackChangedListenerTest#testNotifyTaskRequestedOrientationChanged
Change-Id: Id7bfc3e63329ce26d454b7e9c143e084e04dd365
2020-05-01 12:52:46 -07:00
Patrick Baumann
ba705b549a Merge "Adds new activity flags to the @Flags annotation." into rvc-dev am: 24070a6c95
Change-Id: Ibbc9110e8158d2dfc33acd97d826a3f902447404
2020-05-01 19:49:45 +00:00
Feng Cao
c23bfc7819 Support receiving touch event in the inline suggestion view
* Before this change, the suggestionRoot would intercept all touch
  events so that it can optionally forward them to the IME process
  to support scrolling, no touch event will be sent to the child
  view through the regular event dispatching process.
* With this change, we move the touch event transferring (to IME)
  logic from SuggestionRoot's onTouchEvent to dispatchTouchEvent.
  Now the touch events before a scroll is detected will be sent to
  the child chip view, and only the touch events after a scroll is
  detected will be sent to the IME.
* This patch also move the OnClickListener and OnLongClickListener
  from the root view to the chip view, since the touch events now
  either goes to the chip view or to the IME process.
* Note that in order to achieve this, given that we can't change
  the API, and there is existing OnLongClickListener registered
  to the chip view, we have to add a @hide API to the View to
  get the existing OnLongClickListener and attach a new one to the
  chip view, such that we can do the additional work of sending
  the long click event to IME, when the view is long clicked.
* This patch should also fix the a11y talkback mode bug where
  double-tapping on the view doesn't autofill the value.
  Double-tap and hold also works that it triggers the attribution
  dialog.

Test: atest CtsAutoFillServiceTestCases (sanity test)
Bug: 155245913
Bug: 154149807

Change-Id: I6f7be1ea5c0955969abb4ccae0cb421423095c4d
2020-05-01 12:36:51 -07:00
Patrick Baumann
24070a6c95 Merge "Adds new activity flags to the @Flags annotation." into rvc-dev 2020-05-01 19:32:49 +00:00
Andrew Sapperstein
88d565e7e7 Update inner class constructor refs to use proper syntax.
Previously, we generally required fully qualified names for referring
to inner class constructors (like #Notification.Builder()) despite that
not being valid javadoc. Now, we properly support #Builder() syntax and
the old syntax will error.

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ib2e4360493275b79c72487ee1cb173bb5e0fd35f
Merged-In: Ib2e4360493275b79c72487ee1cb173bb5e0fd35f
(cherry picked from commit 4c4aa41272)
2020-05-01 18:33:15 +00:00
Andrew Sapperstein
8fe35e5f21 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
(cherry picked from commit e0624c7a40)
2020-05-01 18:25:32 +00:00
Yin-Chia Yeh
99a251f707 Merge "Camera: add proper null check for mRemoteDevice" into rvc-dev am: ab59e9af27
Change-Id: Ic73ab2fbfd8fcaef7a10a8e1aaa93926f78c1aab
2020-05-01 18:10:18 +00:00
Yin-Chia Yeh
ab59e9af27 Merge "Camera: add proper null check for mRemoteDevice" into rvc-dev 2020-05-01 18:05:49 +00:00