Commit Graph

11232 Commits

Author SHA1 Message Date
George Hodulik
d2e58debef Merge "Use new non-deprecated constructor for AppTarget.Builder" into qt-dev
am: cb349b6b6d

Change-Id: I0362bdac8e97dc94e14c8cfb242b0d492b6f5b3d
2019-05-20 15:53:06 -07:00
TreeHugger Robot
cb349b6b6d Merge "Use new non-deprecated constructor for AppTarget.Builder" into qt-dev 2019-05-20 20:58:28 +00:00
Ben Murdoch
d40df6b89e Merge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into qt-dev
am: ffc816283e

Change-Id: I170c63ce258dffb04a62ce25e8e9a418e3c594a3
2019-05-20 05:46:11 -07:00
yj81.kwon
b2f088409b Merge "[wm]: Fixed TaskPositioner leak" into qt-dev
am: 050d6df74c

Change-Id: Ife9c5d5da6fae4d40183a6a56a71165001bf6674
2019-05-20 04:54:49 -07:00
Ben Murdoch
ffc816283e Merge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into qt-dev 2019-05-20 08:18:34 +00:00
TreeHugger Robot
050d6df74c Merge "[wm]: Fixed TaskPositioner leak" into qt-dev 2019-05-19 23:12:25 +00:00
Fabian Kozynski
a0051f6902 Merge "Add DeviceConfig flags to Privacy Indicators" into qt-dev
am: 9faaa2733a

Change-Id: I551a9bdf1d246408f1e8bad8cea04201d3392db1
2019-05-17 23:32:50 -07:00
TreeHugger Robot
9faaa2733a Merge "Add DeviceConfig flags to Privacy Indicators" into qt-dev 2019-05-18 06:14:40 +00:00
Adrian Roos
8c085104a2 Merge "DecorView: Adjust light scrim" into qt-dev
am: d532ef566d

Change-Id: Iee350d5a32d2b6931421cf1f0167d264107d2622
2019-05-17 09:55:37 -07:00
Fabian Kozynski
16b26998ac Add DeviceConfig flags to Privacy Indicators
Restricts Privacy Indicators behind the same flags as Permissions Hub.

When flag is set to false:
* PrivacyItemController is set to not listening (listens to changes in
flag)
* Location icon is reverted back to P behavior
* Location icon is shown in QS Header icons (listens to changes in
flags)
* No privacy chip shown.

We need to listen to changes because most of our views/controllers
persist forever.

Test: manual, change the flag and observe things appear/disappear
Fixes: 131826452
Fixes: 132644949

Change-Id: I329596760f3c06feb2161b077af008da782a50be
2019-05-17 12:19:05 -04:00
Adrian Roos
c3f7756a5b DecorView: Adjust light scrim
Fixes: 132939499
Test: Verify edge-to-edge-ified share sheet has an appropriate scrim
Change-Id: Ic0274ba2f9f3c36ec436fe5dab172efd13158e16
2019-05-17 11:17:08 +02:00
yj81.kwon
19585ffabf [wm]: Fixed TaskPositioner leak
If application process handles motion events late, it requests to start
moving task after MotionEvent.ACTION_UP is already fired. In that case,
system will wait for event that is not comming and cannot end drag state.
It's expected that the system finishes moving task when system receives
ACTION_UP by transfering touch focus. In a problem case, ACTION_UP event
is already sent to the application process before transfering touch focus.

If application receives ACTION_UP event after requesting moving task,
notify the system of finishing previous request.

Test: Quickly try to resize freeform windowing app repeatedly.
Test: atest WmTests:TaskPositioningControllerTests
Bug: 129507487

Change-Id: Ifa457ddc55524cae6da455e770472781a7805282
(cherry picked from commit 9a1cd7b5063229da536a1281916ae15ec9246d1a)
2019-05-16 16:42:10 -07:00
George Hodulik
9f572f431e Use new non-deprecated constructor for AppTarget.Builder
Test: Builds. Tested manually.
Bug: 132909936
Change-Id: Ia23d69fb328dd261d3f69df90e5dbd76c84fd7f0
2019-05-16 15:28:05 -07:00
Christian Wailes
86d02b6f75 Merge "Make the USAP Pool refill delay configurable." into qt-dev
am: e6f11ab8c6

Change-Id: I845c3f07625fbb6b86226be8be1e1da62b7b2f04
2019-05-16 11:00:42 -07:00
Chris Wailes
0feadf6901 resolve merge conflicts of 40654b7696 to qt-dev-plus-aosp
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Merged-In: If26d625c4b1e5e8eee54dcdacb32360b0d852829
Change-Id: I36452eb4cfbc1c22533a2168aaa2ee0fad54286c
2019-05-16 05:15:15 +00:00
Chris Wailes
54b8d7ea4d Make the USAP Pool refill delay configurable.
This patch fetches the USAP pool refill delay value from device_config
instead of hardcoding it.

