OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Ensure backup doesn't reuse ack tokens nearby in time" into oc-dr1-dev
Christopher Tate [Fri, 21 Jul 2017 18:27:43 +0000 (18:27 +0000)]
Merge "Ensure backup doesn't reuse ack tokens nearby in time" into oc-dr1-dev
am: 672f578fd1

Change-Id: I110ab6b96ac3fd866ace40fbe47614e2ad73a787

6 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

6 years agoMerge "Unhide DelegateLastClassLoader." into oc-mr1-dev
Calin Juravle [Fri, 21 Jul 2017 17:58:49 +0000 (17:58 +0000)]
Merge "Unhide DelegateLastClassLoader." into oc-mr1-dev

6 years agoMerge "Unhide invalidateColors API" into oc-mr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 17:51:27 +0000 (17:51 +0000)]
Merge "Unhide invalidateColors API" into oc-mr1-dev

6 years agoMerge "Expose SubscriptionPlan API." into oc-mr1-dev
Jeff Sharkey [Fri, 21 Jul 2017 17:14:30 +0000 (17:14 +0000)]
Merge "Expose SubscriptionPlan API." into oc-mr1-dev

6 years agoMerge "Shutdown scrim opacity at 95%" into oc-dr1-dev
Lucas Dupin [Fri, 21 Jul 2017 16:44:30 +0000 (16:44 +0000)]
Merge "Shutdown scrim opacity at 95%" into oc-dr1-dev
am: 53ddffdf3a

Change-Id: Ibb7783661bdb4e37d6542071c158e7a486493b95

6 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

6 years agoMerge "Logging improvements for time zone updates" into oc-mr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 16:33:13 +0000 (16:33 +0000)]
Merge "Logging improvements for time zone updates" into oc-mr1-dev

6 years agoMerge "Fix snapshots for dialogs" into oc-dr1-dev
Jorim Jaggi [Fri, 21 Jul 2017 16:17:39 +0000 (16:17 +0000)]
Merge "Fix snapshots for dialogs" into oc-dr1-dev
am: 089d45de8f

Change-Id: I6429fcdc5c012f653143cb8b8161b8f1626293f9

6 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

6 years agoMerge "Add new bucket above high brightness for "sunlight"." into oc-dr1-dev
Michael Wright [Fri, 21 Jul 2017 15:38:47 +0000 (15:38 +0000)]
Merge "Add new bucket above high brightness for "sunlight"." into oc-dr1-dev
am: 5898d52184

Change-Id: I5bc6a34975e5b044122998a05ab573a9ed431ecd

6 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

6 years agoUnhide DelegateLastClassLoader.
Narayan Kamath [Thu, 20 Jul 2017 13:09:19 +0000 (14:09 +0100)]
Unhide DelegateLastClassLoader.

Tracks libcore change 0209ec7e3c608acc3f1b63413686a3391551dcd5.

Test: make update-api; make checkapi

Bug: 37966546
Change-Id: Idfc22eff5d8bb82690f99a73765dc58dc6fd99fe
(cherry picked from commit be0fc6e48ee0ef44472edcca09b472fb0c497eed)

6 years agoMerge "Add config to force display to transition to off after doze" into oc-dr1-dev
Michael Wright [Fri, 21 Jul 2017 15:00:18 +0000 (15:00 +0000)]
Merge "Add config to force display to transition to off after doze" into oc-dr1-dev
am: cb423e42b3

Change-Id: Ie643ec6a1c917aa2d9364dbc431121f19a8a7e31

6 years agoMerge "Flicker free screen-on from AOD" into oc-dr1-dev
Adrian Roos [Fri, 21 Jul 2017 14:59:11 +0000 (14:59 +0000)]
Merge "Flicker free screen-on from AOD" into oc-dr1-dev
am: 5f62026b4e

Change-Id: I70c0f6e119344358ef460c994adc6189d396400b

6 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

6 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

6 years agoMerge "Allow apps to downgrade importance in createNotificationChannel" into oc-mr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 14:02:59 +0000 (14:02 +0000)]
Merge "Allow apps to downgrade importance in createNotificationChannel" into oc-mr1-dev

6 years agoLogging improvements for time zone updates
Neil Fuller [Thu, 20 Jul 2017 10:00:35 +0000 (11:00 +0100)]
Logging improvements for time zone updates

Logging improvements for time zone updates:
1) Add EventLog entries time zone update service interactions.
2) Add more information to dumpsys logs to improve debugging.

Unit tests run with:

