OSDN Git Service

android-x86/frameworks-base.git
7 years agoFix Configuration#updateFrom() when assetsSeq doesn't change
Adam Lesinski [Thu, 6 Jul 2017 19:06:13 +0000 (12:06 -0700)]
Fix Configuration#updateFrom() when assetsSeq doesn't change

Compare the value of assetsSeq when updating Configuration from
a delta.

Bug: 63352177
Test: manual
Change-Id: I9e1205cd64c4a1e0192b7049c82d36d53fb4af36
(cherry picked from commit 2123c415bf4cc67ad2c50e9613c7748956cd0c46)

7 years agoMerge "Only play up effect if its been over 100 ms" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:49:37 +0000 (21:49 +0000)]
Merge "Only play up effect if its been over 100 ms" into oc-dr1-dev

7 years agoMerge "Fix crash when no StatusBarView" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:38:06 +0000 (21:38 +0000)]
Merge "Fix crash when no StatusBarView" into oc-dr1-dev

7 years agoMerge "Fix leak in ScrimView" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:29:57 +0000 (21:29 +0000)]
Merge "Fix leak in ScrimView" into oc-dr1-dev

7 years agoMerge "Fix nav accessibility order" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:25:39 +0000 (21:25 +0000)]
Merge "Fix nav accessibility order" into oc-dr1-dev

7 years agoMerge "Fix bug where RemoteViews addView is backwards." into oc-dr1-dev
Anthony Chen [Thu, 6 Jul 2017 21:14:47 +0000 (21:14 +0000)]
Merge "Fix bug where RemoteViews addView is backwards." into oc-dr1-dev

7 years agoMerge "Fix RTL mobile signal drawing out of bounds in QS Edit" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 20:32:47 +0000 (20:32 +0000)]
Merge "Fix RTL mobile signal drawing out of bounds in QS Edit" into oc-dr1-dev

7 years agoMerge "Fix the VR virtual display height" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 20:31:36 +0000 (20:31 +0000)]
Merge "Fix the VR virtual display height" into oc-dr1-dev

7 years agoOnly play up effect if its been over 100 ms
Jason Monk [Thu, 6 Jul 2017 19:38:19 +0000 (15:38 -0400)]
Only play up effect if its been over 100 ms

Test: manual
Bug: 62655913
Change-Id: If256ab9fc6f74688f47b0ea53543d3b2fd514a35

7 years agoFix crash when no StatusBarView
Jason Monk [Thu, 6 Jul 2017 19:28:17 +0000 (15:28 -0400)]
Fix crash when no StatusBarView

Test: runtest systemui
Change-Id: Ia0a4a97f554e0b9d6e41c295e8e07d278f8ad248
Fixes: 63260821

7 years agoMerge "Disable test in presubmit" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 19:19:06 +0000 (19:19 +0000)]
Merge "Disable test in presubmit" into oc-dr1-dev

7 years agoFix nav accessibility order
Jason Monk [Thu, 6 Jul 2017 19:12:21 +0000 (15:12 -0400)]
Fix nav accessibility order

Test: manual
Change-Id: I0d3f65c84a4158024f90c47ce9da329d4bd210ac
Fixes: 63333329

7 years agoFix leak in ScrimView
Jason Monk [Thu, 6 Jul 2017 19:06:36 +0000 (15:06 -0400)]
Fix leak in ScrimView

Test: runtest systemui
Change-Id: I8964181a60b67eea0eea32d42bb8e92862cc8d0f
Fixes: 38461559

7 years agoMerge "Merge "docs: Removing com.android.internal.* packages from Javadoc build"...
Android Build Merger (Role) [Thu, 6 Jul 2017 19:00:56 +0000 (19:00 +0000)]
Merge "Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev am: 040b774928" into oc-dr1-dev

