Commit Graph

13600 Commits

Author SHA1 Message Date
Winson Chung
131ac05712 Merge "Add windowing mode to task snapshot." into pi-dev am: 167710981c
am: ec1e188e67

Change-Id: If2193c37570deb762d7ae74fcbda4c3d9fd61729
2018-04-23 15:46:34 -07:00
Winson Chung
ec1e188e67 Merge "Add windowing mode to task snapshot." into pi-dev
am: 167710981c

Change-Id: I0348be9f7e096e7effc1476f5015d33263a163fe
2018-04-23 15:30:23 -07:00
Winson Chung
a4fa8d5bd4 Add windowing mode to task snapshot.
Bug: 78155683
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I4e562d818416a30d6759baef37c74b6d9c514a00
2018-04-23 12:25:38 -07:00
Andrii Kulian
98fdc42d9a Merge "Don't require post-execution state for onActivityResult" into pi-dev am: 5007c67a70
am: 33fd905c37

Change-Id: Ia05f8c33ce038d76c3c1753ac58b6b82a3b6a679
2018-04-20 17:25:23 -07:00
Andrii Kulian
33fd905c37 Merge "Don't require post-execution state for onActivityResult" into pi-dev
am: 5007c67a70

Change-Id: I6ea56c0e6e68afd354426194bd0d4536129abe86
2018-04-20 17:10:42 -07:00
Andrii Kulian
5007c67a70 Merge "Don't require post-execution state for onActivityResult" into pi-dev 2018-04-20 23:21:25 +00:00
Jeff Sharkey
4cdf6e58ed Merge "Give CTS a way to force-poll network stats." into pi-dev am: 46e58e1b40
am: 77c7b732c4

Change-Id: I93be7a46fc345efc31e98975c65a287f2d344220
2018-04-20 14:07:19 -07:00
Jeff Sharkey
77c7b732c4 Merge "Give CTS a way to force-poll network stats." into pi-dev
am: 46e58e1b40

Change-Id: Id2252b803a33ddadfef71618b3b9106c93c5be2a
2018-04-20 13:51:02 -07:00
Andrii Kulian
e55b009a3d Don't require post-execution state for onActivityResult
According to the documentation, onActivityResult() should be called
immediately before onResume(). This, however, was not always the case
in previous releases and fixing this caused some app compatibility
issues.
This CL removes required post execution state for ActivityResultItem.

Bug: 77695691
Test: ActivityLifecycleTests
Change-Id: Id8c02e9b49f9758aac616e37948570722d802de8
2018-04-20 12:58:49 -07:00
Jeff Sharkey
c3c8d16380 Give CTS a way to force-poll network stats.
Collecting network statistics is pretty heavy, which is why we're
throttling callers.  However, to keep CTS running fast, we provide a
way for tests to force a poll event, instead of making them wait for
the throttle timeout.

Bug: 77908520
Test: atest cts/tests/tests/app.usage/src/android/app/usage/cts/NetworkUsageStatsTest.java
Change-Id: Ia792f0cd495023366ff8c4839df54e7da2ae8331
2018-04-20 12:18:23 -06:00
Adrian Roos
4a3d9ff120 Merge "Defer resizing invisible stacks while drag resizing" into pi-dev am: 5e12ebfffd
am: 03d4aeda37

Change-Id: Ic4e21bcd38e09cd237fcf149ba308bfdbf77240d
2018-04-20 08:07:53 -07:00
Adrian Roos
03d4aeda37 Merge "Defer resizing invisible stacks while drag resizing" into pi-dev
am: 5e12ebfffd

Change-Id: I9252974e456740921a5778bd167e115d25e0d7bc
2018-04-20 08:00:08 -07:00
TreeHugger Robot
5e12ebfffd Merge "Defer resizing invisible stacks while drag resizing" into pi-dev 2018-04-20 14:43:38 +00:00
Adrian Roos
a6d6aab0e0 Defer resizing invisible stacks while drag resizing
Works around a source of jank when drag resizing in split
screen mode: instead of immediately resizing the (potentially
numerous) invisible secondary stacks, we defer that until
the user lets go of the handle.

Change-Id: I3b9faa83005fa86185d4e51b2849e3a826b7f6a9
Fixes: 78214347
Test: Open a gazillion (resizeable) tasks. Enter split screen. Drag handle, verify there is no jank
Test: atest RectTest
2018-04-20 15:09:02 +02:00
Peter Visontay
c4523fcd78 Merge "Add unit test for AppOps logic where a different op is used to control an app op." 2018-04-20 10:55:09 +00:00
Jeff Sharkey
3b25e5306c Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev am: ddb15c471c
am: 37bbe98e86

Change-Id: If8cfddaf96d28b3815dd6dca6aa52a7b9bd15da6
2018-04-19 20:08:03 -07:00
Jeff Sharkey
37bbe98e86 Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev
am: ddb15c471c

