OSDN Git Service

android-x86/frameworks-base.git
5 years agoMigrate away from WebView fallback logic.
Torne (Richard Coles) [Thu, 28 Mar 2019 19:03:21 +0000 (15:03 -0400)]
Migrate away from WebView fallback logic.

We no longer need to support fallback packages and need to migrate them
back to being enabled (but only once, to allow the user to disable them
manually later). This CL:

1) Removes the logic which enables/disables packages and the test cases
   which only cover the enabling/disabling logic.

2) Checks at boot time if the fallback logic is enabled; if so, it
   re-enables the fallback package if one exists and then disables the
   fallback logic permanently.

3) Amends remaining test cases to use "primary" and "secondary" instead
   of primary/fallback, to keep testing that higher priority packages
   are more preferred without involving the fallback behaviour.

4) Fixes a bug in the package selection logic that would not have
   triggered in the previous setup (as our production configs never had
   more than one available-by-default, non-fallback packages) that was
   revealed by one of the modified test cases: the boot time logic to
   reset the user's setting if their previously chosen provider was no
   longer available triggered even if the user had not actually chosen a
   provider, causing the automatically selected provider to be
   considered a manual user choice, and preventing a higher priority
   provider from being automatically chosen if it later becomes
   available.

Bug: 126588129
Test: atest WebViewUpdateServiceTest
Change-Id: I532c0faae2427de7132f716725bf62e256975410

5 years agoMerge "When a Bubble notification is clicked, show the bubble"
Mark Renouf [Mon, 1 Apr 2019 18:48:51 +0000 (18:48 +0000)]
Merge "When a Bubble notification is clicked, show the bubble"

5 years agoMerge "Add the NonNull annotation to avoid runtime exception when the engine is not...
Xi Han [Mon, 1 Apr 2019 18:37:58 +0000 (18:37 +0000)]
Merge "Add the NonNull annotation to avoid runtime exception when the engine is not bound successfully."

5 years agoMerge "Actually fix notification listeners dismissing bubbles"
Mady Mellor [Mon, 1 Apr 2019 18:36:48 +0000 (18:36 +0000)]
Merge "Actually fix notification listeners dismissing bubbles"

5 years agoMerge "Remove hidden IntDef in java doc."
TreeHugger Robot [Mon, 1 Apr 2019 18:23:27 +0000 (18:23 +0000)]
Merge "Remove hidden IntDef in java doc."

5 years agoMerge "Switch keyboard shortcuts helper to daynight theme"
Salvador Martinez [Mon, 1 Apr 2019 18:22:06 +0000 (18:22 +0000)]
Merge "Switch keyboard shortcuts helper to daynight theme"

5 years agoMerge "Gesture Exclusion: Fix crash when exclusion updates after detaching window"
TreeHugger Robot [Mon, 1 Apr 2019 18:04:52 +0000 (18:04 +0000)]
Merge "Gesture Exclusion: Fix crash when exclusion updates after detaching window"

5 years agoMerge "Fix aapt2 pseudo-translating donottranslate* files"
Mihai Niță [Mon, 1 Apr 2019 18:04:15 +0000 (18:04 +0000)]
Merge "Fix aapt2 pseudo-translating donottranslate* files"

5 years agoMerge "Connect to Passpoint network immediately after OSU provisioning"
Quang Luong [Mon, 1 Apr 2019 17:55:36 +0000 (17:55 +0000)]
Merge "Connect to Passpoint network immediately after OSU provisioning"

5 years agoMerge "Add onPointerDownOutsideFocus for events outside the focused window (3/4)"
Chavi Weingarten [Mon, 1 Apr 2019 17:53:00 +0000 (17:53 +0000)]
Merge "Add onPointerDownOutsideFocus for events outside the focused window (3/4)"

5 years agoMerge "Don't load EGL driver always"
TreeHugger Robot [Mon, 1 Apr 2019 17:32:35 +0000 (17:32 +0000)]
Merge "Don't load EGL driver always"