7 years agoMerge "Merge "docs: Removing com.android.internal.* packages from Javadoc build"...
Android Build Merger (Role) [Thu, 6 Jul 2017 18:59:44 +0000 (18:59 +0000)]
Merge "Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev am: 040b774928" into oc-dr1-dev

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:59:39 +0000 (18:59 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
am: 040b774928

Change-Id: I0a05fdcd1d440f1ea686ddd0e6afd82daf33d1bb

7 years agoMerge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 18:58:37 +0000 (18:58 +0000)]
Merge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:58:17 +0000 (18:58 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
am: 040b774928

Change-Id: Ief0f1ce03e137ae4a16067cf7430cf7bc333a96d

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:42:13 +0000 (18:42 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev

7 years agoMerge "Protect TIMEOUT_CONNECT broadcast which is for Nfc Handover" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 18:35:25 +0000 (18:35 +0000)]
Merge "Protect TIMEOUT_CONNECT broadcast which is for Nfc Handover" into oc-dr1-dev

7 years agoFix the VR virtual display height
Karthik Ravi Shankar [Thu, 6 Jul 2017 17:23:57 +0000 (10:23 -0700)]
Fix the VR virtual display height

The display of the VR virtual display was set incorrectly in ag/2460110.
This was a part of debugging code mistakenly left behind, but it is
causing CTS tests to fail and also changes the resolution of virtual
display on standalone devices.

Bug: 62842592
Bug: 63339799
Test: run cts -m CtsServicesHostTestCases -t
android.server.cts.ActivityManagerDisplayTests#testVrActivityLaunch
passes with the change and restores original resolution on standalone
devices.

Change-Id: I6e77f9b3b09f02e411bab12bb69d8141312e5b64
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
7 years agoMerge "Password field colors" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 18:02:47 +0000 (18:02 +0000)]
Merge "Password field colors" into oc-dr1-dev

7 years agoMerge "AOD: Skip window animations while dozing" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 17:53:24 +0000 (17:53 +0000)]
Merge "AOD: Skip window animations while dozing" into oc-dr1-dev

7 years agoDisable test in presubmit
Jason Monk [Thu, 6 Jul 2017 16:36:32 +0000 (12:36 -0400)]
Disable test in presubmit

It seems to have gotten up to .5% flakiness, get it out of presubmit.

Test: runtest systemui
Bug: 63386204
Change-Id: I39e44a0e863022337b578b4d3efa9d1721eff298

7 years agoMerge "Change visibility on formatPercentage(double)." into oc-dr1-dev
Daniel Nishi [Thu, 6 Jul 2017 17:04:59 +0000 (17:04 +0000)]
Merge "Change visibility on formatPercentage(double)." into oc-dr1-dev

7 years agoMerge "Broadcast only if boot complete" into oc-dr1-dev
Jerry Zhang [Thu, 6 Jul 2017 16:52:04 +0000 (16:52 +0000)]
Merge "Broadcast only if boot complete" into oc-dr1-dev

7 years agoAOD: Fix flicker when unlocking with fingerprint
Adrian Roos [Thu, 6 Jul 2017 16:22:17 +0000 (18:22 +0200)]
AOD: Fix flicker when unlocking with fingerprint

FingerprintUnlockController assumed that not pulsing is the same
as the screen is off. But with AOD this is no longer true. Instead
we now also trigger that flow if the screen is on and dozing.

Change-Id: Iad2fd65c50ad359d50bb357b41c57df123665df2
Fixes: 62885230
Test: Unlock from AOD with fingerprint; ensure that the status bar stays in AOD mode during the transition

7 years agoMerge "AOD: Disable if device is not yet provisioned" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 16:20:19 +0000 (16:20 +0000)]
Merge "AOD: Disable if device is not yet provisioned" into oc-dr1-dev

7 years agoMerge "Revert "Default Trust Agents are now always enforced."" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 16:12:05 +0000 (16:12 +0000)]
Merge "Revert "Default Trust Agents are now always enforced."" into oc-dr1-dev

7 years agoMerge "Fix tests?" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 16:09:00 +0000 (16:09 +0000)]
Merge "Fix tests?" into oc-dr1-dev

7 years agoMerge "LockIcon: Initialize mAccessibilityController" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 16:01:30 +0000 (16:01 +0000)]
Merge "LockIcon: Initialize mAccessibilityController" into oc-dr1-dev

7 years agoFix RTL mobile signal drawing out of bounds in QS Edit
Evan Laird [Thu, 6 Jul 2017 15:41:21 +0000 (11:41 -0400)]
Fix RTL mobile signal drawing out of bounds in QS Edit

For some reason, the canvas is twice the size of the drawable's bounds,
and our RTL code was taking the whole canvas, shifting by its own width
and reversing the x-coords. When the canvas is too wide, it causes the
signal to draw outside of the bounds. To fix it, just shift the
coordinates by the width of the drawable itself. I.e., reverse in the
drawable's own bounds.

