OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "DO NOT MERGE - Don't 'cmd vibrate' when on DND mode." into oc-dr1-dev
TreeHugger Robot [Mon, 24 Jul 2017 20:08:31 +0000 (20:08 +0000)]
Merge "DO NOT MERGE - Don't 'cmd vibrate' when on DND mode." into oc-dr1-dev

7 years agoMerge "Ignore "mLastHidden" state when deciding whether to turnScreenOn." into oc...
TreeHugger Robot [Mon, 24 Jul 2017 20:04:02 +0000 (20:04 +0000)]
Merge "Ignore "mLastHidden" state when deciding whether to turnScreenOn." into oc-dr1-dev

7 years agoMerge "Use new, lower brightness value for low brightness doze." into oc-dr1-dev
TreeHugger Robot [Mon, 24 Jul 2017 15:16:24 +0000 (15:16 +0000)]
Merge "Use new, lower brightness value for low brightness doze." into oc-dr1-dev

7 years agoMerge "Remove reference to com.android.retaildemo" into oc-dr1-dev
Christine Franks [Mon, 24 Jul 2017 14:33:46 +0000 (14:33 +0000)]
Merge "Remove reference to com.android.retaildemo" into oc-dr1-dev

7 years agoRevert "Fix jank when switching themes"
Jorim Jaggi [Mon, 24 Jul 2017 13:51:41 +0000 (15:51 +0200)]
Revert "Fix jank when switching themes"

This reverts commit e5d0b9dddbcd8e6be7725a89b82fb990db2dade7.

Fixes crashloop with lock pattern

Change-Id: I3721444c91e2be625c59ec3e6ba14f1080badc07
Fixes: 63980375

7 years agoMerge "Remove non-safe mode boot vibration." into oc-dr1-dev
TreeHugger Robot [Mon, 24 Jul 2017 12:46:25 +0000 (12:46 +0000)]
Merge "Remove non-safe mode boot vibration." into oc-dr1-dev