5 years agoMerge "Track public android.system API changes in libcore" am: 1423684d1a am: 0036c64764
Neil Fuller [Mon, 1 Apr 2019 17:13:45 +0000 (10:13 -0700)]
Merge "Track public android.system API changes in libcore" am: 1423684d1a am: 0036c64764
am: f06759e799

Change-Id: I3b20374c1a2222fbb82796be30141b1854abda2c

5 years agoMerge "Add the restricted_image incident report section, and some sample code in...
Yao Chen [Mon, 1 Apr 2019 17:04:55 +0000 (17:04 +0000)]
Merge "Add the restricted_image incident report section, and some sample code in FaceService."

5 years agoWrite touch classification metrics.
Philip Quinn [Tue, 29 Jan 2019 20:47:09 +0000 (12:47 -0800)]
Write touch classification metrics.

Bug: 111480215
Bug: 123663806
Test: statsd_testdrive 177

Change-Id: I44f0a1877acc38b3199dcc6a3b6d4bf00ac8d817

5 years agoMerge "Camera: Pass physical camera device id during errors"
TreeHugger Robot [Mon, 1 Apr 2019 17:00:39 +0000 (17:00 +0000)]
Merge "Camera: Pass physical camera device id during errors"

5 years agoMerge "Track public android.system API changes in libcore" am: 1423684d1a
Neil Fuller [Mon, 1 Apr 2019 16:59:59 +0000 (09:59 -0700)]
Merge "Track public android.system API changes in libcore" am: 1423684d1a
am: 0036c64764

Change-Id: I93b2d6742193414b3f6a81cd35e923a4f6b7f2fb

5 years agoMerge "Track public android.system API changes in libcore"
Neil Fuller [Mon, 1 Apr 2019 16:50:56 +0000 (09:50 -0700)]
Merge "Track public android.system API changes in libcore"
am: 1423684d1a

Change-Id: I98319e08a913b8c679579fb52bc4ded61fc5f5b0

5 years agoMerge "Invalidate Skia shader cache if Vulkan driver has changed"
TreeHugger Robot [Mon, 1 Apr 2019 16:49:26 +0000 (16:49 +0000)]
Merge "Invalidate Skia shader cache if Vulkan driver has changed"

5 years agoMerge "Remove support for the WebView stub."
TreeHugger Robot [Mon, 1 Apr 2019 16:44:26 +0000 (16:44 +0000)]
Merge "Remove support for the WebView stub."

5 years agoMerge changes from topic "explicit"
Zimuzo Ezeozue [Mon, 1 Apr 2019 16:41:57 +0000 (16:41 +0000)]
Merge changes from topic "explicit"

* changes:
  Notify PacakgeWatchdog when apps are ready
  Add explicit health check to PackageWatchdog

5 years agoMerge "Track public android.system API changes in libcore"
Neil Fuller [Mon, 1 Apr 2019 16:41:11 +0000 (16:41 +0000)]
Merge "Track public android.system API changes in libcore"

