OSDN Git Service
Mihai Popa [Mon, 30 Apr 2018 18:08:57 +0000 (19:08 +0100)]
[Magnifier-43] Refactor to remove code duplication
Since Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e, the magnifier can be
the child of a diffent surface than the one its content is copied from.
This initially led to much code duplication accross different methods,
making the code quite difficult to understand. This CL performs a small
refactoring, removing some of the TODOs and making the code a bit
cleaner.
Bug:
78876353
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ifa26f94ba2e4983446f058f016af6010c1017ea7
Mihai Popa [Fri, 27 Apr 2018 15:32:44 +0000 (16:32 +0100)]
[Magnifier-42] Fix bug in window positioning
The position of the magnifier surface is always clamped inside its
parent surface. As of Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e, we are
always trying to make the magnifier surface a child of the main
application window, if possible (before, if the magnified view was a
SurfaceView, we were making the magnifier a child of the SurfaceView's
surface). However, the CL did not also update the clamping, continuing
to clamp to the SurfaceView space when the magnified view was a
SurfaceView (even if the magnifier was child of the main window). This
was making the magnifier window to be wrongly positioned on the screen
when the magnified view is a SurfaceView. The current CL fixes this.
Bug:
78876353
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I63f2b185f58e62e8ad6eadf788e641fb1de07b04
Mihai Popa [Fri, 27 Apr 2018 12:09:12 +0000 (13:09 +0100)]
[Magnifier-41] Fix behavior in windows with insets
The CL fixes the magnifier's behavior when its parent window has
positive insets in its surface:
- we compute the content copy coordinates sent to the pixel copy request
relative to the surface the content is copied from. We were clamping
them inside the visible region of the magnified view as returned by
belonging to the view which is magnified. However, the method returns
coordinates relative to the window. Therefore, the CL offsets the
visible rectangle with the window insets, to account for them.
Otherwise, when the insets were non-zero, on a text line we were
allowing the magnifier to display content from the left outside of the
text line, while a certain region at the end of the text line could have
never been magnified
- when clamping against the visible view region, when the surface we
copy from is a SurfaceView, #getGlobalVisibleRect is still returning
coordinates relative to the main window, whereas the coordinates we are
trying to clamp are relative to the surface of the SurfaceView. In order
to make the visible rectangle relative to the surface of the SurfaceView
instead, this CL negatively offsets the visible rectangle with the
SurfaceView position in the parent surface
- the selection/insertion handles are hidden when they overlap the
magnifier. To check this, we intersect the magnifier rectangle with the
rectangle of each handle. However, when we were performing this check,
the magnifier rectangle was relative to the surface, whereas the
handles' rectangle was relative to the main window. The CL negatively
offsets the magnifier position with the surface insets, to make both
rectangles relative to the window.
Bug:
78621162
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I0d749c1abb38520fe8fc477d22d6523f470e9abc
Mathew Inwood [Thu, 26 Apr 2018 14:04:44 +0000 (14:04 +0000)]
Merge "Add more API accesses from bugreports." 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
Mihai Popa [Thu, 26 Apr 2018 10:48:23 +0000 (10:48 +0000)]
Merge "[Magnifier-40] Always child of main window" into pi-dev
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
Erik Kline [Thu, 26 Apr 2018 07:29:45 +0000 (07:29 +0000)]
Merge "Fix CaptivePortalLoginActivity probes to bypass Private DNS" into pi-dev
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)
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
Yu-Han Yang [Thu, 26 Apr 2018 01:31:51 +0000 (01:31 +0000)]
Merge "Refactor GnssMeasurementsProvider" 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
TreeHugger Robot [Wed, 25 Apr 2018 23:37:43 +0000 (23:37 +0000)]
Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev
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
TreeHugger Robot [Wed, 25 Apr 2018 23:31:25 +0000 (23:31 +0000)]
Merge "Revert "Edit dnd icon in volume dialog"" 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
TreeHugger Robot [Wed, 25 Apr 2018 20:13:37 +0000 (20:13 +0000)]
Merge "Fix floating toolbar menu item spacing." into pi-dev
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
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
Jorim Jaggi [Wed, 25 Apr 2018 19:20:58 +0000 (19:20 +0000)]
Merge "Flip task animation direction" 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
TreeHugger Robot [Wed, 25 Apr 2018 18:43:03 +0000 (18:43 +0000)]
Merge "Always copy SignalIconState when keeping a reference" 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
TreeHugger Robot [Wed, 25 Apr 2018 18:09:58 +0000 (18:09 +0000)]
Merge "Update comment for b/
75318890 TODO" into pi-dev
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
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
Phil Weaver [Wed, 25 Apr 2018 17:35:28 +0000 (17:35 +0000)]
Merge "Add config value for fingerprint gesture support" 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
Phil Weaver [Wed, 25 Apr 2018 17:34:27 +0000 (17:34 +0000)]
Merge "A11y isHeading takes old API into account" into pi-dev
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
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
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
TreeHugger Robot [Wed, 25 Apr 2018 16:56:37 +0000 (16:56 +0000)]
Merge "Ellipsize long QS labels." into pi-dev
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
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
TreeHugger Robot [Wed, 25 Apr 2018 15:29:07 +0000 (15:29 +0000)]
Merge "Keyguard: fix possible divergent state" into pi-dev
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
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
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
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
Chavi Weingarten [Wed, 25 Apr 2018 14:44:17 +0000 (14:44 +0000)]
Merge "Synchronize RootWindowContainerTests" 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
David Brazdil [Wed, 25 Apr 2018 13:59:20 +0000 (13:59 +0000)]
Merge "Add new hidden APIs" 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
Wale Ogunwale [Wed, 25 Apr 2018 13:15:07 +0000 (13:15 +0000)]
Merge "Added OWNERS file to am package." into pi-dev
David Brazdil [Wed, 25 Apr 2018 10:49:16 +0000 (11:49 +0100)]
Add new hidden APIs
Bug:
78552452
Test: make
Change-Id: I73dc97a33b645f6cd9b7bf4a37254737ed3107ce
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
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
TreeHugger Robot [Wed, 25 Apr 2018 09:54:06 +0000 (09:54 +0000)]
Merge "New 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
TreeHugger Robot [Wed, 25 Apr 2018 09:41:41 +0000 (09:41 +0000)]
Merge "Add more light grey APIs." 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
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
Nicolas Geoffray [Tue, 24 Apr 2018 12:44:11 +0000 (13:44 +0100)]
More light grey APIs.
bug:
78436346
Test: m
Change-Id: I8bff5332abc93d49170c77fabb589bbcfa9249b6
Nicolas Geoffray [Tue, 24 Apr 2018 13:02:02 +0000 (14:02 +0100)]
New light grey APIs.
bug:
78471731
Test: m
Change-Id: I52f34f735873de485a73169f1ebbffe9484d0fb7
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
Yu-Han Yang [Wed, 25 Apr 2018 03:55:08 +0000 (03:55 +0000)]
Merge "Refactor GnssGeofenceProvider" 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
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
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
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
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
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
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
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
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
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
Lorenzo Colitti [Tue, 24 Apr 2018 21:20:25 +0000 (21:20 +0000)]
Merge "Actually @hide unwanted capability methods." 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
Leon Scroggins [Tue, 24 Apr 2018 20:01:22 +0000 (20:01 +0000)]
Merge "Attach color space after performing a readback" 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
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
Ryan Mitchell [Tue, 24 Apr 2018 19:53:33 +0000 (19:53 +0000)]
Merge "RRO: Update target overlays after install" into pi-dev
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
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
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
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
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
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
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
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
TreeHugger Robot [Tue, 24 Apr 2018 17:35:22 +0000 (17:35 +0000)]
Merge "Move status bar accessibility title to pane" into pi-dev
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
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
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.
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
Mathew Inwood [Tue, 24 Apr 2018 16:32:17 +0000 (16:32 +0000)]
Merge "Add presubmit hook for hidden API lists." 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
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
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
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
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
TreeHugger Robot [Tue, 24 Apr 2018 13:34:10 +0000 (13:34 +0000)]
Merge "Add more hidden APIs to light greylist" 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
TreeHugger Robot [Tue, 24 Apr 2018 13:06:57 +0000 (13:06 +0000)]
Merge "Make password history hashing more secure" 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
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
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
TreeHugger Robot [Tue, 24 Apr 2018 12:12:53 +0000 (12:12 +0000)]
Merge "Check self permission in BackupManager#isBackupServiceActive" 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