OSDN Git Service
smain@google.com [Tue, 10 May 2016 01:48:11 +0000 (01:48 +0000)]
update the collections metadata for relocated studio pages. bug:
28632136 am:
8fb04c66c8 am:
6d18d5dc1f
am:
78ac696e6b
* commit '
78ac696e6b525b40d85c2699940da823198909ac':
update the collections metadata for relocated studio pages. bug:
28632136
Change-Id: I70e4f37404e639b8afd579dbea8aefb6f983ce50
smain@google.com [Tue, 10 May 2016 01:42:11 +0000 (01:42 +0000)]
update the collections metadata for relocated studio pages. bug:
28632136 am:
8fb04c66c8
am:
6d18d5dc1f
* commit '
6d18d5dc1f457661d798aef252391b67b71171f6':
update the collections metadata for relocated studio pages. bug:
28632136
Change-Id: I26feb5b6fc327378d32e878301fef95d32076902
smain@google.com [Tue, 10 May 2016 01:36:08 +0000 (01:36 +0000)]
update the collections metadata for relocated studio pages. bug:
28632136
am:
8fb04c66c8
* commit '
8fb04c66c8f51d39722a7b0be4f55812aac36270':
update the collections metadata for relocated studio pages. bug:
28632136
Change-Id: I606539247da364cf02ae9645e0b4ee7b5c7fbd77
TreeHugger Robot [Tue, 10 May 2016 01:23:35 +0000 (01:23 +0000)]
Merge "TIF: Handle possible memory leaks" into nyc-dev
smain@google.com [Mon, 9 May 2016 22:04:53 +0000 (15:04 -0700)]
update the collections metadata for relocated studio pages.
bug:
28632136
Change-Id: I3c858523751c8a58b8ad90c15ffd5400925ad4df
TreeHugger Robot [Tue, 10 May 2016 00:44:40 +0000 (00:44 +0000)]
Merge "Fixed bug with pop-up window placement at the bottom in split-screen" into nyc-dev
Carlos Valdivia [Tue, 10 May 2016 00:25:46 +0000 (00:25 +0000)]
Merge "[Security] Prevent malicious notifications from AMS." into nyc-dev
TreeHugger Robot [Tue, 10 May 2016 00:19:38 +0000 (00:19 +0000)]
Merge "Fix package cleanup when parsed APK missing." into nyc-dev
Selim Cinek [Mon, 9 May 2016 23:33:14 +0000 (23:33 +0000)]
Merge "Fixed an issue where clearing transient views could ANR" into nyc-dev
Selim Cinek [Mon, 9 May 2016 23:19:27 +0000 (23:19 +0000)]
Merge "Fixed a crash with min-priority notifications in a group" into nyc-dev
Selim Cinek [Mon, 9 May 2016 22:54:10 +0000 (18:54 -0400)]
Fixed an issue where clearing transient views could ANR
It could lead to an infinite loop because it was called on
the wrong view.
Change-Id: Ie8008114474eccf2c0a4b930a5299eb6be1247c1
Fixes:
28634521
Jeff Sharkey [Mon, 9 May 2016 22:51:08 +0000 (16:51 -0600)]
Fix package cleanup when parsed APK missing.
Recently the uninstall logic was changed to require a parsed APK to
succeed, but we need uninstall to succeed when the APK lives on an
ejected storage device.
To fix that case, create a fake parsed package with just enough
information for the delete to proceed.
Fix package movement bug that sent an invalid user ID to installd;
we need to explicitly ask for each user.
Bug:
28658206
Change-Id: Icf417661f07688c7523f0d082528adec2ac70cc6
Youngsang Cho [Mon, 9 May 2016 22:30:43 +0000 (15:30 -0700)]
TIF: Handle possible memory leaks
Bug:
28656236
Change-Id: I162bb8ebc59be90ac1b1eb824c1db5aa9169c247
TreeHugger Robot [Mon, 9 May 2016 22:03:03 +0000 (22:03 +0000)]
Merge "Fix a couple bad links in the javadoc for android.os.health." into nyc-dev
Winson Chung [Mon, 9 May 2016 21:36:56 +0000 (21:36 +0000)]
Merge "Fixing regression in call to showRecents()." into nyc-dev
Paul Crowley [Mon, 9 May 2016 21:35:33 +0000 (21:35 +0000)]
Merge "Two phases to set the password for disk encryption" into nyc-dev
Chong Zhang [Mon, 9 May 2016 21:16:48 +0000 (21:16 +0000)]
Merge "Fix a flicker when opening app again quickly while it's exiting" into nyc-dev
TreeHugger Robot [Mon, 9 May 2016 21:03:59 +0000 (21:03 +0000)]
Merge "Workaround for assist crash with multiwindow" into nyc-dev
Selim Cinek [Mon, 9 May 2016 20:36:10 +0000 (16:36 -0400)]
Fixed a crash with min-priority notifications in a group
Those notifications could get into a group with higher priority
because they were autobundled or if the app said so.
This could lead to invisible views on the lockscreen and a crash
when this happened in an animated fashion.
The bug was triggering old code that wasn't needed anymore that
removed the viewstate.
Change-Id: Ic86c2f03d55f2e98e352cdbfbb3ca80d8e676765
Fixes:
28611831
Selim Cinek [Mon, 9 May 2016 20:42:52 +0000 (20:42 +0000)]
Merge "Fixed a concurrent modification crash" into nyc-dev
Winson [Mon, 9 May 2016 20:34:07 +0000 (13:34 -0700)]
Fixing regression in call to showRecents().
- Previously, the call was made to showRecents() which took a single
boolean to determine alt-tab state, and after the refactoring, it
no longer made the same call.
Bug:
28663474
Change-Id: I75fb793e56c9a094a4372d7157dbd0dd7ecdbda7
TreeHugger Robot [Mon, 9 May 2016 20:33:13 +0000 (20:33 +0000)]
Merge "Fixed a bug where notifications could become orphaned" into nyc-dev
Jae Seo [Mon, 9 May 2016 20:32:45 +0000 (20:32 +0000)]
Merge "MediaBrowser: Make support lib v23.x available in N release" into nyc-dev
Joe Onorato [Mon, 9 May 2016 20:31:00 +0000 (13:31 -0700)]
Fix a couple bad links in the javadoc for android.os.health.
Bug:
28295754
Change-Id: I3b21e204bec626e4d1c6fb8f07580c2854e364eb
TreeHugger Robot [Mon, 9 May 2016 20:05:12 +0000 (20:05 +0000)]
Merge changes I04301fbd,If6577602 into nyc-dev
* changes:
Flesh out the docs for the android.os.health package.
Properly blame the correct uid for wakeup alarms that don't have a WorkSource.
Philip P. Moltmann [Mon, 9 May 2016 20:04:38 +0000 (20:04 +0000)]
Merge "Init MidiService once system user gets unlocked." into nyc-dev
Greg Kaiser [Mon, 9 May 2016 19:54:41 +0000 (19:54 +0000)]
Merge "ContextHub: Avoid reference leaks" into nyc-dev
Philip P. Moltmann [Mon, 9 May 2016 19:40:19 +0000 (12:40 -0700)]
Init MidiService once system user gets unlocked.
Bug:
28621670
Change-Id: I358aa8db6d1408c317f4ca66b4e5c5cbbcfe0826
Amith Yamasani [Mon, 9 May 2016 19:46:23 +0000 (12:46 -0700)]
Workaround for assist crash with multiwindow
Temporarily disable multiwindow assist until
Bug:
28348867
is fixed correctly.
Change-Id: Ia9d0fb5d4412e87aada90e8dcffe829b61221c6c
Selim Cinek [Mon, 9 May 2016 19:02:55 +0000 (19:02 +0000)]
Merge "Fixed a bug where the statusbar could become empty" into nyc-dev
Selim Cinek [Mon, 9 May 2016 19:02:31 +0000 (19:02 +0000)]
Merge "Fixed a bug where Notifications could overlap" into nyc-dev
Chong Zhang [Mon, 9 May 2016 17:59:59 +0000 (10:59 -0700)]
Fix a flicker when opening app again quickly while it's exiting
If the app is waiting for an opening animation with a dummy placeholder,
we need to skip the surface placement (in addition to the animateLocked).
Also, when animating is changing from exiting to entering, the mAnimating
flag needs to be cleared until the new animation starts. This prevents the
surface placement to place it wrong before the new animaition starts.
bug:
28599295
bug:
27742244
Change-Id: I26f0ead80ee9993a6c766ae8686ab11d1729519c
TreeHugger Robot [Mon, 9 May 2016 18:22:28 +0000 (18:22 +0000)]
Merge "Don't include IME in app screenshot while in multi-window mode" into nyc-dev
TreeHugger Robot [Mon, 9 May 2016 18:22:14 +0000 (18:22 +0000)]
Merge "Change ForcedResizableInfoActivity to handle config. changes" into nyc-dev
Greg Kaiser [Mon, 9 May 2016 17:23:56 +0000 (10:23 -0700)]
ContextHub: Avoid reference leaks
We were leaking references in each call to onMessageReceipt(),
leading us to eventually run out of references and crash. We
now delete our local references prior to leaving the function.
Also, since especially our message size can be quite large,
we put in logic to gracefully fail if the system is out of
memory.
In addition, we fix up reference leaks within
constructJContextHubInfo(). These were one-time leaks at
initialization, so not the root cause of our crash, but still
unnecessary leaks which are easily fixed.
Bug:
28655628
Change-Id: I3a3dc8e069c6c1810f3152872d8d8410e8ad0683
TreeHugger Robot [Mon, 9 May 2016 18:18:05 +0000 (18:18 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Mon, 9 May 2016 18:04:21 +0000 (18:04 +0000)]
Merge "Autobundle all notifications; don't leave the most recent one free." into nyc-dev
smain@google.com [Mon, 9 May 2016 17:39:31 +0000 (17:39 +0000)]
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018) am:
f2f8dff6eb am:
d20d4c6cf3
am:
0d1bce5e5d
* commit '
0d1bce5e5d3a0521466e8d12de792024325d8d91':
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018)
Change-Id: Iae2be6e4c6428e46ff1317d35eb3e12f97c6a813
smain@google.com [Mon, 9 May 2016 17:34:45 +0000 (17:34 +0000)]
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018) am:
f2f8dff6eb
am:
d20d4c6cf3
* commit '
d20d4c6cf3bc5891d2a63024b1c5ba3abf5ed77d':
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018)
Change-Id: Ib717a1f84f3c32ba6ccb762d0b3ffba6a1bd37e0
Joe Onorato [Mon, 9 May 2016 17:31:41 +0000 (10:31 -0700)]
Flesh out the docs for the android.os.health package.
Bug:
28295754
Change-Id: I04301fbdbfb0708172adb4fd4b4a3658d5ea14eb
Joe Onorato [Mon, 9 May 2016 17:10:29 +0000 (10:10 -0700)]
Properly blame the correct uid for wakeup alarms that don't have a WorkSource.
It was setting the uid to -1, but BatteryStats should be tracking the actual uid.
Bug:
28637246
Change-Id: If6577602e3fe59a95b5cece4fc99e704ba43c03e
smain@google.com [Mon, 9 May 2016 17:30:33 +0000 (17:30 +0000)]
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018)
am:
f2f8dff6eb
* commit '
f2f8dff6eb50e673b32b8f6bb3c181267997aefd':
update the older redirects based on studio restructure (https://critique.corp.google.com/#review/
121836018)
Change-Id: Ib906d725e2de7012ebd305d64e12fc434c16a5ca
smain@google.com [Mon, 9 May 2016 17:16:13 +0000 (10:16 -0700)]
update the older redirects based on studio restructure
(https://critique.corp.google.com/#review/
121836018)
Change-Id: I5c7cb01da2afe18885444c9bd6a3fc09526a42a8
Selim Cinek [Mon, 9 May 2016 17:12:40 +0000 (13:12 -0400)]
Fixed a concurrent modification crash
Because notifications could become isolated when
the group is suppressed it could lead to concurrent
modifications while looping.
Change-Id: Ifd4fe0cc24110455de0d3edf2da0be0773eb8c67
Fixes:
28652038
Selim Cinek [Sat, 7 May 2016 22:29:32 +0000 (18:29 -0400)]
Fixed a bug where notifications could become orphaned
When a child got set not be a heads up after it was already
removed (When for example it was clicked on shortly after
it got posted) then it got orphaned leading to bad bugs
like the next notification not being visible. This
could happen often with WhatsApp who set the head up flags
on the summary instead of the children.
Change-Id: I52c8f5d9bc50080e4ece530255236d36f998372e
Fixes:
28565942
Jaewan Kim [Mon, 9 May 2016 17:05:52 +0000 (17:05 +0000)]
Merge "Fix recents row blinking when PIP is focused" into nyc-dev
Jae Seo [Mon, 9 May 2016 16:39:50 +0000 (16:39 +0000)]
Merge "MediaRouter: Add more logs for debugging" into nyc-dev
Richard Uhler [Mon, 9 May 2016 15:50:29 +0000 (15:50 +0000)]
Merge "Hold a ClassLoader reference in NativeAllocationRegistry." into nyc-dev
Richard Uhler [Mon, 9 May 2016 15:48:45 +0000 (15:48 +0000)]
Merge "Remove inconsistent 'cmd package compile' documentation." into nyc-dev
smain@google.com [Mon, 9 May 2016 15:32:36 +0000 (15:32 +0000)]
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749 am:
ab5bf95626 am:
1a8f9e3ca0
am:
5e42875297
* commit '
5e428752971f2e3dfc3fda73633fc346f50f2763':
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749
Change-Id: I76513a274909a296589c1354dfc0551764390e72
smain@google.com [Mon, 9 May 2016 15:28:14 +0000 (15:28 +0000)]
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749 am:
ab5bf95626
am:
1a8f9e3ca0
* commit '
1a8f9e3ca00fb4436710e34b1f7fb2259adc066f':
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749
Change-Id: Id0d7cf68025c8f6b082ebfdec6c9727e963d6b9a
smain@google.com [Mon, 9 May 2016 15:23:51 +0000 (15:23 +0000)]
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749
am:
ab5bf95626
* commit '
ab5bf95626850e97124b912ca2699fb164574186':
update redirects for /studio files for the restructure from this CL: https://critique.corp.google.com/#review/
121726749
Change-Id: I7524aa066efa4241c6a14d881b23dee0da8e2632
smain@google.com [Mon, 9 May 2016 15:08:57 +0000 (08:08 -0700)]
update redirects for /studio files for the restructure
from this CL: https://critique.corp.google.com/#review/
121726749
Change-Id: I2c06eb12267f11d69a1dbd6f1c96a7bf1ef4a61c
Alan Viverette [Mon, 9 May 2016 14:06:51 +0000 (14:06 +0000)]
Merge "Always mutate child when added to drawable container" into nyc-dev
Alan Viverette [Mon, 9 May 2016 14:06:28 +0000 (14:06 +0000)]
Merge "Cancel animation and jump to current state if not animating picker" into nyc-dev
Jason Monk [Mon, 9 May 2016 13:20:18 +0000 (13:20 +0000)]
Merge "QQS: Fix ripple clipping" into nyc-dev
Bill Yi [Mon, 9 May 2016 13:14:28 +0000 (06:14 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ia3e265610e5f562a0acfe849e2c7473f2bd44594
Auto-generated-cl: translation import
Bo Hu [Mon, 9 May 2016 01:32:15 +0000 (01:32 +0000)]
Merge "Ensure Netd Service is alive" into nyc-dev
bohu [Tue, 3 May 2016 22:58:01 +0000 (15:58 -0700)]
Ensure Netd Service is alive
At least on android TV emulator system image, the Netd
service could be null when the setDnsConfigurationForNetwork
is invoked.
bug:
28553503
Change-Id: If059495c8573ede287c4e9d8f343318d519fca7f
Carlos Valdivia [Sun, 8 May 2016 04:46:15 +0000 (21:46 -0700)]
[Security] Prevent malicious notifications from AMS.
There was a hole in the getAuthToken logic that allowed notifications
resulting from getAuthToken requests using notifyOnAuthFailure=true to
launch arbitrary activites on the device. This is because the
getAuthToken session overrode onResult (unlike addAccount, updateCreds,
or confirmCreds).
Bug:
13787929
Change-Id: Ife1d48835f48416c2f0690f1413a076b69215190
Wale Ogunwale [Sat, 7 May 2016 23:40:45 +0000 (16:40 -0700)]
Don't include IME in app screenshot while in multi-window mode
We don't screenshot the IME in multi-window mode because the frame
of the IME might not overlap with that of the app. E.g. IME target
app at the top in split-screen mode and the IME at the bottom
overlapping with the bottom app.
Bug:
28446505
Change-Id: Iae4f7eafa582779a4cf2aba3d83c4d9f76a4ccca
Wale Ogunwale [Sat, 7 May 2016 21:13:52 +0000 (14:13 -0700)]
Change ForcedResizableInfoActivity to handle config. changes
This created extra churn in the system during resize due to
the activity relaunching.
Bug:
28614747
Change-Id: I148b6fca3dad7e10c90085a04bccb99587397912
Jae Seo [Sat, 7 May 2016 21:09:43 +0000 (14:09 -0700)]
MediaRouter: Add more logs for debugging
Bug:
28517884
Change-Id: I325b407983e79a78701acfbfd8f109657f006846
Wale Ogunwale [Sat, 7 May 2016 19:41:22 +0000 (12:41 -0700)]
Fixed bug with pop-up window placement at the bottom in split-screen
WindowState.mInsetFrame is used to represent a temp. offset of a task
due to something like docked stack resizing or IME currently on screen.
In the case of pop-up windows (or any child window that wants to layout
in the parent frame) we were incorrectly setting the containing frame
because we were checking to see if the mInsetFrame wasn't empty. This
check isn't needed for child windows that want to layout in parent frame
because the parent frame will already have the mInsetFrame applied to
its frame which will automatically trickle down to the display and content
frame it forwards to its child windows to use.
Bug:
28389714
Change-Id: If89d40845a5a14aa60abcdedef2385b1fe7bfee3
Sungsoo Lim [Sat, 7 May 2016 07:30:05 +0000 (16:30 +0900)]
MediaBrowser: Make support lib v23.x available in N release
A workaround change for supporting support lib 23.x in N release.
This change should be reverted in some point before O release.
Bug:
28572934
Change-Id: I7e6afc0293688e425736bc93da0ea10233c07e9a
TreeHugger Robot [Fri, 6 May 2016 23:58:27 +0000 (23:58 +0000)]
Merge "Fix minimized state messup" into nyc-dev
TreeHugger Robot [Fri, 6 May 2016 23:42:32 +0000 (23:42 +0000)]
Merge "Reset transparent region when saving a surface" into nyc-dev
TreeHugger Robot [Fri, 6 May 2016 23:25:27 +0000 (23:25 +0000)]
Merge "Fixed connectivity state in some restricted network scenarios." into nyc-dev
Svetoslav Ganov [Fri, 6 May 2016 23:08:30 +0000 (23:08 +0000)]
Merge "Properly map runtime permissions to app ops" into nyc-dev
Jorim Jaggi [Fri, 6 May 2016 22:45:00 +0000 (15:45 -0700)]
Fix minimized state messup
We didn't dispatch the change, but still set the field. This lead to
issues where SysUI disagreed on the minimized state. To fix this, we
only check for state changes if the docked stack is visible, but then
dispatch the change always.
Bug:
28445644
Change-Id: Ie460135049c78e11c97f3160994ca4069bf82e6c
Andrii Kulian [Fri, 6 May 2016 22:44:18 +0000 (22:44 +0000)]
Merge "Fix onStop not called when activity is under translucent" into nyc-dev
Chris Craik [Fri, 6 May 2016 20:39:08 +0000 (13:39 -0700)]
Reset transparent region when saving a surface
Fixes:
28432088
Ensure a transparent region on a saved surface is reset for future use,
since the surface should be like-new if used again.
This prevents an issue where the region - used to signal a portion of
content doesn't need to be composited - is persisted when a saved
surface is reused. The client assumes it's new and in default
state (composite everything), but the window is clipped when composited.
Change-Id: Icf2ec94c735679d715aded58de7eab12e9c43367
TreeHugger Robot [Fri, 6 May 2016 22:11:12 +0000 (22:11 +0000)]
Merge "Don't persist selection after restore." into nyc-dev
Felipe Leme [Fri, 6 May 2016 21:53:50 +0000 (14:53 -0700)]
Fixed connectivity state in some restricted network scenarios.
NetworkPolicyManagerService (NMPS) keeps an internal list of uid
rules (mUidRules) for network restrictions, and when these rules
changes it needs to notify external listeners (such as
ConnectivityService / CS).
Prior to Android N, both Data Saver mode (the feature previously known
as "Restrict Baground Data") and Battery Save mode used the same set of
firewall rules to implement their restrictions: when Battery Saver mode
NPMS would mark all networks as metered and set the proper firewall
rules externally.
Recently, these 2 modes were split in 2 distinct firewall rules and
NMPS.updateRuleForRestrictBackgroundLocked() was changed to update
the mUidRules logic based on the Data Saver firewall (since the Battery
Saver firewall changes are handled externally, on
updateRuleForRestrictPowerLocked()). As such, CS was not notified when
the power-related changes were made, which would cause apps to get a
state of CONNECTED / CONNECTED when querying its active connection.
Another scenario that is not properly handled is when a UID whitelisted
for Data Saver is brought back to foreground: although the proper
firewall rules are set, CS is not notified, and the apps state would be
DISCONNECTED / BLOCKED.
This CL introduces many changes that fix this issue:
- Fixed updateRuleForRestrictBackgroundLocked() to invoke
onUidRulesChanged() when the Battery Saver status changed.
- Fixed updateRuleForRestrictBackgroundLocked() to invoke
onUidRulesChanged() when an app whitelisted for Data Saver is brought
back to the foreground.
- Added a new API (onRestrictPowerChanged() and getRestrictPower())
to notify external services about Battery Saver mode changes.
- Fixed CS logic to properly handle the Battery Saver changes.
Externally to this change, the CTS tests were also improved to verify
the apps get the proper connection state; they can be verified running:
cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests \
-t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
BUG:
28521946
Change-Id: I8eaccd39968eb4b8c6b34f462fbc541e5daf55f1
TreeHugger Robot [Fri, 6 May 2016 21:41:38 +0000 (21:41 +0000)]
Merge "Refactored NetworkPolicyManagerService mUidRules." into nyc-dev
Chris Tate [Fri, 6 May 2016 21:34:50 +0000 (21:34 +0000)]
Merge "Move the 'pretend idle jobs can run now' broadcast into AMS" into nyc-dev
Sid Soundararajan [Fri, 6 May 2016 21:16:54 +0000 (21:16 +0000)]
Merge "Reset Cards as they come into view" into nyc-dev
TreeHugger Robot [Fri, 6 May 2016 20:54:16 +0000 (20:54 +0000)]
Merge "Fix divergent equals and hashCode behavior" into nyc-dev
Winson [Thu, 5 May 2016 23:16:50 +0000 (16:16 -0700)]
Fix exception when docking task.
- If a task fails to dock, animate the stack back to original state so
that the layout is not stuck in a "docked" state.
Bug:
28577229
Change-Id: If927b898a48cd5949764cb3b0c0798d22efd850a
Winson Chung [Fri, 6 May 2016 20:50:11 +0000 (20:50 +0000)]
Merge "Disabling movement of entire affiliated task set." into nyc-dev
Andrii Kulian [Fri, 6 May 2016 19:53:25 +0000 (12:53 -0700)]
Fix onStop not called when activity is under translucent
Activity was not stopped when device went to sleep if it was covered by
another translucent activity. The issue appeared after ag/864253 which
disabled stopping for visible activities.
Bug:
28191555
Change-Id: I39f0c5579ee3e5a16db888c72ace5dc43aa307bd
Alan Viverette [Fri, 6 May 2016 20:01:56 +0000 (16:01 -0400)]
Always mutate child when added to drawable container
Bug:
28456908
Change-Id: I3e7bea85e056882a331aecf7e225134161e685e6
Keisuke Kuroyanagi [Fri, 6 May 2016 19:52:46 +0000 (19:52 +0000)]
Merge "Fix: Cannot control ime_switcher and menu after resetting." into nyc-dev
Pavlin Radoslavov [Fri, 6 May 2016 19:05:47 +0000 (12:05 -0700)]
Fix divergent equals and hashCode behavior
Calling Objects.hash with a byte[] will call the identity hashCode on
the byte[] and this doesn't agree with the use of Objects.deepEquals
in equals.
Bug caught by error prone.
Also, replaced usage of Objects.deepEquals(mServiceDataUuid, ...) with
Objects.equals(mServiceDataUuid, ...), because mServiceDataUuid
is an Object of type ParcelUuid.
Bug:
28585195
Change-Id: Id92734874339985fedafe1a28286a6a4dcd88d3b
Alan Viverette [Fri, 6 May 2016 19:31:23 +0000 (15:31 -0400)]
Cancel animation and jump to current state if not animating picker
Bug:
28629631
Change-Id: I0e1b3c2f2c774e027f2df8c9ab75c7a89bd2ddb7
Steve McKay [Fri, 6 May 2016 19:07:54 +0000 (12:07 -0700)]
Don't persist selection after restore.
Bug:
28469988
Change-Id: I1fec774d8ebdec13b33262d7fe8e17fccd84b657
Sid Soundararajan [Wed, 4 May 2016 22:16:20 +0000 (15:16 -0700)]
Reset Cards as they come into view
This will ensure that they are in the correct configuration. Needed since
recycler view will be re-using views.
BUG:
28632740
Change-Id: Icdaa48696e198cfeb8c37718fec05f7f9b195842
Winson [Tue, 3 May 2016 21:58:12 +0000 (14:58 -0700)]
Disabling movement of entire affiliated task set.
- This CL removes the dependency on the last-active-time of the task
record, since that is dependent on the current system time (which can
be changed by the user). Instead of working around the previous
behavior in ActivityManager which moves all affiliated tasks to the
top when one task is launched, we change the behavior in the AM
directly, and prevent re-sorting the list of recent tasks improperly
(aside from the stable sort which puts the freeform tasks first).
Bug:
27398177
Change-Id: I9fa9b3497d08082fe00aa724538255de87e746d6
Jason Monk [Fri, 6 May 2016 18:43:31 +0000 (14:43 -0400)]
QQS: Fix ripple clipping
Change-Id: Ib29265ca582e8563277466edefb32b0a5c852b2f
Fixes:
28175282
Jason Monk [Fri, 6 May 2016 18:35:58 +0000 (18:35 +0000)]
Merge "QS Header: remove collapsed alarm ripple" into nyc-dev
TreeHugger Robot [Fri, 6 May 2016 18:30:22 +0000 (18:30 +0000)]
Merge "Dismiss docked stack if an activity is shown on top of the lock screen" into nyc-dev
Christopher Tate [Fri, 6 May 2016 18:25:11 +0000 (11:25 -0700)]
Move the 'pretend idle jobs can run now' broadcast into AMS
It's a protected broadcast, so sending it directly from 'am' is
no longer an option. This is needed for CTS as well as being
generally useful during app development.
Bug
28406044
Change-Id: I101915a8c6f19454330a8db2079a75023c112582
Paul Crowley [Fri, 22 Apr 2016 20:35:35 +0000 (13:35 -0700)]
Two phases to set the password for disk encryption
In one phase, we make the new password work, and in the second we make
it the only one which works ("fixation"). This means that we can set
the password in Gatekeeper between these two phases, and a crash
doesn't break things. Unlocking a user automatically fixates the
presented credential.
Bug:
28154455
Change-Id: I18812f9ce753486ce4e33b4fe2cca392b006b39c
Phil Weaver [Fri, 6 May 2016 18:08:27 +0000 (18:08 +0000)]
Merge "Make AccessibilityService#disableSelf atomic." into nyc-dev
Chris Thornton [Fri, 6 May 2016 18:04:17 +0000 (18:04 +0000)]
Merge "Fix NPE in KeyphraseEnrollmentInfo.toString()" into nyc-dev
Felipe Leme [Wed, 4 May 2016 16:21:43 +0000 (09:21 -0700)]
Refactored NetworkPolicyManagerService mUidRules.
NetworkPolicyManagerService (NMPS) keeps an internal list of uid
rules (mUidRules) for network restrictions, and when these rules
changes it needs to notify external listeners (such as
ConnectivityService / CS).
Prior to Android N, both Data Saver mode (the feature previously known
as "Restrict Baground Data") and Battery Save mode used the same set of
firewall rules to implement their restrictions: when Battery Saver mode
NPMS would mark all networks as metered and set the proper firewall
rules externally.
Recently, these 2 modes were split in 2 distinct firewall rules and
NMPS.updateRuleForRestrictBackgroundLocked() was changed to update
the mUidRules logic based on the Data Saver firewall (since the Battery
Saver firewall changes are handled externally, on
updateRuleForRestrictPowerLocked()). As such, CS was not notified when
the power-related changes were made, which would cause apps to get a
state of CONNECTED / CONNECTED when querying its active connection.
This change refactores the mUidRules to use bitmasks, in preparation for
another change that will fix the issue.
It also fixes a minor bug that was preventing removed packages to be
removed from the whitelist.
BUG:
28521946
Change-Id: I9f0e1509a6192cad403f740c1cd76a6b7dab7d26
Keisuke Kuroyanagi [Fri, 6 May 2016 17:49:54 +0000 (10:49 -0700)]
Fix: Cannot control ime_switcher and menu after resetting.
mButtonDispatchers contains ButtonDispatcher for ime_switcher and menu;
however, in #inflateButton, we tried to find ButtonDispatcher for
menu_ime, which is a FrameLayout containing ime_switcher and menu.
Therefore, after #clearViews and #inflateLayout, ime_switcher and menu
KeyButtonView are not in the corresponding ButtonDispatchers.
It means NavigationBarView#getImeSwitchButton and
NavigationBarView#getMenuButton returns empty ButtonDispatcher.
As a result, we can't control ime switch button and menu button via
NavigationBarView after then. e.g. We can't control ime switch button
visibility.
This CL fixes that issue by calling #addToDispatchers recursively for
ViewGroup children if corresponding ButtonDispatcher is not found. This
behavior is aligned with #addAll.
Bug:
28580774
Change-Id: Ibe724753390b7bbb395a6d53d00bc6d06d00aa9a
Jorim Jaggi [Fri, 6 May 2016 02:14:22 +0000 (19:14 -0700)]
Don't crash the system when detecting a transient wrong state
Bug:
28616824
Change-Id: I124f7196d709c33fe70137541b650788af83b3b3
Jorim Jaggi [Fri, 6 May 2016 00:32:44 +0000 (17:32 -0700)]
Also notify divider when getting DockedTopTaskEvent
Under some circumstances we never go through the activity lifecycle
if we call startActivity before it gets stopped, so we never notified
the divider about that we have drawn.
Bug:
28531536
Change-Id: I6a13527d52bf40a87f89de4b2799bd0833c6612a
TreeHugger Robot [Fri, 6 May 2016 17:17:39 +0000 (17:17 +0000)]
Merge "Fixed bad focus stack state when focused docked stack is removed" into nyc-dev