make -j30 FrameworksServicesTests
adb install -r -g \
  "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w \
  com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Bug: 31008728
Test: See above for unit testing.
Test: Internal xTS tests
Test: adb shell dumpsys timezone
Test: adb logcat -b events -v threadtime -v printable -v uid -d *:v
Change-Id: I9356f4694e60b49e4b06aadd632d1bad517b8a29
(cherry picked from commit d857f676744af55c79c4871c881bf9598f6b21e9)

6 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

6 years agoMerge "Fixing TaskPersisterTest" into oc-dr1-dev
Suprabh Shukla [Fri, 21 Jul 2017 09:34:47 +0000 (09:34 +0000)]
Merge "Fixing TaskPersisterTest" into oc-dr1-dev
am: 928aad3e4d

Change-Id: Id1796f42598f56a59beda381388448eefd6353cc

6 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

6 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

6 years agoMerge "Merge "Handle an edge case that can reset settings provider data" into oc...
Android Build Merger (Role) [Fri, 21 Jul 2017 05:16:27 +0000 (05:16 +0000)]
Merge "Merge "Handle an edge case that can reset settings provider data" into oc-dr1-dev am: 6b4f0bb6fe" into oc-mr1-dev

6 years agoMerge "Handle an edge case that can reset settings provider data" into oc-dr1-dev
Amith Yamasani [Fri, 21 Jul 2017 05:14:33 +0000 (05:14 +0000)]
Merge "Handle an edge case that can reset settings provider data" into oc-dr1-dev
am: 6b4f0bb6fe

Change-Id: I9c71705f57c65fc99da831f9ee382168f131937e

6 years agoMerge "[P2P] Public API to clean-up resources of P2P" into oc-mr1-dev
TreeHugger Robot [Fri, 21 Jul 2017 05:14:15 +0000 (05:14 +0000)]
Merge "[P2P] Public API to clean-up resources of P2P" into oc-mr1-dev

6 years agoMerge "NFC DTA Integration" into oc-dr1-dev
Love Khanna [Fri, 21 Jul 2017 05:08:25 +0000 (05:08 +0000)]
Merge "NFC DTA Integration" into oc-dr1-dev
am: f8469ccf17

Change-Id: I8acca990e6191360fc3f4f9c668f74d7a06d6a52

6 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

6 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

6 years agoMerge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev
Glen Kuhne [Fri, 21 Jul 2017 02:37:58 +0000 (02:37 +0000)]
Merge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev
am: 860f185c66

Change-Id: I9069d51fa6214d9b78c04eea6ab6adebff13ca2e

6 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

6 years agoMerge "Do not clear scores during stopTracking." into oc-dr1-dev
Sundeep Ghuman [Fri, 21 Jul 2017 01:02:07 +0000 (01:02 +0000)]
Merge "Do not clear scores during stopTracking." into oc-dr1-dev
am: 3b63aa79eb

Change-Id: I9c24f764d2f94baa183b62c253799a605f22390c

6 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

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

Change-Id: I77df82fb8fab936b4affaf57661a227eefcb06b3

6 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

6 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

6 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

6 years agoUnhide invalidateColors API
Lucas Dupin [Thu, 20 Jul 2017 00:32:26 +0000 (17:32 -0700)]
Unhide invalidateColors API

Live wallpapers should be able to report their colors
to have better integration with O-DR visual framework.

Test: make
Bug: 62490115
Change-Id: Id4a61245087a0c6530f56e474ce258ca9528becc
Fixes: 63585249

6 years agoMerge "Add new column user_editable to Carriers table in telephony db." into oc-dr1-dev
Amit Mahajan [Thu, 20 Jul 2017 20:59:52 +0000 (20:59 +0000)]
Merge "Add new column user_editable to Carriers table in telephony db." into oc-dr1-dev
am: 37a9991be9

Change-Id: I5b5499ed9528aab6718ffe325afe8f51265fd548

6 years agoExpose SubscriptionPlan API.
Jeff Sharkey [Thu, 20 Jul 2017 03:00:38 +0000 (21:00 -0600)]
Expose SubscriptionPlan API.

Clean up SubscriptionPlan, add docs, and expose as public API.

Deprecate older constants in CarrierConfigManager, and point users
towards new API.  (The goal of CarrierConfigManager is to express
key/value pairs that are identical for all users on a particular
carrier, not to configure details that vary between users.)

Since a CarrierService may itself not have access to the plan
details, allow them to "delegate" the capability to configure plans
to another package name.

