OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdjust vol dnd icon layout width
Beverly [Thu, 26 Apr 2018 15:17:29 +0000 (11:17 -0400)]
Adjust vol dnd icon layout width

When only one volume row is visible, adjust the
width of the volume dnd icon FrameLayout so the
icon floats on the top right.  Icon was previously
inset by padding introcued by volume_dialog_rows minWidth
attribute.

Test: visual inspection (with 1+ streams)
Fixes: 78275139
Change-Id: I8f34ba21545823ac8431396696adb4e9347b40db

6 years agoMerge "QQS visual fixes." into pi-dev
TreeHugger Robot [Thu, 26 Apr 2018 14:16:29 +0000 (14:16 +0000)]
Merge "QQS visual fixes." into pi-dev

6 years agoMerge "Add more API accesses from bugreports." into pi-dev
Mathew Inwood [Thu, 26 Apr 2018 14:04:44 +0000 (14:04 +0000)]
Merge "Add more API accesses from bugreports." into pi-dev

6 years agoMerge "Pipe the user restriction to the admin dialog" into pi-dev
TreeHugger Robot [Thu, 26 Apr 2018 11:05:21 +0000 (11:05 +0000)]
Merge "Pipe the user restriction to the admin dialog" into pi-dev

6 years agoMerge "[Magnifier-40] Always child of main window" into pi-dev
Mihai Popa [Thu, 26 Apr 2018 10:48:23 +0000 (10:48 +0000)]
Merge "[Magnifier-40] Always child of main window" into pi-dev

6 years ago[Magnifier-40] Always child of main window
Mihai Popa [Mon, 16 Apr 2018 13:27:05 +0000 (14:27 +0100)]
[Magnifier-40] Always child of main window

Previously, we were making the magnifier surface a child of the main
window unless the magnified view was a SurfaceView, in which case we
were setting the SurfaceView to be the parent of the magnifier. In
Chrome, where the magnified views are usually SurfaceViews, this caused
the magnifier to be displayed underneath the omnibox, which was a
terrible user experience when trying to magnify the first lines of text
on a page. This was because the omnibox had a higher Z than the
SurfaceView, and therefore a higher Z than all children of the
SurfaceView (including the magnifier).

This CL sets the parent of the magnifier surface to be the main window's
surface when the magnified view is a SurfaceView as well. Therefore, the
magnifier becomes a sibling of the Chrome omnibox and, by giving the
magnifier a higher Z, it ends up being rendered on top.

Bug: 77926365
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e

6 years agoMerge "Fix CaptivePortalLoginActivity probes to bypass Private DNS" into pi-dev
Erik Kline [Thu, 26 Apr 2018 07:29:45 +0000 (07:29 +0000)]
Merge "Fix CaptivePortalLoginActivity probes to bypass Private DNS" into pi-dev

6 years agoFix CaptivePortalLoginActivity probes to bypass Private DNS
Erik Kline [Wed, 25 Apr 2018 08:27:28 +0000 (17:27 +0900)]
Fix CaptivePortalLoginActivity probes to bypass Private DNS

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual testing on captive portal networks
Bug: 64133961
Bug: 77140445
Bug: 78548486

Merged-In: I749e8b5dba3b4af9ecb82bfb558c6f0e664531a4
Merged-In: Ic76d55861f385d1aecd360adda7f10142d083a47
Change-Id: Idbc4d90eeec257b36c5f374d61dea4600a0f8ebb
(cherry picked from commit 848d842a3ad94720e1d70db3337048e9568bb9d6)

6 years agoMerge "Do not magnify if surface control is not set" into pi-dev
TreeHugger Robot [Thu, 26 Apr 2018 03:22:29 +0000 (03:22 +0000)]
Merge "Do not magnify if surface control is not set" into pi-dev

6 years agoMerge "Refactor GnssMeasurementsProvider" into pi-dev
Yu-Han Yang [Thu, 26 Apr 2018 01:31:51 +0000 (01:31 +0000)]
Merge "Refactor GnssMeasurementsProvider" into pi-dev

6 years agoMerge "Fix WTF in PendingIntentRecord.unregisterCancelListenerLocked()" into pi-dev
TreeHugger Robot [Thu, 26 Apr 2018 00:50:56 +0000 (00:50 +0000)]
Merge "Fix WTF in PendingIntentRecord.unregisterCancelListenerLocked()" into pi-dev

