OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev
Siarhei Vishniakou [Thu, 30 May 2019 21:47:37 +0000 (14:47 -0700)]
Merge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev
am: 2fb4cb55f0

Change-Id: I1f638492b1be20670d2379da073519348a08e9fd

5 years agoMerge "Shift call statistics back to the original caller." into qt-dev
Jeff Sharkey [Thu, 30 May 2019 21:45:29 +0000 (14:45 -0700)]
Merge "Shift call statistics back to the original caller." into qt-dev
am: c4289bdeca

Change-Id: I914cfab337d18461321fff5ca3bcdb4a53be8e63

5 years agoMerge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 21:42:27 +0000 (21:42 +0000)]
Merge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev

5 years agoMerge "Shift call statistics back to the original caller." into qt-dev
Jeff Sharkey [Thu, 30 May 2019 21:29:21 +0000 (21:29 +0000)]
Merge "Shift call statistics back to the original caller." into qt-dev

5 years agoMerge "Adds strings for notifications when default launcher changes" into qt-dev
Mehdi Alizadeh [Thu, 30 May 2019 21:22:18 +0000 (14:22 -0700)]
Merge "Adds strings for notifications when default launcher changes" into qt-dev
am: 32d97863d6

Change-Id: Ic6d507eed5cdcb6ed3c35847640ea13c30bf31c6

5 years agoMerge "Adds strings for notifications when default launcher changes" into qt-dev
Mehdi Alizadeh [Thu, 30 May 2019 21:13:08 +0000 (21:13 +0000)]
Merge "Adds strings for notifications when default launcher changes" into qt-dev

5 years agoMerge "Look for bootanimation in apex-module" into qt-dev
Anders Fridlund [Thu, 30 May 2019 21:01:50 +0000 (14:01 -0700)]
Merge "Look for bootanimation in apex-module" into qt-dev
am: 36e3da7920

Change-Id: Idbdc8e24d7d986a0a785965f534c65f1add847a8

5 years agoMerge "Add one more config resource for contacts provider" into qt-dev
Makoto Onuki [Thu, 30 May 2019 20:56:03 +0000 (13:56 -0700)]
Merge "Add one more config resource for contacts provider" into qt-dev
am: 70554da78d

Change-Id: I38bcfdf34ba0ff6c805f1909a2844d2a57835712

5 years agoMerge "Look for bootanimation in apex-module" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 20:37:19 +0000 (20:37 +0000)]
Merge "Look for bootanimation in apex-module" into qt-dev

5 years agoMerge "Add one more config resource for contacts provider" into qt-dev
Makoto Onuki [Thu, 30 May 2019 20:33:06 +0000 (20:33 +0000)]
Merge "Add one more config resource for contacts provider" into qt-dev

5 years agoMerge "Hide assist handles during generic assist gesture invocation." into qt-dev
Matt Casey [Thu, 30 May 2019 20:08:39 +0000 (13:08 -0700)]
Merge "Hide assist handles during generic assist gesture invocation." into qt-dev
am: c71c7fe881

Change-Id: Ie4c997b705ca56e10640f63d12d2ff8be0adaf09

5 years agoMerge "DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"" into qt-dev
Priyank Singh [Thu, 30 May 2019 19:51:41 +0000 (12:51 -0700)]
Merge "DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"" into qt-dev
am: 5a0b7e59c4

Change-Id: I80385fdfad729c1fe657fe892a6e56e96c3f37a9

5 years agoDO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"
Priyank Singh [Thu, 30 May 2019 19:51:39 +0000 (12:51 -0700)]
DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"
am: a6c1e6ab65

Change-Id: I005f798dd086e212c56c8060c204f4a59357176b

5 years agoMerge "Fix a11y readout of notification guts buttons" into qt-dev
Julia Reynolds [Thu, 30 May 2019 19:50:03 +0000 (12:50 -0700)]
Merge "Fix a11y readout of notification guts buttons" into qt-dev
am: 58cfefe9cc

Change-Id: If7e069985f430a1776acdd20b2152d2202fbfdf5

5 years agoMerge "AudioService: remove dead BT code" into qt-dev
Jean-Michel Trivi [Thu, 30 May 2019 19:48:25 +0000 (12:48 -0700)]
Merge "AudioService: remove dead BT code" into qt-dev
am: 3de2438d5c

Change-Id: Id3c951bff43330450e53439d68634d96a3a64802

5 years ago[automerger skipped] DO NOT MERGE SurfaceControl: Fix captureLayers JNI am: fbc22c2b6...
Robert Carr [Thu, 30 May 2019 19:46:56 +0000 (12:46 -0700)]
[automerger skipped] DO NOT MERGE SurfaceControl: Fix captureLayers JNI am: fbc22c2b6d -s ours
am: cd43a5f7ad