7 years agoMerge "Removing contents hidden string for public notifications" into oc-dr1-dev
TreeHugger Robot [Sun, 23 Jul 2017 12:51:43 +0000 (12:51 +0000)]
Merge "Removing contents hidden string for public notifications" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 17:02:45 +0000 (17:02 +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, 22 Jul 2017 16:31:16 +0000 (16:31 +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, 22 Jul 2017 16:21:57 +0000 (16:21 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

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

Change-Id: I1670c714954e5835f6c79f446c463ee18d72d17b
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 22 Jul 2017 06:43:49 +0000 (23:43 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ida215c44df2fd5572b046d426bca7304947398bc
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Fix jank when switching themes" into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 04:46:19 +0000 (04:46 +0000)]
Merge "Fix jank when switching themes" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 22 Jul 2017 03:58:50 +0000 (20:58 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8c164681df192fe74083e69adf301a0f312dc144
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 03:31:53 +0000 (03:31 +0000)]
Merge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev

7 years agoRemove reference to com.android.retaildemo
Christine Franks [Tue, 27 Jun 2017 23:46:26 +0000 (16:46 -0700)]
Remove reference to com.android.retaildemo

Bug: 62712426
Test: runtest -c UserManagerTest frameworks-services
Change-Id: I26ca7e7dbf4ea44d2cb4a173072eac0037d75eca

7 years agoMerge "Persist/pacel # of periodic syncs properly." into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 00:45:24 +0000 (00:45 +0000)]
Merge "Persist/pacel # of periodic syncs properly." into oc-dr1-dev

7 years agoMove icon resources into SettingsLib for phone buddy
Matthew Fritze [Sat, 22 Jul 2017 00:33:00 +0000 (17:33 -0700)]
Move icon resources into SettingsLib for phone buddy

The external settings api needs to pass icons for
corresponding settings. The following signals didn't have
icons in Settings.
- Night display
- Location

Bug: 62706782
Test: make RunSettingsGoogleRoboTests
Change-Id: Ia2feaa9cfea7dbce165545e5b7d96ad0798b8e07

7 years agoMerge "Batterystats: fix inappropriate bg timebase reset" into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 00:35:10 +0000 (00:35 +0000)]
Merge "Batterystats: fix inappropriate bg timebase reset" into oc-dr1-dev

7 years agoMerge "Fix RemoteListenerHelper vs. HAL deadlock" into oc-dr1-dev
TreeHugger Robot [Sat, 22 Jul 2017 00:12:10 +0000 (00:12 +0000)]
Merge "Fix RemoteListenerHelper vs. HAL deadlock" into oc-dr1-dev

7 years agoMerge "Docs: Updates guidance about using permissions when accessing OBB expansion...
David Friedman [Fri, 21 Jul 2017 23:11:16 +0000 (23:11 +0000)]
Merge "Docs: Updates guidance about using permissions when accessing OBB expansion files, Bug: 34273998 Test: Ran "make" to verify error-free building." into oc-dev
am: e4d0557334

Change-Id: I931088e43f29707e1ab5d9764a06adbbe5af1d7e

7 years agoMerge "Docs: Updates guidance about using permissions when accessing OBB expansion...
David Friedman [Fri, 21 Jul 2017 23:01:56 +0000 (23:01 +0000)]
Merge "Docs: Updates guidance about using permissions when accessing OBB expansion files, Bug: 34273998 Test: Ran "make" to verify error-free building." into oc-dev

7 years agoMerge "Fix suggestion crash if parser fails to parse dismiss rule" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 22:59:13 +0000 (22:59 +0000)]
Merge "Fix suggestion crash if parser fails to parse dismiss rule" into oc-dr1-dev

7 years agoPersist/pacel # of periodic syncs properly.
Makoto Onuki [Fri, 21 Jul 2017 22:30:35 +0000 (15:30 -0700)]
Persist/pacel # of periodic syncs properly.

(Note it shouldn't be persisting parceled data in the first place.  There's
already a bug filed for that.)

Bug 63935632
Test: manaul test

Change-Id: I5385caa6cd0663c7e13db0256b2c1027abe6c3a1

7 years agoBatterystats: fix inappropriate bg timebase reset
Bookatz [Fri, 21 Jul 2017 16:03:23 +0000 (09:03 -0700)]
Batterystats: fix inappropriate bg timebase reset

Previously, the background timebases (of a Uid) were reset when the Uid
resets in the wrong place. This caused StopwatchTimer.reset() to have the timesbase's old value to keep
track of its mUpdateTime. The solution is to call TimeBase.init at the
start of Uid.reset(), instead of calling TimeBase.reset() at the end of
Uid.reset().

Bug: 62352334
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I23c886544e18f154fc226cc81c22c3ea70fb4c7e

7 years agoFix RemoteListenerHelper vs. HAL deadlock
Wyatt Riley [Mon, 3 Jul 2017 22:14:42 +0000 (15:14 -0700)]
Fix RemoteListenerHelper vs. HAL deadlock

Releasing lock before calling into HAL.

Fixes: 62776535
Bug: 63264577
Test: Build, GNSS location & GnssMeasurement toggling
Reproed issue with test sleep code without fix and passed with.

Change-Id: I44e183e98edd972619a068bbcc95468e9a9cdee1

7 years agoMerge "Update icons in the volume rocker" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 20:25:09 +0000 (20:25 +0000)]
Merge "Update icons in the volume rocker" into oc-dr1-dev

7 years agoFix suggestion crash if parser fails to parse dismiss rule
Fan Zhang [Fri, 21 Jul 2017 17:21:36 +0000 (10:21 -0700)]
Fix suggestion crash if parser fails to parse dismiss rule

We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Merged-In: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Change-Id: Ied4a0359f9bc22ee94ec79c0591d2671a9c31b86
Fix: 63908636
Test: robotests

7 years agoMerge "DO NOT MERGE - Remove RetailDemoModeService" into oc-dr1-dev
Christine Franks [Fri, 21 Jul 2017 18:53:16 +0000 (18:53 +0000)]
Merge "DO NOT MERGE - Remove RetailDemoModeService" into oc-dr1-dev