Factor out new RecurrenceRule class which is used by both
NetworkPolicy and SubscriptionPlan internally.  Polish it to support
arbitrary periods, and continue to test it through NPMST.

Bug: 63391323
Test: bit FrameworksCoreTests:android.util.RecurrenceRuleTest
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Exempt-From-Owner-Approval: Bug 63673347
Change-Id: I93fae4a43e58e9e4c32f8bf345a257dcd607f088

6 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

6 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

6 years agoMerge "Clipping the last notification if it's in the shelf" into oc-dr1-dev
Selim Cinek [Thu, 20 Jul 2017 20:39:50 +0000 (20:39 +0000)]
Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev
am: 2ed613ca80

Change-Id: I68feaf8262bb23db08199bff874fc871cff1acfb

6 years agoMerge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev
Mady Mellor [Thu, 20 Jul 2017 20:28:01 +0000 (20:28 +0000)]
Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev
am: 0b8a985cd6

Change-Id: Ib8d76ea165032175be98e8c1023af6c973be1ee4

6 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

6 years agoMerge "Keyguard: Fix date and alarm clock letter spacing" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 20:18:08 +0000 (20:18 +0000)]
Merge "Keyguard: Fix date and alarm clock letter spacing" into oc-dr1-dev
am: 99cc683647

Change-Id: I37e31c0a9c252439488c2fe64becd5f70ee16c04

6 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

6 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

6 years agoMerge "Fixed a bug where shelf notifications were interactable" into oc-dr1-dev
Selim Cinek [Thu, 20 Jul 2017 19:16:50 +0000 (19:16 +0000)]
Merge "Fixed a bug where shelf notifications were interactable" into oc-dr1-dev
am: 91a6a10195

Change-Id: I7d7434afd13d4f6d6247c801dfa0551ef1b6b792

6 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

6 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

6 years agoMerge "Choose correct icon shade of grey" into oc-dr1-dev
Lucas Dupin [Thu, 20 Jul 2017 18:55:22 +0000 (18:55 +0000)]
Merge "Choose correct icon shade of grey" into oc-dr1-dev
am: 1f358f1885

Change-Id: I5e05e4a5b3fa4bc5a651b7a7a010dbee36300239

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

Change-Id: I59fd7563e1bb82def0e9321b6340c97e249bdcfc

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

Change-Id: Ia90d8c148df3055794f83cde5ef0a1f7501bdfe9

6 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

6 years agoMerge "Fixes issue where notification jumps when user is dragging and its updated...
Mady Mellor [Thu, 20 Jul 2017 18:34:40 +0000 (18:34 +0000)]
Merge "Fixes issue where notification jumps when user is dragging and its updated" into oc-dr1-dev
am: 58b0e698fc

Change-Id: I8fad3cd142cf0e064eacaebaba78f4e091bd9263

6 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

6 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

6 years agoMerge "Fix sound rate limiting issue" into oc-dr1-dev
Julia Reynolds [Thu, 20 Jul 2017 18:25:55 +0000 (18:25 +0000)]
Merge "Fix sound rate limiting issue" into oc-dr1-dev
am: 61913f178e

Change-Id: I0d3f100a55f3c8a9e2c0d2961e90065d453708ae

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 years agoAllow apps to downgrade importance in createNotificationChannel
Geoffrey Pitsch [Tue, 18 Jul 2017 15:44:06 +0000 (11:44 -0400)]
Allow apps to downgrade importance in createNotificationChannel

Only takes effect if the user has not changed any fields.
Some tangential cleanup of the test file:
 - Rename member variable "uid" to "mUid"
 - Use correct PKG instead of "test_pkg"
 - Some character limit fixes

Test: runtest systemui-notification
Fixes: 63755460
Change-Id: I3c2df0c03ec333f320ac7a0fe90792f1b0ef02ce

6 years agoMerge "AOD: Prevent animations and rotations while going to sleep" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 16:12:21 +0000 (16:12 +0000)]
Merge "AOD: Prevent animations and rotations while going to sleep" into oc-dr1-dev
am: 29119b6f5f

Change-Id: I5deca2c8224d629eadc18a7f7742c6f8d43b133d

6 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

6 years agoMerge "Fix owner info to be center-aligned" into oc-dr1-dev
Geoffrey Pitsch [Thu, 20 Jul 2017 15:58:15 +0000 (15:58 +0000)]
Merge "Fix owner info to be center-aligned" into oc-dr1-dev
am: 67c483fd12

Change-Id: I59bc4ac9f712da83df2ff31bc083f408949f727e