Note that there is still an issue where sometimes a non-reversed signal
drawable is used. This doesn't fix that.

Change-Id: I6cfda0ab6b9f50c969410dd4f89499b66854ebbe
Fixes: 63164522
Test: visual

7 years agoMerge "Don't animate grayscale if animations are off" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 15:34:48 +0000 (15:34 +0000)]
Merge "Don't animate grayscale if animations are off" into oc-dr1-dev

7 years agoMerge "Fixed an issue where a notification could stay userlocked" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 15:23:09 +0000 (15:23 +0000)]
Merge "Fixed an issue where a notification could stay userlocked" into oc-dr1-dev

7 years agoMerge "Wakeup packet mark/mask configuration option" into oc-dr1-dev
Lorenzo Colitti [Thu, 6 Jul 2017 15:19:15 +0000 (15:19 +0000)]
Merge "Wakeup packet mark/mask configuration option" into oc-dr1-dev

7 years agoAOD: Skip window animations while dozing
Adrian Roos [Tue, 9 May 2017 20:17:54 +0000 (13:17 -0700)]
AOD: Skip window animations while dozing

Fixes: 37245619
Test: go/wm-smoke; Go to home, turn off phone, observe that during the transition to AOD the navigation bar hide animation does not play.
Change-Id: I9a2fce4295900648a680e8e7e8fee0fbb447dd3d

7 years agoMerge "Layout updates to share sheet" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 15:09:10 +0000 (15:09 +0000)]
Merge "Layout updates to share sheet" into oc-dr1-dev

7 years agoMerge "Fixed an issue where the lockscreen could be all white" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 14:32:53 +0000 (14:32 +0000)]
Merge "Fixed an issue where the lockscreen could be all white" into oc-dr1-dev

7 years agoFix tests?
Jason Monk [Thu, 6 Jul 2017 13:51:47 +0000 (09:51 -0400)]
Fix tests?

Test: runtest systemui
Change-Id: Ie29ff934fbb6eeab977fd2977ea7f3a1d31170e9
Fixes: 63382815

7 years agoLockIcon: Initialize mAccessibilityController
Adrian Roos [Thu, 6 Jul 2017 13:36:32 +0000 (15:36 +0200)]
LockIcon: Initialize mAccessibilityController

Otherwise updating the clickability never happens.

Change-Id: I8a7ec61b25b0862de8cb0122017cf4064b20bcb3
Fixes: 62695092
Test: Disable security. Click on lock icon. Ensure it shows the unlock hint, and does not show that the device has been locked.

7 years agoMerge "Fix some config issues with sysui" into oc-dr1-dev
Jason Monk [Thu, 6 Jul 2017 13:13:55 +0000 (13:13 +0000)]
Merge "Fix some config issues with sysui" into oc-dr1-dev

7 years agoLayout updates to share sheet
Jason Monk [Tue, 27 Jun 2017 22:37:35 +0000 (18:37 -0400)]
Layout updates to share sheet

The biggest change is that padding will only appear above/below
service section, and at the start of the non-service section. For
this a bunch of changes to how padding is needed.

Also some other dimen changes for specs.

Test: visual
Change-Id: I39747701597e620425bdcb4113d1a3585f6de137
Fixes: 37913738

7 years agoMerge "Zygote: Fix race condition on package preloads." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 11:30:03 +0000 (11:30 +0000)]
Merge "Zygote: Fix race condition on package preloads." into oc-dr1-dev

7 years agoWakeup packet mark/mask configuration option
Joel Scherpelz [Thu, 8 Jun 2017 06:35:21 +0000 (15:35 +0900)]
Wakeup packet mark/mask configuration option

Rules will only be installed if a device specific config.xml overrides
the default values of mark and mask.

This change also fixes a bug where wakeup rules added by the wakeup
controller would never be removed because updateInterfaces() is not
invoked on wifi network change or disable.

Test: as follows
    - built
    - flashed
    - booted
    - Manually verified that mask/mark is set correctly
Bug: 28806131

(cherry picked from commit 668370b9a5d36511f8f2cd58d6c6b0fc1020ee2d)

Change-Id: I95e75b11b973707bcb428ea6498fbfd8e717b855

7 years agoMerge "Add strings for a "Tethering hardware acceleration" setting." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 06:14:00 +0000 (06:14 +0000)]
Merge "Add strings for a "Tethering hardware acceleration" setting." into oc-dr1-dev