Change-Id: Id6a0704fb372b9ad34dfc4302f7b9a3621ab1e33

5 years agoMerge "Allow non-convex paths in Outline#setConvexPath" into qt-dev
Leon Scroggins [Thu, 30 May 2019 19:41:09 +0000 (12:41 -0700)]
Merge "Allow non-convex paths in Outline#setConvexPath" into qt-dev
am: 9be1d08acb

Change-Id: I4e15a3432307fe2c17bcd345d53942d7f14a33a4

5 years agoMerge changes I1360deb0,Id9a9eb85,I7f05f2ee,Ie48da88d into qt-dev
Josh Tsuji [Thu, 30 May 2019 19:39:53 +0000 (12:39 -0700)]
Merge changes I1360deb0,Id9a9eb85,I7f05f2ee,Ie48da88d into qt-dev
am: 06cbf65704

Change-Id: I666d3b5b62514410a651d914271b664370c67f84

5 years agoMerge "Add Usage info for LocationManager's APIs" into qt-dev
Hongyi Zhang [Thu, 30 May 2019 19:39:03 +0000 (12:39 -0700)]
Merge "Add Usage info for LocationManager's APIs" into qt-dev
am: 11ddc8ea0b

Change-Id: I048d9b1fec5120a268a56693cdface47c1cc08c9

5 years agoMerge "Hide assist handles during generic assist gesture invocation." into qt-dev
Matt Casey [Thu, 30 May 2019 19:38:38 +0000 (19:38 +0000)]
Merge "Hide assist handles during generic assist gesture invocation." into qt-dev

5 years agoMerge "Adding config for SUW to determine whether to start Tips for gestural nav...
Winson Chung [Thu, 30 May 2019 19:38:18 +0000 (12:38 -0700)]
Merge "Adding config for SUW to determine whether to start Tips for gestural nav" into qt-dev
am: 6f24b88c71

Change-Id: I89e0c654d7d4ecf3f6d7a19c4fc811d408c44894

5 years agoMerge "DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 19:20:20 +0000 (19:20 +0000)]
Merge "DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"" into qt-dev

5 years agoDO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"
Priyank Singh [Thu, 30 May 2019 01:09:35 +0000 (01:09 +0000)]
DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"

This reverts commit 5bd5767768a9dc0a0d2972239fbfd2f68258cfd9.

Reason for revert: We want to delete all the code related to privacy chip/indicator from Q as of now. b/132292477

Bug: 133898491
Change-Id: Ieddae7509d918ab63a5b3111e0efc623fae644b3

5 years agoAdds strings for notifications when default launcher changes
Mehdi Alizadeh [Thu, 30 May 2019 03:37:27 +0000 (20:37 -0700)]
Adds strings for notifications when default launcher changes

Bug: 129532605
Test: None
Change-Id: Ie85dfc704939db217c9b59724e0a586020aaa797

5 years agoMerge "Fix a11y readout of notification guts buttons" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 18:53:13 +0000 (18:53 +0000)]
Merge "Fix a11y readout of notification guts buttons" into qt-dev

5 years agoMerge "AudioService: remove dead BT code" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 18:36:34 +0000 (18:36 +0000)]
Merge "AudioService: remove dead BT code" into qt-dev

5 years ago[automerger skipped] DO NOT MERGE SurfaceControl: Fix captureLayers JNI
Robert Carr [Thu, 30 May 2019 18:35:37 +0000 (11:35 -0700)]
[automerger skipped] DO NOT MERGE SurfaceControl: Fix captureLayers JNI
am: fbc22c2b6d -s ours
am skip reason: subject contains skip directive

Change-Id: Iedd5183586ec5b13c71ae943c3ff877e5c98311e

5 years agoMerge "Allow non-convex paths in Outline#setConvexPath" into qt-dev
Leon Scroggins [Thu, 30 May 2019 18:31:40 +0000 (18:31 +0000)]
Merge "Allow non-convex paths in Outline#setConvexPath" into qt-dev

5 years agoMerge changes I1360deb0,Id9a9eb85,I7f05f2ee,Ie48da88d into qt-dev
Josh Tsuji [Thu, 30 May 2019 18:23:26 +0000 (18:23 +0000)]
Merge changes I1360deb0,Id9a9eb85,I7f05f2ee,Ie48da88d into qt-dev

* changes:
  Fix issues with animations when the stack is expanded.
  Prevent a crash when touching the stack while it's flinging out of the dismiss area.
  Remove the max rendered children code.
  Stability and logic fixes to PhysicsAnimationLayout to address bugs that leave Bubbles in a bad state.