6 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

6 years agoMerge "Allow apps to downgrade importance in createNotificationChannel" into oc-dr1-dev
Geoffrey Pitsch [Thu, 20 Jul 2017 15:51:40 +0000 (15:51 +0000)]
Merge "Allow apps to downgrade importance in createNotificationChannel" into oc-dr1-dev
am: 3ca605e28c  -s ours

Change-Id: Iacd4376b1e1f665fb72ca6e4fd7b8cabff88dc7c

6 years agoMerge "AOD: Hide owner info on ambient display" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 15:38:06 +0000 (15:38 +0000)]
Merge "AOD: Hide owner info on ambient display" into oc-dr1-dev
am: 6c5ce43b39

Change-Id: I8bf76bd42a41055ec7e7b9352dce5577a381540c

6 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

6 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

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

Change-Id: Iff0d3dbea379e2e90a2cf7fc82675eac2c088e11

6 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

6 years agoKeyguard: only show after screen fully turned off
Adrian Roos [Thu, 20 Jul 2017 14:03:00 +0000 (14:03 +0000)]
Keyguard: only show after screen fully turned off
am: 4757c8ccf8

Change-Id: Iadb07f0e33b1de9d266a9cd91d606a72e94de704

6 years agoStatusBar: Switch status bar to using the new lifecycles
Adrian Roos [Thu, 20 Jul 2017 14:02:05 +0000 (14:02 +0000)]
StatusBar: Switch status bar to using the new lifecycles
am: 731d4dfe60

Change-Id: Iad1cea70608c9b2a48bd5e6308ad2e135dc0f720

6 years ago[P2P] Public API to clean-up resources of P2P
Etan Cohen [Thu, 6 Jul 2017 14:18:28 +0000 (07:18 -0700)]
[P2P] Public API to clean-up resources of P2P

1. Add public API to close a Channel and allow configuration to be
   cleaned-up. Actual clean-up will only happen when the last p2p
   client executes close or terminates (binder death is triggered
   for the service).
2. Add Close Guard to verify that API is called - issue warning
   otherwise. Note that to actually get the warning an app needs
   to use the StrictMode policy:

   StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
       .detectLeakedClosableObjects().build());

Bug: 37443149
Test: (new) unit tests, CtsVerifier, Settings/WFD app
Change-Id: I9590101ef7f7ba0a90812634ac1b931d1482fe72

6 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

6 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

6 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

6 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.

6 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

6 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

6 years agoMerge "Keyguard: Factor out Screen and Wakefulness lifecycles" into oc-dr1-dev
Adrian Roos [Thu, 20 Jul 2017 11:29:59 +0000 (11:29 +0000)]
Merge "Keyguard: Factor out Screen and Wakefulness lifecycles" into oc-dr1-dev
am: d3878b5e12

Change-Id: I11ddc51a8c71d22b5420def8a4c0f3f57954a081

6 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

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 20 Jul 2017 10:31:32 +0000 (10:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 57c60d3b8c  -s ours

Change-Id: I6bf7ec12c4e7d35322d4e53e8c0b6f60878e7b97

6 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

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 20 Jul 2017 10:01:39 +0000 (10:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 3f9462d6a3  -s ours

Change-Id: I67cf707cf9eb5184865edfea8535b81d413e0807

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 20 Jul 2017 09:59:43 +0000 (09:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 6564d7d123  -s ours

Change-Id: Iac082addbf3aa178053f4eb27a91d0b842646898

6 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

6 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

6 years agoDon't move stack to bottom when creating task at bottom
Wale Ogunwale [Thu, 20 Jul 2017 08:38:13 +0000 (08:38 +0000)]
Don't move stack to bottom when creating task at bottom
am: 8cee0336bb

Change-Id: I81914112fe2be1c3c69298d4cc5e9db302df618d

6 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)

6 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

6 years agoMerge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev am: acdcf37e4b
Jeff Davidson [Thu, 20 Jul 2017 04:38:28 +0000 (04:38 +0000)]
Merge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev am: acdcf37e4b
am: 10238e562a

Change-Id: If5106972654149f5cb53aedae45964397dcfb69d

6 years agoMerge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev
Jeff Davidson [Thu, 20 Jul 2017 04:32:21 +0000 (04:32 +0000)]
Merge "Revert disabling of eSIM wipes/retains." into oc-dr1-dev
am: acdcf37e4b

Change-Id: I10cc2501e38837f816c564716a6d157bc8f57ed6