Commit Graph

101522 Commits

Author SHA1 Message Date
Philip Quinn
5be044f37d Write touch classification metrics.
Bug: 111480215
Bug: 123663806
Test: statsd_testdrive 177

Change-Id: I44f0a1877acc38b3199dcc6a3b6d4bf00ac8d817
2019-04-01 17:01:02 +00:00
TreeHugger Robot
afebeabb48 Merge "Camera: Pass physical camera device id during errors" 2019-04-01 17:00:39 +00:00
TreeHugger Robot
a8a14d4bdb Merge "Remove support for the WebView stub." 2019-04-01 16:44:26 +00:00
TreeHugger Robot
90cd3d6d48 Merge "Restrict access to private flags." 2019-04-01 16:28:54 +00:00
TreeHugger Robot
2a80a980e9 Merge "WindowInsets: populate system gesture and tappable element insets" 2019-04-01 16:23:22 +00:00
TreeHugger Robot
833207566c Merge "Sharesheet - Make UI more responsive to touches when loading" 2019-04-01 15:26:05 +00:00
TreeHugger Robot
8ccf6439af Merge "Fix the javadoc of setAutoTimeRequired." 2019-04-01 14:58:32 +00:00
TreeHugger Robot
389dfc89cb Merge "Change javadoc of isManagedKiosk." 2019-04-01 14:51:23 +00:00
Adrian Roos
11dfd279a3 WindowInsets: populate system gesture and tappable element insets
Also fixes an infinite recursion when invoking
TestableContext.(un)registerComponentCallbacks().

Test: atest WindowInsetsPolicyTest
Bug: 126511573
Change-Id: I5c9f40054493a83746bce6124d72412e8eb8a0d1
2019-04-01 15:46:13 +02:00
Matt Pietal
af044aefd9 Sharesheet - Make UI more responsive to touches when loading
ListView will try to prevent errant touches while data is being
loaded. With Sharesheet, this can happen quite frequently so 1:
eliminate unnecessary notifyDataSetChanged calls and 2: batch up the
remaining calls and release a single call on an interval.

Bug: 126568576
Test: atest ChooserActivityTest && atest ResolverActivityTest
Change-Id: I3207f207910a0c9223a1b562243d9db612f93b0a
2019-04-01 08:52:42 -04:00
Alex Kershaw
fa3b77f27c Fix the javadoc of setAutoTimeRequired.
Fix the javadoc of DevicePolicyManager#setAutoTimeRequired to mention
that PO support is only from O onwards.

Fixes: 126325573
Test: Javadoc change only
Change-Id: Ib415e20a312d2cc454843562bff6cc0eb1e98244
2019-04-01 13:24:54 +01:00
Alex Kershaw
dafcc9dbf9 Change javadoc of isManagedKiosk.
Change the javadoc of isManagedKiosk and isUnattendedManagedKiosk to
reflect feedback from the CDD update process at http://b/124358598.

Bug: 124358598
Fixes: 129458503
Test: Javadoc only
Change-Id: Iad69be116ccd62ff8091d1be412a06afdd714603
2019-04-01 13:12:11 +01:00
Anton Hansson
d96f4fa19c Merge "Make data warning notification use IEC units" 2019-04-01 10:01:33 +00:00
Paul Hu
b2913320cd Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1c6d am: 96f34c3151
am: bf3e6f5e75

Change-Id: I599dcdb2312a3e1bb1de8e03f349df207c7cc075
2019-04-01 00:52:53 -07:00
Paul Hu
bf3e6f5e75 Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1c6d
am: 96f34c3151

Change-Id: I171e667dd279e008708fbc84972f63cbd5b55625
2019-04-01 00:43:33 -07:00
Paul Hu
96f34c3151 Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."
am: f9d61f1c6d

Change-Id: I8d848c559e1c1e021a72bf525876aad9bddb3374
2019-04-01 00:34:26 -07:00
Paul Hu
f9d61f1c6d Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." 2019-04-01 07:20:53 +00:00
Remi NGUYEN VAN
b93bfa1d69 Merge "Fix race when starting NetworkMonitor" am: 78454f3c46 am: f75ba075e4
am: 940cbf970a

Change-Id: I595ecdbf0b8e91fec4287c3476239a1e6c9c80a7
2019-03-31 21:35:25 -07:00
Remi NGUYEN VAN
940cbf970a Merge "Fix race when starting NetworkMonitor" am: 78454f3c46
am: f75ba075e4