5 years agoMerge "Restrict access to private flags."
TreeHugger Robot [Mon, 1 Apr 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Restrict access to private flags."

5 years agoAdd the NonNull annotation to avoid runtime exception when the engine
Cassie [Mon, 1 Apr 2019 16:12:53 +0000 (09:12 -0700)]
Add the NonNull annotation to avoid runtime exception when the engine
is not bound successfully.

Bug: 124627359
Test: manual
Change-Id: I1b449ec6ec1c0164cc1b779ff573a2f84e521552

5 years agoMerge "Relaxed nullability requirements for setTintMode APIs for both PorterDuff...
TreeHugger Robot [Mon, 1 Apr 2019 16:26:32 +0000 (16:26 +0000)]
Merge "Relaxed nullability requirements for setTintMode APIs for both PorterDuff.Mode and BlendMode"

5 years agoMerge "Separate insets from drawable for camera icon."
TreeHugger Robot [Mon, 1 Apr 2019 16:26:22 +0000 (16:26 +0000)]
Merge "Separate insets from drawable for camera icon."

5 years agoMerge "WindowInsets: populate system gesture and tappable element insets"
TreeHugger Robot [Mon, 1 Apr 2019 16:23:22 +0000 (16:23 +0000)]
Merge "WindowInsets: populate system gesture and tappable element insets"

5 years agoMerge "Merge "Unhide ICMP echo constants." am: 82d1361e6d am: a09b83fc67 am: e93de65e84"
Android Build Merger (Role) [Mon, 1 Apr 2019 16:19:18 +0000 (16:19 +0000)]
Merge "Merge "Unhide ICMP echo constants." am: 82d1361e6d am: a09b83fc67 am: e93de65e84"

5 years agoMerge "Unhide ICMP echo constants." am: 82d1361e6d am: a09b83fc67
Lorenzo Colitti [Mon, 1 Apr 2019 16:17:41 +0000 (09:17 -0700)]
Merge "Unhide ICMP echo constants." am: 82d1361e6d am: a09b83fc67
am: e93de65e84

Change-Id: Id8ddba07690a5e505bc4c5dc1be1a5ce8e4739f3

5 years agoWhen a Bubble notification is clicked, show the bubble
Mark Renouf [Wed, 13 Mar 2019 17:24:27 +0000 (13:24 -0400)]
When a Bubble notification is clicked, show the bubble

After checking keyguard and collapsing the shade, ask
BubbleController to show the bubble associated with the
notification, instad of simply sending the contentIntent.

Bug: 123710619
Test: atest StatusBarNotificationActivityStarterTest
Change-Id: I7b43061447de0daa314deec5abad634fd73e9831

5 years agoMerge "Revert "Call handleIncomingUser when making intent""
Zhi An Ng [Mon, 1 Apr 2019 16:09:32 +0000 (16:09 +0000)]
Merge "Revert "Call handleIncomingUser when making intent""

5 years agoMerge "Unhide ICMP echo constants." am: 82d1361e6d
Lorenzo Colitti [Mon, 1 Apr 2019 15:47:10 +0000 (08:47 -0700)]
Merge "Unhide ICMP echo constants." am: 82d1361e6d
am: a09b83fc67

Change-Id: I02db2b7fee8c5334f7e64ffd256cba9d320e0797

5 years agoMerge "Unhide ICMP echo constants."
Lorenzo Colitti [Mon, 1 Apr 2019 15:34:23 +0000 (08:34 -0700)]
Merge "Unhide ICMP echo constants."
am: 82d1361e6d

Change-Id: I1dad509eb0b56666cde0399dfcbaea050ce30630

5 years agoMerge "staged sessions: clear INSTALL_ALLOW_DOWNGRADE if pre-reboot session did not...
Nikita Ioffe [Mon, 1 Apr 2019 15:29:39 +0000 (15:29 +0000)]
Merge "staged sessions: clear INSTALL_ALLOW_DOWNGRADE if pre-reboot session did not have it"

5 years agoMerge "Sharesheet - Make UI more responsive to touches when loading"
TreeHugger Robot [Mon, 1 Apr 2019 15:26:05 +0000 (15:26 +0000)]
Merge "Sharesheet - Make UI more responsive to touches when loading"

5 years agoDon't load EGL driver always
Stan Iliev [Fri, 29 Mar 2019 18:25:09 +0000 (14:25 -0400)]
Don't load EGL driver always

EGL driver is preloaded only if HWUI renders with GL.

Test: Ran several apps, passed CtsGraphics and CtsUiRendering
Change-Id: Ib38d6f51a19a2ee3631c7d9c99283286c389e476

5 years agoMerge "Revert "Fix bug in notification showing of silent package uninstallation""
Rubin Xu [Mon, 1 Apr 2019 15:16:05 +0000 (15:16 +0000)]
Merge "Revert "Fix bug in notification showing of silent package uninstallation""

5 years agoMerge "Add comment for NetworkStack permissions" am: 154a0d0b38 am: b4493ea049
Remi NGUYEN VAN [Mon, 1 Apr 2019 15:13:16 +0000 (08:13 -0700)]
Merge "Add comment for NetworkStack permissions" am: 154a0d0b38 am: b4493ea049
am: 0737917d03

Change-Id: If9c8d887e04bf173badb6b147d9a4379daf6d93f

5 years agoMerge "Unhide ICMP echo constants."
Lorenzo Colitti [Mon, 1 Apr 2019 15:08:44 +0000 (15:08 +0000)]
Merge "Unhide ICMP echo constants."

5 years agoMerge "Add comment for NetworkStack permissions" am: 154a0d0b38
Remi NGUYEN VAN [Mon, 1 Apr 2019 15:02:13 +0000 (08:02 -0700)]
Merge "Add comment for NetworkStack permissions" am: 154a0d0b38
am: b4493ea049

Change-Id: I4e1299713b3425a5a86f927e58238aa6da2e7c65

5 years agoMerge "Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80...
Android Build Merger (Role) [Mon, 1 Apr 2019 15:01:14 +0000 (15:01 +0000)]
Merge "Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80 am: 41ab607d3d am: ef0b0ae2da"

5 years agoMerge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80 am:...
Tyler Gunn [Mon, 1 Apr 2019 15:00:13 +0000 (08:00 -0700)]
Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80 am: 41ab607d3d
am: ef0b0ae2da

Change-Id: Ib93302e0aa41b98adcc9489a8b183e7a57434eb4

5 years agoMerge "Fix the javadoc of setAutoTimeRequired."
TreeHugger Robot [Mon, 1 Apr 2019 14:58:32 +0000 (14:58 +0000)]
Merge "Fix the javadoc of setAutoTimeRequired."

5 years agoMerge "Add comment for NetworkStack permissions"
Remi NGUYEN VAN [Mon, 1 Apr 2019 14:53:06 +0000 (07:53 -0700)]
Merge "Add comment for NetworkStack permissions"
am: 154a0d0b38

Change-Id: Ib338cd0de2b9a0aa16e096a299d4d4e5a6b25dd9

5 years agoMerge "Change javadoc of isManagedKiosk."
TreeHugger Robot [Mon, 1 Apr 2019 14:51:23 +0000 (14:51 +0000)]
Merge "Change javadoc of isManagedKiosk."

5 years agoMerge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80
Tyler Gunn [Mon, 1 Apr 2019 14:45:41 +0000 (07:45 -0700)]
Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated." am: 70e943ba80
am: 41ab607d3d

Change-Id: I0111b33db6fb43b387b977007180f362ba36e2db

5 years agoMerge "Add comment for NetworkStack permissions"
Treehugger Robot [Mon, 1 Apr 2019 14:45:18 +0000 (14:45 +0000)]
Merge "Add comment for NetworkStack permissions"

5 years agoMerge "Mark PROCESS_OUTGOING_CALLS permission as deprecated."
Tyler Gunn [Mon, 1 Apr 2019 14:32:39 +0000 (07:32 -0700)]
Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated."
am: 70e943ba80

Change-Id: I20fed9904a6b8d85c0e7a33ae8db8b3f4ae7987e

5 years agoMerge "Mark PROCESS_OUTGOING_CALLS permission as deprecated."
Tyler Gunn [Mon, 1 Apr 2019 14:13:50 +0000 (14:13 +0000)]
Merge "Mark PROCESS_OUTGOING_CALLS permission as deprecated."

5 years agoNotify PacakgeWatchdog when apps are ready
Zimuzo [Thu, 28 Mar 2019 20:43:20 +0000 (20:43 +0000)]
Notify PacakgeWatchdog when apps are ready

To observe packages with explicit health check enabled,
PackageWatchdog needs to bind to the ExplicitHealthCheckService
living in ExtServices. During boot, it needs to wait for the package
ready signal before attempting to bind to ExtServices.

Bug: 120598832
Test: Manually tested that after an APEX update, the network stack
does not pass the explicit health check until WiFi is connected
successfully. If Wi-Fi is never connected and the network stack
monitoring duration is exceeded, the update is rolled back.

Change-Id: I9ebeced010381c958aa27a465f508c54502c6b47

5 years agoAdd explicit health check to PackageWatchdog
Zimuzo [Wed, 20 Mar 2019 11:16:06 +0000 (11:16 +0000)]
Add explicit health check to PackageWatchdog

PackageWatchdog now uses the ExplicitHealthCheckController introduced
in Ia030671c99699bd8d8273f32a97a1d3b7b015d3b when observing packages.

Bug: 120598832
Test: Manually tested that after an APEX update, the network stack
does not pass the explicit health check until WiFi is connected
successfully. If Wi-Fi is never connected and the network stack
monitoring duration is exceeded, the update is rolled back.

Change-Id: I75d3cc909cabb4a4eb34df1d5022d1afc629dac3

5 years agoMerge "Fix wallpaper NPE caused by user switching before IWallpaperService connection"
TreeHugger Robot [Mon, 1 Apr 2019 13:53:09 +0000 (13:53 +0000)]
Merge "Fix wallpaper NPE caused by user switching before IWallpaperService connection"

5 years agoSeparate insets from drawable for camera icon.
Amin Shaikh [Mon, 1 Apr 2019 13:49:44 +0000 (09:49 -0400)]
Separate insets from drawable for camera icon.

ic_camera will be overlayed in icon packs.

Bug: 124106839
Test: make
Change-Id: Ifabfc837f95a249f1863becec5b542b4cd4d1398

5 years agoWindowInsets: populate system gesture and tappable element insets
Adrian Roos [Mon, 25 Mar 2019 18:21:26 +0000 (19:21 +0100)]
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

5 years agoMerge "Add DHCP address lease expiry in IpMemoryStore." am: 17ea70c6d3 am: 23f6cd281a
Xiao Ma [Mon, 1 Apr 2019 13:35:34 +0000 (06:35 -0700)]
Merge "Add DHCP address lease expiry in IpMemoryStore." am: 17ea70c6d3 am: 23f6cd281a
am: 8e6c80f238

Change-Id: Ib09ee6a702fb25a682d4782a8822237ebb9a0dfb

5 years agoMerge "Add DHCP address lease expiry in IpMemoryStore." am: 17ea70c6d3
Xiao Ma [Mon, 1 Apr 2019 13:27:18 +0000 (06:27 -0700)]
Merge "Add DHCP address lease expiry in IpMemoryStore." am: 17ea70c6d3
am: 23f6cd281a

Change-Id: I690d6c1602292731f27b3f2d0a1a36cf95849d2e

5 years agoMerge "Add DHCP address lease expiry in IpMemoryStore."
Xiao Ma [Mon, 1 Apr 2019 13:16:08 +0000 (06:16 -0700)]
Merge "Add DHCP address lease expiry in IpMemoryStore."
am: 17ea70c6d3

Change-Id: Idb73423aaf875bb77d19f9661e243f152f734fa3

5 years agoMerge "Add DHCP address lease expiry in IpMemoryStore."
Xiao Ma [Mon, 1 Apr 2019 12:59:20 +0000 (12:59 +0000)]
Merge "Add DHCP address lease expiry in IpMemoryStore."

5 years agoSharesheet - Make UI more responsive to touches when loading
Matt Pietal [Fri, 29 Mar 2019 10:53:53 +0000 (06:53 -0400)]
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

5 years agoMerge "Prevent potential NPE when updating state to bar manager"
TreeHugger Robot [Mon, 1 Apr 2019 12:34:01 +0000 (12:34 +0000)]
Merge "Prevent potential NPE when updating state to bar manager"

5 years agoFix the javadoc of setAutoTimeRequired.
Alex Kershaw [Mon, 1 Apr 2019 12:24:54 +0000 (13:24 +0100)]
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

5 years agoChange javadoc of isManagedKiosk.
Alex Kershaw [Mon, 1 Apr 2019 12:12:11 +0000 (13:12 +0100)]
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

5 years agoMerge "Correct size compat mode condition of aspect ratio"
TreeHugger Robot [Mon, 1 Apr 2019 11:23:32 +0000 (11:23 +0000)]
Merge "Correct size compat mode condition of aspect ratio"

5 years agoMerge "Make data warning notification use IEC units"
Anton Hansson [Mon, 1 Apr 2019 10:01:33 +0000 (10:01 +0000)]
Merge "Make data warning notification use IEC units"

5 years agoMerge "Make updatedMillis a private field"
Gavin Corkery [Mon, 1 Apr 2019 09:28:09 +0000 (09:28 +0000)]
Merge "Make updatedMillis a private field"

5 years agoMerge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1...
Paul Hu [Mon, 1 Apr 2019 07:52:53 +0000 (00:52 -0700)]
Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1c6d am: 96f34c3151
am: bf3e6f5e75

Change-Id: I599dcdb2312a3e1bb1de8e03f349df207c7cc075

5 years agoMerge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1c6d
Paul Hu [Mon, 1 Apr 2019 07:43:33 +0000 (00:43 -0700)]
Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." am: f9d61f1c6d
am: 96f34c3151

Change-Id: I171e667dd279e008708fbc84972f63cbd5b55625

5 years agoMerge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."
Paul Hu [Mon, 1 Apr 2019 07:34:26 +0000 (00:34 -0700)]
Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."
am: f9d61f1c6d

Change-Id: I8d848c559e1c1e021a72bf525876aad9bddb3374

5 years agoMerge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."
Paul Hu [Mon, 1 Apr 2019 07:20:53 +0000 (07:20 +0000)]
Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."

5 years agoMerge "Dumps bound and enabled services in a11yManagerService"
TreeHugger Robot [Mon, 1 Apr 2019 06:57:14 +0000 (06:57 +0000)]
Merge "Dumps bound and enabled services in a11yManagerService"

5 years agoMerge "Improve system gesture listener to handle display cutout"
Jeff Chang [Mon, 1 Apr 2019 06:15:07 +0000 (06:15 +0000)]
Merge "Improve system gesture listener to handle display cutout"

5 years agoMerge "Provide link to android experimental flags API" am: 9876efdabe am: a94479c120
Chiachang Wang [Mon, 1 Apr 2019 05:25:35 +0000 (22:25 -0700)]
Merge "Provide link to android experimental flags API" am: 9876efdabe am: a94479c120
am: 8724b66c2d

Change-Id: I4045d54066cf1c8270bb6eca030daf0193721723

5 years agoMerge "Provide link to android experimental flags API" am: 9876efdabe
Chiachang Wang [Mon, 1 Apr 2019 05:16:35 +0000 (22:16 -0700)]
Merge "Provide link to android experimental flags API" am: 9876efdabe
am: a94479c120

Change-Id: I3867a98978c3a80f9188590e235a67683e76f3a3

5 years agoMerge "Provide link to android experimental flags API"
Chiachang Wang [Mon, 1 Apr 2019 05:07:17 +0000 (22:07 -0700)]
Merge "Provide link to android experimental flags API"
am: 9876efdabe

Change-Id: I1c02f0725728c6cfe2d040071bcdb0bead71b510

5 years agoMerge "[automerger skipped] Merge "Move permissions from base to standard manifest...
Android Build Merger (Role) [Mon, 1 Apr 2019 04:58:05 +0000 (04:58 +0000)]
Merge "[automerger skipped] Merge "Move permissions from base to standard manifest" am: 95c5375a85 am: f076210032 am: ad7cdd2bd3 -s ours am skip reason: change_id Ica63ce586e701b1f2415a97f63ba27cc25e4830a with SHA1 d4cbba8f18 is in history"

5 years ago[automerger skipped] Merge "Move permissions from base to standard manifest" am:...
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:57:39 +0000 (21:57 -0700)]
[automerger skipped] Merge "Move permissions from base to standard manifest" am: 95c5375a85 am: f076210032
am: ad7cdd2bd3 -s ours
am skip reason: change_id Ica63ce586e701b1f2415a97f63ba27cc25e4830a with SHA1 d4cbba8f18 is in history