5 years agoShift call statistics back to the original caller.
Jeff Sharkey [Thu, 30 May 2019 18:18:32 +0000 (12:18 -0600)]
Shift call statistics back to the original caller.

Most of the time MediaProvider is making Binder calls on behalf of
an external caller, so use PropagateWorkSourceTransactListener to
ensure that we record the original source.

Bug: 125725916
Test: atest --test-mapping packages/apps/MediaProvider
Change-Id: I591dfb2903a54239639452954ea2d780e79b280c

5 years agoMerge "Add Usage info for LocationManager's APIs" into qt-dev
Hongyi Zhang [Thu, 30 May 2019 17:53:26 +0000 (17:53 +0000)]
Merge "Add Usage info for LocationManager's APIs" into qt-dev

5 years agoMerge "Adding config for SUW to determine whether to start Tips for gestural nav...
Winson Chung [Thu, 30 May 2019 17:51:29 +0000 (17:51 +0000)]
Merge "Adding config for SUW to determine whether to start Tips for gestural nav" into qt-dev

5 years agoMerge "Skip IME initialization when received the token that already registered" into...
lumark [Thu, 30 May 2019 17:44:19 +0000 (10:44 -0700)]
Merge "Skip IME initialization when received the token that already registered" into qt-dev
am: 9bb2607703

Change-Id: I47e3521b214d5b5e057c979dfe8d96696bd42009

5 years agoMerge "Exclude the status bar and HUN from gestures" into qt-dev
Winson Chung [Thu, 30 May 2019 17:42:53 +0000 (10:42 -0700)]
Merge "Exclude the status bar and HUN from gestures" into qt-dev
am: c1da971644

Change-Id: I149a897810fb290ada66c153cc6dc5068e656e34

5 years agoMerge "Catch IllegalArgumentException caused by recycled bitmap" into qt-r1-dev
TreeHugger Robot [Thu, 30 May 2019 17:39:21 +0000 (17:39 +0000)]
Merge "Catch IllegalArgumentException caused by recycled bitmap" into qt-r1-dev

5 years agoMerge "Skip IME initialization when received the token that already registered" into...
TreeHugger Robot [Thu, 30 May 2019 17:33:17 +0000 (17:33 +0000)]
Merge "Skip IME initialization when received the token that already registered" into qt-dev

5 years agoMerge "Exclude the status bar and HUN from gestures" into qt-dev
Winson Chung [Thu, 30 May 2019 17:30:11 +0000 (17:30 +0000)]
Merge "Exclude the status bar and HUN from gestures" into qt-dev

5 years agoMerge "Handles pre-process failure without crashing system" into qt-dev
Patrick Baumann [Thu, 30 May 2019 17:16:52 +0000 (10:16 -0700)]
Merge "Handles pre-process failure without crashing system" into qt-dev
am: b8735359aa

Change-Id: Ie3216c5918d423c23f0414fe8f9c1c62b1e7d0bb

5 years agoMerge "Handles pre-process failure without crashing system" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 17:02:17 +0000 (17:02 +0000)]
Merge "Handles pre-process failure without crashing system" into qt-dev

5 years agoMerge "Constrain global actions panel to available space" into qt-dev
Steve Elliott [Thu, 30 May 2019 16:55:48 +0000 (09:55 -0700)]
Merge "Constrain global actions panel to available space" into qt-dev
am: e4de9d2c56

Change-Id: Ib6f1b6e14627b53a184d226db7405d431c180b58

5 years agoMerge "Fixed that we could be stuck with notifications pulse expanding" into qt-r1-dev
Selim Cinek [Thu, 30 May 2019 16:47:34 +0000 (16:47 +0000)]
Merge "Fixed that we could be stuck with notifications pulse expanding" into qt-r1-dev

5 years agoMerge "Make the Handle bar grabbable." into qt-dev
Priyank Singh [Thu, 30 May 2019 16:45:51 +0000 (09:45 -0700)]
Merge "Make the Handle bar grabbable." into qt-dev
am: 08703d61b1

Change-Id: I3ff365221d5df91060b9960c837e392111c063ac

5 years agoMerge "Constrain global actions panel to available space" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 16:44:43 +0000 (16:44 +0000)]
Merge "Constrain global actions panel to available space" into qt-dev

5 years agoMerge "Make the Handle bar grabbable." into qt-dev
TreeHugger Robot [Thu, 30 May 2019 16:38:03 +0000 (16:38 +0000)]
Merge "Make the Handle bar grabbable." into qt-dev