6 years agoMerge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 23:37:43 +0000 (23:37 +0000)]
Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev

6 years agoFix WTF in PendingIntentRecord.unregisterCancelListenerLocked()
Makoto Onuki [Wed, 25 Apr 2018 23:31:05 +0000 (16:31 -0700)]
Fix WTF in PendingIntentRecord.unregisterCancelListenerLocked()

It's possible that detachCancelListenersLocked() has just been called
when unregisterCancelListenerLocked() is called, so need a null check.

Change-Id: If4b18d713595b1cf1a29ba05a3736892b21931a4
Fixes: 78592185
Test: build

6 years agoMerge "Revert "Edit dnd icon in volume dialog"" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 23:31:25 +0000 (23:31 +0000)]
Merge "Revert "Edit dnd icon in volume dialog"" into pi-dev

6 years agoMerge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev
Dianne Hackborn [Wed, 25 Apr 2018 20:59:04 +0000 (20:59 +0000)]
Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev

6 years agoQQS visual fixes.
Amin Shaikh [Wed, 25 Apr 2018 18:48:13 +0000 (14:48 -0400)]
QQS visual fixes.

- Allow QQS header status icon / date view header to expand with larger
font sizes.
- Ensure alarm icon in QQS header does not show without the
corresponding alarm text.
- Fix QQS status bar, icons and QS tile margins.

Change-Id: Icf11fc5c581cb6d3254f6223ba4bcac2879c7f16
Fixes: 78571967
Fixes: 78536526
Fixes: 77123524
Test: visual

6 years agoMerge "Fix floating toolbar menu item spacing." into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 20:13:37 +0000 (20:13 +0000)]
Merge "Fix floating toolbar menu item spacing." into pi-dev

6 years agoRevert "Edit dnd icon in volume dialog"
Beverly Tai [Wed, 25 Apr 2018 18:53:08 +0000 (18:53 +0000)]
Revert "Edit dnd icon in volume dialog"

This reverts commit b36ef4eb5779a03c25d2fbeb283944f93e273583.

Bug: 78554550
Bug: 78275139
Reason for revert: Adds unnecessary spacing when there are multiple volume rows

Change-Id: I8f858b152f92418dce8f1088e892b758baaa2299

6 years agoMerge "Rounded corners can be different on top/bottom" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 19:37:37 +0000 (19:37 +0000)]
Merge "Rounded corners can be different on top/bottom" into pi-dev

6 years agoMerge "Flip task animation direction" into pi-dev
Jorim Jaggi [Wed, 25 Apr 2018 19:20:58 +0000 (19:20 +0000)]
Merge "Flip task animation direction" into pi-dev

6 years agoMerge "Revert "Reset SIM state if the subscription is no longer active."" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 18:55:03 +0000 (18:55 +0000)]
Merge "Revert "Reset SIM state if the subscription is no longer active."" into pi-dev

6 years agoMerge "Always copy SignalIconState when keeping a reference" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 18:43:03 +0000 (18:43 +0000)]
Merge "Always copy SignalIconState when keeping a reference" into pi-dev

6 years agoMerge "Rework Exception Handling for IpSecManager" into pi-dev
Nathan Harold [Wed, 25 Apr 2018 18:34:10 +0000 (18:34 +0000)]
Merge "Rework Exception Handling for IpSecManager" into pi-dev

6 years agoMerge "Update comment for b/75318890 TODO" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 18:09:58 +0000 (18:09 +0000)]
Merge "Update comment for b/75318890 TODO" into pi-dev

6 years agoRounded corners can be different on top/bottom
Beverly [Wed, 25 Apr 2018 13:19:05 +0000 (09:19 -0400)]
Rounded corners can be different on top/bottom

Test: manual, visual inspection
Bug: 75949920
Change-Id: I1e9a9df0767aa5235e67b752a19c8e4b32701ed1

6 years agoMerge "Temporarily allow StackView to use a canvas.clipRectUnion" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 17:36:47 +0000 (17:36 +0000)]
Merge "Temporarily allow StackView to use a canvas.clipRectUnion" into pi-dev

6 years agoMerge "Add config value for fingerprint gesture support" into pi-dev
Phil Weaver [Wed, 25 Apr 2018 17:35:28 +0000 (17:35 +0000)]
Merge "Add config value for fingerprint gesture support" into pi-dev