Change-Id: I049ea18e6c5c42a1b31d93541aa3846b14b7ab08
2019-03-31 21:25:12 -07:00
Remi NGUYEN VAN
f75ba075e4 Merge "Fix race when starting NetworkMonitor"
am: 78454f3c46

Change-Id: I3fe792704b9dfaafe09c83da57081d6668216a97
2019-03-31 21:13:48 -07:00
Remi NGUYEN VAN
78454f3c46 Merge "Fix race when starting NetworkMonitor" 2019-04-01 03:54:03 +00:00
Hyunyoung Song
b9b310a976 Merge "Fix OverlayInfo API" 2019-04-01 03:50:52 +00:00
Ugo Yu
1cf619760e Merge "Refine Bluetooth silence mode API" am: c650674397 am: 0196a831b1
am: ae55a7a369

Change-Id: Ie5dfde6a063209acf61846438b6f507ef24f9716
2019-03-31 20:44:42 -07:00
Ugo Yu
ae55a7a369 Merge "Refine Bluetooth silence mode API" am: c650674397
am: 0196a831b1

Change-Id: I998be4f22bb76e8d3329a5c3d32b929421262e71
2019-03-31 20:35:30 -07:00
Ugo Yu
0196a831b1 Merge "Refine Bluetooth silence mode API"
am: c650674397

Change-Id: Icd91568d8bc2897914cececec7743fe2800192eb
2019-03-31 20:26:18 -07:00
Treehugger Robot
c650674397 Merge "Refine Bluetooth silence mode API" 2019-04-01 03:12:31 +00:00
Remi NGUYEN VAN
3962f678c3 Fix race when starting NetworkMonitor
NetworkMonitor obtained LinkProperties and NetworkCapabilities via
synchronous calls to ConnectivityManager after receiving an asynchronous
notification, which is prone to races: the network could be gone before
the LinkProperties/NetworkCapabilities can be fetched.

Fix the race by passing LinkProperties/NetworkCapabilities directly to
NetworkMonitor in the asynchronous notifications.

Test: atest FrameworksNetTests NetworkStackTests
Test: booted, WiFi works
Bug: 129375892
Change-Id: I200ac7ca6ff79590b11c9be705f650c92fd3cb63
2019-04-01 11:33:10 +09:00
paulhu
819e0aff30 Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues.
Fix: 129362082
Fix: 129361362
Fix: 129360330
Fix: 129362379
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I05fbc6f98207d5cf002e3cbc5829040af7d6be52
2019-04-01 10:23:51 +08:00
Jeff Sharkey
f5e3d6a735 DATA is deprecated, but some apps really want it.
The DATA column points at raw filesystem locations, which aren't
always valid when an app is placed into a sandbox, so apps need to
move away from using them.

We had hoped to block this access based on an app targeting Q, but
we've received feedback that it's too painful for apps to transition,
so we'll continue returning paths that can be translated.

Also reduce CPU usage by skipping permission checks when not
processing an IPC, such as when called by ModernMediaScanner.

Bug: 128452447, 125725916
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibd41d8ddedfaf9807333560b2d8e64e42ea7a1ba
2019-03-31 12:03:50 -06:00
Jeff Sharkey
a1189dcf68 Merge changes from topic "permz"
* changes:
  Flesh out remaining CR.wrap() methods.
  Apps using storage must have runtime permission.
2019-03-31 16:36:05 +00:00
TreeHugger Robot
e5e258148d Merge "Adding automatic heap dumping for system server." 2019-03-30 02:35:22 +00:00
Jeff Sharkey
5693cfd1c2 Flesh out remaining CR.wrap() methods.
Along with tests to verify that they're all delegated as expected.

Bug: 129564663
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverWrapTest.java
Change-Id: I07dcabb78174ed2bb63061394bf737df71f49bb0
2019-03-29 20:09:41 -06:00
Jeff Sharkey
448c1ea84d Apps using storage must have runtime permission.
A major goal of the Q release is to promote user transparency around
permission usage, and to also give user controls over those
permissions.  To further this goal, all apps requesting the
internal WRITE_MEDIA_STORAGE permission must also request (and be
granted) the "Storage" runtime permission in order to gain the
associated access.

If the user revokes the "Storage" runtime permission, then the app
must lose all access granted to it via WRITE_MEDIA_STORAGE.