Change-Id: I71e11fcb1f80f17fd873aea1c14263b7edc814d2

5 years agoMerge "Fix issue with slow status bar tint transition"
Winson Chung [Mon, 1 Apr 2019 04:54:45 +0000 (04:54 +0000)]
Merge "Fix issue with slow status bar tint transition"

5 years agoMerge "Provide link to android experimental flags API"
Chiachang Wang [Mon, 1 Apr 2019 04:49:33 +0000 (04:49 +0000)]
Merge "Provide link to android experimental flags API"

5 years agoMerge "Move permissions from base to standard manifest" am: 95c5375a85
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:48:25 +0000 (21:48 -0700)]
Merge "Move permissions from base to standard manifest" am: 95c5375a85
am: f076210032

Change-Id: I022a4797ccd81d24dacd6b314305a43f299c86f3

5 years agoMerge "Move permissions from base to standard manifest"
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:38:02 +0000 (21:38 -0700)]
Merge "Move permissions from base to standard manifest"
am: 95c5375a85

Change-Id: Ic15b12fd9656bb60aca616a8610df49e568a80e7

5 years agoMerge "Fix race when starting NetworkMonitor" am: 78454f3c46 am: f75ba075e4
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:35:25 +0000 (21:35 -0700)]
Merge "Fix race when starting NetworkMonitor" am: 78454f3c46 am: f75ba075e4
am: 940cbf970a

