Commit Graph

19022 Commits

Author SHA1 Message Date
Philip Junker
c14b6b52ff Merge "Support for notification panel key on ATV" 2020-09-15 07:19:05 +00: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
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
Louis Chang
80ffe3f0ae Merge "Replace StackInfo with TaskInfo" 2020-09-10 00:49:16 +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
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
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
Marco Ballesio
42310524d6 Merge changes from topic "freezer v2 frameworks to master"
* changes:
  freezer: reentrant enable/disable method
  freezer: switch to cgroup v2 freezer
2020-08-28 16:44:57 +00:00
Rubin Xu
47dd8f97ad Update Common Criteria mode javadoc
Mentions that Wifi configurations will be lost if CC mode is
toggled on then off.

Bug: 165050243
Test: build
Change-Id: I991e1d877592e89c8839d3f8280b5d83710a3f4a
2020-08-28 15:50:36 +01:00
Rick Yiu
4f84c00fdd Revert "Add setSchedPolicyCgroup to AM service"
This reverts commit d2b8105f03.

Reason for revert: may have problem under race condition

Change-Id: I170bef11948e6d079ce04f5520088ee97a18a133
2020-08-28 05:23:05 +00:00
Marco Ballesio
db203fcabf freezer: reentrant enable/disable method
the app freezer state can be toggled in multiple situations when a
debugging tool like heapdump is invoked, or when system_server dumps its
binder connections. All these uses are potentially concurrent and a
robust method to handle reentrancy is necessary to avoid leaving the
freezer in a state incompatible with a specific operation.

This patch moves freezer enable and disable operations from Process to
CachedAppOptimizer (ActivityManager), introduces a new ActivityManager API
to centralize all freezer state changes to ActivityManager and modifies
client code accordingly.

Bug: 151225245
Test: manually verified that no regression are introduced on freezer
behavior, verified that concurrent behavior is handled properly

Change-Id: I7d588cc6e0499012dce64ed4e42ff2adb336062d
2020-08-27 15:56:51 -07:00
hkuang
3eb57dc580 TranscodingAPI: Expose MediaTranscodeManager as System API.
Bug: 160260102
Test: Unit test
Change-Id: I38e9efc46e23fe1aafe65100bbc7f72eb200720f
2020-08-27 22:20:18 +00:00
Charles Chen
f2fd530d37 Merge "Respect UI Context for getDisplay" into rvc-qpr-dev am: c5ba62307c am: 117b9ab1d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12313930

Change-Id: Ib7ed054c9016abdc348b66e57635998cec91dca2
2020-08-27 07:38:13 +00:00
Charles Chen
117b9ab1d8 Merge "Respect UI Context for getDisplay" into rvc-qpr-dev am: c5ba62307c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12313930

Change-Id: I7d9bfc3f9e1854a3d86a26f905125c71fd9e854c
2020-08-27 03:05:15 +00:00
Charles Chen
c5ba62307c Merge "Respect UI Context for getDisplay" into rvc-qpr-dev 2020-08-27 02:52:05 +00:00
Hongwei Wang
9f7f6506c9 [DO NOT MERGE] Sync app requested orientation on PiP exit am: a2673cdfd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12464246

Change-Id: I1d4a9a4d24d781107e86d4400f2e55cdcb113579
2020-08-27 01:43:58 +00:00
Hongwei Wang
02c5ea670f Merge "[DO NOT MERGE] Sync app requested orientation on PiP exit" into rvc-qpr-dev 2020-08-27 01:29:35 +00:00
Hongwei Wang
a2673cdfd4 [DO NOT MERGE] Sync app requested orientation on PiP exit
When exiting PiP to fullscreen, SysUI compares the initial rotation
with the screen rotation and skips the animation if they are different,
with the intention that the app should get back to its state prior to PiP.

This generally works well except that app may request
setRequestedOrientation after entering PiP and the initial rotation
SysUI gets in onTaskAppeared would be obsoleted.