7 years agoMerge "Add modified API to send more information to VrCore" into oc-dr1-dev
Albert Chaulk [Fri, 21 Jul 2017 18:22:38 +0000 (18:22 +0000)]
Merge "Add modified API to send more information to VrCore" into oc-dr1-dev

7 years agoMerge "Ensure backup doesn't reuse ack tokens nearby in time" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 18:18:07 +0000 (18:18 +0000)]
Merge "Ensure backup doesn't reuse ack tokens nearby in time" into oc-dr1-dev

7 years agoRemove non-safe mode boot vibration.
Michael Wright [Fri, 21 Jul 2017 15:40:58 +0000 (16:40 +0100)]
Remove non-safe mode boot vibration.

Ding, dong the BZZZT is dead.

Bug: 22414771
Test: manual
Change-Id: I011a9b475a6497db6e9440647d6d5c60dcf171b7

7 years agoMerge "Shutdown scrim opacity at 95%" into oc-dr1-dev
Lucas Dupin [Fri, 21 Jul 2017 16:34:33 +0000 (16:34 +0000)]
Merge "Shutdown scrim opacity at 95%" into oc-dr1-dev

7 years agoMerge "Fix snapshots for dialogs" into oc-dr1-dev
Jorim Jaggi [Fri, 21 Jul 2017 16:10:52 +0000 (16:10 +0000)]
Merge "Fix snapshots for dialogs" into oc-dr1-dev

7 years agoDO NOT MERGE - Remove RetailDemoModeService
Christine Franks [Sat, 24 Jun 2017 01:12:46 +0000 (18:12 -0700)]
DO NOT MERGE - Remove RetailDemoModeService

Bug: 62712426
Test: make -j100
Change-Id: I483f2e3518a48fbc833562e71c3acd17ad565881
Merged-In: I483f2e3518a48fbc833562e71c3acd17ad565881

7 years agoMerge "Add new bucket above high brightness for "sunlight"." into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 15:30:42 +0000 (15:30 +0000)]
Merge "Add new bucket above high brightness for "sunlight"." into oc-dr1-dev

7 years agoMerge "Add config to force display to transition to off after doze" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 14:53:44 +0000 (14:53 +0000)]
Merge "Add config to force display to transition to off after doze" into oc-dr1-dev

7 years agoMerge "Flicker free screen-on from AOD" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 14:53:44 +0000 (14:53 +0000)]
Merge "Flicker free screen-on from AOD" into oc-dr1-dev

7 years agoFix snapshots for dialogs
Jorim Jaggi [Thu, 20 Jul 2017 16:09:20 +0000 (18:09 +0200)]
Fix snapshots for dialogs

When taking a snapshot, always include the full stack bounds.

When showing a snapshot starting window, use the SystemUI flags
from the top fullscreen window in the task - this is the same way
as we do it when the real windows are going to be visible.

Test: Revoke contacts permissions, launch contacts, go to recents,
go back.
Test: go/wm-smoke
Fixes: 63268663

Change-Id: If8d9701f6d34abd56116ed04fe27fe82688e506a

7 years agoMerge "Fixing TaskPersisterTest" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 09:28:52 +0000 (09:28 +0000)]
Merge "Fixing TaskPersisterTest" into oc-dr1-dev

7 years agoFlicker free screen-on from AOD
Adrian Roos [Wed, 19 Jul 2017 16:08:07 +0000 (18:08 +0200)]
Flicker free screen-on from AOD

When pulsing from AOD, we force the display OFF first. This allows
us to transition smoothly from AOD.

Also, we add a scrim transition for whenever we are waking up from
dozing. This relies on I4f3a863709a970f0fc8682c0a0c3547886e1fd0f
which forces the DOZE -> ON transition through OFF first.

Also fixes the WAKE_AND_UNLOCK transition that happens when waking
up with the fingerprint sensor.

Also fix an issue where KeyguardViewMediator's mWakeAndUnlocking
was cleared in onScreenTurnedOff; this should have been added to
the wakefulness lifecycle instead and now that the AOD -> ON transtion
dispatches the screen off callback it broke the fingerprint unlock
transition.