Change-Id: I595ecdbf0b8e91fec4287c3476239a1e6c9c80a7

5 years agoMerge "Fix race when starting NetworkMonitor" am: 78454f3c46
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:25:12 +0000 (21:25 -0700)]
Merge "Fix race when starting NetworkMonitor" am: 78454f3c46
am: f75ba075e4

Change-Id: I049ea18e6c5c42a1b31d93541aa3846b14b7ab08

5 years agoAdd comment for NetworkStack permissions
Remi NGUYEN VAN [Mon, 1 Apr 2019 01:56:05 +0000 (10:56 +0900)]
Add comment for NetworkStack permissions

Clarify that permissions must not be in the base package to avoid
crashes on devices using a network stack running in the system server
process.

Test: m
Change-Id: Ib13df84a43e960d01217c208d1c6775d1f81edc4

5 years agoMerge "Move permissions from base to standard manifest"
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:20:41 +0000 (04:20 +0000)]
Merge "Move permissions from base to standard manifest"

5 years agoMerge "Fix race when starting NetworkMonitor"
Remi NGUYEN VAN [Mon, 1 Apr 2019 04:13:48 +0000 (21:13 -0700)]
Merge "Fix race when starting NetworkMonitor"
am: 78454f3c46

Change-Id: I3fe792704b9dfaafe09c83da57081d6668216a97

