OSDN Git Service

android-x86/frameworks-base.git
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 "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 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 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 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 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 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 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 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 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 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)

7 years agoSwitch IpManager and IpReachabilityMonitor to use SharedLog
Erik Kline [Thu, 29 Jun 2017 02:46:51 +0000 (11:46 +0900)]
Switch IpManager and IpReachabilityMonitor to use SharedLog

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - frameworks/opt/net/wifi/tests/wifitests/runtests.sh passes
    - frameworks/base/wifi/tests/runtests.sh passes
    - roamed from AP to AP watching IpRM logs accumulate
Bug: 62476366
Bug: 62162774

Change-Id: I155a26259420919eeed74166bacce3311caa49da

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Sat, 1 Jul 2017 16:59:41 +0000 (16:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: c393596c5c  -s ours

Change-Id: Idaf923acd47974e468c4793a65535266478467ee

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 1 Jul 2017 16:49:35 +0000 (16:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 16:48:37 +0000 (16:48 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 16:48:03 +0000 (16:48 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 16:10:37 +0000 (16:10 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 1 Jul 2017 08:05:57 +0000 (01:05 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie1d41a529933932afe08bd0a4379a8c39566bba2
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 1 Jul 2017 05:21:21 +0000 (22:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I68c61a6bc5bb8b5ea580383d10702bac0e7db254
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 1 Jul 2017 05:09:25 +0000 (22:09 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2ec049d1c524feca0bba33fdb21ef03960a50c5a
Auto-generated-cl: translation import

7 years agoMerge "AOD: Pause FalsingManager prox sensor while showing AOD" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 03:39:06 +0000 (03:39 +0000)]
Merge "AOD: Pause FalsingManager prox sensor while showing AOD" into oc-dr1-dev

7 years agoSend disable messages when Bluetooth is disallowed
Myles Watson [Sat, 1 Jul 2017 01:08:56 +0000 (01:08 +0000)]
Send disable messages when Bluetooth is disallowed
am: 6291fae585

Change-Id: I13f4e42ceaab9b1dee41d3a43c0a1a5e8f188fff

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 1 Jul 2017 00:09:53 +0000 (17:09 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3e5fd8c8510ef2804f354fd8ffaa3c716daffde7
Auto-generated-cl: translation import

7 years agoUse SystemUiContext for immersive mode cling.
Andrew Sapperstein [Fri, 30 Jun 2017 23:00:43 +0000 (16:00 -0700)]
Use SystemUiContext for immersive mode cling.

Was using teal since the context was not one that should be used
to display UI.

Change-Id: I870c038ab8929af521c8a78b7eac63a400643de0
Fixes: 63151531
Test: manual

7 years agoSend disable messages when Bluetooth is disallowed
Myles Watson [Thu, 29 Jun 2017 10:12:02 +0000 (03:12 -0700)]
Send disable messages when Bluetooth is disallowed

Bug: 63021124
Test: cts-tradefed run commandAndExit cts \
         -m CtsDevicePolicyManagerTestCases \
         -t  com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction
Change-Id: I0ef538a4d0f0632ce303b29595ac1cab3b7d29ce

7 years agoAdds a new string definition for IMS Access blocked reason
Brad Ebinger [Fri, 30 Jun 2017 22:34:32 +0000 (15:34 -0700)]
Adds a new string definition for IMS Access blocked reason

When a call is disconnected with the Telephony DisconnectCause
IMS_ACCESS_BLOCKED, DisconnectCause#getReason will now return
the reason REASON_IMS_ACCESS_BLOCKED.

Bug: 33821263
Test: manual tests
Change-Id: Ic17cefa35a51f739c893923a2db7f3dca8ada202

7 years agoMerge "No smart text assist for unprovisioned device." into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 22:31:14 +0000 (22:31 +0000)]
Merge "No smart text assist for unprovisioned device." into oc-dr1-dev

7 years agoMerge "AOD: Refactor doze brigthness controllers, add AOD auto brightness support...
TreeHugger Robot [Fri, 30 Jun 2017 21:37:43 +0000 (21:37 +0000)]
Merge "AOD: Refactor doze brigthness controllers, add AOD auto brightness support" into oc-dr1-dev

7 years agoMerge changes Ifa407b84,Iff84c019 into oc-dr1-dev
Adrian Roos [Fri, 30 Jun 2017 21:22:16 +0000 (21:22 +0000)]
Merge changes Ifa407b84,Iff84c019 into oc-dr1-dev

* changes:
  AOD: Add hysteresis to pausing the display
  Factor out AlarmTimeout

7 years agoClear calling id before updating MediaStore.
Garfield Tan [Tue, 27 Jun 2017 18:03:42 +0000 (11:03 -0700)]
Clear calling id before updating MediaStore.

Test: Manual tests.
Bug: 63064166
Change-Id: I87ab9656f699072a6e23249e531805ad7c392764

7 years agoMerge "Fix use-after-free" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 19:41:46 +0000 (19:41 +0000)]
Merge "Fix use-after-free" into oc-dr1-dev

7 years agoMerge "Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior." into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 19:36:52 +0000 (19:36 +0000)]
Merge "Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior." into oc-dr1-dev

7 years agoMerge changes from topic 'HideMultiUser' into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 19:35:05 +0000 (19:35 +0000)]
Merge changes from topic 'HideMultiUser' into oc-dr1-dev

* changes:
  Don't show multi-user in QS unless it has been activated before
  QS: Move auto-add state to settings provider

7 years agoMerge "Dedupes ranked apps in sharing windows, and reuses computed scores in sorting...
TreeHugger Robot [Fri, 30 Jun 2017 19:28:31 +0000 (19:28 +0000)]
Merge "Dedupes ranked apps in sharing windows, and reuses computed scores in sorting for ResolverActivity." into oc-dr1-dev

7 years agoMerge "Move starting window dim layers behind the activity window layers" into oc...
Winson Chung [Fri, 30 Jun 2017 19:20:22 +0000 (19:20 +0000)]
Merge "Move starting window dim layers behind the activity window layers" into oc-dr1-dev

7 years agoMerge "AOD: Ensure dark amount is set after reinflating" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 19:15:04 +0000 (19:15 +0000)]
Merge "AOD: Ensure dark amount is set after reinflating" into oc-dr1-dev

7 years agoMerge "Do not extract colors of live wallpapers." into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 18:27:48 +0000 (18:27 +0000)]
Merge "Do not extract colors of live wallpapers." into oc-dr1-dev

7 years agoHide VIRTUAL_KEY_RELEASE constant.
Siarhei Vishniakou [Fri, 30 Jun 2017 18:02:02 +0000 (11:02 -0700)]
Hide VIRTUAL_KEY_RELEASE constant.

The constant will become visible once
the corresponding feature is supported.

Bug: 62433331
Test: make
Change-Id: I310338033dd861e9fd0cc1492a8e34fb53ce0415

7 years agoMerge "Update Landscape <-> Autorotate QS animations" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 17:50:55 +0000 (17:50 +0000)]
Merge "Update Landscape <-> Autorotate QS animations" into oc-dr1-dev

7 years agoMerge "Always run Virtual Display when in a BootsToVR device." into oc-dr1-dev
Santos Cordon [Fri, 30 Jun 2017 17:09:09 +0000 (17:09 +0000)]
Merge "Always run Virtual Display when in a BootsToVR device." into oc-dr1-dev

7 years agoMerge "AOD: Use keyguard screen rotation when dozing" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 16:55:16 +0000 (16:55 +0000)]
Merge "AOD: Use keyguard screen rotation when dozing" into oc-dr1-dev

