Commit Graph

12992 Commits

Author SHA1 Message Date
Alan Viverette
259dd151f4 Merge "Restore "Update packages for 1.0.0-beta1"" into pi-dev 2018-03-16 13:53:46 +00:00
TreeHugger Robot
a2d0f2f335 Merge "Frameworks: Fix system server profiling" into pi-dev 2018-03-16 04:00:48 +00:00
TreeHugger Robot
0b795eb88e Merge "SliceManager: Relax explicit checks on map a little bit" into pi-dev 2018-03-16 00:11:53 +00:00
Andreas Gampe
4f68924d8b Frameworks: Fix system server profiling
Avoid a race to close the profiling file descriptor.

(cherry picked from commit 5a8ea8c619)

Bug: 74883338
Test: m
Test: am profile start `pid system_server` /data/local/tmp/test.trace && sleep 5s && am profile stop `pid system_server` && adb pull /data/local/tmp/test.trace && [[ $(find test.trace -size +1K) ]] && echo Success
Merged-In: Ib506ce38ac1ac7c0b91079ba9b35aca6ae289d22
Change-Id: Ib506ce38ac1ac7c0b91079ba9b35aca6ae289d22
2018-03-15 15:48:58 -07:00
Jason Monk
135f4179f2 SliceManager: Relax explicit checks on map a little bit
Test: manual
Bug: 68378561
Change-Id: Iaf7e296dfd7dd355ca755386d1e2fb7b220abc15
2018-03-15 17:52:18 -04:00
Alan Viverette
e893588f19 Restore "Update packages for 1.0.0-beta1"
This reverts commit f980f54a75.

Bug: 74950017
Test: manual
Change-Id: I793ec0f6c2ba6a141481f8d03e85b791dd8a73d1
2018-03-15 21:21:54 +00:00
Makoto Onuki
70d24a0b1f Merge "Fix deadlock regarding screen-capture-disabled" into pi-dev 2018-03-15 21:01:49 +00:00
Alan Viverette
5b07f94a95 Merge "Revert "Update packages for 1.0.0-beta1"" into pi-dev 2018-03-15 20:04:22 +00:00
Antoan Angelov
675db3f236 Merge "Move the support_transfer_ownership_metadata inside the device admin descriptor XML." into pi-dev 2018-03-15 19:40:13 +00:00
Alan Viverette
f980f54a75 Revert "Update packages for 1.0.0-beta1"
This reverts commit ad4d866837.

Reason for revert: broke Settings

Bug: 74950017
Test: revert only
Change-Id: I7a535717d30ec79cd5a2f0529cb7ce511145e0ae
2018-03-15 18:47:44 +00:00
Alan Viverette
a88c9b558f Merge "Update packages for 1.0.0-beta1" into pi-dev 2018-03-15 13:32:16 +00:00
TreeHugger Robot
5d9617c439 Merge "Add notification category: CATEGORY_NAVIGATION; Add @SystemApi @hide notification categories: CATEGORY_CAR_EMERGENCY, CATEGORY_CAR_WARNING, and CATEGORY_CAR_INFORMATION." into pi-dev 2018-03-15 03:00:46 +00:00
TreeHugger Robot
b33cef07f2 Merge "Unhiding APIs in UsageEvents for public use" into pi-dev 2018-03-15 01:08:33 +00:00
TreeHugger Robot
070db35bfb Merge "Improved Application.getAutofillClient()" into pi-dev 2018-03-14 22:02:10 +00:00
Adora Zhang
aa90e8781f Add notification category: CATEGORY_NAVIGATION;
Add @SystemApi @hide notification categories: CATEGORY_CAR_EMERGENCY, CATEGORY_CAR_WARNING, and CATEGORY_CAR_INFORMATION.

Bug: 74546526
Test: runtest -x tests/app/src/android/app/cts/NotificationTest.java

Change-Id: Ib997992e039d2eddbd9c744816c35e279f9f9682
2018-03-14 14:53:26 -07:00
Suprabh Shukla
4e12de81b8 Unhiding APIs in UsageEvents for public use
These apis are needed to interpret standby bucket change history
when using UsageStatsManager#queryEventsForSelf

Test: atest android.app.usage.cts.UsageStatsTest#testQueryEventsForSelf

Bug: 71906213
Change-Id: Ib9f458bf32089ad30c97eca9dd5cc4df5a392191
2018-03-14 14:27:09 -07:00
TreeHugger Robot
98c1d17cb4 Merge "Add API to get currently pinned slices" into pi-dev 2018-03-14 20:12:54 +00:00
Felipe Leme
950cc6b42b Improved Application.getAutofillClient()
- Fixed usage of activity instead of record.activity
- Added (optional) verbose logging

Bug: 74793485
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest#testAutofill_appContext\
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest#testAutofill_appContext

