Commit Graph

615375 Commits

Author SHA1 Message Date
Narayan Kamath
cfabf905a3 ResolverActivity: Rename alwaysCheck to always.
alwaysCheck can mean something very different
("always check with the user") and has the opposite meaning. It's
also inconsistent with naming in the rest of the file which is
"always".

Test: make
Bug: N/A
Change-Id: I856ba34a5607d3bca9dee396c531a07699489a7f
2020-12-08 12:18:50 +00:00
Ulya Trafimovich
9e726b8427 Add <uses-library> information.
The required <uses-library> "org.apache.http.legacy" is in the manifest
for StatementService. It must be explicitly added to `uses_libs` because
since https://r.android.com/1424793 Soong considers it optional (so it
would add it to `optional_uses_libs` instead of `uses_libs`). Ideally,
"org.apache.http.legacy" should be automatically treated as required if
it is an explicit dependency and the targetSdkVersion >= 28 and
minSdkVersion >= 28 (28 is the version in which "org.apache.http.legacy"
was added to platform), but Soong does not have the information
available to make that decision, so it defers to optional in order to be
safe, and so `uses_libs` is needed to override that.

"android.test.runner" is added to CtsShim because it's in the manifest,
but not one of the dependencies, so Soong cannot add it auptmatically.

Bug: 132357300
Test: lunch cf_x86_phone-userdebug && m
Test: m out/soong/.intermediates/frameworks/base/packages/CtsShim/build/CtsShimPrivUpgrade/android_common/manifest_check/AndroidManifest.xml
Test: m out/soong/.intermediates/frameworks/base/packages/CtsShim/build/CtsShimPrivUpgradeWrongSHA/android_common/manifest_check/AndroidManifest.xml
Test: m out/soong/.intermediates/frameworks/base/packages/StatementService/StatementService/android_common/manifest_check/AndroidManifest.xml
Change-Id: Id12741c9b3cd6dd7676bc4c6b9db08b815361e4e
2020-12-08 12:09:52 +00:00
Santiago Seifert
0538d6c4b7 Expose MediaExtractor entry point to MediaMetrics
Bug: 170386720
Test: atest CtsMediaV2TestCases:ExtractorTest$FunctionalityTest
Change-Id: Id10861db464b88734c34c81db945b1a828f0bc2c
2020-12-08 11:10:10 +00:00
Fiona Campbell
69534c6aee [automerger skipped] Merge "Persist screen brightness setting through upgrade" am: 2a747f002f am: a333c1fb5e am: 8379118173 -s ours
am skip reason: Change-Id I2a3b996c8747e3c5f1d181bbdd438c70bf23d08b with SHA-1 af6cd6dc30 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517740

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icf41f9a047cf315ba2f22c96768193b7db1510e9
2020-12-08 11:03:19 +00:00
Lorenzo Colitti
79c7179a6a Merge "Test for the current behaviour of updating a network's owner UID." am: e581224c6a am: 183d991f55 am: 447acdf2c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512690

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic97c893a17dcf7ce18fe31ff05828d4fe9a5e929
2020-12-08 11:02:46 +00:00
Anna Zappone
7d7f8e01e1 Merge "Support single conversation in People Space widget" 2020-12-08 10:58:52 +00:00
Anna Zappone
2ec38a18f7 Support single conversation in People Space widget
Via flag value, allow user to select one conversation or see all
conversations. Updates UX to make single conversation fit a 2x1 tile.

Test: PeopleSpaceWidgetManagerTest
Change-Id: I2fac077f4fab32a9a597437a3834dab27539ba75
Bug: 174850448
2020-12-08 10:58:23 +00:00
Fiona Campbell
8379118173 Merge "Persist screen brightness setting through upgrade" am: 2a747f002f am: a333c1fb5e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517740

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I762a6db2c61952d2a8f4fbda511bcc81a870fe81
2020-12-08 10:47:28 +00:00
Lorenzo Colitti
447acdf2c8 Merge "Test for the current behaviour of updating a network's owner UID." am: e581224c6a am: 183d991f55
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512690

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ed6c0ba300b34e84db911cbe9554f63712e2a1c
2020-12-08 10:47:15 +00:00
Chalard Jean
b27cdc85e3 Remove support for legacy network agents
Test: FrameworksNetTests NetworkStackTests
Bug: 167544279
Change-Id: Ia950e16d991cd08d4b609d71aad61a4a4f7fda39
2020-12-08 19:43:11 +09:00
Chalard Jean
4290037d5e Remove deprecated constructors for NetworkAgent
Finally.

Now that mLegacy is always false, removing the support
for legacy agents, a follow-up change will remove
the member and all the associated code.