Change-Id: Ieccbac3a53b14f196a3ceb7924f7bb6880660c97
2018-04-19 19:55:24 -07:00
Winson Chung
c1f6a578e1 Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev am: 1c0d00fac4
am: c39572a1bf

Change-Id: Ic2e3c3230b8e17f502b23a20053169b39b76c032
2018-04-19 19:42:10 -07:00
Jeff Sharkey
ddb15c471c Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev 2018-04-20 02:38:01 +00:00
Winson Chung
c39572a1bf Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev
am: 1c0d00fac4

Change-Id: Iaf7247b5134efe7334edfa0d16a56fb8b31af392
2018-04-19 19:07:23 -07:00
Winson Chung
1c0d00fac4 Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev 2018-04-20 01:54:09 +00:00
Jeff Sharkey
0ad6283da7 Protect usage data with OP_GET_USAGE_STATS.
APIs that return package usage data (such as the new ArtManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.

Bug: 77662908
Test: atest vendor/xts/gts-tests/hostsidetests/dexapis/host/
Change-Id: I7a85d959f1682d2bd5cf3684415e368fece88101
2018-04-19 15:46:59 -06:00
Peter Visontay
7671236d04 Add unit test for AppOps logic where a different op is used to control an app op.
Example: COARSE_LOCATION used to control WIFI_SCAN.

Also add some comments to the AppOpsManager to make the intent of
these mappings clearer.

Test: atest FrameworksServicesTests:AppOpsServiceTest
Change-Id: I497c2b73501c81d2109a5ba418c3ce0b5818f50e
Bug: 72694454
2018-04-19 22:42:13 +01:00
Winson Chung
703719be15 Workaround to ensure we cancel the recents animation prior to starting home
- It is possible for the call from SystemUI to cancel the recents animation
  to be processed and handled after the virtual key has been processed in
  PhoneWindowManager. This causes a misordering in which the canceling of
  the Recents animation clears the pending start activity remote animation
  (which is waiting for app transition ready).

  Instead, move the canceling of the Recents animation to PhoneWindowManager
  where the nav button is handled, to ensure that we cancel the animation
  on the same thread before we start the activity.

Bug: 73188263
Test: Only able to reproduce so far artificially, which points to this
      misordering

Change-Id: I1f3477acdf988953a5b3cef2e3b2b402af2d9909
Signed-off-by: Winson Chung <winsonc@google.com>
2018-04-19 13:58:19 -07:00
Beverly Tai
2fe0e01fbf Merge "Don't mute ringer if apps can bypass dnd" into pi-dev am: 39997ea603
am: e4a5044b0f

Change-Id: I45a645c8650211d8cb5016e97762f5a9c48e3cc0
2018-04-19 10:02:33 -07:00
Beverly Tai
e4a5044b0f Merge "Don't mute ringer if apps can bypass dnd" into pi-dev
am: 39997ea603

Change-Id: Ie8bb9617d8439fdcf739f9fe5264aaa5d0421d72
2018-04-19 09:29:53 -07:00
Beverly Tai
39997ea603 Merge "Don't mute ringer if apps can bypass dnd" into pi-dev 2018-04-19 16:08:28 +00:00
Jeff Sharkey
275a9e16cc Merge "Visit Uris in RemoteViews for granting purposes." into pi-dev am: 1cd96854d4
am: 993106c06a

Change-Id: I67502e0c9acbf942bf2dbb799f60ba406df4f84b
2018-04-19 08:18:50 -07:00
Jeff Sharkey
993106c06a Merge "Visit Uris in RemoteViews for granting purposes." into pi-dev
am: 1cd96854d4

Change-Id: Ie979847bd41777cef2b4169cb7f78abe174d054d
2018-04-19 08:09:24 -07:00
Jeff Sharkey
1cd96854d4 Merge "Visit Uris in RemoteViews for granting purposes." into pi-dev 2018-04-19 14:58:02 +00:00
Jeff Sharkey
23b3118f28 Visit Uris in RemoteViews for granting purposes.
RemoteViews end up passing around Uris, so we need to extend Uri
permission grants for them to ensure the recipient of a Notification
object is able to render its contents.

Bug: 9069730
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification
Change-Id: Id31b5adaf2ee66113a1b503e32126aeddbf97b28
2018-04-18 21:40:47 -06:00
Jason Monk
e69926143b Merge "Make Instrumentation more robust to other inputs" into pi-dev am: 3071522227
am: d1a9320e98

Change-Id: Iada00b0e18f978f8fc85a74fa45ccd21cbeb20ef
2018-04-18 17:06:40 -07:00
Jason Monk
d1a9320e98 Merge "Make Instrumentation more robust to other inputs" into pi-dev
am: 3071522227

Change-Id: Ifc3e5c1959a3b25025f396fbfc91363580b239ad
2018-04-18 16:54:05 -07:00
TreeHugger Robot
cb9a54684b Merge "Enable Notifications on AndroidTV" 2018-04-18 22:19:49 +00:00
Jason Monk
e96443e5a7 Make Instrumentation more robust to other inputs
Test: atest cts/tests/app/src/android/app/cts/InstrumentationTest.java
Change-Id: I2d55274ab19c4687ce85c086f2da61a4316b8096
Fixes: 70720100
2018-04-18 15:43:50 -04:00
Beverly
86d076f9d3 Don't mute ringer if apps can bypass dnd
Test: atest RankingHelperTest
Change-Id: I587e5b8d4f6cfe3b384c5b4b9e72de12b6639b6f
Fixes: 77729075
2018-04-18 14:10:19 -04:00
Jason Monk
23f45739c7 Merge "Slices: Don't use public namespace for internal intent" into pi-dev am: 84208c724e
am: 86e2a2ab32

Change-Id: I61da7d7a8742195f61ab2bb7264bbd7afe0cc318
2018-04-18 09:52:25 -07:00
Jason Monk
86e2a2ab32 Merge "Slices: Don't use public namespace for internal intent" into pi-dev
am: 84208c724e

Change-Id: I95ea37a760470dcfdfb4ac9c1ab5c99c2fc72a5d
2018-04-18 09:44:14 -07:00
Julia Reynolds
e6fc382fcc Merge "Color and text changes" into pi-dev am: 03ddb28cda
am: 8e7df9edb2

Change-Id: I72e89d5adff4e1c60d35cef5b3a4ffb562a94529
2018-04-18 07:53:38 -07:00
Julia Reynolds
8e7df9edb2 Merge "Color and text changes" into pi-dev
am: 03ddb28cda

Change-Id: I0d66ab47686ef3d63d5a18bef890891a66261203
2018-04-18 07:41:46 -07:00
Jason Monk
0c179a94a9 Slices: Don't use public namespace for internal intent
Test: manual
Change-Id: I21bc0a367456b58de195d71fc29cca0dbbca6927
Fixes: 78214697
2018-04-18 10:37:19 -04:00
Kristian Monsen
05f3479826 Enable Notifications on AndroidTV
Also fix some tests that were broken on TV.

Test: runtest systemui-notification

Change-Id: Icf4e5a1e02c3075b466305023c986ada52e9ec93
2018-04-18 16:12:59 +02:00
Julia Reynolds
6013e5cc96 Color and text changes
Change-Id: I2b1837ffd16911be20b5d5f9a7007ff3071265ab
Fixes: 78191129
Fixes: 77810424
Fixes: 78196346
Test: manual inspection
2018-04-18 08:45:12 -04:00
Sudheer Shanka
0bce2520dc Merge "Update Instrumentation.newActivity to pass non-null application." into pi-dev am: 850c6662b0
am: 7cefde2e83

Change-Id: I870befe49b0f66aedf955bf5c407a794761ea244
2018-04-17 16:07:00 -07:00
Sudheer Shanka
7cefde2e83 Merge "Update Instrumentation.newActivity to pass non-null application." into pi-dev
am: 850c6662b0

Change-Id: I152d5029366aba600dc81ea6eb9113ff22fd1bec
2018-04-17 15:39:18 -07:00
Sudheer Shanka
850c6662b0 Merge "Update Instrumentation.newActivity to pass non-null application." into pi-dev 2018-04-17 22:06:09 +00:00
Patrick Baumann
6111bb3891 Merge "Checks that secondary instrumentation ABI matches" into pi-dev am: 096e0587d2
am: ee2a275142

Change-Id: I4afd73a30f2f7db2423e4456c4320c4fe9a5913d
2018-04-17 11:52:43 -07:00
Patrick Baumann
ee2a275142 Merge "Checks that secondary instrumentation ABI matches" into pi-dev
am: 096e0587d2

Change-Id: I87d562322a5b77de9a17dfd803da2c4aa4f2027c
2018-04-17 11:30:24 -07:00
Patrick Baumann
eb59580abd Checks that secondary instrumentation ABI matches
This adds checks that the secondary ABI for an instrumentation package
matchs that of its target before using it when forced and warns of
mismatches.

Change-Id: I394427721c83cbd1c3c6af6cee24a93b18d8c65f
Fixes: 77152863
Test: gts-tradefed > run gts -m GtsBackupHostTestCases -a armeabi-v7a do not all fail with NPE
2018-04-17 09:55:47 -07:00
Benjamin Miller
c31df2070f Merge "Docs: update the method description for installKeyPair() to cover parameter change." into pi-dev am: 5037beea1c
am: c886324aa2

Change-Id: I70b35af7ae3e82a83bb17ec7962f4a007ff8428f
2018-04-17 04:19:55 -07:00