Change-Id: I03721cab6428e580b13444bf045f33dc3d787a8d
2018-03-14 13:04:28 -07:00
Makoto Onuki
04ef44761d Fix deadlock regarding screen-capture-disabled
- Introduced DevicePolicyCache, which stores a copy of device policies
that can be accessed with any lock held.

- Removed "wm screen-capture". According to code search, it's not being used,
and this command wasn't really working as intended, since DPM can always
override the manually set value.

Bug: 74277398
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist ; \
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist ; \
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist
Change-Id: I1968d1c32145a715d0343f25cb9d58939514b597
2018-03-14 12:21:54 -07:00
Dianne Hackborn
bf1b57d856 Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi
Add a new platform-only permission for being able to change
app ops mode, so nothing outside of the platform can do this.

Bug: 62342672
Test: Booted, ran, settings works, shell works, apps install
Change-Id: I372e649c019a8f9b95919ff0da6f56612d7061c2
2018-03-13 14:51:30 -07:00
Bryce Lee
790c5d04c8 Merge "Ignore activity lifecycle requests without matching client records." into pi-dev 2018-03-13 19:46:03 +00:00
Bryce Lee
c940660bd5 Ignore activity lifecycle requests without matching client records.
Previously, changes were made to finish destroyed activities. This
prevented the code sending lifecycle requests to a non-existent
client record. However, there are scenarios where an activity can
be destroyed without being finished. Finishing these activities will
lead to side effects, such as the activity not being in history and
therefore not restored when navigated back to.

This changelist unlinks finishing from setting an activity's state to
destroyed. For now, we will suppress lifecycle requests client side
without matching records.

Fixes: 74403650
Fixes: 74409828
Bug: 71506345
Test: enable don't keep activities. navigate back and forth
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests#testRestoreFromKill
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests#testPausedWhenRecreatedFromInNonFocusedStack
Change-Id: I1b76a4758c3be27dc30ecac5ee56949a5b173754
2018-03-13 14:52:35 +00:00
TreeHugger Robot
a033fa7fdc Merge "Run slice callbacks on thread they come in on" into pi-dev 2018-03-13 13:54:18 +00:00
Andrii Kulian
ee83dd2cd0 Merge "Don't throw exception for duplicate resume" into pi-dev 2018-03-13 00:21:26 +00:00
Alan Viverette
ad4d866837 Update packages for 1.0.0-beta1
Fixes references to changes Slices compat code.

Bug: 74449147
Test: make
Change-Id: I7a7f81d582d12b3813c0581446efec81ed5f6b48
2018-03-12 19:05:44 -04:00
Jason Monk
66cffd5ae6 Run slice callbacks on thread they come in on
Instead post a runnable that will trigger an ANR+crash if the app
doesn't respond in time.

Test: atest cts/tests/tests/slice
Bug: 74251457
Change-Id: Ieea7a8d8cb08d3bf0735b9f7b385f286839dacd8
2018-03-12 17:20:01 -04:00
Julia Reynolds
dcf12d4a39 Merge "Log interruptive notifications" into pi-dev 2018-03-12 21:10:59 +00:00
Winson Chung
4aee38fd01 Merge "Expose whether a snapshot is a real snapshot" into pi-dev 2018-03-12 20:34:07 +00:00
Andrii Kulian
dfbf971688 Don't throw exception for duplicate resume
A double resume request is possible when an activity receives two
consequent transactions with relaunch requests and the second is one
is omitted. We still get two resume requests for the final state.

Fixes: 74074327
Test: FrameworksCoreTests:ActivityThreadTest
Change-Id: I8bb8594948a17b7fbf595a49026ff33b54b66049
2018-03-12 20:32:37 +00:00
TreeHugger Robot
44662a157e Merge "Add Application.getProcessName()" into pi-dev 2018-03-12 19:43:22 +00:00
Bryce Lee
2b9620cc71 Merge "Update documentation for Activity#onCreate." into pi-dev 2018-03-12 19:18:36 +00:00
TreeHugger Robot
81cacb274c Merge "Statsd BroadcastSubscribers can receive 'cookies'" into pi-dev 2018-03-12 18:27:02 +00:00
Bryce Lee
476edc8148 Update documentation for Activity#onCreate.
The current description incorrectly states #onDestroy will be called
immediately when invoking #finish during #onCreate.

Change-Id: I816a54457d7aca0b40feac9a5656d94f7e712c76
Fixes: 69144863
Test: comment update.
2018-03-12 10:06:23 -07:00
Julia Reynolds
1fac86e6cd Log interruptive notifications
First pass only logs audibly interruptive notfications; visually
interruptive notifications will be added in a future CL

Test: runtest systemui-notification, cts
Bug: 74318867
Change-Id: I604495bd4af9741ec52c38e4faa17cc87e2a522b
2018-03-12 09:34:48 -04:00
Winson Chung
f3e412e502 Expose whether a snapshot is a real snapshot
- This allows launcher to distinguish between a real snapshot and an app
  theme snapshot, which it will decorate differently.