Bug: 131362095
Test: Build and launch 10+ apps successfully
Change-Id: I244d83a38bde32620bd4bf50e9031c25c6267091
Merged-In: I244d83a38bde32620bd4bf50e9031c25c6267091
(cherry picked from commit 365e50bfa4)
2019-05-15 23:16:00 +00:00
Ben Murdoch
741e335458 Add Standby Bucket and job duration to ScheduledJobStateChanged atom.
This fields enable us to slice job metrics by bucket and gain insight
to the average time spent executing jobs in each bucket. The metrics
we'll write for this data will help to tune thresholds for throttling
background behavior in Q.

BUG: 132227621
Test: make statsd_testdrive && statsd_testdrive 8

Change-Id: I1af94dc4a8e51f9741f48c817d1d2f99f164858d
2019-05-15 10:58:49 +01:00
Chris Wailes
0779af6259 Adjusts the USAP pool refill mechanism.
This patch adjusts the USAP pool refill mechanism so that it is less
disruptive to launching applications.  Refill events are now delayed
by several (3) seconds if delaying wouldn't cause the pool to be below
the minimum population size.

This patch also adjusts the process priorities for the USAPs and other
processes spawned from the Zygote so that they behave better in the
context they are spawned in.

Bug: 131362095
Test: booted & launched apps & checked logs
Change-Id: If26d625c4b1e5e8eee54dcdacb32360b0d852829
Merged-In: If26d625c4b1e5e8eee54dcdacb32360b0d852829
(cherry picked from commit b32150024f)
2019-05-14 16:19:19 -07:00
Hai Zhang
89a27065f7 Merge "Report request failure when binder died in remote service." into qt-dev
am: 6eb7f58ea7

Change-Id: Iabbdcb7d1e1d5cd51eff6c58ef4b7e75bdc305c3
2019-05-14 11:08:59 -07:00
TreeHugger Robot
6eb7f58ea7 Merge "Report request failure when binder died in remote service." into qt-dev 2019-05-14 17:56:10 +00:00
Sudheer Shanka
c1aeeab72c Merge "Allow files to be created under download dirs from MediaStore." into qt-dev
am: 2699f04e82

Change-Id: Ie83f02dd7f1a0e1b926965098781db1478d34da1
2019-05-14 09:21:25 -07:00
Sudheer Shanka
2699f04e82 Merge "Allow files to be created under download dirs from MediaStore." into qt-dev 2019-05-14 16:05:26 +00:00
Hai Zhang
a0e313a889 Report request failure when binder died in remote service.
Or the caller could be waiting too long for a request that has already
failed due to remote process crash.

Bug: 132341999
Bug: 126266412
Test: atest CtsAutoFillServiceTestCases CtsContentCaptureServiceTestCases
Change-Id: I014c8657ce247aed47335afb3144d88a0144e422
2019-05-13 15:20:19 -07:00
Sudheer Shanka
21a3b657d3 Allow files to be created under download dirs from MediaStore.
Also, allow files to be renamed if they are not in pending state and
trigger a media scan when a new file is created.

Bug: 127844893
Bug: 127802924
Test: manual
Change-Id: I162f1827dacc422bfa33c54904e92a4aecb7747d
2019-05-13 19:18:57 +00:00
Rubin Xu
df396d12ab Merge "Bump several device admin notifications to high priority" into qt-dev
am: c3c30eefb2

Change-Id: I8af8593231fdea56f947162fabe9bbda32b36f81
2019-05-13 03:57:04 -07:00
Rubin Xu
c3c30eefb2 Merge "Bump several device admin notifications to high priority" into qt-dev 2019-05-13 10:30:25 +00:00
Matt Pietal
1db23d3020 Merge "Sharesheet - Fix shortcut ranking logic" into qt-dev
am: 99e622c232

Change-Id: I6bf435b44b2d63a0e645dbbb4be0dfd84047225d
2019-05-10 10:06:08 -07:00
TreeHugger Robot
99e622c232 Merge "Sharesheet - Fix shortcut ranking logic" into qt-dev 2019-05-10 16:52:36 +00:00
TreeHugger Robot
2e3702f579 Merge "Inline calls to MimeUtils." into qt-dev-plus-aosp 2019-05-10 16:44:19 +00:00
Wale Ogunwale
bbf458c877 Merge "PointerLocation: move showing exclusion rects behind flag" into qt-dev
am: b7ae1efc96

Change-Id: Ie33a52695ba6f079c9394772a755c5bd834bcdd6
2019-05-10 08:35:55 -07:00
Wale Ogunwale
b7ae1efc96 Merge "PointerLocation: move showing exclusion rects behind flag" into qt-dev 2019-05-10 15:19:04 +00:00
Kweku Adams
100a5f9701 Merge "Fix accounting bug in BatteryStatsImpl." into qt-dev
am: 64096f1e78