7 years agoMerge "AOD: Hide SIM PIN entry while dozing" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 16:54:32 +0000 (16:54 +0000)]
Merge "AOD: Hide SIM PIN entry while dozing" into oc-dr1-dev

7 years agoAdd a convenience method to facilitate tests
Antony Sargent [Thu, 29 Jun 2017 22:23:13 +0000 (15:23 -0700)]
Add a convenience method to facilitate tests

In app tests (as opposed to RoboTests), we don't have a shadow
BluetoothSettings class and can't mock it because it's final, but we
need a way to mock out the address of a CachedBluetoothDevice. So this
adds a convenience method on CachedBluetoothDevice that can be mocked.

Bug: 62447414
Test: (should be covered by other tests)
Change-Id: If818d3dcc783b4aa03f7c6d7c441ba44ea980ab7

7 years agoFixed an issue where the shelf could be hidden
Selim Cinek [Fri, 30 Jun 2017 16:32:40 +0000 (18:32 +0200)]
Fixed an issue where the shelf could be hidden

During reinflation, the panel could be stuck in
a bad state where qs edit mode was on but not
visible. QS edit now persists through reinflations.

Test: manual
Change-Id: I6e7a20fda2db2184a26a11093064a1367469ab45
Fixes: 62807612

7 years agoFix use-after-free
John Reck [Thu, 29 Jun 2017 17:26:44 +0000 (10:26 -0700)]
Fix use-after-free

Change-Id: I8ac1ede5b29f718aa145e18cf1cc057722b62f2b
Fixes: 62810849
Test: Builds
(cherry picked from commit 3c1820e0104b8e48f55cab491f82e84bf0a6081f)