Bug: 129144016
Test: atest android.permission.cts.ProviderPermissionTest#testWriteMediaStorage
Change-Id: I7e747de0107cf9364a0ff2401686906340d31995
2019-03-29 19:46:20 -06:00
Winson Chiu
fbe87233d5 Merge changes from topic "code-paths-and-resources-caching-fix"
* changes:
  Revert ContextImpl LoadedApk packageInfo caching workaround
  Fix AssetManager2 isUpToDate check
  Diff resource dirs when checking LoadedApk packageInfo cache in ActivityThread
  Diff overlays between PackageManagerService and OverlayManagerService
  Propagate base code path and split dir changes to Resources objects
2019-03-29 23:50:02 +00:00
Jeff Sharkey
ff9c704536 Merge "Support optional use of aggregation functions." 2019-03-29 23:35:12 +00:00
TreeHugger Robot
cb91b276f3 Merge "Making Battery Saver policy setting more defensive." 2019-03-29 23:30:16 +00:00
Kweku Adams
fa8256386e Adding automatic heap dumping for system server.
This adds a request to ActivityManager to track the system server's pss heap
and make sure it doesn't go above a predefined limit. If it does, the dump is
generated and a notification is posted.

Bug: 77490269
Test: flash device and test with 100MB and 150MB limits
Change-Id: Ie886cc36860e8557fbd037b3bfd4975d12806a4b
2019-03-29 16:25:06 -07:00
TreeHugger Robot
cbc7969813 Merge "Add attr documentation for a couple accessibility attributes" 2019-03-29 22:59:34 +00:00
TreeHugger Robot
dd39518c07 Merge "Stop window redraws for invisible parent children" 2019-03-29 22:04:43 +00:00
Jorim Jaggi
338efa6092 Merge changes I95328c6b,I109cead7,I82b5a778,I352a3213
* changes:
  More random optimzations to make things go faster
  Don't compare configs during layout
  Get rid of some ancient logic around layouting invisible windows
  Window Manager spring cleaning
2019-03-29 22:01:13 +00:00
John Reck
368b384c88 Merge "Add missing checkThread" am: fdb8dfdadf am: 67793b0eec
am: 9117b1371f

Change-Id: I1a6cc8d995dad4e2ac06f046a693bdace767d79b
2019-03-29 14:59:45 -07:00
John Reck
9117b1371f Merge "Add missing checkThread" am: fdb8dfdadf
am: 67793b0eec

Change-Id: Ia8f3182a1d765937a5901cf6f9063ba8c84eb258
2019-03-29 14:48:24 -07:00
Jeff Sharkey
82d783c417 Support optional use of aggregation functions.
As long as the column being aggregated is valid with respect to
all existing projection checks, then we're willing to apply an
aggregation function on it.

Bug: 129220616
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I8e4b665f5abd6553939a35d9f46247cc63c4c25f
2019-03-29 15:46:38 -06:00
John Reck
67793b0eec Merge "Add missing checkThread"
am: fdb8dfdadf

Change-Id: Iabcd28a4c3fa659c92b392573158dd5025ed8c37
2019-03-29 14:37:01 -07:00
TreeHugger Robot
a869ccb1d0 Merge "Grants camera permission to Attention Service." 2019-03-29 21:31:26 +00:00
Treehugger Robot
fdb8dfdadf Merge "Add missing checkThread" 2019-03-29 21:18:10 +00:00
Shafik Nassar
936eb3153c Merge "Enforce multipackage installs have consistent rollback params" 2019-03-29 20:50:49 +00:00
Kweku Adams
c1d844a52b Making Battery Saver policy setting more defensive.
1. Making a full copy of the config Builder's map so that changing
the map in the builder doesn't change the config's map.

2. Ensuring that location mode and brightness adjustment factors are
within valid ranges.

Bug: 129474588
Test: manual
Change-Id: I6117b7857afa10d71c1fc3de818c51d8719a281b
2019-03-29 13:28:45 -07:00
Jeff Sharkey
65e18e43a2 Merge "Manifest flag for apps to request sandboxing." 2019-03-29 19:31:33 +00:00
Winson
710e3ecbe0 Revert ContextImpl LoadedApk packageInfo caching workaround
Reverts changes made for b/120987987 that are no longer necessary
with changes for b/124363683.

Test: manually built, enabled/disabled FontCursiveMonospaceOverlay

Change-Id: Ied18a412d30514b40cc720d9a1af5c0d2053d795
2019-03-29 12:18:18 -07:00