This is fixed in this CL by
- Adding a requestedOrientation field in TaskInfo to pass this
  information to SysUI, in both onTaskAppeared and onTaskInfoChanged
  callbacks
- Sync with the requested orientation as well as display rotation on PiP
  exit. Moves also the information we need into PipWindowConfigurationCompact

Video: http://rcll/aaaaaabFQoRHlzixHdtY/gOPXfx5KO9krmzeor49DgG
Bug: 163218295
Test: See video
Change-Id: Idd0b9412dfdfd6fd293a800cded7c7a6b94cafde
2020-08-26 16:06:31 -07:00
Julia Reynolds
c953fdf6bc 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

Change-Id: I0e2ea12fc3351b1a56645b556720ea2306f5422a
2020-08-26 17:07:53 -04:00
Hongwei Wang
23b4bd372f Remove entry from mLastReportedWindowingMode on destroy am: 5460282793
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12462024

Change-Id: I585dca4ebcd69ad4c31d350eb43045981baa56dd
2020-08-26 18:53:08 +00:00
Hongwei Wang
5460282793 Remove entry from mLastReportedWindowingMode on destroy
Bug: 166456665
Test: atest ActivityLifecyclePipTests \
            ActivityLifecycleSplitScreenTests \
            ActivityLifecycleTopResumedStateTests \
            PinnedStackTests\
            SplitScreenTests \
            ActivityLifecycleKeyguardTests
Change-Id: If2cf664bdb62ac3082c02d2c6c1ad74b10761f62
2020-08-26 09:52:46 -07:00
Pavel Grafov
ab1020f856 Remove unused non-public method.
Bug: 165552960
Test: builds
Change-Id: I9febd312e34d6114131ab0c888484edcf570ad4f
Merged-In: I9febd312e34d6114131ab0c888484edcf570ad4f
(cherry picked from commit 812a2052fb4b1f67b87f8886bafad7a9c03d2574)
2020-08-26 10:33:37 +00:00
Rick Yiu
7bf9789299 Merge "Revert "Let activities can be recreated in ON_START state"" 2020-08-26 10:08:07 +00:00
Rick Yiu
167538021b Revert "Let activities can be recreated in ON_START state"
This reverts commit d3ed35f3e9.

Reason for revert: Droidcop: Potential culprit for Bug 166391370 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Ib6007f01fdaf0ef74e8b630e5e13862f30689ef0
2020-08-26 07:44:33 +00:00
TreeHugger Robot
b0e58545c1 Merge "Let activities can be recreated in ON_START state" 2020-08-26 02:58:16 +00:00
Alex Buynytskyy
af7f8f199e Merge "APK digest API and initial implementation." 2020-08-25 15:38:23 +00:00
Neil Fuller
d7efb1175a Merge "Add explicit TEST_MAPPING files for tz detector tests" 2020-08-25 13:56:55 +00:00
Narayan Kamath
969901251b Merge "AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD" into rvc-qpr-dev am: 046d6480cc am: 6987690464
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12434705

Change-Id: I7fad503f467fd88f778ad4449b7ec2a1b722ec69
2020-08-25 11:05:07 +00:00
Chilun
d3ed35f3e9 Let activities can be recreated in ON_START state
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: I20a9c1c25c0b5e1a392b18dc5bac26a1551990e2
2020-08-25 18:43:38 +08:00
Narayan Kamath
6987690464 Merge "AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD" into rvc-qpr-dev am: 046d6480cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12434705

Change-Id: Ib81552912e1013bfc5b344ca94b51d29c3fe6d01
2020-08-25 10:12:53 +00:00
Narayan Kamath
046d6480cc Merge "AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD" into rvc-qpr-dev 2020-08-25 09:24:11 +00:00
Alex Buynytskyy
ec6f3e189c APK digest API and initial implementation.
Bug: 160605420
Test: atest ChecksumsTest

Change-Id: I08ef0b131c44313f2c6acddad00dfa03598cc1ff
2020-08-24 19:54:02 -07:00