Bug: 72809891
Test: atest com.android.server.wm.TaskSnapshotPersisterLoaderTest
Change-Id: Ia94591ab83ef312556f138cf11398cc5680ad798
2018-03-09 13:34:41 -08:00
Bookatz
058d869826 Statsd BroadcastSubscribers can receive 'cookies'
Subscribers can now provide additional Strings that will be passed back to
it when an anomaly is detected. This way, the Subscriber can be informed
about anomaly-specific information has meaning to it.
Statsd itself does not use these strings and doesn't care what they are
- it simply passes them back to the subscriber.

Change-Id: If269872397c4ed2c67e41d54d850cdc664d4f73e
Fixes: 74012329
Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert.BroadcastSubscriberTests
2018-03-09 10:44:48 -08:00
Jason Monk
5e676a22a0 Add intent category for slices to help identify them
Test: cts, testMapIntentToSlice
Bug: 73123733
Change-Id: I75c3e132861d04301f5c856c235eadfc4be8f9bc
2018-03-09 10:56:01 -05:00
Jason Monk
f88d25e1b7 Add API to get currently pinned slices
Test: uiservicestests
Change-Id: I02662d08d34cf412353cece7bec1838823a14bf0
Fixes: 73123411
2018-03-09 10:35:27 -05:00
Julia Reynolds
0b4626aa23 Merge changes from topic "jr-viseffects" into pi-dev
* changes:
  Make systemui obey new visual effect flags
  Expand the visual effects that DND can suppress.
2018-03-09 13:38:06 +00:00
Jorim Jaggi
3a78ec6ae4 Merge changes I46e93397,Ie0a157a9 into pi-dev
* changes:
  Also set calling pid when registering for next activity start
  Revert "Revert "Elevate remote/recents animation priority""
2018-03-09 12:05:01 +00:00
TreeHugger Robot
526973aebb Merge "Don't use android namespaces in docs" into pi-dev 2018-03-08 18:28:39 +00:00
Jorim Jaggi
bc2aabe845 Revert "Revert "Elevate remote/recents animation priority""
This reverts commit a8b48ab733.

Original issue has been fixed in follow up CL.

Bug: 73555925
Change-Id: Ie0a157a91c3c66df52370adad7b188f59c4749ea
2018-03-08 18:04:21 +01:00
Jason Monk
ad594516b6 Don't use android namespaces in docs
We don't want to encourage devs to do that.

Test: none
Change-Id: I5633fc2a5b9bddddcc67daaff43798c9b66d036c
Fixes: 73123987
2018-03-08 11:35:55 -05:00
Jason Monk
8d15ff047d Merge "Remove registerSliceCallback and formalize setCallerNeeded" into pi-dev 2018-03-08 15:02:26 +00:00
Julia Reynolds
ccc6ae64ff Expand the visual effects that DND can suppress.
Additionally default to disabling all visual effects when DND is on,
to gather dogfood feedback.

The 'dnd has changed' notification will be reposted after this
CL and has updated text.

Test: runtest systemui-notification
Bug: 74075050
Change-Id: I5bec8ccc6456d98112907b0264ecd52734983984
2018-03-08 09:48:16 -05:00
arangelov
c8ee263d6e Move the support_transfer_ownership_metadata inside the device admin
descriptor XML.

Bug: 73750678
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerHostSideTransferTest#testTransferOwner
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedProfileOwnerHostSideTransferTest#testTransferOwner
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerHostSideTransferTest#testTransferOwnerNoMetadata
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedProfileOwnerHostSideTransferTest#testTransferOwnerNoMetadata
Test: cts-tradefed run cts-dev --module CtsAdminTestCases --test android.admin.cts.DeviceAdminInfoTest
Change-Id: I8df63af29dbcb23332e2f291b64b8782f25a751b
2018-03-08 13:45:12 +00:00
TreeHugger Robot
8c55e8c306 Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev 2018-03-07 21:24:46 +00:00
Felipe Leme
385ee5393d DO NOT MERGE - Disable warning on blocking one-way call from autofill server.
This behavior existed since autofill was introduced on O and it won't be fixed
on P, so there's no point on warning. In fact, the warning is often a red
herring for other issues, not to mention a big logcat spammer.

Bug: 35708678
Test: manual verification looking at logcat

Change-Id: I40be4ce25abc5b097ea67e5cb34bb9c4237f0826
2018-03-07 19:24:45 +00:00
TreeHugger Robot
1e36211a96 Merge "Avoid service wrapper initialization deadlock." into pi-dev 2018-03-07 18:11:15 +00:00
TreeHugger Robot
5a169cf2f6 Merge "System sounds get its own dnd toggle" into pi-dev 2018-03-07 16:39:40 +00:00