Change-Id: I5eef76c4b0acd8d041b08c5babee9c6118bed979
2019-05-09 22:50:40 -07:00
Adrian Roos
a3341ae060 PointerLocation: move showing exclusion rects behind flag
Fixes: 131810593
Test: Enable "show pointer location" in developer setting, verify no pink overlays
Change-Id: I258466af07edfc5bc7f36b348564a81fed2cb2b4
2019-05-09 17:41:52 -07:00
Sudheer Shanka
3d57a0157f resolve merge conflicts of 803c052816 to qt-dev-plus-aosp
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I6c435c2e8443cd7bf5959bfbdfb05f188308d524
Merged-In: Ib8a10d3a9097c1dc4132a71782d622e9e3c3747d
2019-05-10 00:36:21 +00:00
TreeHugger Robot
64096f1e78 Merge "Fix accounting bug in BatteryStatsImpl." into qt-dev 2019-05-09 21:01:30 +00:00
Sudheer Shanka
803c052816 Merge "Remove storage sandboxes related code." into qt-dev 2019-05-09 20:38:16 +00:00
Sudheer Shanka
64501e5126 Remove storage sandboxes related code.
Bug: 131115422
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Change-Id: Ib8a10d3a9097c1dc4132a71782d622e9e3c3747d
Merged-In: Ib8a10d3a9097c1dc4132a71782d622e9e3c3747d
2019-05-09 17:47:30 +00:00
Jorim Jaggi
f0ded232e8 Merge "Check for null bg insets during initialization" into qt-dev
am: 44787038c2

Change-Id: I297e3c1d03166d8c286a22b30fb9285254cc1ae5
2019-05-09 09:46:17 -07:00
Jorim Jaggi
44787038c2 Merge "Check for null bg insets during initialization" into qt-dev 2019-05-09 16:20:28 +00:00
Jorim Jaggi
29552934a0 Merge "Only consume status bar if FULLSCREEN is set" into qt-dev
am: 89d1bdedf7

Change-Id: Ia61bda8b198150c38bff53eeae9b18437de1def7
2019-05-09 08:49:56 -07:00
Rubin Xu
897750a79b Bump several device admin notifications to high priority
The following device admin related events now generate interruptive notifications:
1. Admin-triggered remote bug report collections (requires user action)
2. Remote work profile wipe - post wipe notification
3. The enabling of Network logging
4. Admin remotely installs/removes an APK
5. Work profile needs unlocking after boot

Test: manual
Change-Id: If5a51123c05b15e544a31ac7ec6b42ec831a1ccc
Fix: 130623009
Fix: 120770584
Fix: 118810015
2019-05-09 16:35:16 +01:00
Jorim Jaggi
89d1bdedf7 Merge "Only consume status bar if FULLSCREEN is set" into qt-dev 2019-05-09 14:34:19 +00:00
Jorim Jaggi
d798fd3f99 Check for null bg insets during initialization
Test: Turn on Ambient sensing, toggle ambient sensing in settings
Fixes: 132264167
Change-Id: I7f19a91a7d78f8e6ae730871aebb6f7bfb30a0c5
2019-05-09 16:06:02 +02:00
Jorim Jaggi
01d60d0907 Only consume status bar if FULLSCREEN is set
We only need to consume if the app may not expect to have insets,
meaning that they set fullscreen but it was denied.

Test: WindowInsetsPolicy
Fixes: 129272201
Change-Id: I6392f2bcb9a510db4c60bc4f071070b45f143dcb
2019-05-08 22:58:07 +02:00
Matt Pietal
39d181d0f4 Sharesheet - Fix shortcut ranking logic
Fallback code for AppPredictionService was causing legacy direct share
targets to be boosted over new shortcut api results.

Bug: 132259015
Test: Manual, via Messages alpha
Change-Id: I7edd94b4de6a235b2326aae7d91a594a5d11afe0
2019-05-08 14:48:30 -04:00
Matt Pietal
dcdee8080c Merge "Sharesheet - Address misleading logs" into qt-dev
am: b6e2ab9db9

Change-Id: Ibbef8ae59129ea238b519cac3e82616ae6a52e2e
2019-05-08 11:26:52 -07:00
TreeHugger Robot
b6e2ab9db9 Merge "Sharesheet - Address misleading logs" into qt-dev 2019-05-08 17:59:33 +00:00
Tobias Thierer
533b333485 Inline calls to MimeUtils.
MimeMap is a configurable replacement for MimeUtils. This
CL inlines calls to MimeUtils, in preparation for its
removal.

Bug: 120171727
Test: atest com.android.mediaframeworktest.unit.MediaFileTest
Change-Id: I8a2bfec55d913cd0f85ed13fc9cdc052208ed729
Merged-In: I8a2bfec55d913cd0f85ed13fc9cdc052208ed729
(cherry picked from commit 524a364754)
2019-05-08 13:00:11 +00:00
Jorim Jaggi
cd60bc92a4 Merge "Pretend to be having the original background" into qt-dev
am: f9363aadeb

Change-Id: I41bb04676fd23fc968db37417b2cfc5c51aede20
2019-05-08 05:42:59 -07:00
Jorim Jaggi
f9363aadeb Merge "Pretend to be having the original background" into qt-dev 2019-05-08 12:21:53 +00:00