6 years agoMerge "Copy links to orginal text in a11y node info" into pi-dev
Phil Weaver [Wed, 25 Apr 2018 17:35:12 +0000 (17:35 +0000)]
Merge "Copy links to orginal text in a11y node info" into pi-dev

6 years agoMerge "A11y isHeading takes old API into account" into pi-dev
Phil Weaver [Wed, 25 Apr 2018 17:34:27 +0000 (17:34 +0000)]
Merge "A11y isHeading takes old API into account" into pi-dev

6 years agoRevert "Reset SIM state if the subscription is no longer active."
Richard Chou [Tue, 24 Apr 2018 03:48:59 +0000 (03:48 +0000)]
Revert "Reset SIM state if the subscription is no longer active."

This reverts commit b1b24e71f55de2bfa2cc8d0ff96ec0ac021e663d.

Reason for revert: This commit will cause side effects with Project Fi. It'd be too risky to solve this issue at the current stage of Android P. Revert first.

Bug: 77579824
Bug: 77702165
Change-Id: I07035a2854427021ac0bfaa9c696daabefe6fd64

6 years agoMerge "Revert "Reset SIM state if the subscription/slot is no longer active."" into...
TreeHugger Robot [Wed, 25 Apr 2018 17:12:20 +0000 (17:12 +0000)]
Merge "Revert "Reset SIM state if the subscription/slot is no longer active."" into pi-dev

6 years agoMerge "DO NOT MERGE Make "Want to start battery saver?" dialog better." into pi-dev
Makoto Onuki [Wed, 25 Apr 2018 16:58:20 +0000 (16:58 +0000)]
Merge "DO NOT MERGE Make "Want to start battery saver?" dialog better." into pi-dev

6 years agoMerge "Ellipsize long QS labels." into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 16:56:37 +0000 (16:56 +0000)]
Merge "Ellipsize long QS labels." into pi-dev

6 years agoUpdate comment for b/75318890 TODO
Ian Pedowitz [Wed, 25 Apr 2018 15:57:54 +0000 (08:57 -0700)]
Update comment for b/75318890 TODO

Bug: 77862563
Bug: 75318890
Test: N/A - comment change
(cherry picked from commit 2333f7cba65a0fc2036bcf0e0b2611ad114d17f7)

Change-Id: I52c9e37e4629d740cb04d552bc967d6b8ec5fba3
Merged-In: Ie48f1df394ccae5420a18260a4eaefe94d84497d

6 years agoAlways copy SignalIconState when keeping a reference
Evan Laird [Wed, 25 Apr 2018 01:11:15 +0000 (21:11 -0400)]
Always copy SignalIconState when keeping a reference

Defensively copy SignalIconState so that StatusBarWifiView and
StatusBarMobileView can properly detect changes to state.

Also don't do visibility changes if setting the same visibleState on
StatusBarWifiView.

Test: turn wifi on and off; verify that it goes away properly in status
bar
Fixes: 78353558
Fixes: 77738471
Fixes: 78050495
Fixes: 78163313

Change-Id: Ie9b9e05885c130c1ec6d6abb9d0567400df23e52

6 years agoMerge "Keyguard: fix possible divergent state" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 15:29:07 +0000 (15:29 +0000)]
Merge "Keyguard: fix possible divergent state" into pi-dev

6 years agoDO NOT MERGE Make "Want to start battery saver?" dialog better.
Makoto Onuki [Fri, 20 Apr 2018 21:04:50 +0000 (14:04 -0700)]
DO NOT MERGE Make "Want to start battery saver?" dialog better.

- Don't line-break in "Battery" (only in English)
- Add "Learn more" link.

Bug: 78261259

Test: Manual test with:
- adb shell dumpsys battery unplug
- adb shell settings delete secure low_power_warning_acknowledged
- Enable battery saver
- Make sure the link is clickable if a link is set.
- Make sure there's no "learn more" link if the link is not set in strings.xml

Change-Id: I83364f628dd596a4d50bf2aca4db7cbfe7cf4909

6 years agoAdd more API accesses from bugreports.
Mathew Inwood [Wed, 25 Apr 2018 15:21:03 +0000 (16:21 +0100)]
Add more API accesses from bugreports.

This includes APIs accessed by 'linking', but only those detected at
runtime (i.e. excluding dex2oat invocations).