5 years agoMerge "Add user-switching observer to AttentionDetector" into qt-dev
Yi Jiang [Thu, 30 May 2019 16:37:48 +0000 (09:37 -0700)]
Merge "Add user-switching observer to AttentionDetector" into qt-dev
am: 5828019131

Change-Id: I0f4f229161896f035b5bb9c1b324d2eb31a1701d

5 years agoMerge "Add network health check watchdog triggered rollback tests" into qt-dev
Zimuzo [Thu, 30 May 2019 16:27:05 +0000 (09:27 -0700)]
Merge "Add network health check watchdog triggered rollback tests" into qt-dev
am: 80b53bd68b

Change-Id: I0fec8433bab94a7837e2f6ae522f91ba5b9f7e19

5 years agoMerge changes I2cb4200b,If1fa00be into qt-dev
Remi NGUYEN VAN [Thu, 30 May 2019 16:25:38 +0000 (09:25 -0700)]
Merge changes I2cb4200b,If1fa00be into qt-dev
am: 6b2681521e

Change-Id: Ic3935b826b2d1afbc8de71184aa69249521a8bdf

5 years agoMerge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
arangelov [Thu, 30 May 2019 16:23:52 +0000 (09:23 -0700)]
Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
am: 26a28f64c5

Change-Id: I279f5764f1340f6fd7c2a4a71fe84d0e06f43bd1

5 years agoHide assist handles during generic assist gesture invocation.
Matt Casey [Thu, 30 May 2019 16:22:06 +0000 (12:22 -0400)]
Hide assist handles during generic assist gesture invocation.

Currently we hide handles during an NGA session, this change also hides
them during non-NGA invocation gesture.

Bug: 133522787
Test: Manual testing
Change-Id: I3317b309cd07c032826e6bfccbf20433de0559c6

5 years agoMerge "Fix issue for DnsResolver#query" into qt-dev
Luke Huang [Thu, 30 May 2019 16:17:08 +0000 (09:17 -0700)]
Merge "Fix issue for DnsResolver#query" into qt-dev
am: 23d7a55d18

Change-Id: I572d498fcbaf6df44a91a5b77552e497bc9f5cb7

5 years agoMerge "Replace limited connectivity notification after detecting it" into qt-dev
Chiachang Wang [Thu, 30 May 2019 16:15:54 +0000 (09:15 -0700)]
Merge "Replace limited connectivity notification after detecting it" into qt-dev
am: 37efc112e2

Change-Id: I75c8d6454e68c859d125c33d3289fa62f4534b6a

5 years agoMerge "Fix some issues in notification bucketing" into qt-dev
Julia Reynolds [Thu, 30 May 2019 16:15:01 +0000 (09:15 -0700)]
Merge "Fix some issues in notification bucketing" into qt-dev
am: 634c095610

Change-Id: I54775ee76fd944ac9fa1d8f67f30a1be9f053b97

5 years agoMerge "Always give VPN the INTERNET capability." into qt-dev
Chalard Jean [Thu, 30 May 2019 16:14:21 +0000 (09:14 -0700)]
Merge "Always give VPN the INTERNET capability." into qt-dev
am: bc16cf3d72

Change-Id: Id91270257bd32e55d9aeb1aefdf1d7f024e4a0ac

5 years agoMerge "Add user-switching observer to AttentionDetector" into qt-dev
Yi Jiang [Thu, 30 May 2019 16:12:48 +0000 (16:12 +0000)]
Merge "Add user-switching observer to AttentionDetector" into qt-dev

5 years agoFix issues with animations when the stack is expanded.
Joshua Tsuji [Wed, 29 May 2019 20:32:01 +0000 (16:32 -0400)]
Fix issues with animations when the stack is expanded.

- Don't show the flyout if the stack has become expanded.
- Add onChildReordered so that the controllers don't receive onChildAdded calls when views are reordered. This was causing animation issues with expanded bubbles.
- Clear the dragging out bubble onGestureFinished, so that it's not ignored by animations.
- Update the expand/collapse animations when a new child is added during animation, so that it'll also animate to the proper spot.

Fixes: 129370170
Bug: 123542488
Test: atest SystemUITests
Change-Id: I1360deb09db82bd3ba72cb91fc9abe05b6dc1a9c

5 years agoConstrain global actions panel to available space
Steve Elliott [Wed, 29 May 2019 18:13:50 +0000 (14:13 -0400)]
Constrain global actions panel to available space

Formerly, the global actions panel was given the entire screen, and
was rendered above the global actions menu. Now, we limit it to the
space unused by the menu.

Bug: 133511683
Test: manual
Change-Id: I74f4db0b9a2a4e030ec1fd53ddd65e7c372d229c