7 years agoMerge "Clearly log tether_offload_disabled setting status in start()" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 05:47:59 +0000 (05:47 +0000)]
Merge "Clearly log tether_offload_disabled setting status in start()" into oc-dr1-dev

7 years agoMerge "Fix NPE on network forget from details page." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 05:16:14 +0000 (05:16 +0000)]
Merge "Fix NPE on network forget from details page." into oc-dr1-dev

7 years agoClearly log tether_offload_disabled setting status in start()
Erik Kline [Thu, 6 Jul 2017 03:38:48 +0000 (12:38 +0900)]
Clearly log tether_offload_disabled setting status in start()

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 29337859
Bug: 32163131

Change-Id: I312a9309d6934bcec7fc0245cad12b97f1a22521

7 years agoMerge "Moving check for empty snapshots earlier." into oc-dr1-dev
Winson Chung [Thu, 6 Jul 2017 03:36:47 +0000 (03:36 +0000)]
Merge "Moving check for empty snapshots earlier." into oc-dr1-dev

7 years agoMerge "Disable auto-enter PIP when launching an assistant activity" into oc-dr1-dev
Winson Chung [Thu, 6 Jul 2017 03:35:50 +0000 (03:35 +0000)]
Merge "Disable auto-enter PIP when launching an assistant activity" into oc-dr1-dev

7 years agoFix NPE on network forget from details page.
Sundeep Ghuman [Thu, 6 Jul 2017 03:06:05 +0000 (20:06 -0700)]
Fix NPE on network forget from details page.

Forgetting a network from the wifi network details page throws an NPE in
WifiSettings when the details fragment exits, crashing the app.

Bug: b/63351286
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I749ecbda5654ff7a86ffe4c38ca74ebe338923f0

7 years agoBluetooth: Display battery level of connected devices
Jack He [Fri, 30 Jun 2017 00:01:23 +0000 (17:01 -0700)]
Bluetooth: Display battery level of connected devices

* Add handler for BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED intent
* Check battery level information when UI is updated
* Show battery level in Quick Settings connected device summary line
* Show battery level in Bluetooth Settings connected device summary line
* Show battery level in Bluetooth device details page device summary
  line
* Add unit test for CachedBluetoothDevice, change HeadsetProfile and
  HidProfile to not final to enable mocking

Bug: 35874078
Test: make, unit test, connect to remote devices, connect/disconnect
      profiles
Change-Id: I729048cace73aab29337a8002a2897d2acf22fa6

7 years agoMerge "Update the smearing methods in framework." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 00:49:56 +0000 (00:49 +0000)]
Merge "Update the smearing methods in framework." into oc-dr1-dev

7 years agoProtect TIMEOUT_CONNECT broadcast which is for Nfc Handover
Hiroki Yamamoto [Fri, 14 Apr 2017 06:10:15 +0000 (15:10 +0900)]
Protect TIMEOUT_CONNECT broadcast which is for Nfc Handover

Test: do Nfc Bluetooth Handover and wait for the timeout
Bug: 63250718
Change-Id: Ieea8b8f7a07fe90a594ed13ecfefd01e1d60853d
(cherry picked from commit 506350b6ddf782ec1f35f4b20b2a833d2313eafa)

7 years agoMerge "Use configuration delta to determine if still in orientation change." into...
Bryce Lee [Wed, 5 Jul 2017 23:26:45 +0000 (23:26 +0000)]
Merge "Use configuration delta to determine if still in orientation change." into oc-dr1-dev

7 years agoMerge "Add a convenience method to facilitate tests" into oc-dr1-dev
Antony Sargent [Wed, 5 Jul 2017 22:49:11 +0000 (22:49 +0000)]
Merge "Add a convenience method to facilitate tests" into oc-dr1-dev

7 years agoMerge "Clear calling id before updating MediaStore." into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 22:39:37 +0000 (22:39 +0000)]
Merge "Clear calling id before updating MediaStore." into oc-dr1-dev

7 years agoChange visibility on formatPercentage(double).
Daniel Nishi [Tue, 27 Jun 2017 21:38:06 +0000 (14:38 -0700)]
Change visibility on formatPercentage(double).

Bug: 37923610
Test: Manual

Change-Id: I05a2e244a07e737784988a6353841ee55bbdcad0

7 years agoMerge "Hide VIRTUAL_KEY_RELEASE constant." into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 22:37:32 +0000 (22:37 +0000)]
Merge "Hide VIRTUAL_KEY_RELEASE constant." into oc-dr1-dev