5 years agoPrevent potential NPE when updating state to bar manager
Riddle Hsu [Mon, 25 Mar 2019 16:40:35 +0000 (00:40 +0800)]
Prevent potential NPE when updating state to bar manager

If the process of bar window is died, the associated window
will be set to null. Since BarController is associated with
display, the display id can be a final field, so it no longer
depends on the nullable member mWin.

Fixes: 129240719
Test: manual - Play video in landscape mode and make systemui
      crash, e.g. adb shell kill -11 ${pid of systemui}. The
      result should be only the systemui is restarted.

Change-Id: If5b93e76cb856dd0dd80fb8523788f4587222c9c

5 years agoMerge "Fix race when starting NetworkMonitor"
Remi NGUYEN VAN [Mon, 1 Apr 2019 03:54:03 +0000 (03:54 +0000)]
Merge "Fix race when starting NetworkMonitor"

5 years agoMerge "Fix OverlayInfo API"
Hyunyoung Song [Mon, 1 Apr 2019 03:50:52 +0000 (03:50 +0000)]
Merge "Fix OverlayInfo API"

5 years agoMerge "Refine Bluetooth silence mode API" am: c650674397 am: 0196a831b1
Ugo Yu [Mon, 1 Apr 2019 03:44:42 +0000 (20:44 -0700)]
Merge "Refine Bluetooth silence mode API" am: c650674397 am: 0196a831b1
am: ae55a7a369