Test: m
Bug: 77272253
Bug: 77533294
Bug: 77854069
Bug: 77912264
Bug: 77988118
Bug: 78265113
Bug: 78339426
Bug: 78370565
Bug: 78437948
Bug: 78438386
Bug: 78439315
Bug: 78441396
Bug: 78484047
Bug: 78484886
Bug: 78513977
Bug: 78515673
Bug: 78529635
Change-Id: I9f07b650f565562d43c50e0606ec52a37c797ce7

6 years agoMerge "Move brightness color conversion from SysUI to settingslib" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 15:07:31 +0000 (15:07 +0000)]
Merge "Move brightness color conversion from SysUI to settingslib" into pi-dev

6 years agoFix floating toolbar menu item spacing.
Abodunrinwa Toki [Wed, 25 Apr 2018 13:07:17 +0000 (14:07 +0100)]
Fix floating toolbar menu item spacing.

We mistakenly changed floating_toolbar_menu_button_side_padding in
I309c729eb842d9388066bfb43eb18f33dbfe10b8 where in fact what we
wanted to do was to just change the mIconTextSpacing.
This cl fixes that.

Change-Id: I1b940eb12d2948f8c167c3f37ed0eba105b9f5ce
Fixes: 74032743
Test: built, observed visual look
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest

6 years agoMerge "Synchronize RootWindowContainerTests" into pi-dev
Chavi Weingarten [Wed, 25 Apr 2018 14:44:17 +0000 (14:44 +0000)]
Merge "Synchronize RootWindowContainerTests" into pi-dev

6 years agoMerge "Potentially fix notification launch animation" into pi-dev
Jorim Jaggi [Wed, 25 Apr 2018 14:17:45 +0000 (14:17 +0000)]
Merge "Potentially fix notification launch animation" into pi-dev

6 years agoMerge "Add new hidden APIs" into pi-dev
David Brazdil [Wed, 25 Apr 2018 13:59:20 +0000 (13:59 +0000)]
Merge "Add new hidden APIs" into pi-dev

6 years agoMerge "Add more light greylist entries." into pi-dev
Mathew Inwood [Wed, 25 Apr 2018 13:41:44 +0000 (13:41 +0000)]
Merge "Add more light greylist entries." into pi-dev

6 years agoMerge "Added OWNERS file to am package." into pi-dev
Wale Ogunwale [Wed, 25 Apr 2018 13:15:07 +0000 (13:15 +0000)]
Merge "Added OWNERS file to am package." into pi-dev

6 years agoAdd new hidden APIs
David Brazdil [Wed, 25 Apr 2018 10:49:16 +0000 (11:49 +0100)]
Add new hidden APIs

Bug: 78552452
Test: make
Change-Id: I73dc97a33b645f6cd9b7bf4a37254737ed3107ce

6 years agoKeyguard: fix possible divergent state
Adrian Roos [Wed, 25 Apr 2018 12:01:11 +0000 (14:01 +0200)]
Keyguard: fix possible divergent state

Fixes an issue where the state in SystemUI and AM/WM could
get out of sync: If the keyguardGoingAway transition is
started and then later canceled by SystemUI, it never
tells AM that it canceled it.
This causes SystemUI to show itself in keyguard mode,
meanwhile AM/WM do not hide the underlying app because
the status bar is in the going away transition as far
as it is concerned.

Change-Id: I5966f0655fd694ae599a83dda7a9f6463088632b
Fixes: 76367931
Test: delay keyguard going away callback, unlock phone, during the delay, remove SIM; verify it does not end up in bad state

6 years agoPipe the user restriction to the admin dialog
Tony Mak [Tue, 24 Apr 2018 14:30:37 +0000 (15:30 +0100)]
Pipe the user restriction to the admin dialog

This change allows us to show different strings for different user
restriction.

Instead of setting DevicePolicyManager.EXTRA_RESTRICTION everywhere
in Settings, EnforcedAdmin object now stores the restriction. So when
we are starting the admin dialog with the EnforcedAdmin object,
we can set the EXTRA_RESTRICTION bit.

Test: make  RunSettingsLibRoboTests
Bug: 78443458

Change-Id: Iabc1629b9ed18f881cdc8c15ec5e49a4b50f76a4

6 years agoMerge "New light grey APIs." into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 09:54:06 +0000 (09:54 +0000)]
Merge "New light grey APIs." into pi-dev

6 years agoMerge "More light grey APIs." into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 09:51:04 +0000 (09:51 +0000)]
Merge "More light grey APIs." into pi-dev