7 years agoMerge "Always send configuration to client from resize and relayout." into oc-dr1-dev
Bryce Lee [Fri, 30 Jun 2017 16:17:34 +0000 (16:17 +0000)]
Merge "Always send configuration to client from resize and relayout." into oc-dr1-dev

7 years agoMerge "Add rotation to configuration." into oc-dr1-dev
Bryce Lee [Fri, 30 Jun 2017 16:17:34 +0000 (16:17 +0000)]
Merge "Add rotation to configuration." into oc-dr1-dev

7 years agoMerge "Turn off camera lift logging" into oc-dr1-dev
Jonathan Solnit [Fri, 30 Jun 2017 16:11:22 +0000 (16:11 +0000)]
Merge "Turn off camera lift logging" into oc-dr1-dev

7 years agoAOD: Pause FalsingManager prox sensor while showing AOD
Adrian Roos [Wed, 28 Jun 2017 14:52:37 +0000 (16:52 +0200)]
AOD: Pause FalsingManager prox sensor while showing AOD

Otherwise it undermines the efforts to unregister a flakey prox sensor.

Bug: 62292293
Test: put device in AOD, ensure that "adb shell dumpsys sensorservice | grep "Active sensors:" -A999 | grep PROX -B1" does not show a registration for "FalsingManager".
Change-Id: Ib8966d46e3ce821b00153d89fdb731c377567504

7 years agoAOD: Add hysteresis to pausing the display
Adrian Roos [Wed, 28 Jun 2017 14:22:02 +0000 (16:22 +0200)]
AOD: Add hysteresis to pausing the display

Delays pausing the display by several seconds to avoid
flickering when the prox is only covered transiently.

Also adds cooldown to the proximity sensor, such that when
it toggles too often it gets disabled for a while.

Bug: 62292293
Test: cover prox for less than 10s, observe display stays on. Cover for more, observe display turns off.
Change-Id: Ifa407b84760fc299fbbcfa92d9e942e0093c4b73

7 years agoAOD: Refactor doze brigthness controllers, add AOD auto brightness support
Adrian Roos [Sat, 27 May 2017 01:40:09 +0000 (18:40 -0700)]
AOD: Refactor doze brigthness controllers, add AOD auto brightness support

- Factor out doze brightness and screen state controllers
- Add support for setting the screen brightness from a
  sensor in AOD / when pulsing
- Refactor FakeSensorManager for generic sensors, add a light sensor

Bug: 38354633
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeScreenTest.java
Change-Id: I55f2bee253cee23a76ba857ba1f19052ff88a753

7 years agoAlways run Virtual Display when in a BootsToVR device.
Santos Cordon [Wed, 21 Jun 2017 23:03:49 +0000 (16:03 -0700)]
Always run Virtual Display when in a BootsToVR device.

This CL:
1) Moved initialization of the virtual display adapter to happen along
side the default display.  On standalone VR devices, a virtual display
is used as the main display for 2D UI so it is necessary that the virtual
display system is ready after PHASE_WAIT_FOR_DEFAULT_DISPLAY.
2) Add knowledge of bootsToVr in Vr2dDisplay, indicating that the device
is a standalone device that boots into VR. This forces Vr2dDisplay to
create the virtualDisplay at PHASE_SYSTEM_SERVICES_READY and never
destroy it (so that the activity stack doesn't go away).
3) Add tests to ensure default display and virtual display startup
sequence doesn't change.

Change-Id: Ie748771abd0b115db3c65a66a4b7a98dd1b28f2e
Bug:62842592
Test: Start a polaris device for first time, ensure SUW runs with
Virtual display dimentions.
Test: DisplayManagerServiceTest.java

7 years agoDon't show multi-user in QS unless it has been activated before
Jason Monk [Fri, 30 Jun 2017 15:31:03 +0000 (11:31 -0400)]
Don't show multi-user in QS unless it has been activated before

Like adding another user or activating a guest at some point.

Test: manual
Bug: 37152893
Change-Id: Ifeadeb8e7f021c4854aa74b71ffb6bed116c9c0f

7 years agoQS: Move auto-add state to settings provider
Jason Monk [Fri, 30 Jun 2017 14:28:18 +0000 (10:28 -0400)]
QS: Move auto-add state to settings provider

And back it up.

Test: runtest systemui
Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3
Fixes: 62667758

7 years agoMerge "Fix test failure" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 15:15:40 +0000 (15:15 +0000)]
Merge "Fix test failure" into oc-dr1-dev