Fixes: 35849781
Fixes: 63887857
Fixes: 63783651
Fixes: 63727166
Test: AOD, receive notification; AOD, unlock with fingerprint; AOD, wake to lockscreen. Verify that everything is flicker-free.
Change-Id: I7d539db80a1c7e9216cf4c5c1e6d314c1893f12d

7 years agoFix jank when switching themes
Lucas Dupin [Mon, 17 Jul 2017 22:45:06 +0000 (15:45 -0700)]
Fix jank when switching themes

Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: I4b5db6234cafebbe8eaa952781c038370a11488b
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace

7 years agoMerge "Handle an edge case that can reset settings provider data" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 05:03:15 +0000 (05:03 +0000)]
Merge "Handle an edge case that can reset settings provider data" into oc-dr1-dev

7 years agoMerge "NFC DTA Integration" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 05:01:38 +0000 (05:01 +0000)]
Merge "NFC DTA Integration" into oc-dr1-dev

7 years agoMerge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 02:30:17 +0000 (02:30 +0000)]
Merge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev

7 years agoMerge "Do not clear scores during stopTracking." into oc-dr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 00:56:42 +0000 (00:56 +0000)]
Merge "Do not clear scores during stopTracking." into oc-dr1-dev

7 years agoMerge "Apply static offset to PiP IME adjustment." into oc-dr1-dev
Winson Chung [Fri, 21 Jul 2017 00:03:27 +0000 (00:03 +0000)]
Merge "Apply static offset to PiP IME adjustment." into oc-dr1-dev

7 years agoShutdown scrim opacity at 95%
Lucas Dupin [Thu, 20 Jul 2017 00:15:41 +0000 (17:15 -0700)]
Shutdown scrim opacity at 95%

Test: visual
Change-Id: I55b61f2bdc5189da290f7b81783925cc87424ab4
Fixes: 63534082

7 years agoNFC DTA Integration
Love Khanna [Wed, 17 May 2017 10:22:16 +0000 (15:52 +0530)]
NFC DTA Integration

Bug: 63903843
Test: compiles.
Change-Id: I07cbb321ffbdbe9d93d632c8a56f3bc53218e592

7 years agoRemoving contents hidden string for public notifications
Selim Cinek [Thu, 20 Jul 2017 21:06:09 +0000 (14:06 -0700)]
Removing contents hidden string for public notifications

We're now only showing the notification header instead of the
repetitive contents hidden string. On Aod, we're still showing
a string however, since without it, it looked too empty.

Test: manual, set sensitive setting on lockscreen, observe notifications
Change-Id: If2bb66b9b3b366715aa68087e5c35cf1cdff3693
Fixes: 63741232

7 years agoHandle an edge case that can reset settings provider data
Amith Yamasani [Wed, 19 Jul 2017 23:49:52 +0000 (16:49 -0700)]
Handle an edge case that can reset settings provider data

If the AtomicFile does the rename and fails when writing the
original, make sure we can at least use the backup on reboot.

Bug: 63753300
Test: Stop shell, move settings_global.xml to backup, start shell.
Change-Id: I2049b48af05161bb2c68717a71c1700a95150a6c

7 years agoMerge "Add new column user_editable to Carriers table in telephony db." into oc-dr1-dev
Amit Mahajan [Thu, 20 Jul 2017 20:47:17 +0000 (20:47 +0000)]
Merge "Add new column user_editable to Carriers table in telephony db." into oc-dr1-dev

7 years agoAdd modified API to send more information to VrCore
Albert Chaulk [Fri, 14 Jul 2017 16:32:57 +0000 (12:32 -0400)]
Add modified API to send more information to VrCore

Currently, null is sent when a 2D intent is running.
Sending the component name and a flag instead allows
VrCore to determine which intent is currently running
and which layers on the display correspond to this
application.

The process ID of the current intent is also sent,
to allow association of buffers to the VR app.

Bug: 6370904763115025
Test: manual with prints

Change-Id: I164b577f2c578867fb953d92074ef3d2d31221a1