6 years agoMerge "Add more light grey APIs." into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 09:41:41 +0000 (09:41 +0000)]
Merge "Add more light grey APIs." into pi-dev

6 years agoMerge "Remove unnecessary WTFs from password state check" into pi-dev
Eran Messeri [Wed, 25 Apr 2018 09:28:15 +0000 (09:28 +0000)]
Merge "Remove unnecessary WTFs from password state check" into pi-dev

6 years agoAdd more light grey APIs.
Nicolas Geoffray [Tue, 24 Apr 2018 12:26:45 +0000 (13:26 +0100)]
Add more light grey APIs.

bug: 64382372
Test: m
Change-Id: Ib15b65c376e4038232d4c1e04d10e508b34786af

6 years agoMore light grey APIs.
Nicolas Geoffray [Tue, 24 Apr 2018 12:44:11 +0000 (13:44 +0100)]
More light grey APIs.

bug: 78436346
Test: m
Change-Id: I8bff5332abc93d49170c77fabb589bbcfa9249b6

6 years agoNew light grey APIs.
Nicolas Geoffray [Tue, 24 Apr 2018 13:02:02 +0000 (14:02 +0100)]
New light grey APIs.

bug: 78471731
Test: m
Change-Id: I52f34f735873de485a73169f1ebbffe9484d0fb7

6 years agoRefactor GnssMeasurementsProvider
Yu-Han Yang [Mon, 23 Apr 2018 08:40:25 +0000 (01:40 -0700)]
Refactor GnssMeasurementsProvider

Bug: 77974102
Change-Id: I9d993bd7a4a32ab2eef293c0efae3109348e7577
Fixes: 77974102
Test: m -j ROBOTEST_FILTER=GnssMeasurementsProviderTest RunFrameworksServicesRoboTests

6 years agoMerge "Refactor GnssGeofenceProvider" into pi-dev
Yu-Han Yang [Wed, 25 Apr 2018 03:55:08 +0000 (03:55 +0000)]
Merge "Refactor GnssGeofenceProvider" into pi-dev

6 years agoMerge "Extract interface for the TemperatureView" into pi-dev
TreeHugger Robot [Wed, 25 Apr 2018 03:37:46 +0000 (03:37 +0000)]
Merge "Extract interface for the TemperatureView" into pi-dev

6 years agoRework Exception Handling for IpSecManager
Nathan Harold [Tue, 3 Apr 2018 23:13:19 +0000 (16:13 -0700)]
Rework Exception Handling for IpSecManager

In order to properly support EOPNOTSUPP this CL
applies a consistent approach to handling Exceptions.
Hereafter, all exceptions that aren't of a special
method-specific type (such as SpiUnavailableException)
will all be returned to the calling process unchanged.
At the API call site, the ServiceSpecificException,
which is really an Errno, will be inspected and either
converted to an unchecked exception for types we know,
or it will be converted to an IOException in cases where
that method can return a checked exception. In cases
where we do not expect an errno, we will simply throw
a generic RuntimeException. This means all API calls
will now properly throw UnsupportedOperationException
and may be CTS tested accordingly.

Bug: 72420898
Test: runtest frameworks-net
Change-Id: I4a00e221618896223fcdb4b4279fb14cd14e34d8

6 years agoAdded OWNERS file to am package.
Wale Ogunwale [Tue, 24 Apr 2018 19:51:03 +0000 (12:51 -0700)]
Added OWNERS file to am package.

Why? Because I don't want to worry about things like ag/3760423

Test: N/A
Bug: 0
Change-Id: I96c38d8dfbb8ac5d530251de90acc8499f851075

6 years agoMerge "Revert "Revert "Remove the OEM hook implementation and usage""" into pi-dev
Shuo Qian [Tue, 24 Apr 2018 23:54:10 +0000 (23:54 +0000)]
Merge "Revert "Revert "Remove the OEM hook implementation and usage""" into pi-dev

6 years agoRevert "Revert "Remove the OEM hook implementation and usage""
Robert Greenwalt [Tue, 24 Apr 2018 00:33:24 +0000 (00:33 +0000)]
Revert "Revert "Remove the OEM hook implementation and usage""

This reverts commit 7cfc5cda2f2a382a3eabd1c5382c412f2d1dedcf.

Reason for revert: Causes a critical error on Cuttlefish.