7 years agoMerge "Adds a new string definition for IMS Access blocked reason" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 22:17:01 +0000 (22:17 +0000)]
Merge "Adds a new string definition for IMS Access blocked reason" into oc-dr1-dev

7 years agoFix bug where RemoteViews addView is backwards.
Anthony Chen [Wed, 5 Jul 2017 18:22:25 +0000 (11:22 -0700)]
Fix bug where RemoteViews addView is backwards.

The index on where to add a child view was not being saved when writing
to a Parcel. This causes the index to default to 0 and resulted in views
always being added as the first view.

Now, persist this value to the Parcel and restore it.

Test: booted up on Nexus 6P, created notification with RemoteView, added
two views and verified views added in correct order.
Bug: 63177271

Change-Id: I94384e348b8a5168efe0601f382cdd2db6791fdb

7 years agoDon't animate grayscale if animations are off
Evan Laird [Wed, 5 Jul 2017 21:10:04 +0000 (17:10 -0400)]
Don't animate grayscale if animations are off

Just set the final color instantly on QS icons if animations are off
(battery save mode).

Change-Id: I55a5bd6bab412b9b6a62d32b21adbf7d39cc9e72
Fixes: 62508363
Test: visual

7 years agoPassword field colors
Lucas Dupin [Wed, 5 Jul 2017 20:29:18 +0000 (13:29 -0700)]
Password field colors

Test: Visual. Set light/dark wallpapers, lock/unlock.
Change-Id: I16806512ef983ede22ee13cdeb41f5620cb52888
Fixes: 62590347

7 years agoMerge "Ensure all WindowStates are considered before determining all drawn." into...
Bryce Lee [Wed, 5 Jul 2017 20:52:33 +0000 (20:52 +0000)]
Merge "Ensure all WindowStates are considered before determining all drawn." into oc-dr1-dev

7 years agoUse configuration delta to determine if still in orientation change.
Bryce Lee [Thu, 22 Jun 2017 20:14:28 +0000 (13:14 -0700)]
Use configuration delta to determine if still in orientation change.

We currently track this change in the WindowState with a variable
called mOrientationChanging. This value is set and cleared in a
variety of classes. It is possible for this value to be cleared
before processing an orientation changing frame. This can lead to us
prematurely unfreezing.

Since the orientation is present in the configuration, we can use the
orientation delta between the last and current frame's configuration
to determine whether we are in the middle of an orientation change.
The existing signal has been moved behind a setter/getter where the
latter is combined with the configuration state.

Bug: 62846907
Test: go/wm-smoke
Test: turn launcher rotation on, open dialer in portrait, turn off
      screen, rotate to landscape, unlock with fingerprint, press
      home while rotating. make sure layout is correct.

Change-Id: Ie0b78b76565125fd1cb036545cfb59f2a9075328

7 years agoUpdate the smearing methods in framework.
jackqdyulei [Wed, 5 Jul 2017 18:23:33 +0000 (11:23 -0700)]
Update the smearing methods in framework.

1. Fix the bug about foregroundActivityTime. It should take microseconds
as parameter and return microseconds
2. Use the min time of foregroundActivity time and Top time as "screen
time"
3. Hide bluetooth, wifi, idle but don't smear it

Bug: 63176214
Test: runtest -x BatteryStatsHelperTest
Change-Id: I5798577da17d60fb3e3b18351deb31ae77939154

7 years agoDisable auto-enter PIP when launching an assistant activity
Winson Chung [Wed, 5 Jul 2017 19:23:25 +0000 (12:23 -0700)]
Disable auto-enter PIP when launching an assistant activity

Bug: 36785193
Test: Open auto-enter PiP app, and launch the assistant
Test: go/wm-smoke
Change-Id: I1e43e8738e6a5b92585d2cd5fbb889ee236cf090

7 years agoZygote: Fix race condition on package preloads.
Narayan Kamath [Mon, 3 Jul 2017 13:12:26 +0000 (14:12 +0100)]
Zygote: Fix race condition on package preloads.

Before this change, ZygoteProcess.preloadPackageForAbi returned
as soon as the command was written to the zygote socket and not
after the preload completed. This meant that there was a small
window of time before the server side of the socket polled its FDs
where a second command could be written to the zygote socket. This
would lead to only one of the commands being processed and the
other being dropped. The client side of that socket would then wait
forever for a response and bring down the system once the watchdog
timeout was hit.