7 years agoMerge "AOD: avoid flicker when turning off screen" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 14:31:33 +0000 (14:31 +0000)]
Merge "AOD: avoid flicker when turning off screen" into oc-dr1-dev

7 years agoUpdate Landscape <-> Autorotate QS animations
Evan Laird [Fri, 30 Jun 2017 14:18:34 +0000 (10:18 -0400)]
Update Landscape <-> Autorotate QS animations

Now with rounded edges!

Test: visual
Bug: 62386498
Change-Id: If66764c3f9723fcb89629e668d48b06ab8329808

7 years agoAOD: Avoid double re-registration of sensors
Adrian Roos [Fri, 30 Jun 2017 14:15:22 +0000 (16:15 +0200)]
AOD: Avoid double re-registration of sensors

Bug: 62940557
Test: adb shell setprop log.tag.DozeService DEBUG; adb kill `pid systemui`; adb logcat -s DozeSensors, verify sensors are only reregistered, not registered, unregistered and reregistered after unpausing AOD
Change-Id: I362eca377ec67e986c7aef8ad81ce261a6f3fd68

7 years agoAOD: Ensure dark amount is set after reinflating
Adrian Roos [Fri, 30 Jun 2017 13:49:57 +0000 (15:49 +0200)]
AOD: Ensure dark amount is set after reinflating

Change-Id: I04437fb282db4bbbe81a3bf5267d081f19b49cae
Fixes: 62970437
Test: change wallpaper while device is on AOD, ensure date is not visible

7 years agoAlways send configuration to client from resize and relayout.
Bryce Lee [Thu, 29 Jun 2017 21:03:33 +0000 (14:03 -0700)]
Always send configuration to client from resize and relayout.

Previously, the server side would omit reporting new configurations
during resize and relayout if the current configuration matched the
last reported. However, if the last reported came through a resize,
the client side handling would be enqueued as a Handler message. This
leads to the possibility of the client getting a new window frame but
not a new configuration where this is synchronously handled, such as
ViewRootImpl::performTraversals.

To address this issue, we now always send the current configuration
from the server to the client. The client then identifies changes
against its own record of last reported configuration and updates as
appropriate.

This changelist also adds a call to force window relayout during
updateConfiguration, as it's possible this is called after
performTraversals is called or resize is handled, leading to a stale
window frame.

Bug: 24671393
Test: go/wm-smoke
Test: Open Camera while rotating phone to landscape. Added
      temporary logs to detect inconsistencies between measurements
      and reported rotation on draw.

Change-Id: I0d5143dfe80400f6a43ce710750f9fc9d4b93f74

7 years agoFix test failure
Jason Monk [Fri, 30 Jun 2017 13:10:01 +0000 (09:10 -0400)]
Fix test failure

Was the result of 2 CLs merging at the same time that affect the
test.

Test: runtest systemui
Change-Id: I622a9f7163aa5f9830ef9acb90f1bfb3e5f3df5f
Fixes: 63098063

7 years agoSupport battery level reporting via Apple VSC (1/2)
Jack He [Wed, 21 Jun 2017 00:09:47 +0000 (17:09 -0700)]
Support battery level reporting via Apple VSC (1/2)

* Add related constants to BluetoothHeadset

Bug: 35874078
Test: make, test with supporting headsets
Change-Id: I9f49ea28efdf6de0e751a377d879fe13a47655d5
Merged-In: I9f49ea28efdf6de0e751a377d879fe13a47655d5
(cherry picked from commit 679d0bc8f99145d70af0c8006d807b55110fe3b5)

7 years agoSupport battery level reporting via Plantronics XEVENT (1/2)
Jack He [Wed, 21 Jun 2017 00:07:40 +0000 (17:07 -0700)]
Support battery level reporting via Plantronics XEVENT (1/2)

* Add related constants to BluetoothHeadset

Bug: 35874078
Test: make, test with supporting headsets
Change-Id: Ied089a065bf9caa0d03f681950fefa2ea990bb3e
Merged-In: Ied089a065bf9caa0d03f681950fefa2ea990bb3e
(cherry picked from commit 0fcbba25b7ac7fd59367c8c9ba3080a3e6ade934)

7 years agoImproved Text transformations for notifications
Selim Cinek [Thu, 29 Jun 2017 15:21:31 +0000 (17:21 +0200)]
Improved Text transformations for notifications

Notifications with different text sizes can now properly transform
into each other using view scaling. This improves the transition
for min priority notifications.

Test: manual, expand min priority notification, observe smooth transformation
Change-Id: Icc8efa8521e6a5346607f0ca330e1bc519dbb345
Fixes: 38397448