Bug: 78299964

Change-Id: Icb06aea5eb42fd156a967c4d4e39aefc51d91cf4

6 years agoWork on issue #78480444: Start tracking uid state in app ops
Dianne Hackborn [Tue, 24 Apr 2018 00:38:09 +0000 (17:38 -0700)]
Work on issue #78480444: Start tracking uid state in app ops

We now push uid states down from activity manager in to app
ops, and it uses them to keep track of access/reject times for
each uid/package at the various states.

Bug: 78480444
Test: manual
Change-Id: Ia0bc9174b60b4bf0851834961cc48507a6a60951

6 years agoMerge "Allow for the lock screen to have a different set of nav buttons" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 23:01:43 +0000 (23:01 +0000)]
Merge "Allow for the lock screen to have a different set of nav buttons" into pi-dev

6 years agoSynchronize RootWindowContainerTests
chaviw [Tue, 24 Apr 2018 22:23:53 +0000 (15:23 -0700)]
Synchronize RootWindowContainerTests

There were a few failures that seem to be threading issues.
Specifically, IndexOutOfBounds within a for loop that was iterating the
size of the ArrayList and ArrayMap index failure. RootWindowContainerTests
calls into methods in WM that assume the WM lock is already held. Ensure
testSetDisplayOverrideConfigurationIfNeeded is synchronized.

Test: RootWindowContainerTests#testSetDisplayOverrideConfigurationIfNeeded
Change-Id: I5003fc4a59baae4990a1464dbbc85b0938312994
Fixes: 78349285

6 years agoMerge "Fix destruction of preserved surfaces for non app windows." into pi-dev
Rob Carr [Tue, 24 Apr 2018 22:32:14 +0000 (22:32 +0000)]
Merge "Fix destruction of preserved surfaces for non app windows." into pi-dev

6 years agoMerge "Don't call into AM finish-recents-animation while holding onto the WM lock...
Winson Chung [Tue, 24 Apr 2018 21:21:26 +0000 (21:21 +0000)]
Merge "Don't call into AM finish-recents-animation while holding onto the WM lock" into pi-dev

6 years agoMerge "Actually @hide unwanted capability methods." into pi-dev
Lorenzo Colitti [Tue, 24 Apr 2018 21:20:25 +0000 (21:20 +0000)]
Merge "Actually @hide unwanted capability methods." into pi-dev

6 years agoMerge "Added OWNERS file for wm package." into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 21:03:57 +0000 (21:03 +0000)]
Merge "Added OWNERS file for wm package." into pi-dev

6 years agoMerge "Attach color space after performing a readback" into pi-dev
Leon Scroggins [Tue, 24 Apr 2018 20:01:22 +0000 (20:01 +0000)]
Merge "Attach color space after performing a readback" into pi-dev

6 years agoMerge "Fix rounding of padding in NinePatchDrawable" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 19:58:53 +0000 (19:58 +0000)]
Merge "Fix rounding of padding in NinePatchDrawable" into pi-dev

6 years agoMerge "BluetoothManagerService: Add dumpsys logs for BLE_ON -> OFF" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 19:53:49 +0000 (19:53 +0000)]
Merge "BluetoothManagerService: Add dumpsys logs for BLE_ON -> OFF" into pi-dev

6 years agoMerge "RRO: Update target overlays after install" into pi-dev
Ryan Mitchell [Tue, 24 Apr 2018 19:53:33 +0000 (19:53 +0000)]
Merge "RRO: Update target overlays after install" into pi-dev

6 years agoAdded OWNERS file for wm package.
Wale Ogunwale [Tue, 24 Apr 2018 19:39:26 +0000 (12:39 -0700)]
Added OWNERS file for wm package.

Why? Because I don't want to worry about things like ag/3760423

Test: N/A
Bug: 0
Change-Id: I230b7e8aead53395da5c58aa27ed547cf06fb327

6 years agoAudioPlaybackConfiguration release/death: notify listeners
Jean-Michel Trivi [Tue, 24 Apr 2018 00:22:55 +0000 (17:22 -0700)]
AudioPlaybackConfiguration release/death: notify listeners

When a player dies or is released, dispatch an update to the
  AudioPlaybackConfiguration listeners.

Bug: 70195346
Test: atest AudioPlaybackConfiguration#testCallbackMediaPlayerRelease
Change-Id: Id0b62abb32879d3166da26f20a334d0447183ac0