Example failure case :
--------------
system_server:send command(preloadPackage)
system_server:send command(fork)
zygote:poll & process command(preloadPackage)  // the fork command is dropped.

Example of normal operation :
------------------
system_server:send command(preloadPackage)
zygote:poll & process command(preloadPackage)
system_server:send command(fork)
zygote:poll & process command(fork)

This change makes preloadPackageForAbi synchronous, which ensures
that each POLLIN event corresponds to precisely one command.

Bug: 62886909
Bug: 13618569
Test: Manual
Contributed-By: yuqianyu@huawei.com
(cherry-picked from commit 24a3306c32aa3860184025638f3abaab96cc9153)

Change-Id: I83faf974c9a70a6ab18323f692c1981784e4c56a

7 years agoBroadcast only if boot complete
Jerry Zhang [Thu, 29 Jun 2017 18:11:52 +0000 (11:11 -0700)]
Broadcast only if boot complete

Accessory connects / disconnects can occur before
boot complete, so don't broadcast intents if that
is the case.

Bug: 63114621
Test: connect/disconnect an accessory
Change-Id: Ib8f9eb97ce1630004511fcc1fb84594ccc812c06

7 years agoMerge "Fix rounded corners fangs in RTL" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 17:41:33 +0000 (17:41 +0000)]
Merge "Fix rounded corners fangs in RTL" into oc-dr1-dev

7 years agoMerge "Updates to brightness mirror to play with color extraction" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 17:39:13 +0000 (17:39 +0000)]
Merge "Updates to brightness mirror to play with color extraction" into oc-dr1-dev

7 years agoMerge "Fixed the clear all animation on the locked shade" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 17:36:41 +0000 (17:36 +0000)]
Merge "Fixed the clear all animation on the locked shade" into oc-dr1-dev

7 years agoMerge "Calling hideKeyguard more often, instead of caching it" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 17:35:47 +0000 (17:35 +0000)]
Merge "Calling hideKeyguard more often, instead of caching it" into oc-dr1-dev

7 years agoMerge "Remove UI_MODE_CAR for QS because it isn't doing anything right now." into...
Jason Monk [Wed, 5 Jul 2017 17:28:20 +0000 (17:28 +0000)]
Merge "Remove UI_MODE_CAR for QS because it isn't doing anything right now." into oc-dr1-dev

7 years agoMerge "Update power menu + dialog" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 17:24:39 +0000 (17:24 +0000)]
Merge "Update power menu + dialog" into oc-dr1-dev

7 years agoMerge "Tiny visual tweaks to QS" into oc-dr1-dev
Jason Monk [Wed, 5 Jul 2017 17:04:48 +0000 (17:04 +0000)]
Merge "Tiny visual tweaks to QS" into oc-dr1-dev

7 years agoMerge "Use SystemUiContext for immersive mode cling." into oc-dr1-dev
Andrew Sapperstein [Wed, 5 Jul 2017 16:56:57 +0000 (16:56 +0000)]
Merge "Use SystemUiContext for immersive mode cling." into oc-dr1-dev

7 years agoFix some config issues with sysui
Jason Monk [Wed, 5 Jul 2017 16:20:10 +0000 (12:20 -0400)]
Fix some config issues with sysui

It wasn't creating a delta so as soon as a change happened, it would
return true for any config changes.

Also StatusBar wasn't receiving config changes because the callback
was named wrong and SystemBars no longer passes it through.

Test: manual
Fixes: 62968485
Fixes: 62893293
Change-Id: I56750047168007edd0ca9ea35cb36c23dc790661

7 years agoMerge "Dark text support on Recents" into oc-dr1-dev
Lucas Dupin [Wed, 5 Jul 2017 16:09:49 +0000 (16:09 +0000)]
Merge "Dark text support on Recents" into oc-dr1-dev

7 years agoFix rounded corners fangs in RTL
Jason Monk [Wed, 5 Jul 2017 15:30:27 +0000 (11:30 -0400)]
Fix rounded corners fangs in RTL

Test: visual in RTL
Change-Id: I918a4de6c3f504d6aa280ca440625273dcbf5a02
Fixes: 62487402

7 years agoUpdates to brightness mirror to play with color extraction
Jason Monk [Wed, 5 Jul 2017 15:10:27 +0000 (11:10 -0400)]
Updates to brightness mirror to play with color extraction