Change-Id: Ie5dfde6a063209acf61846438b6f507ef24f9716

5 years agoMerge "Refine Bluetooth silence mode API" am: c650674397
Ugo Yu [Mon, 1 Apr 2019 03:35:30 +0000 (20:35 -0700)]
Merge "Refine Bluetooth silence mode API" am: c650674397
am: 0196a831b1

Change-Id: I998be4f22bb76e8d3329a5c3d32b929421262e71

5 years agoMerge "Refine Bluetooth silence mode API"
Ugo Yu [Mon, 1 Apr 2019 03:26:18 +0000 (20:26 -0700)]
Merge "Refine Bluetooth silence mode API"
am: c650674397

Change-Id: Icd91568d8bc2897914cececec7743fe2800192eb

5 years agoMerge "Refine Bluetooth silence mode API"
Treehugger Robot [Mon, 1 Apr 2019 03:12:31 +0000 (03:12 +0000)]
Merge "Refine Bluetooth silence mode API"

5 years agoFix race when starting NetworkMonitor
Remi NGUYEN VAN [Wed, 27 Mar 2019 06:42:53 +0000 (15:42 +0900)]
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

5 years agoFix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues.
paulhu [Wed, 27 Mar 2019 14:26:37 +0000 (22:26 +0800)]
Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues.