5 years agoMerge "Add network health check watchdog triggered rollback tests" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 15:22:26 +0000 (15:22 +0000)]
Merge "Add network health check watchdog triggered rollback tests" into qt-dev

5 years agoMerge changes I2cb4200b,If1fa00be into qt-dev
Remi NGUYEN VAN [Thu, 30 May 2019 15:11:11 +0000 (15:11 +0000)]
Merge changes I2cb4200b,If1fa00be into qt-dev

* changes:
  PackageWatchdog listens for NetworkStack failures
  Proper handling of NetworkStack crash

5 years agoMerge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
TreeHugger Robot [Thu, 30 May 2019 15:05:26 +0000 (15:05 +0000)]
Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev

5 years agoHandles pre-process failure without crashing system
Patrick Baumann [Wed, 29 May 2019 21:06:02 +0000 (14:06 -0700)]
Handles pre-process failure without crashing system

This change ensures that if we encounter any issues copying the APK to
be installed, we also fail the other sessions to prevent them being
cleaned up incorrectly on post-install.

Test: manual; use debugger to force InstallArgs.copyApk() to fail
Bug: 133380744
Change-Id: I19e84a4683a36ac152d435fab3d0b191db6cc2df

5 years agoFix a11y readout of notification guts buttons
Julia Reynolds [Thu, 30 May 2019 14:30:21 +0000 (10:30 -0400)]
Fix a11y readout of notification guts buttons

Test: manual with TB
Bug: 134047401
Change-Id: I28e00afc110d95e130fe54d301be406fa17f6f18

5 years agoRemove @VisibleForTesting from DevicePolicyEventLogger getters.
arangelov [Thu, 30 May 2019 13:40:12 +0000 (14:40 +0100)]
Remove @VisibleForTesting from DevicePolicyEventLogger getters.

Also make it extendable for mocking and update atoms.proto comments.

Bug: 131833599
Test: compiled
Change-Id: I6a0e8a6175e7e9e46572ea4aa50ce7669a02588b

5 years agoAllow non-convex paths in Outline#setConvexPath
Leon Scroggins III [Mon, 20 May 2019 19:54:15 +0000 (15:54 -0400)]
Allow non-convex paths in Outline#setConvexPath

Bug: 131759669
Test: I5eca77e1a60e484e4e118b7e464a88363c539ca9
Test: Manual - assert no longer fires and app looks normal

The limitation to only support convex paths was due to a limitation
in the old renderer. Today, it is fine to use a concave path. Further,
Skia has changed how it computes complexity - it is more conservative,
so paths which were previously thought to be convex are no longer. We
cannot guarantee that a path will be considered convex (especially
after e.g. rotating it, as in the library in question), so drop the
requirement.

Change-Id: Ice88d0995750e066320cb175a87f8ae70ce3aeed

5 years agoMerge "Fix issue for DnsResolver#query" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 13:37:38 +0000 (13:37 +0000)]
Merge "Fix issue for DnsResolver#query" into qt-dev

5 years agoPackageWatchdog listens for NetworkStack failures
Remi NGUYEN VAN [Wed, 29 May 2019 09:30:27 +0000 (18:30 +0900)]
PackageWatchdog listens for NetworkStack failures

In addition to the NetworkStack app monitoring, have PackageWatchdog
register an observer to NetworkStackClient to receive severe failure
notifications, and attempt a rollback if available.

The callback is registered in onPackagesReady(), which is called in the
boot sequence just before starting the NetworkStack.

Test: installed new networkstack, killed it twice, observe rollback
Test: unit test in change on top
Bug: 133725814
Change-Id: I2cb4200b78c2482cacc4bfe2ace1581b869be512

5 years agoProper handling of NetworkStack crash
Remi NGUYEN VAN [Tue, 28 May 2019 08:29:11 +0000 (17:29 +0900)]
Proper handling of NetworkStack crash

Instead of always crashing on userdebug builds, do the following on all
builds:
 - If the device did not observe a NetworkStack crash in the last 6h
   crash the system server. This is to handle spurious crashes of the
   NetworkStack, so that the system can recover instead of staying
   without connectivity.
 - Otherwise, the device has had a recent crash. Notify the listeners
   (watchdog listener to be added) that something is seriously wrong,
   but do not crash to avoid bootlooping the device. This allows the
   watchdog to do its job, and avoids bricking the device in
   situations where the user could need to make emergency calls.

Bug: 133725814
Test: Killed the network stack, observe reboot of framework.
Test: Kill network stack again, observe nothing.
Test: Wipe data, install new network stack, kill it twice: rollback.
      (with patch on top applied)
Change-Id: If1fa00bed769eb60ca4832609006bdf15ceddb80