7 years agoMerge "Clipping the last notification if it's in the shelf" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 20:27:35 +0000 (20:27 +0000)]
Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev

7 years agoMerge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 20:13:30 +0000 (20:13 +0000)]
Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev

7 years agoMerge "Keyguard: Fix date and alarm clock letter spacing" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 20:05:44 +0000 (20:05 +0000)]
Merge "Keyguard: Fix date and alarm clock letter spacing" into oc-dr1-dev

7 years agoDon't set AccessPoint with WifiInfo.INVALID_RSSI
Glen Kuhne [Wed, 19 Jul 2017 21:53:34 +0000 (14:53 -0700)]
Don't set AccessPoint with WifiInfo.INVALID_RSSI

This stops the RSSI of an AccessPoint object being updated from WifiInfo
for the current network, when that WifiInfo does not have a valid RSSI.
This occurs when attempting to connect to a network, and the connection
has not yet been established.
Fixes a UI bug where the signal strength would appear to be zero when
attempting to connect to something, or after failing to.

Bug: 63487286
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
Test: Manual. Attempt to connect to network with bad PSK. Observe Signal
strength does not get set to zero.

Change-Id: Ia5343fb6f0935134e6a4f82034de164342fe55d4

7 years agoMerge "Fixed a bug where shelf notifications were interactable" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 19:09:42 +0000 (19:09 +0000)]
Merge "Fixed a bug where shelf notifications were interactable" into oc-dr1-dev

7 years agoMerge "Choose correct icon shade of grey" into oc-dr1-dev
Lucas Dupin [Thu, 20 Jul 2017 18:36:50 +0000 (18:36 +0000)]
Merge "Choose correct icon shade of grey" into oc-dr1-dev

7 years agoMerge "Fix incorrect SV calculation in non-RT codepath." into oc-dr1-dev
Rob Carr [Thu, 20 Jul 2017 18:32:31 +0000 (18:32 +0000)]
Merge "Fix incorrect SV calculation in non-RT codepath." into oc-dr1-dev

7 years agoChoose correct icon shade of grey
Lucas Dupin [Tue, 18 Jul 2017 19:15:41 +0000 (12:15 -0700)]
Choose correct icon shade of grey

Status bar icons should pick colors from icon themes instead
of lock screen text colors.

Test: Visual
Change-Id: I0460ec38c8193f6311a47b4774357d8d3347a8d2
Fixes: 63618424

7 years agoMerge "Fix flicker when transiting activities without animation." into oc-dr1-dev
Rob Carr [Thu, 20 Jul 2017 18:23:25 +0000 (18:23 +0000)]
Merge "Fix flicker when transiting activities without animation." into oc-dr1-dev

7 years agoMerge "Fixes issue where notification jumps when user is dragging and its updated...
TreeHugger Robot [Thu, 20 Jul 2017 18:18:37 +0000 (18:18 +0000)]
Merge "Fixes issue where notification jumps when user is dragging and its updated" into oc-dr1-dev

7 years agoMerge "Fix sound rate limiting issue" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 18:04:02 +0000 (18:04 +0000)]
Merge "Fix sound rate limiting issue" into oc-dr1-dev

7 years agoEnsure backup doesn't reuse ack tokens nearby in time
Christopher Tate [Mon, 17 Jul 2017 23:23:02 +0000 (16:23 -0700)]
Ensure backup doesn't reuse ack tokens nearby in time

We've seen at least one incident in the field that suggests we
used the same identifying token in back to back operations, which
breaks certain invariants in the asynchronous-completion bookkeeping.
Harden against this by making sure that we don't reuse tokens in
nearby proximity.  This is done by making the low 8 bits a sequence
count, i.e. guaranteed unique within the last 256 operations, while
keeping the upper bits random so that apps can't guess at correct
tokens.

Fix 63691912
Fix 63553575
Test: CTS backup pass to completion plus manual inspection

Change-Id: I321c3a2b3f4203836800bb72db7332bd82e54aaf

7 years agoClipping the last notification if it's in the shelf
Selim Cinek [Thu, 20 Jul 2017 17:47:48 +0000 (10:47 -0700)]
Clipping the last notification if it's in the shelf