Fix: 129362082
Fix: 129361362
Fix: 129360330
Fix: 129362379
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I05fbc6f98207d5cf002e3cbc5829040af7d6be52

5 years agoProvide link to android experimental flags API
Chiachang Wang [Mon, 1 Apr 2019 01:56:05 +0000 (09:56 +0800)]
Provide link to android experimental flags API

Add function to link to android experiemental flags API

Bug: 120013793
Test: Build and atest NetworkStackTests
Change-Id: I14b9a6f06f841a9d63e8c1954907447a9e7eb8a5

5 years agoMove permissions from base to standard manifest
Remi NGUYEN VAN [Fri, 29 Mar 2019 05:56:34 +0000 (14:56 +0900)]
Move permissions from base to standard manifest

Permissions defined in AndroidManifest_Base.xml would be inherited in
AndroidManifest_InProcess.xml and cause issues on svelte builds, since
privileged permissions are not whitelisted for
com.android.networkstack.inprocess.

The network stack running in the system_server process does not need
these permissions anyway since it has system_server permissions.

(clean cherry-pick from Ica63ce586e701b1f2415a97f63ba27cc25e4830a)

Test: flashed, booted crosshatch_svelte-eng, WiFi works
Test: flashed, booted blueline-eng, WiFi works
Fixes: 129485310
Merged-In: Ica63ce586e701b1f2415a97f63ba27cc25e4830a
Change-Id: Ib4b478fb39f43a2fd4221c7d1f1ea51de04e0fba

5 years agoMerge "DATA is deprecated, but some apps really want it."
Jeff Sharkey [Sun, 31 Mar 2019 22:59:45 +0000 (22:59 +0000)]
Merge "DATA is deprecated, but some apps really want it."

5 years agoMerge "Remove support for file:// items."
Jeff Sharkey [Sun, 31 Mar 2019 22:59:01 +0000 (22:59 +0000)]
Merge "Remove support for file:// items."

5 years agoMerge "Mute haptic channels by default."
TreeHugger Robot [Sun, 31 Mar 2019 22:52:58 +0000 (22:52 +0000)]
Merge "Mute haptic channels by default."

5 years agoDATA is deprecated, but some apps really want it.
Jeff Sharkey [Sun, 31 Mar 2019 18:02:28 +0000 (12:02 -0600)]
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: 128452447125725916
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibd41d8ddedfaf9807333560b2d8e64e42ea7a1ba

5 years agoRemove support for file:// items.
Jeff Sharkey [Fri, 29 Mar 2019 19:57:31 +0000 (13:57 -0600)]
Remove support for file:// items.

We've messaged since the N release that file:// Uris are going away,
and we've been crashing those apps via StrictMode for many years.

The broader storage changes in Q mean it's finally a good time to say
we only handle content:// items.

Bug: 123212933
Test: none
Change-Id: I69a791468c4bcf45b0022cf52264e78f94bfdeae