Commit Graph

19054 Commits

Author SHA1 Message Date
Charles Chen
202a82802c Merge "Use Builder for ActivityView" 2020-09-16 08:38:13 +00:00
Charles Chen
87f67a9fe9 Use Builder for ActivityView
fixes: 162901735
Test: touched tests
Change-Id: I230d65d76b1bc8dfbae304b33579e7eb96d0593d
2020-09-16 10:44:07 +08:00
Jorge Gil
eac9364f7a Merge "Rename autoEnterAllowed to autoEnterEnabled" 2020-09-15 22:12:26 +00:00
Jeff Sharkey
4b5b0174d0 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570 am: 487d394296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: Id01f468b43fd5b2aada78608010625b392c1b647
2020-09-15 21:01:48 +00:00
Philip Junker
c14b6b52ff Merge "Support for notification panel key on ATV" 2020-09-15 07:19:05 +00:00
Jeff Sharkey
487d394296 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I79488866c538bf9e76d0a6429e30262978f6fdab
2020-09-15 00:13:08 +00:00
Jeff Sharkey
741c0a78cc Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I7da537200efe31e803234bd1a0236843064186c8
2020-09-14 23:10:42 +00:00
Treehugger Robot
bc93881957 Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae am: 1d3e694b97 am: e022945d69
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048

Change-Id: I5725049a13c30e122e1f8b5e4e772b7431a4e32d
2020-09-14 22:44:28 +00:00
Jeff Sharkey
c0b288133a Merge changes from topic "sep11"
* changes:
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
  Update language to comply with Android's inclusive language guidance
2020-09-14 21:52:13 +00:00
Treehugger Robot
1d3e694b97 Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048

Change-Id: I70eb21c1ea9411974a1c07f6aaaf611760110c34
2020-09-14 21:27:14 +00:00
Julia Reynolds
71c18d2afc Replace 'whitelist' with 'allowlist'
Change-Id: If7422064e59e6c055c9dae092ead298b81cf41e8
Test: atest
Bug: 161889253
Merged-In: I94a43c1c995052b034d8a5377786e1a15e4c9c59
2020-09-14 18:29:23 +00:00
jorgegil@google.com
318397b034 Rename autoEnterAllowed to autoEnterEnabled
Bug: 167621602
Test: atest PinnedStackTests#testAutoPipAllowedBypassesExplicitEnterPip

Change-Id: I6e92c138c49b55f8641950bc9c45dd4631d62ee8
2020-09-14 09:45:44 -07:00
Alex Buynytskyy
d15391e426 Rollforward: Digest API: allow installer to provide digests for an APK.
5d9710d5b72136b2face76b578ac120ad6ed931e

Bug: 160605420
Fixes: 168445565
Test: atest ChecksumsTest
Test: atest ApkVerityTest:com.android.apkverity.ApkVerityTest

Change-Id: Ib559ad9107996290f4ae4661ccec4dc14658a7e9
2020-09-14 16:23:40 +00:00
Jeff Sharkey
a8cec413b6 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I245b8d9cac722da76ea67983738a3cbb9deb68df
2020-09-14 10:00:07 -06:00
Jeff Sharkey
16dd960d6f Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Id1a0f2a38e41badee3a34bd71af240511f273a7b
2020-09-14 10:00:05 -06:00
Jeff Sharkey
6516a83886 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Ifce5239991e3b78dd4757712e3b88093ad7161f0
2020-09-14 10:00:02 -06:00
Jeff Sharkey
705f6bec2d Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I53003332717baf57dc088b2f6b969cdb1863f65e
2020-09-14 09:59:01 -06:00
Slava Shklyaev
a3d1d1452a Merge "Revert "Digest API: allow installer to provide digests for an APK."" 2020-09-14 15:43:44 +00:00
Slava Shklyaev
4a102df4f2 Revert "Digest API: allow installer to provide digests for an APK."
Revert "Tests for installer-provided checksums."

Revert submission 12538860-installer-digests

Reason for revert: Droidcop: Potential culprit for b/168445565
Reverted Changes:
I112ba8594:Tests for installer-provided checksums.
I69a787bde:Digest API: allow installer to provide digests for...