5 years agoMerge "Replace limited connectivity notification after detecting it" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 12:52:33 +0000 (12:52 +0000)]
Merge "Replace limited connectivity notification after detecting it" into qt-dev

5 years agoMerge "Fix some issues in notification bucketing" into qt-dev
Julia Reynolds [Thu, 30 May 2019 12:30:30 +0000 (12:30 +0000)]
Merge "Fix some issues in notification bucketing" into qt-dev

5 years agoAdd network health check watchdog triggered rollback tests
Zimuzo [Tue, 16 Apr 2019 08:59:40 +0000 (09:59 +0100)]
Add network health check watchdog triggered rollback tests

This cl improves code coverage for the PackageWatchdog explicit health
checks.

Updating the NetworkStack triggers an explicit health check with
a time deadline. At the deadline, if network is unavailable on the device,
the update is rolled back, if network is available, nothing happens.

Bug: 132640467
Test: atest StagedRollbackTest

Change-Id: I16a40244de9345930a1c981188aa33546fe872fc

5 years agoMerge "OverlayPlugin uses StatusBarTouchableRegionManager" into qt-r1-dev
Beverly Tai [Thu, 30 May 2019 12:19:08 +0000 (12:19 +0000)]
Merge "OverlayPlugin uses StatusBarTouchableRegionManager" into qt-r1-dev

5 years agoMerge "Always give VPN the INTERNET capability." into qt-dev
TreeHugger Robot [Thu, 30 May 2019 12:10:22 +0000 (12:10 +0000)]
Merge "Always give VPN the INTERNET capability." into qt-dev

5 years agoFix issue for DnsResolver#query
Luke Huang [Thu, 30 May 2019 11:46:40 +0000 (04:46 -0700)]
Fix issue for DnsResolver#query

1. Previously, getDnsNetId doesn't handle all the cases.
Fix it with cosidering bypass private DNS flag.
2. Make getDnsNetId return Network instead of netId,
and change name from getDnsNetId to getDnsNetwork

Bug: 129530368
Test: atest DnsResolverTest DnsUtilsTest

Merged-In: Ibb5080acd3c296650d56532fc7da525e9fa95e8f
(cherry picked from commit 3854966dc9499e39187835606397b16367e5e27b)

Change-Id: I37353642088bcc17da0cf17f78a5ed9efc9aefc3

5 years agoReplace limited connectivity notification after detecting it
Chiachang Wang [Thu, 30 May 2019 11:10:30 +0000 (04:10 -0700)]
Replace limited connectivity notification after detecting it

No internet notification may be prompted before partial
connectivity being detected. Partial connectivity status will
be set into NAI and prompted in the Setting. Behavior is not
aligned between Setting and notification. Thus, update
notification again if partial connectivity is detected.
Also, sliently show the updated notification if no internet
notification has already been shown to user to prevent alerting
user in short time.

Bug: 130683832
Test: Verified with simulated partial connectivity
Test: atest FrameworksNetTests
Change-Id: Ie16a8ce6e0fa437048e8c1eea240314ca30e9520
Merged-In: I004e78a33689e2208918d4316bcf9a8f50a0bac3
Merged-In: I14385a39d99a45c4a6a50a665f456f589c2f4da3
(cherry picked from commit a5c68348d89f256cb5f42283d983d05834c7e36c)

5 years agoMerge "Check system_server PID in NetworkStack calls" into qt-dev
Remi NGUYEN VAN [Thu, 30 May 2019 10:16:02 +0000 (03:16 -0700)]
Merge "Check system_server PID in NetworkStack calls" into qt-dev
am: 0e740ae97e

Change-Id: I20342077ce4e571655a2cb9a2a0f679df6282462

5 years agoMerge "Check system_server PID in NetworkStack calls" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 10:01:13 +0000 (10:01 +0000)]
Merge "Check system_server PID in NetworkStack calls" into qt-dev

5 years agoMerge "Catch OutOfMemoryError and log warning" into qt-dev
Jin Seok Park [Thu, 30 May 2019 09:55:05 +0000 (02:55 -0700)]
Merge "Catch OutOfMemoryError and log warning" into qt-dev
am: f66a0737ca

Change-Id: I60846d7194e72f8362e7e1a411d0eb93b327465a

5 years agoMerge "Catch OutOfMemoryError and log warning" into qt-dev
Jin Seok Park [Thu, 30 May 2019 09:40:57 +0000 (09:40 +0000)]
Merge "Catch OutOfMemoryError and log warning" into qt-dev

5 years agoMerge "Fix captive portal can't show certificate problem" into qt-dev
Mark Chien [Thu, 30 May 2019 09:19:38 +0000 (02:19 -0700)]
Merge "Fix captive portal can't show certificate problem" into qt-dev
am: 709c46a60a