Test: FrameworksNetTests NetworkStackTests
Bug: 167544279
Change-Id: I6e2c27facdd3ecc232a0aa32bf57c33cb06f118e
2020-12-08 19:43:11 +09:00
Chalard Jean
47bd31b757 Migrate NetworkAgentWrapper to the new NA API
Test: FrameworksNetTests NetworkStackTests
Bug: 167544279
Change-Id: I5d53a938572682dea827ea681596226b1e271aa6
2020-12-08 19:43:10 +09:00
Antonella Dellanzo
c1cd3d6fd8 Merge "Disabling ReOpenImeWindowTest" 2020-12-08 10:24:35 +00:00
Fiona Campbell
a333c1fb5e Merge "Persist screen brightness setting through upgrade" am: 2a747f002f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517740

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I75a7feb9ec86baf2a588c1187ec2632be64beaf0
2020-12-08 10:10:58 +00:00
Kriti Dang
a846733687 Adding Match content frame rate setting preferences
Test: N/A
Bug: 173105973
Change-Id: I68ff346b0320114cc7522277517b25636d851c7a
2020-12-08 11:09:06 +01:00
Bernardo Rufino
dea5541e55 Merge "Make DockedStackDivider trusted" 2020-12-08 10:07:50 +00:00
Fiona Campbell
2a747f002f Merge "Persist screen brightness setting through upgrade" 2020-12-08 10:07:29 +00:00
Jason Chang
bf64024d56 Fix abnormal flicking when swiping up to exit OHM in 3-button mode
Sync the solution from ag/13127399 to fix flicking problem in
3-button mode.
Defer the action of onStopGestureDetected() from ACTION_MOVE
to ACTION_UP in OneHandedInputConsumer.

Test: manual
Change-Id: I41f9538a8e91eb7fa91e9decc688e740645ac9c1
2020-12-08 17:56:22 +08:00
Lorenzo Colitti
183d991f55 Merge "Test for the current behaviour of updating a network's owner UID." am: e581224c6a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512690

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I35a50be2f748177cde9400449386465d77a21556
2020-12-08 09:55:56 +00:00
Nicolas Geoffray
7c4c101a7b Remove FastNative annotations on synchronized methods.
FastNative doesn't work on synchronized methods.

Bug: 175016705
Test: 004-JniTest
Change-Id: I1e34c78a8438c67e5a1bedb83eb977389ee9a82d
2020-12-08 09:48:08 +00:00
tim peng
fd533f25ae Merge "Fix NullPointerException in MediaDevice" 2020-12-08 09:19:48 +00:00
Lorenzo Colitti
e581224c6a Merge "Test for the current behaviour of updating a network's owner UID." 2020-12-08 09:10:08 +00:00
JW Wang
c640ee7f43 Sessions committed later shouldn't cause earlier ones to fail
When 2 sessions have overlapping packages, the one committed earlier
should pass the overlapping check while the later one should fail.

1. Add a field to denote the time when a session is committed.
2. When doing overlapping check, only consider sessions that are
   committed before the current session.

Bug: 174442862
Test: atest StagingManagerTest PackageInstallerSessionTest

Change-Id: Ieeafc879f32b1228d451307b194d65146c7496c1
2020-12-08 16:54:53 +08:00
TreeHugger Robot
d93b5e0e0a Merge "Added unit tests for MasterClearReceiver." 2020-12-08 08:51:42 +00:00
Eric Laurent
dcf6982790 AudioService: increase audio mode timeout.
Increase audio mode timeout from 3 seconds to 6 seconds
to leave more time for VoIP apps to connect the call after
setting the audio mode.

Bug: 174714082
Test: repro steps in the bug
Change-Id: Ic1efc496931a5ab5fb9a28fc918dba1cf66a89df
Merged-In: Ic1efc496931a5ab5fb9a28fc918dba1cf66a89df
2020-12-08 08:43:24 +00:00
TreeHugger Robot
c49e071aeb Merge "Extract footer preference as a widget lib" 2020-12-08 08:15:25 +00:00
Riddle Hsu
8d2b58b210 Send IActivityClientController to client when launching activity
This reduces 2 binder transactions when launching activity:
- Get IActivityTaskManager from ServiceManager
- Get IActivityClientController from IActivityTaskManager

Bug: 174800802
Bug: 174041144
Test: "am start -n ${activity_name} -W -S -P /data/local/tmp/test.trace"
      There should not have ActivityTaskManager#getService and
      IActivityTaskManager#getActivityClientController from any
      methods of ActivityClient.

Change-Id: I5ebf8d0764205f338ef53bbb8dfd8b5d0b7f9811
2020-12-08 15:53:59 +08:00
Chalard Jean
06ae59be43 Cleanup TestNetworkService
Very small cleanup where arguments to TestNetworkAgent should
have the same order as the callee. Also remove an unused member.