Bug: 168445565
Change-Id: I2276373024bb951719cf056d28c4de0838c0519f
2020-09-14 15:25:59 +00:00
Riddle Hsu
34723c1f04 Merge "Add app start source information to statsd" 2020-09-14 10:00:42 +00:00
Philip Junker
df3d59bfab Support for notification panel key on ATV
Add activity intents to open and toggle notification panel (requires
STATUS_BAR_SERVICE permission).
Add protected broadcast intent to close notification panel.
Make long-press-on-home configurable to open notification panel.
Create TvNotificationPanel class which forwards notification panel
requests to the configured handler.

Bug: 158661029
Test: manually tested on ATV device with adapted launcher
Change-Id: I555bb3801ac949c8985692b41b02323c56332ccd
2020-09-14 11:59:44 +02:00
Riddle Hsu
9b72caeded Add app start source information to statsd
Add more information about how the activity is launched
with the event time which is closer to user interaction.

Bug: 166614700
Test: ActivityMetricsLaunchObserverTests#testOnReportFullyDrawn
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Check the logcat output contains the given string.

Change-Id: If153f0b9e8d8969a2122e5f2b8aac4a83aa524c9
2020-09-14 06:07:28 +00:00
Alex Buynytskyy
0138bf5f53 Merge "Digest API: allow installer to provide digests for an APK." 2020-09-12 03:45:19 +00:00
Alex Buynytskyy
48c717ecc1 Digest API: allow installer to provide digests for an APK.
Bug: 160605420
Test: atest ChecksumsTest

Change-Id: I69a787bde596c9841ba04772a06c227d902f721f
2020-09-11 13:00:43 -07:00
TreeHugger Robot
1a1a8d4c61 Merge "UiAutomation supports new flag, FLAG_DO_NOT_USE_ACCESSIBILITY" 2020-09-11 13:01:30 +00:00
TreeHugger Robot
ae95e2a448 Merge "Sanitize more of the notification text fields" into rvc-dev am: ceb7aefd6f am: 1ed53ed94e am: 089f82deb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512483

Change-Id: I42bada5cf24216465486fe8b4a3c97c5f6c2edae
2020-09-10 00:54:48 +00:00
Louis Chang
80ffe3f0ae Merge "Replace StackInfo with TaskInfo" 2020-09-10 00:49:16 +00:00
TreeHugger Robot
1ed53ed94e Merge "Sanitize more of the notification text fields" into rvc-dev am: ceb7aefd6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512483

Change-Id: Ief6065688eb49cd0d795dbd892ea9bfa76290f2b
2020-09-10 00:20:15 +00:00
TreeHugger Robot
ceb7aefd6f Merge "Sanitize more of the notification text fields" into rvc-dev 2020-09-09 23:55:10 +00:00
TreeHugger Robot
c2476f18aa Merge "Revert "clean-up unrequired slice access from default home app"" 2020-09-09 20:26:48 +00:00
Pinyao Ting
a8fee79b81 Revert "clean-up unrequired slice access from default home app"
This reverts commit d1f7f96a58.

Reason for revert: regression, see b/167993144. (original bug: b/163121804)

Change-Id: I54699b02e7de8c6e6ecebe0a5b684b7383caa81b
2020-09-09 18:10:46 +00:00
TreeHugger Robot
b837e23d71 Merge "Revert "Add setSchedPolicyCgroup to AM service"" 2020-09-09 17:05:47 +00:00
TreeHugger Robot
aa9a577c35 Merge "Update AssistStructure.ViewNode#getMaxTextLength() javadoc." 2020-09-09 02:57:58 +00:00
Joanne Chung
863a9ad90b Update AssistStructure.ViewNode#getMaxTextLength() javadoc.
Since S, we limit characters for single line TextView due to the
performance reason(459f35a). The return value for not set case is
not -1. Update the API javadoc to prevent giving wrong information.

Bug: 159037010
Test: n/a
Change-Id: Ic5aa93083f48fa50e097579e61320cc13897265f
2020-09-09 09:24:22 +08:00
mincheli
40c9baad6b UiAutomation supports new flag, FLAG_DO_NOT_USE_ACCESSIBILITY
UiAutomation should have an option not to engage accessibility.
go/uiautomation_not_use_a11y

Bug: 93087044
Test: atest UiAutomationManagerTest, atest CtsUiAutomationTestCases
Change-Id: Icc6c359844817a07869a18345fe44ef3b2813dae
2020-09-08 17:29:44 +08:00
Chilun Huang
849b6933ea Revert "Revert "Let activities can be recreated in ON_START state""
This reverts commit 167538021b.