6 years agoMerge "Don't automatically decline tracking jobs with met initial delays" into pi-dev
Chris Tate [Tue, 24 Apr 2018 19:25:23 +0000 (19:25 +0000)]
Merge "Don't automatically decline tracking jobs with met initial delays" into pi-dev

6 years agoAllow for the lock screen to have a different set of nav buttons
Brad Stenning [Sat, 14 Apr 2018 05:52:39 +0000 (22:52 -0700)]
Allow for the lock screen to have a different set of nav buttons

Bug:74446022

Test: Manually. Test by switching users that have PINs set

Change-Id: Id956b0cfe76eba82235b82080c755489bdf67938

6 years agoMove brightness color conversion from SysUI to settingslib
Fan Zhang [Tue, 24 Apr 2018 18:14:06 +0000 (11:14 -0700)]
Move brightness color conversion from SysUI to settingslib

The color space conversion logic in BrightnessController is also needed
by Settings app to display brightness percentage correctly. This change
moves the conversion logic to settingslib so it can be shared by other
UIs such as Settings/VrSettings.

Bug: 73810208
Test: atest RunSettingsLibRoboTests
Change-Id: If92f0da2d930fec797902b5d1b3731100e1d0ea4

6 years agoEllipsize long QS labels.
Amin Shaikh [Tue, 24 Apr 2018 18:44:45 +0000 (14:44 -0400)]
Ellipsize long QS labels.

Since marqueeing only works when a TextView is a single line, make the
label a single line if the layout would otherwise require 3+ lines.

Change-Id: Ib1f47145e01696b01cdce893fe96eca8fbe2ff99
Fixes: 78345638
Test: visual

6 years agoRemove unnecessary WTFs from password state check
Eran Messeri [Mon, 23 Apr 2018 15:06:04 +0000 (16:06 +0100)]
Remove unnecessary WTFs from password state check

It is possible to have null PasswordMetrics object for a given user -
if, for example, the user never had a password set.

Do not WTF in that case.

Bug: 78191197
Test: That it compiles.
Change-Id: I807c2755890b0772e295b4cb0095cac1bf2d0aef

6 years agoMerge "Use log.wtf on debug devices if property cannot be set" into pi-dev
Fyodor Kupolov [Tue, 24 Apr 2018 17:37:31 +0000 (17:37 +0000)]
Merge "Use log.wtf on debug devices if property cannot be set" into pi-dev

6 years agoMerge "Move status bar accessibility title to pane" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 17:35:22 +0000 (17:35 +0000)]
Merge "Move status bar accessibility title to pane" into pi-dev

6 years agoCopy links to orginal text in a11y node info
Phil Weaver [Tue, 24 Apr 2018 17:13:12 +0000 (10:13 -0700)]
Copy links to orginal text in a11y node info

Not doing this copy results in us keeping
mOriginalText around. That is a CharSequence that
can contains Spans that reference other Views and
other expensive stuff.

Fixes: 78511639
Fixes: 75602764

Test: make
Change-Id: I977646311167f8d13e1c4a5c8fc38372e6d1ff3c

6 years agoMerge "config.xml: Add config flag for filtering DBS scans" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 17:06:09 +0000 (17:06 +0000)]
Merge "config.xml: Add config flag for filtering DBS scans" into pi-dev

6 years agoRRO: Update target overlays after install
Ryan Mitchell [Fri, 20 Apr 2018 01:02:14 +0000 (18:02 -0700)]
RRO: Update target overlays after install

Newly installed apps were not having the their set of enabled overlays
set correctly. This allows all newly installed packages to update their
set of enabled overlays in the package manager.

Bug: 77279210
Bug: 65319218
Change-Id: I82a10e96e9869bb6fc1ad00305ec4b6cfb17483b
Test: Manual validation of b/77279210 and duplicates. Also enabled a previously failing
PTS test in ag/3941515 within the same topic.

6 years agoMerge "Fix NPE when deciding whether to defer task stack animation." into pi-dev
Winson Chung [Tue, 24 Apr 2018 16:39:07 +0000 (16:39 +0000)]
Merge "Fix NPE when deciding whether to defer task stack animation." into pi-dev

6 years agoMerge "Add presubmit hook for hidden API lists." into pi-dev
Mathew Inwood [Tue, 24 Apr 2018 16:32:17 +0000 (16:32 +0000)]
Merge "Add presubmit hook for hidden API lists." into pi-dev

