Commit Graph

104167 Commits

Author SHA1 Message Date
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
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
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
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
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
Winson
b58595b767 Add skip functionality to package parsing
There are specific cases where a package should be ignored by
whoever is parsing it, either because the device was configured to
ignore it, or the device doesn't support it.

While mostly used for testing, this adds a skip method to
ParseInput and a matching install error code to explicitly express
this case during parsing.

Bug: 155420149

Test: atest com.android.server.pm.parsing

Change-Id: I7eff53544341e21108d9d027f3afe75a1e845f40
2020-05-01 10:49:15 -07:00
Lucas Dupin
fbe9117ed9 Move media setting to a constant, disabling it
Test: manual
Test: atest SettingsBackupTest
Bug: 155315021
Change-Id: I2f96b1df5e635f3362352ef929e09d7d1ff4be66
2020-05-01 10:48:58 -07:00
Patrick Baumann
40bdf5c5e6 Adds new activity flags to the @Flags annotation.
Bug: 148452357
Change-Id: I01c1a6f5a678f92402c489679b47310f132a445c
Test: Builds
2020-05-01 17:22:30 +00:00
Dianne Hackborn
dbc700ea71 Merge "Fix #155437855: "dumpsys activity" package filtering doesn't filter everything" into rvc-dev am: f55fbde1bd
Change-Id: Ia64fc004e5475a4575c0458daa1f419dd4ef727c
2020-05-01 16:03:24 +00:00
Dianne Hackborn
f55fbde1bd Merge "Fix #155437855: "dumpsys activity" package filtering doesn't filter everything" into rvc-dev 2020-05-01 15:49:51 +00:00
Abodunrinwa Toki
f58bd41b0e Merge "Rewrite Icons from the TCS." into rvc-dev am: 1cf3ce8fde
Change-Id: I303a573a48661c9d222def2b46501ad1d81ab23c
2020-05-01 11:02:12 +00:00
Abodunrinwa Toki
1cf3ce8fde Merge "Rewrite Icons from the TCS." into rvc-dev 2020-05-01 10:52:43 +00:00
TreeHugger Robot
05bc476570 Merge "Add the IME insets to virtual display for bubble" into rvc-dev am: 75c82108f6
Change-Id: If01c5d09f7e8038f93132eda98160472633ee09a
2020-05-01 04:14:25 +00:00
TreeHugger Robot
75c82108f6 Merge "Add the IME insets to virtual display for bubble" into rvc-dev 2020-05-01 03:58:14 +00:00
Steven Thomas
305a57c5fc Split refresh rate range into two ranges
To prevent low-priority refresh rate considerations from overriding the
app frame rate as specified via the new setFrameRate() api, split the
display refresh rate range into "primary" and "app request" ranges. The
primary range includes the low priority considerations, while the app
request range removes two lower priority considerations.

In general, surface flinger will keep the display refresh rate within
the primary range, but layers with frame rate settings via the
setFrameRate() api may cause surface flinger to pick a refresh rate
outside the primary range. Surface flinger will never choose a refresh
rate outside the app request range specified by display manager.

Bug: 148978562

Test: - Added a new unit test to DisplayModeDirectorTest to verify that
        display manager strips lower priority considerations when
        deciding the app request range.

- Added a new unit test to RefreshRateConfigsTest to verify
  RefreshRateConfigs handles the primary vs app request range
  correctly.

- Manual test: Confirmed that with the "force 90Hz refresh rate" option
  turned on, we don't switch to 60Hz when playing a 60Hz video.

- Manual test: Confirmed that with the "force 90Hz refresh rate" option
  turned on, when an app calls setFrameRate(60), we stay at 60Hz.

- Manual test: Modified a Pixel 4 XL to prefer 60Hz in low brightness,
  entered low brightness, and confirmed we don't touch boost to 90Hz.

- Manual test: Confirmed that Maps stays at 60Hz on Pixel 4.

- Manual test: Turned on verbose logs in RefreshRateConfigs.cpp,
  confirmed they look good.

- Manual test: Inspected dumpsys output, confirmed the primary and
  app request refresh rate ranges are printed correctly.

Change-Id: I2a7f5ded0831c90b9b1ac09d941963a63b824098
2020-04-30 19:58:42 -07:00
TreeHugger Robot
e27ed6a551 Merge "Update the documentation for inline suggestion APIs" into rvc-dev am: d725389a55
Change-Id: If3100d8ecde9ebdb197243f3f263e82307e6cf13
2020-05-01 01:44:03 +00:00
TreeHugger Robot
d725389a55 Merge "Update the documentation for inline suggestion APIs" into rvc-dev 2020-05-01 01:42:05 +00:00
Dianne Hackborn
9106f2a73d Fix #155437855: "dumpsys activity" package filtering doesn't filter everything
Clean up various code paths to correctly use the "packageName" option to
limit its output to only information about that package.

Also do a little re-arranging of the output to cleanup a bit recent
stuff that was added, so the end of the output is still the important
high-level summary of process states.

Bug: 155437855
Test: manually inspected various "dumpsys activity" output.
Change-Id: I2ebe6f7ab3d433281993eb3959d375e2e53e0df9
2020-04-30 17:29:16 -07:00
Evan Rosky
307e4aa1bd Merge "Give Divider back its touch-region" into rvc-dev am: 5a61909275
Change-Id: Ifc5c167bc96e44e541299c0b32beb62060dd4efe
2020-05-01 00:17:50 +00:00
Evan Rosky
5a61909275 Merge "Give Divider back its touch-region" into rvc-dev 2020-05-01 00:11:36 +00:00
Hongwei Wang
33e9c04263 Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev am: 28c136e1cb
Change-Id: I71cd359316c2001d829dba3246854e91b8ed05e1
2020-04-30 23:55:51 +00:00
Hongwei Wang
28c136e1cb Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev 2020-04-30 23:38:56 +00:00
Rambo Wang
82c577767e Merge "Restrict match conditions of TelephonyNetworkSpecifier#canBeSatisfied" into rvc-dev am: 767b58716b
Change-Id: If7fb76656075d1b54320902b69882a8fd64bfc12
2020-04-30 22:39:37 +00:00
Eino-Ville Talvala
3f0603afe1 Merge "Camera: Improve metadata access JNI performance" into rvc-dev am: 2a4de9cf21
Change-Id: If37a5431dec6546ba1847e897de39de3306a9fb5
2020-04-30 22:38:13 +00:00