Test: visual
Change-Id: Idfd86fc06b2dab183463963fd4ce32e9a27bf286
Fixes: 63124649

7 years agoRemove UI_MODE_CAR for QS because it isn't doing anything right now.
Jason Monk [Wed, 5 Jul 2017 15:15:59 +0000 (11:15 -0400)]
Remove UI_MODE_CAR for QS because it isn't doing anything right now.

Test: make
Fixes: 62597341
Change-Id: I9923982bfefc2604c176eb514d7053b701a09a63

7 years agoAOD: Disable if device is not yet provisioned
Adrian Roos [Wed, 5 Jul 2017 14:45:42 +0000 (16:45 +0200)]
AOD: Disable if device is not yet provisioned

Change-Id: If1563d9558205936a8c78d1232eb0879700ff6b3
Fixes: 62263216
Test: adb shell settings put user_setup_complete 0; turn off screen; verify AOD does not show

7 years agoTiny visual tweaks to QS
Jason Monk [Wed, 5 Jul 2017 14:26:57 +0000 (10:26 -0400)]
Tiny visual tweaks to QS

Test: visual
Change-Id: If032b940ee8726a2027552da68c46a952d01375c
Fixes: 38199857

7 years agoFixed an issue where the lockscreen could be all white
Selim Cinek [Wed, 5 Jul 2017 14:22:53 +0000 (16:22 +0200)]
Fixed an issue where the lockscreen could be all white

Especially with always on, this was always triggered when
swiping for voice assist and then locking.

Test: swipe to voice assist with aod, lock with power button
Change-Id: I8a55f08307578e510a30bb97cebff5de8b3a11fa
Fixes:  62995674

7 years agoRevert "Default Trust Agents are now always enforced."
Adrian Roos [Wed, 5 Jul 2017 14:09:22 +0000 (16:09 +0200)]
Revert "Default Trust Agents are now always enforced."

This reverts commit dbece7a45265b8f421415fc9c98ffc8b5a55f6dc.

Test: Disable trust agent in Settings > Security > Trust Agents. Reboot. Verify that trust agent is still disabled.
Change-Id: Id7600798b85debbca21e2f87c3d3d6928494c1cb
Fixes: 37957010

7 years agoUpdate power menu + dialog
Jason Monk [Thu, 29 Jun 2017 23:37:48 +0000 (19:37 -0400)]
Update power menu + dialog

 - Update power menu to handle seascape properly
 - Update shutting down dialog, the gradient is covered by the
   global actions dialog not going away completely, everything else
   is still in ShutdownThread.

Test: visual
Change-Id: I06a2fdd2652bf006dc5c0b45e3bc922e43093301
Fixes: 62391660

7 years agoBetter logging infrastructure in OffloadHardwareInterface
Erik Kline [Tue, 4 Jul 2017 04:39:48 +0000 (13:39 +0900)]
Better logging infrastructure in OffloadHardwareInterface

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - watch "adb shell dumpsys connectivity tethering | tail -60" shows logs
Bug: 29337859
Bug: 32163131

Change-Id: Id0bd14e5b364c497403c2d88f7b1c31d712e6f87

7 years agoDark text support on Recents
Lucas Dupin [Wed, 28 Jun 2017 01:17:40 +0000 (18:17 -0700)]
Dark text support on Recents

Also changed target package.

Test: visual. Set light and dark wallpapers
Change-Id: I188bc21b5372e541509bdd739c825fc5ac53ca47
Fixes: 62346335

7 years agoAdd strings for a "Tethering hardware acceleration" setting.
Lorenzo Colitti [Tue, 4 Jul 2017 15:28:25 +0000 (00:28 +0900)]
Add strings for a "Tethering hardware acceleration" setting.

Bug: 29337859
Test: builds
Change-Id: I0ee6846df58db15b8ec72d63b629cc56766c999b

7 years agoSwitch to USB_CONFIGURED as the primary USB readiness signal
Erik Kline [Tue, 4 Jul 2017 13:02:49 +0000 (22:02 +0900)]
Switch to USB_CONFIGURED as the primary USB readiness signal

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - USB tethering on and off works as expected
Bug: 32163131
Bug: 36216864
Bug: 62147658
Bug: 62552150
Change-Id: Ia8f7f3616f1358b0427386ce8aff26899e03ac07