6 years agoMerge "pm: skip scan-as-privileged for OMR1 vendors" into pi-dev
Andrew Hsieh [Tue, 24 Apr 2018 16:05:23 +0000 (16:05 +0000)]
Merge "pm: skip scan-as-privileged for OMR1 vendors" into pi-dev

6 years agoAdd more light greylist entries.
Mathew Inwood [Tue, 24 Apr 2018 15:24:33 +0000 (16:24 +0100)]
Add more light greylist entries.

Scraped from bugreports by the compat bugbot module. See
go/hidden-api-colab for more details.

Test: m
Bug: 74410240
Bug: 77459362
Bug: 77927354
Bug: 78084664
Bug: 78371474
Bug: 78433404
Bug: 78436346
Bug: 78438386
Bug: 78467671
Bug: 78471731
Bug: 78483748
Bug: 78484047
Bug: 78485081
Change-Id: Ie79f892d5cdccef442944286cc718a079bc3031f

6 years agoPotentially fix notification launch animation
Jorim Jaggi [Tue, 24 Apr 2018 14:33:56 +0000 (16:33 +0200)]
Potentially fix notification launch animation

If we don't have something to animate, immediately finish
animation

Test: Open a couple of notifications
Bug: 77847366
Change-Id: I06c651b33a5ffb4ec236ba41f9db38b0125684dd

6 years agoAdd presubmit hook for hidden API lists.
Mathew Inwood [Mon, 23 Apr 2018 15:13:14 +0000 (16:13 +0100)]
Add presubmit hook for hidden API lists.

Check that they're sorted as expected and contain no duplicates.
The sort order now uses:
$ LC_COLLATE=C sort -f

So that non-alphanumeric characters are not ignored, giving a more
intuitive sort order. the '-f' means ignore case.

Also sort the existing lists accordingly.

Test: repo upload
Bug: 64382372
Merged-In: I52b884da33a9a46455df6747a215683d9d3c3218
Change-Id: I4cdd3bc5c11be91a9a3f678580af49ac67f3c968

6 years agoMerge "Keyguard: Don't lock when phone process crashes" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:40:45 +0000 (13:40 +0000)]
Merge "Keyguard: Don't lock when phone process crashes" into pi-dev

6 years agoMerge "Add more hidden APIs to light greylist" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:34:10 +0000 (13:34 +0000)]
Merge "Add more hidden APIs to light greylist" into pi-dev

6 years agoMerge "Edit dnd icon in volume dialog" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:34:05 +0000 (13:34 +0000)]
Merge "Edit dnd icon in volume dialog" into pi-dev

6 years agoMerge "Make password history hashing more secure" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:06:57 +0000 (13:06 +0000)]
Merge "Make password history hashing more secure" into pi-dev

6 years agoMerge "update wifi unit test script" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 12:45:34 +0000 (12:45 +0000)]
Merge "update wifi unit test script" into pi-dev

6 years agoFlip task animation direction
Jorim Jaggi [Tue, 24 Apr 2018 12:24:04 +0000 (14:24 +0200)]
Flip task animation direction

In order to be consistent with Recents order in Launcher.

Furthermore, we also make RTL consistent with Launcher order,
which is reversed in RTL.

Test: Compose email in Gmail
Test: Compose email in Gmail in RTL
Bug: 78231551
Change-Id: I3776b78703f8c81f768617f21d5850335a0b9788

6 years agoKeyguard: Don't lock when phone process crashes
Adrian Roos [Tue, 24 Apr 2018 12:21:39 +0000 (14:21 +0200)]
Keyguard: Don't lock when phone process crashes

Fixed an issue where the keyguard locked in response to the
phone process crashing. Since that's not avoidable for the
moment, don't treat unknown sim states as absent.

Bug: 78060670
Test: adb shell kill `pid com.android.phone`; verify that the phone did not lock
Change-Id: Ic5aa51d3b0521740b828d934c6653f8d5ae6380a

6 years agoMerge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 12:12:53 +0000 (12:12 +0000)]
Merge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev

6 years agoMerge "Only allow using PendingRemAnimRegistry on top launched activity" into pi-dev
Jorim Jaggi [Tue, 24 Apr 2018 11:32:02 +0000 (11:32 +0000)]
Merge "Only allow using PendingRemAnimRegistry on top launched activity" into pi-dev