Before we were only clipping it to the bottom on the shelf,
but if we're already fully in the shelf (and made visible again
by another clause) then we still need to clip to the top.

Test: manual, observe normal clipping for last item
Change-Id: Ie1bc7afb78534bd89d771808eba8e02251d3a3cc
Fixes: 63264213

7 years agoKeyguard: Fix date and alarm clock letter spacing
Adrian Roos [Thu, 20 Jul 2017 17:38:28 +0000 (19:38 +0200)]
Keyguard: Fix date and alarm clock letter spacing

These used to be all-caps, but now that they are not
the letters are spaced too far apart.

Adjusting to mach the ownerText.

Change-Id: Icacc0c2018793e834dcaa316156215ec7d7ecf40
Fixes: 63891134
Test: visual

7 years agoAdd new bucket above high brightness for "sunlight".
Michael Wright [Thu, 20 Jul 2017 17:27:17 +0000 (18:27 +0100)]
Add new bucket above high brightness for "sunlight".

Being in direct sunlight can cause the screen to look like it's
"strobing", so we want to tell the kernel when we think we're in this
state so it can configure the display to avoid this effect.

Bug: 63820596
Test: TBD
Change-Id: Ie0b7a8d45d080231748337507d1037ab45950aed

7 years agoAdd config to force display to transition to off after doze
Michael Wright [Thu, 20 Jul 2017 17:18:33 +0000 (18:18 +0100)]
Add config to force display to transition to off after doze

Some display hardware can't do the transition from doze display states
to the on display state cleanly, so in order to hide any janky-ness of
the transition we force the display off and cover the screen with a
black surface. This lets us keep the screen black until SystemUI and the
display are both ready.

Bug: 63531607
Test: manual
Change-Id: I66bd483e5f01e1dbd5069465aa122828af5f1903

7 years agoMerge "AOD: Prevent animations and rotations while going to sleep" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 16:02:55 +0000 (16:02 +0000)]
Merge "AOD: Prevent animations and rotations while going to sleep" into oc-dr1-dev

7 years agoMerge "Fix owner info to be center-aligned" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 15:52:35 +0000 (15:52 +0000)]
Merge "Fix owner info to be center-aligned" into oc-dr1-dev

7 years agoMerge "Allow apps to downgrade importance in createNotificationChannel" into oc-dr1-dev
Geoffrey Pitsch [Thu, 20 Jul 2017 15:33:41 +0000 (15:33 +0000)]
Merge "Allow apps to downgrade importance in createNotificationChannel" into oc-dr1-dev

7 years agoUpdate icons in the volume rocker
Evan Laird [Thu, 20 Jul 2017 15:31:12 +0000 (11:31 -0400)]
Update icons in the volume rocker

- Media on/off
- Bt media on/off
- Alarms on/off
- Ringer on/vibrate
- Dnd and dnd total silence
- Phone with hilariously tiny bt icon next to it

Test: visual
Change-Id: Ib4652a851049555abb6a5f98026aa5d8808c8fb3
Fixes: 62387135

7 years agoMerge "AOD: Hide owner info on ambient display" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 15:28:05 +0000 (15:28 +0000)]
Merge "AOD: Hide owner info on ambient display" into oc-dr1-dev

7 years agoMerge "Docs-change: how UserManager.ENSURE_VERIFY_APPS affects profiles." into oc-dev
Benjamin Miller [Thu, 20 Jul 2017 14:05:31 +0000 (14:05 +0000)]
Merge "Docs-change: how UserManager.ENSURE_VERIFY_APPS affects profiles." into oc-dev
am: baa85250d4

Change-Id: I553b5b775cbdb42020405dfcc1b18032d4777597

7 years agoMerge "Docs-change: how UserManager.ENSURE_VERIFY_APPS affects profiles." into oc-dev
Benjamin Miller [Thu, 20 Jul 2017 13:58:15 +0000 (13:58 +0000)]
Merge "Docs-change: how UserManager.ENSURE_VERIFY_APPS affects profiles." into oc-dev

