Commit Graph

13016 Commits

Author SHA1 Message Date
Chris Wren
6446ed4a0f Merge "support framework logging for slices" into pi-dev 2018-03-20 17:33:40 +00:00
Leon Scroggins
83ad4e53b6 Merge "Scale up in ImageDecoder based on API level" into pi-dev 2018-03-20 16:44:44 +00:00
Leon Scroggins III
8290eaba47 Scale up in ImageDecoder based on API level
Bug: 74061412
Bug: 73893665
Test: Manual, I5669a97c70d726826c5c00bc1413c2f97d95d88c

ImageDecoder typically does not scale a Bitmap up to handle density.
This saves memory, and we already handle the density by scaling at
draw time. But some apps rely on the size of the Bitmap without taking
density into account. For backwards compatibility, on apps that are
built for a pre-P version of Android, scale up in ImageDecoder.

Change-Id: I9991d1286e386b47fc57bcfbf0c6652beb1a53ef
2018-03-20 10:30:32 -04:00
Peter Visontay
a382a8e668 Add missing "android:" prefix to some app op constants.
Bug: 75253734
Test: none
Change-Id: Ie91b4bee938b9c834c2cb3c831e3473fab0f534c
2018-03-20 14:25:12 +00:00
kopriva
fdffe0a8be docs: fixing typo, bug 36909553
am: 4dddc63ee7

Change-Id: Ib943321651422b55b928b90617145a871a0d0460
2018-03-20 04:12:47 +00:00
kopriva
4dddc63ee7 docs: fixing typo, bug 36909553
Test: make ds-docs

Bug: 36909553
Change-Id: I6e6842fe555690d97b954c370b777b25c6f5e54e
2018-03-19 14:25:30 -07:00
TreeHugger Robot
96e680cb90 Merge "Small fixes to StatsManager API." into pi-dev 2018-03-19 21:04:39 +00:00
Tracy Zhou
017f44be88 Merge "Move default pip position to right above the shelf." into pi-dev 2018-03-19 20:15:14 +00:00
Chris Wren
9d8ce74a63 support framework logging for slices
Bug: 74354980
Test: runtest systemui
Change-Id: I0c7b398b1a077bc525f50c01d1065be2282a1809
2018-03-19 15:56:00 -04:00
Alex Kershaw
56be97edd0 Merge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it's a no-op (and silent fail) when called from a non-system user." into pi-dev 2018-03-19 18:17:23 +00:00
TreeHugger Robot
75cd1c0334 Merge "Don't use IPC in isolateProcess" into pi-dev 2018-03-19 17:56:14 +00:00
Tracy Zhou
43513086d2 Move default pip position to right above the shelf.
This change takes care of the flow from WindowManagerService to
PinnedStackController, all the way to PipTouchHandler. It also
introduces a WindowManager hook that allows Launcher to pass in
shelf visibility and height. A separate change is made to send
signals from Launcher to SysUI. (ag/3724896)

Bug: 73961893
Change-Id: I2ff54e78bc2dc35c806b902464048b051a4d6394
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
2018-03-19 17:41:08 +00:00
David Chen
c1a3a0d780 Small fixes to StatsManager API.
Adds some annotations, deletes an unused API method, and adds some
comments.

Test: Flashed onto marlin-eng and verified there are no crashes.
Bug: 72562867
Change-Id: I6c93ee4aeeacf6842795256c76551cfb1c28888d
2018-03-19 10:26:51 -07:00
Mike Digman
bd24572e17 Merge "Add disable2 flag for rotate suggestions" into pi-dev 2018-03-19 17:13:30 +00:00
TreeHugger Robot
781533dc32 Merge "StatsManager log lines should be in logcat" into pi-dev 2018-03-19 16:18:53 +00:00
Jorim Jaggi
54cff64ec6 Insert correct app transition events for recents anim
The transition delay will be the latency until all the leashes
were created etc. Thus, the actual latency is going to be in
WINDOWS_DRAWN_DELAY.

Also fix an issue where we inadvertently started a transition,
and then the transition logger was hanging.

Bug: 72967764
Test: Swipe up from home button, observe eventlog
Change-Id: I2b1fb7d9d694a629a33653c1fa3d5ed47f53de6b
2018-03-19 14:55:41 +00:00
Alex Kershaw
61ec825598 Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that
it's a no-op (and silent fail) when called from a non-system user.

DevicePolicyManagerService#setStorageEncryption also has its Javadoc
fixed.

Bug: 74591983
Change-Id: Ie191ad255cbfcade921d172641f134d6c49a17b1
Fixes: 74591983
Test: N/A - just javadoc changed
2018-03-19 10:57:12 +00:00
Bookatz
1f63131425 StatsManager log lines should be in logcat
Change the Slog.d to Slog.w and enable them, so that we can see them.
They seem to represent important failure events when people call the
public API into StatsManager.

Bug: 74997752
Test: none
Change-Id: I1c577b32358158f73453a8a3066013e0f3733d87
2018-03-18 16:17:51 +00:00
Julia Reynolds
6389e7bc44 Merge "Add new semantic Person fields" into pi-dev 2018-03-17 01:35:20 +00:00
John Reck
564284759f Don't use IPC in isolateProcess
Fixes: 74395652
Test: hwuiunit passes in 'shell stop' state (pseudo-isolated process),
      manually checked non-isolated processes still have working vsync
      via systrace of RT animations demo

Change-Id: I630ea011dc7eb2efa265b25673d3304b3b2510d3
2018-03-16 17:34:02 -07:00
TreeHugger Robot
a8bb9d255f Merge "App Time Limits API in UsageStats" into pi-dev 2018-03-16 22:40:46 +00:00
Mike Digman
dd2f49edb6 Add disable2 flag for rotate suggestions
The SUW team has requested a programmatic way to hide rotation
suggestions during setup. Piggyback on disable2 with new flag,
callbacks already available in NavBarFragment. Downgrade
permissions for disable2 to match disable so SUW can use.

Test: manual with SUW variant
Fixes: 75291849
Change-Id: I1021ee5e1628c36ebf53afe843f903006474163e
2018-03-16 12:35:21 -07:00
Julia Reynolds
18c35dfd61 Add new semantic Person fields
Bug: 74431200
Test: cts
Change-Id: I9eda447ae371ef635e9044a13ba7973bd69520ce
2018-03-16 19:13:51 +00:00
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
Amith Yamasani
62ec27e97f App Time Limits API in UsageStats
Allow setting groups of apps to control usage time limits on.
Applies only to activity time in the foreground.

Updated UsageStatsTest app to be able to add an observer for
a 30 second timeout across multiple comma separated package
names.

Bug: 74335821
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
      Install and run frameworks/base/tests/UsageStatsTest

Change-Id: I677c30b4f211f7acf72c9766df3d8c1ac56a4b4e
2018-03-15 17:07:28 -07: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