Change-Id: I7be4156a93dce713d73adfd4f8053749219cd61b

5 years agoMerge "Fix captive portal can't show certificate problem" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 09:07:03 +0000 (09:07 +0000)]
Merge "Fix captive portal can't show certificate problem" into qt-dev

5 years agoAlways give VPN the INTERNET capability.
Chalard Jean [Thu, 30 May 2019 08:48:24 +0000 (01:48 -0700)]
Always give VPN the INTERNET capability.

Split-tunnel VPN (which are the only ones affected by this change)
always fall through to the default network for routes they don't
handle, and even if the underlying network(s) don't provide access
this may be a pinhole that can actually reach the broader network.

In practice this behaves like the original release of P and is the
safest thing to do for Q. In R we should evaluate giving the VPN
app the ability to simply tell the network stack whether it does
provide Internet access or not.

Bug: 119216095
Test: FrameworksNetTests NetworkStackTests
Change-Id: I262ca41fe0225660551c9a421562405366b6acac
Merged-In: I262ca41fe0225660551c9a421562405366b6acac
(cherry picked from commit 6d5a4a3b1d1c69eb8a542fecf5e8a306822c19b7)

5 years agoMerge "Adding a compat class to listen for exclusion rect changes" into qt-dev
Sunny Goyal [Thu, 30 May 2019 08:28:23 +0000 (01:28 -0700)]
Merge "Adding a compat class to listen for exclusion rect changes" into qt-dev
am: 14aabea07c

Change-Id: I08002611d68d050ef3171d010c5f261bf15e6737

5 years agoCheck system_server PID in NetworkStack calls
Remi NGUYEN VAN [Thu, 30 May 2019 07:25:13 +0000 (16:25 +0900)]
Check system_server PID in NetworkStack calls

Add a check that callers with UID 1000 always have the same PID. This is
a proxy for checking that no system is designed to bind to the network
stack unless it is the system_server, as otherwise either the
system_server would start crashing, or that system would not have access
to binder calls.

Also remove access from PHONE_UID as it is not being used.

Test: Flashed, WiFi working, Bluetooth reverse tethering shows no
      permission issue.
Bug: 133209255
Change-Id: Ib848aaaedfd599c1d4437378846c7dda74352019

5 years agoMerge "Adding a compat class to listen for exclusion rect changes" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 08:19:04 +0000 (08:19 +0000)]
Merge "Adding a compat class to listen for exclusion rect changes" into qt-dev

5 years agoMerge "Move bypass default value to framework" into qt-r1-dev
Lucas Dupin [Thu, 30 May 2019 06:50:17 +0000 (06:50 +0000)]
Merge "Move bypass default value to framework" into qt-r1-dev

5 years agoMerge "Update sysui OWNERS" into qt-dev
Winson Chung [Thu, 30 May 2019 06:47:04 +0000 (23:47 -0700)]
Merge "Update sysui OWNERS" into qt-dev
am: 8608b9e115

Change-Id: I65217e7d46e1a4184493b59e9e9a558ddc9104cb

5 years agoMerge "Prevent installation of new APEX." into qt-dev
Dario Freni [Thu, 30 May 2019 06:44:55 +0000 (23:44 -0700)]
Merge "Prevent installation of new APEX." into qt-dev
am: 2b5de1f231

Change-Id: Ic06515c81d9ca524c335eabeac4bee7e1e5e34b2

5 years agoMerge "Update sysui OWNERS" into qt-dev
Winson Chung [Thu, 30 May 2019 06:33:26 +0000 (06:33 +0000)]
Merge "Update sysui OWNERS" into qt-dev

5 years agoMerge "Prevent installation of new APEX." into qt-dev
TreeHugger Robot [Thu, 30 May 2019 06:08:42 +0000 (06:08 +0000)]
Merge "Prevent installation of new APEX." into qt-dev

5 years agoFix captive portal can't show certificate problem
Mark Chien [Thu, 30 May 2019 02:46:04 +0000 (19:46 -0700)]
Fix captive portal can't show certificate problem

Captive portal overrides two shouldOverrideUrlLoading methods,
but show certificate logic only be implemented in deprecated one.

Bug: 133714666
Test: -build, flash, boot
      -atest FramworksNetTests
      -manual test

Change-Id: I2656bb709cb0bf259279ca75ad8411cd8c92fb43
Merged-In: I64b05adcb46baf3fca116dbdc5177bc31c71e06d
(cherry picked from commit 9161b5e845eb8aa9b5ecf0dd464bca73359e1553)