Reason for revert: Reland the CL
- Extend the timeout period for low-end devices.

We should also allow the activity to be recreated in ON_START state,
since ON_START is also a resting state and we don't see a reason to
prevent applications from doing so.

Bug: 162906202
Test: atest FrameworksMockingCoreTests
      atest FrameworksCoreTests
      atest WmTests
Change-Id: Idb17514619c6501474f7fc6844dda9da98a4dd72
2020-09-08 06:50:38 +00:00
Neil Fuller
076aaa5e81 Merge "Small fixes to basic classes and refactorings" 2020-09-04 15:57:03 +00:00
Neil Fuller
7c552b3786 Small fixes to basic classes and refactorings
Small fixes to basic classes and refactorings noticed while preparing a
later change. These changes are fairly "obvious" fixes and refactorings,
removed from the later change to make it smaller.

Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/
Bug: 149014708
Change-Id: If9bcb567778d82f49b3481c50a64c0d739ce2ace
2020-09-04 13:55:57 +01:00
TreeHugger Robot
c0f911ce35 Merge "Require permission to create trusted displays" into rvc-dev am: 2c0137794d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12287404

Change-Id: Ifeaf09fda00fe2622ead045dc4f6f93c5129e5fc
2020-09-04 10:40:39 +00:00
TreeHugger Robot
3df1e7787a Merge "Require permission to create trusted displays" into rvc-qpr-dev am: c2b395c713
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12400348

Change-Id: If006d013954518b763cc010fe50a54b97d29eb3e
2020-09-04 10:33:12 +00:00
Julia Reynolds
a19f9ed2b1 Sanitize more of the notification text fields
Test: manual; monitor SystemUI performance when an app tries to
post a messaging style notification with messages with long text
Bug: 158304295
Bug: 147358092

Merged-In: c953fdf6bc
Change-Id: I0e2ea12fc3351b1a56645b556720ea2306f5422a
(cherry picked from commit c953fdf6bc)
2020-09-03 19:42:23 +00:00
Louis Chang
bfc9e59361 Replace StackInfo with TaskInfo
Bug: 148895075
Test: existing test pass
Change-Id: I97a12397b61f4ee67810dc4ae0423de07d4befa8
2020-09-03 10:13:57 +08:00
Jorge Gil
af366411e2 Merge "Add support for explicit Auto Pip" 2020-09-02 20:52:32 +00:00
Xin Li
c8c8e8e8be Merge RP1A.200720.011
Bug: 167588565
Merged-In: Iec7a26ecd68aca9c7a38cc8f441197a8237b0c8c
Change-Id: Ia8f5f008bc1f77115b644ab996aedc892fab68e7
2020-09-02 12:34:37 -07:00
Wale Ogunwale
9db724816c Add support for explicit Auto Pip
Adds a new parameter to PictureInPictureParams that
allows activities to explicitly allow the system to
put them in PIP mode without them having to call
enterPictureInPictureMode().

Test: atest PinnedStackTests#testAutoPipAllowedBypassesExplicitEnterPip
Bug: 163048957
Change-Id: Ib6fda0e231408f2756a4e1b9fda08536889a1be5
2020-09-02 11:29:23 -07:00
Julia Reynolds
4f26f3f19f Merge "Sanitize more of the notification text fields" 2020-09-02 15:10:16 +00:00
TreeHugger Robot
182cd692ff Merge "Update Common Criteria mode javadoc" 2020-09-01 15:37:50 +00:00
Andrii Kulian
ef7b1333f0 Require permission to create trusted displays
Bug: 162627132
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles
Test: atest DisplayTest
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay
Test: adb logcat -b events

Change-Id: Id06b2013ef5fdeadf321f14f8b611c733031d54d
Merged-In: Id06b2013ef5fdeadf321f14f8b611c733031d54d
2020-09-01 05:24:41 +00:00
Andrii Kulian
f21c885ca7 Require permission to create trusted displays
Bug: 162627132
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles
Test: atest DisplayTest
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay
Test: adb logcat -b events

Change-Id: Id06b2013ef5fdeadf321f14f8b611c733031d54d
Merged-In: Id06b2013ef5fdeadf321f14f8b611c733031d54d
2020-09-01 13:22:29 +08:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00