7 years agoAOD: Prevent animations and rotations while going to sleep
Adrian Roos [Wed, 19 Jul 2017 10:25:34 +0000 (12:25 +0200)]
AOD: Prevent animations and rotations while going to sleep

A recent change allowed animations while the screen is
turning on, but not fully turned on; this allows rotations
while the device is going to sleep though. To prevent that,
we now disallow animations if the device is going to sleep too.

In addition, we also prevent the rotation animation when the screen
is not fully on or non-interactive.

Change-Id: I9b84f68a02a07067e48b11c008bcaf4bcb7c41a0
Fixes: 63760853
Test: Turn phone to landscape on an app that can rotate. Press power button. Verify AOD shows without a rotation; go/wm-smoke

7 years agoFix sound rate limiting issue
Julia Reynolds [Thu, 20 Jul 2017 13:19:20 +0000 (09:19 -0400)]
Fix sound rate limiting issue

Don't count notifications that were muted by some other criteria
(like dnd or group alerting) against an app

Test: runtest systemui-notification
Change-Id: I9c94d342400306c2618c458e2ad530cd9373b3b8
Fixes: 63819441

7 years agoAOD: Hide owner info on ambient display
Adrian Roos [Thu, 20 Jul 2017 13:14:25 +0000 (15:14 +0200)]
AOD: Hide owner info on ambient display

Change-Id: Iea27b111b4025e2ad4b9cd0139f18f1653ca17dc
Fixes: 63800919
Test: Set a dark wallpaper, set owner info; go to AOD, verify that owner info is not visible.

7 years agoKeyguard: only show after screen fully turned off
Adrian Roos [Tue, 18 Jul 2017 13:50:41 +0000 (15:50 +0200)]
Keyguard: only show after screen fully turned off

Fixes an issue where the keyguard was displayed before the screen
was turned off fully, causing the AOD screen to briefly show during
the screen off animation.

Change-Id: Idc4621995bd67c1db255fab5a8de60d3aeef5d18
Fixes: 63526727
Test: Turn screen off. Make sure the AOD clock is not visible

7 years agoStatusBar: Switch status bar to using the new lifecycles
Adrian Roos [Tue, 18 Jul 2017 13:10:39 +0000 (15:10 +0200)]
StatusBar: Switch status bar to using the new lifecycles

Also removes some now unneeded cruft from StatusBarKeyguardViewManager.

Bug: 62446740
Test: Try unlocking phone with fingerprint and regularly from all kinds of states (AOD1, AOD2, non-AOD ambient display)
Change-Id: I3560615ce77f0c2ad9944832baaa568c300af9bb