7 years agoFixed the clear all animation on the locked shade
Selim Cinek [Tue, 4 Jul 2017 10:07:55 +0000 (12:07 +0200)]
Fixed the clear all animation on the locked shade

The notifications were also performing a removal animation
even though they were swiped out, which is not needed at all.
Also notifications that were clipped off on the top performed
an animation even though they shouldn't have.

Test: manual, on the shade locked clear all, observe smooth animations
Change-Id: I26c99a1fb48ea7b22e3710a744702af70db32b42
Fixes: 36590278

7 years agoCalling hideKeyguard more often, instead of caching it
Selim Cinek [Mon, 3 Jul 2017 12:44:17 +0000 (14:44 +0200)]
Calling hideKeyguard more often, instead of caching it

Because we were caching the Keyguard state, we didn't call
hideKeyguard anymore when going to the shade locked and then
unlocking. As a consequence did we never update the public
mode and therefore remained in a wrong state.

Lot's of bad things could happen with it, for example did
inline reply not work anymore and the clear all button would
be hidden in certain cases. In general would the user not
be properly unlocked.

Test: manual, go to locked shade with redaction turned on, unlock via affordance, observe notifications are unlocked
Fixes: 62721741
Fixes: 62378400
Change-Id: Ibc757859ef26a1dba887e8986d6a2f8f2fe2efb4

7 years agoMerge "Pass all offload-exempt prefixes into OffloadController" into oc-dr1-dev
TreeHugger Robot [Tue, 4 Jul 2017 05:58:46 +0000 (05:58 +0000)]
Merge "Pass all offload-exempt prefixes into OffloadController" into oc-dr1-dev

7 years agoFixed an issue where a notification could stay userlocked
Selim Cinek [Mon, 3 Jul 2017 15:05:01 +0000 (17:05 +0200)]
Fixed an issue where a notification could stay userlocked

With the fingerprint gesture a user could get a notification
into a state where it remained userlocked.
We're now not only cancelling the expand helper when the shade
is collapsed but also clearing all userlocked flags.

Test: runtest systemui
Change-Id: Ibf0b29375242daf627ec9b5233a8720a9c01dbf6
Fixes: 63055586

7 years agoMerge changes from topic 'revert-update-conscrypt' into oc-dr1-dev
TreeHugger Robot [Mon, 3 Jul 2017 15:07:20 +0000 (15:07 +0000)]
Merge changes from topic 'revert-update-conscrypt' into oc-dr1-dev

* changes:
  Revert "Track updates to Conscrypt". DO NOT MERGE ANYWHERE.
  Revert "Delete obsolete and unused KeyStoreTests". DO NOT MERGE ANYWHERE.

7 years agoMerge "Improved Text transformations for notifications" into oc-dr1-dev
TreeHugger Robot [Mon, 3 Jul 2017 13:37:33 +0000 (13:37 +0000)]
Merge "Improved Text transformations for notifications" into oc-dr1-dev

7 years agoMerge "AOD: Avoid double re-registration of sensors" into oc-dr1-dev
TreeHugger Robot [Mon, 3 Jul 2017 12:15:57 +0000 (12:15 +0000)]
Merge "AOD: Avoid double re-registration of sensors" into oc-dr1-dev

7 years agoMerge "Fixed an issue where the shelf could be hidden" into oc-dr1-dev
Selim Cinek [Mon, 3 Jul 2017 10:46:35 +0000 (10:46 +0000)]
Merge "Fixed an issue where the shelf could be hidden" into oc-dr1-dev

7 years agoPass all offload-exempt prefixes into OffloadController
Erik Kline [Sat, 24 Jun 2017 10:29:10 +0000 (19:29 +0900)]
Pass all offload-exempt prefixes into OffloadController

Additionally:
    - eliminate useless TetherMasterUtilState

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks passes
Bug: 29337859
Bug: 32163131

Merged-In: I6adcdbd6a4f14bd2cdaa056cfc0cf9c573a165b9
Merged-In: I5e689bcf5dd048ee9f9bd0c32b16d7c2e4c0268d
Merged-In: Ifd3817bd4569682d77a70f8192432391a573f6d8
Merged-In: I1ea57fbe322e26246f1d8b459519f18be1297467
Change-Id: I0482ac9dd9e8ba558b253643dbc01875ce9475ef
(cherry picked from commit be8ee08f5dcc3627cac6b0baa6664637684cce35)