5 years agoCatch OutOfMemoryError and log warning
Jin Seok Park [Thu, 30 May 2019 05:22:51 +0000 (14:22 +0900)]
Catch OutOfMemoryError and log warning

Bug: 133827762
Test: atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest
Change-Id: I5c6e247136e033968f418a50276971a8a686e021

5 years agoSkip IME initialization when received the token that already registered
lumark [Wed, 29 May 2019 09:11:57 +0000 (17:11 +0800)]
Skip IME initialization when received the token that already registered

When IME window switches from current display to another display and back quickly,
system will re-bind InputMethodService to re-attach window token for each moving,
the IME service lifecycle will be onBind -> onUnBind -> onDestroy -> onBind.

Ideally, system will deliver window token when onServiceConnected and system should
only receive one onServiceConnected when the last service bound.

But due to user switch display very quick, before unbind service callbacked from client,
the next bind service request comes, caused the connection exists in system side and
client will then callback 2 onServiceConnected to system.

Since CL [1] introduced InputMethodPrivilegedOperationsRegistry to deal with token
registraction singleton-ness, the exception will be thrown for above case due to
the duplicate window token passed to client.

Add InputMethodPrivilegedOperationsRegistry#isRegistered to check if the token
already registered, if so, skip this duplicate initialization request.

[1]: I4a61470f06ffac5f7a512536f8431489db0108f4

Fix: 133624278
Test: manual as below steps:
    1) Settings > Developer options, enable "Simulated display" & "force desktop mode"
    2) Reboot device.
    3) Launch app from simulated display.
    4) Launch app from primary display (i.e. contacts), focus EditText to show IME.
    5) Tapping primary & simulated display repeatly & quickly.
    6) See if any exception log from IME application. (i.e. Gboard)

Change-Id: Ie6bfbae735724fe744590e715124d2737d2b665d

5 years agoMerge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev
Michael Groover [Thu, 30 May 2019 04:26:31 +0000 (21:26 -0700)]
Merge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev
am: daf8086aa0

Change-Id: I73b73627da791d05bfb3b0b719f6da1356f0290b

5 years agoMerge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev
Michael Groover [Thu, 30 May 2019 04:11:55 +0000 (04:11 +0000)]
Merge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev

5 years agoAdds learned state to the Reminder Experience for Assistant Handles
Govinda Wasserman [Thu, 30 May 2019 03:42:00 +0000 (20:42 -0700)]
Adds learned state to the Reminder Experience for Assistant Handles
am: 1f606b099e

Change-Id: I9e23630e82a3cc4a060f906d9892cee148f522eb

5 years agoAdd Usage info for LocationManager's APIs
Hongyi Zhang [Fri, 24 May 2019 04:19:36 +0000 (21:19 -0700)]
Add Usage info for LocationManager's APIs

All new code in LMS wrapped with try/catch and swallowing exceptions
to make sure new code never crashes LocationManagerService.

Bug: 133906682,133190291
Test: Tested with (statsd_testdrive + gnss test apk). Work as intended.
Change-Id: I989b1361c029e76d35861cf23d5c3d152f0bf81a

5 years agoAdds learned state to the Reminder Experience for Assistant Handles
Govinda Wasserman [Wed, 29 May 2019 13:16:02 +0000 (09:16 -0400)]
Adds learned state to the Reminder Experience for Assistant Handles

Also sets the Reminder Experience as the default behavior.

Test: Tested locally
BUG:132983599
Change-Id: I27b063ca142fbde99b0bd1f6d107f45d6070869a

5 years agoMerge "Add server information for pptp vpn" into qt-dev
Chenbo Feng [Thu, 30 May 2019 02:51:13 +0000 (19:51 -0700)]
Merge "Add server information for pptp vpn" into qt-dev
am: 4311022170

Change-Id: I9a18ef9c27af8920c517e1774496a5fbf6728da5

5 years agoMerge "Add server information for pptp vpn" into qt-dev
TreeHugger Robot [Thu, 30 May 2019 02:38:17 +0000 (02:38 +0000)]
Merge "Add server information for pptp vpn" into qt-dev

5 years agoMerge "Add white edgelights to AOSP" into qt-dev
Miranda Kephart [Thu, 30 May 2019 02:25:36 +0000 (19:25 -0700)]
Merge "Add white edgelights to AOSP" into qt-dev
am: 0bcd698481

Change-Id: I32e623a718404bb536ec84aa9fa33544c0cae799

5 years agoMerge "Add white edgelights to AOSP" into qt-dev
Miranda Kephart [Thu, 30 May 2019 02:15:55 +0000 (02:15 +0000)]
Merge "Add white edgelights to AOSP" into qt-dev