7 years agoMerge "Keyguard: Factor out Screen and Wakefulness lifecycles" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 11:22:39 +0000 (11:22 +0000)]
Merge "Keyguard: Factor out Screen and Wakefulness lifecycles" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 10:20:21 +0000 (10:20 +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 [Thu, 20 Jul 2017 09:53:20 +0000 (09:53 +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 [Thu, 20 Jul 2017 09:48:53 +0000 (09:48 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoDon't move stack to bottom when creating task at bottom
Wale Ogunwale [Tue, 18 Jul 2017 13:33:01 +0000 (06:33 -0700)]
Don't move stack to bottom when creating task at bottom

When creating a task, only move the parents of the task if we are creating
the task at the top of the stack. i.e. creating the task at the top of its
stack will move the stack forward and creating the task at the bottom of
the stack shouldn't move the stack backwards. Creating a task at the bottom
is used for things like restoring a task from recents to use for other things
and for background user, so shouldn't affect visibility of its parent stack.

Change-Id: Ifcaf7c5a95294631dff675ac5c7d87f059b1792a
Fixes: 62352722
Test: go/wm-smoke
(cherry picked from commit 1f5b92fd53ad0193235ae3e6cbc54a4120ac2457)

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 20 Jul 2017 04:48:02 +0000 (21:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2ed6f707aa5196125419a43b85be6b9644364c24
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 04:24:50 +0000 (04:24 +0000)]
Merge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev

7 years agoPing the StatusBar about power key events.
Philip Quinn [Wed, 19 Jul 2017 06:23:41 +0000 (23:23 -0700)]
Ping the StatusBar about power key events.

Bug: 63183852
Test: runtest systemui

Change-Id: I5d8209396e3e761b404c1071a7004f34c6e6c927

7 years agoMerge "WifiInfo - document packet counters and rates" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 03:49:56 +0000 (03:49 +0000)]
Merge "WifiInfo - document packet counters and rates" into oc-dr1-dev

7 years agoMerge "Fix format of subsystem power stats" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 02:37:56 +0000 (02:37 +0000)]
Merge "Fix format of subsystem power stats" into oc-dr1-dev

7 years agoFixing TaskPersisterTest
Suprabh Shukla [Thu, 20 Jul 2017 01:44:18 +0000 (18:44 -0700)]
Fixing TaskPersisterTest

Test: runtest -x
tests/servicestests/src/com/android/server/am/TaskPersisterTest.java

Fixes: 63865929
Change-Id: Ia8e6e7622e3298ffb4efa054617e17aaa7b044fb

7 years agoExpose KeyguardMonitor.isOccluded().
Philip Quinn [Wed, 19 Jul 2017 08:15:56 +0000 (01:15 -0700)]
Expose KeyguardMonitor.isOccluded().

Bug: 63806767
Test: runtest systemui

Change-Id: I36b96974c7a27e31ddbc3e8cdddf2516cce87b21

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 20 Jul 2017 01:13:39 +0000 (18:13 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6f4be8da1bf25632b93d9ece8ae01dedeba2e568
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Add config_demoModePackage to symbols" into oc-dr1-dev
Christine Franks [Thu, 20 Jul 2017 01:04:51 +0000 (01:04 +0000)]
Merge "Add config_demoModePackage to symbols" into oc-dr1-dev

7 years agoMerge "proto: add system message descriptor for Wi-Fi wrong password notification...
TreeHugger Robot [Thu, 20 Jul 2017 00:46:05 +0000 (00:46 +0000)]
Merge "proto: add system message descriptor for Wi-Fi wrong password notification" into oc-dr1-dev

7 years agoFixed a bug where shelf notifications were interactable
Selim Cinek [Thu, 20 Jul 2017 00:39:20 +0000 (17:39 -0700)]
Fixed a bug where shelf notifications were interactable

Even if the notifications were clipped fully they were still
interactable and could be expanded into the shelf.
This could lead to weird scrolling positions and other things.

Test: manual, try expanding when qs is expanded
Change-Id: I764a20ba83b19ca9c9c2cb311a5abb9d272c6feb
Fixes: 62476893

7 years agoMerge "MediaRouter: Introduce and use getFallbackRoute method" into oc-dr1-dev
TreeHugger Robot [Thu, 20 Jul 2017 00:18:20 +0000 (00:18 +0000)]
Merge "MediaRouter: Introduce and use getFallbackRoute method" into oc-dr1-dev

7 years agoAdd config_demoModePackage to symbols
Christine Franks [Wed, 19 Jul 2017 22:41:34 +0000 (15:41 -0700)]
Add config_demoModePackage to symbols

Bug: 62712426
Test: make -j100
Change-Id: I95a398a74d273d0aa7639989a367e902b305fa6c

7 years agoRevert disabling of eSIM wipes/retains.
Jeff Davidson [Wed, 19 Jul 2017 23:55:45 +0000 (16:55 -0700)]
Revert disabling of eSIM wipes/retains.

This is a revert of change I414a16cde11e76ccc390e7a63a6803f5b402fe78.
As an additional safety latch, we bypass all logic (either wipe or
retain) if the eSIM has never been provisioned. An unprovisioned eSIM
cannot possibly have profiles - indeed, we don't show the "Wipe eSIM"
checkbox in this case - so there's no reason to tell the LPA to retain
them.

Bug: 63693573
Test: TreeHugger + factory reset local test
Change-Id: I1fea50db317388e81823bf1bd0977ffe787a05e0