Test: FrameworksNetTests NetworkStackTests
Change-Id: I9da16bc81be8524e227a7f7e83760882bc4d77e5
2020-12-08 16:03:59 +09:00
tim peng
3709120409 [automerger skipped] Merge changes from topic "media_output_dialog" into rvc-qpr-dev am: 7de579f1ce am: 818908122c -s ours
am skip reason: Change-Id I42506f065da687c4ba6ddadca0f3b7a1c55f1be7 with SHA-1 f1cacd724b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13104443

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If2743adb71d851a403d778a5c3b16b0295c12ebc
2020-12-08 06:50:23 +00:00
timhypeng
0d2891fbbe [automerger skipped] Add dynamic item in output switcher if it is available am: c3447450d4 am: 933a23c874 -s ours
am skip reason: Change-Id I5990df864cb7c5795e2d1a1cd404807d265b4cc3 with SHA-1 c5839fc674 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13118158

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I14abaac74d670a668ae23a5ccd1b09da4daa0394
2020-12-08 06:50:18 +00:00
timhypeng
cf76507256 [automerger skipped] Fix NPE when notification icon is empty am: 083c989950 am: 9d07cfff0b -s ours
am skip reason: Change-Id Ie3db32f3e6387f338c77faa741b2df54473a3675 with SHA-1 cf0efe780e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13118157

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2a6f86929a82f71391acf13198f69d7f3af28d05
2020-12-08 06:50:14 +00:00
Hugh Chen
ed8b8f1d39 [automerger skipped] Fix output switcher didn't show album art am: c2dd442973 am: a06d339f91 -s ours
am skip reason: Change-Id I761d83af8e08a744e4cd5c55ff2c445125885730 with SHA-1 e79303394c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13118156

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I73d89f0b5fcce53d4da759d8c683dfb368edde37
2020-12-08 06:50:10 +00:00
timhypeng
34590caa77 [automerger skipped] Add dynamic group operation in output switcher am: 634abfaf9c am: c73db6328e -s ours
am skip reason: Change-Id I82b52485229b7aa8b80a6ef13fc9aac14af87446 with SHA-1 56b8cbd92c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109615

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I750fac8f4b595d1913ce21c00140df46d9e6a9ab
2020-12-08 06:50:06 +00:00
timhypeng
c9fb8451f9 [automerger skipped] Enhancement for group operation in output switcher am: 3de24ae2c5 am: cda6f5f37a -s ours
am skip reason: Change-Id If74bf2efb89a8ece61f4e0cf13e4dcfa30cb0a8a with SHA-1 2e7a02a077 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109614

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I641ca8802ec9dfcfa259921df9babf52e5b31da9
2020-12-08 06:50:01 +00:00
timhypeng
1de1720f40 [automerger skipped] Add dismiss timing for Media Output Dialog am: 07e1fa7bcc am: 6b6e9b2b7e -s ours
am skip reason: Change-Id I666550354cef27703d19b736f74c3d58635041ad with SHA-1 e140a43fea is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109613

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie90db2b805571a2ee82446797fa360b780276714
2020-12-08 06:49:57 +00:00
timhypeng
3565c454c6 [automerger skipped] Update OutputSwitcher from SettingsPanel to MediaOutputDialog in SystemUI am: 29ae958b76 am: 0e6dd319e9 -s ours
am skip reason: Change-Id I1b393d43bf4c7c869a3066404c9755ebef5f9c76 with SHA-1 4ceacb30ce is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109612

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id056712efce3b9a5e62fbd511f9c4767ddb2bbda
2020-12-08 06:49:53 +00:00
timhypeng
f96a4f0ffe [automerger skipped] Add constant for dismiss Settings panel am: a4a79765e8 am: 0baafa6991 -s ours
am skip reason: Change-Id I370cd51fa125f16541915ecb2c93fc600dfaac7d with SHA-1 3cd931eb64 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109611

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc670dffa95d299239e362358d5c361b01da2c91
2020-12-08 06:49:49 +00:00
timhypeng
499abd016b [automerger skipped] Add animation when switching output device am: 411e7a5b7c am: 66fed6fcc9 -s ours
am skip reason: Change-Id Ia3370222427b77099d987d59d5d5fd08c11557d7 with SHA-1 a77769555c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109610

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I824e12c6c2c6342583703c1753eea5247d12a858
2020-12-08 06:49:45 +00:00
timhypeng
33e2c40df9 [automerger skipped] Add dismiss intent and method for MediaOutputDialog am: 1747dbbc40 am: 2921cfe397 -s ours
am skip reason: Change-Id Ica5b5a22e0fa20ffec5ab9ea291f72c06e39c2fe with SHA-1 f6ee792fd5 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109609

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I69e12938a1d55ec57147060b47d74795008c8f36
2020-12-08 06:49:41 +00:00
timhypeng
f646de6447 [automerger skipped] Add "Stop" button for remote device am: 5fc4c2883d am: b46ff37d8a -s ours
am skip reason: Change-Id Ie6a917c56a0ef97f772a8f43742afd2ee61e407f with SHA-1 970be3d65a is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109608

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I71695d940dc12a9167b2541dd4a750fdf18ed923
2020-12-08 06:49:27 +00:00
timhypeng
ddddb110da [automerger skipped] Add constant for dialog dismiss am: e06eba62fb am: c7d19b9d24 -s ours
am skip reason: Change-Id Iaea9d73ddef77581098cca63cecec3ab5393d9ae with SHA-1 de0ca318df is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109607

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I713173deaa0e2e926a1ccbe38eddd2717f6b0266
2020-12-08 06:49:21 +00:00
timhypeng
53dbface37 [automerger skipped] Rename MediaOutDialogReceiver to MediaOutputDialogReceiver am: 34f4c21fd3 am: 1b01d1ee5b -s ours
am skip reason: Change-Id Ib275b97f5ff03dffb8aeb91b658dbb7c035b96f4 with SHA-1 8549c420de is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109606

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4a17a4d52687a4b5c434f0aff0da440ec0b4f98a
2020-12-08 06:49:06 +00:00
timhypeng
d7c0c5f597 [automerger skipped] Add getFeatures() for get device supporting features am: cd2af9a0e4 am: 79ea89590c -s ours
am skip reason: Change-Id Id3a95f608018ecfae30dc0df9217548f90953403 with SHA-1 f5672292d8 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I80f8f58928b49dd5814202c1afaabe4cb1a8a4f0
2020-12-08 06:49:01 +00:00
timhypeng
84bfa0dbd0 [automerger skipped] Add a receiver to launch Output Switcher dialog am: 80a46198fc am: d4e0148b70 -s ours
am skip reason: Change-Id Icb5a1f241e644307491030ed721939c18269ff86 with SHA-1 6d31848fb2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5bee3f37d3a57cbb878c51b437ffd6715fe408ec
2020-12-08 06:48:56 +00:00
timhypeng
2b4bf7da7c [automerger skipped] Add MediaOutputDialogFactory to create MediaOutputDialog am: 03e5417ec4 am: 7b303cc708 -s ours
am skip reason: Change-Id Idbfc558bcecc66f6f3b984a0d6f09634db2b2002 with SHA-1 1aaa40da63 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109604

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9634e40166f4c864d389fb686816038a70c463a1
2020-12-08 06:48:52 +00:00
timhypeng
c35d763274 [automerger skipped] Add Media Output Dialog for Output Switcher am: 3e5de04302 am: 04645b9997 -s ours
am skip reason: Change-Id I3086a4049f240870ca1ad870946d6848e500b561 with SHA-1 eef372d1b2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109603

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9a56d005d713c31d592e29983bced9744d24937e
2020-12-08 06:48:48 +00:00
timhypeng
305a631024 [automerger skipped] Add controller for Media operation am: c23f9171ce am: 637e1d2513 -s ours
am skip reason: Change-Id I9eb6e3b0a6e584637aecb4132dbc2b138c6d1530 with SHA-1 6c1435114b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109602

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I26ee4cca11f6117815eaaf48daabc925981f22f7
2020-12-08 06:48:44 +00:00
timhypeng
14cc5b03d6 [automerger skipped] Add MediaOutputAdapter for Media device list am: d04087aff3 am: df822dab5c -s ours
am skip reason: Change-Id Ida509ed401320b3665d7a5f29f4df5db096ff29c with SHA-1 10ab47af34 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109601

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I60c249c769df19c112050e092cce9130a0c85b33
2020-12-08 06:48:39 +00:00
timhypeng
a8828cc094 [automerger skipped] Define strings for output switcher dialog in SystemUI am: 2f172d225c am: d805e48687 -s ours
am skip reason: Change-Id Ibb39b29aa383aab1df3e168b4f91ad1a40bf7682 with SHA-1 7d0e084058 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109539

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I985c3d2c0aee2ca6896db2ac9cbc4b59fe5b942c
2020-12-08 06:48:34 +00:00
timhypeng
dd254a7d38 [automerger skipped] Add image utility methods am: 7e04788dd1 am: 205d89a061 -s ours
am skip reason: Change-Id Idb770ce5f3b9aaa1288538aa1e51ffc0d9f34a6e with SHA-1 37017a739c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13115317

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ide315a47a427d49e6aa8fc95b611869e34e6df92
2020-12-08 06:48:14 +00:00