OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Cleaning up NetworkStatsManager." into nyc-dev
Antonio Cansado [Wed, 25 May 2016 22:17:20 +0000 (22:17 +0000)]
Merge "Cleaning up NetworkStatsManager." into nyc-dev

8 years agoMerge "Fix TextView layout reuse when maxLines is set" into nyc-dev
Siyamed Sinir [Wed, 25 May 2016 22:03:06 +0000 (22:03 +0000)]
Merge "Fix TextView layout reuse when maxLines is set" into nyc-dev

8 years agoMerge "Revert "Add check for \'.end-content-title\' to force the end of content secti...
Amanda Kassay [Wed, 25 May 2016 21:50:13 +0000 (21:50 +0000)]
Merge "Revert "Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section." am: c68d8768c8" into mnc-io-docs am: cb3ae33cfe
am: a475ff360c

* commit 'a475ff360c9457ecbef6af97ca7228dc9cd5c139':
  Revert "Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section."

Change-Id: Ibe99c1f7e47acacf7b60f8ad66a7a3d658776413

8 years agoMerge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs am...
Eric Schmidt [Wed, 25 May 2016 21:50:00 +0000 (21:50 +0000)]
Merge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs am: 5548a7c59c
am: 3c2709c6b7

* commit '3c2709c6b7b40f0a31674a775f891ca4e198cfa5':
  docs: Instant Apps broken link, wonky video thumbnail

Change-Id: Ib072e701b8793baba0c9da9a24748dc89b1dae55

8 years agoMerge "Revert "Add check for \'.end-content-title\' to force the end of content secti...
Amanda Kassay [Wed, 25 May 2016 21:35:54 +0000 (21:35 +0000)]
Merge "Revert "Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section." am: c68d8768c8" into mnc-io-docs
am: cb3ae33cfe

* commit 'cb3ae33cfe5fdb73e648dc08bdf2ea0b19116b86':
  Revert "Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section."

Change-Id: I33fec5a25e6648db7b6fd0da06794c0ce7bd8ed5

8 years agoMerge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs
Eric Schmidt [Wed, 25 May 2016 21:35:43 +0000 (21:35 +0000)]
Merge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs
am: 5548a7c59c

* commit '5548a7c59cf6a41095c72189fee7e522b5cab8f1':
  docs: Instant Apps broken link, wonky video thumbnail

Change-Id: I08d7e4c62072bffd01db4f1192cadbc1d033306b

8 years agoMerge "Revert "Add check for \'.end-content-title\' to force the end of content secti...
Android Build Merger (Role) [Wed, 25 May 2016 21:28:19 +0000 (21:28 +0000)]
Merge "Revert "Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section." am: c68d8768c8" into mnc-io-docs

8 years agoRevert "Add check for \'.end-content-title\' to force the end of content section...
Amanda Kassay [Wed, 25 May 2016 21:28:01 +0000 (21:28 +0000)]
Revert "Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section."
am: c68d8768c8

* commit 'c68d8768c84dd045d3db3f685a95963eb315be8c':
  Revert "Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section."

Change-Id: I40fa99170770712c4d844eab0d1e3d6fa9373d90

8 years agoMerge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs
Eric Schmidt [Wed, 25 May 2016 21:27:34 +0000 (21:27 +0000)]
Merge "docs: Instant Apps broken link, wonky video thumbnail" into mnc-io-docs

8 years agoMerge "Fix DatePicker.setMin/MaxDate()" into nyc-dev
Alan Viverette [Wed, 25 May 2016 21:17:52 +0000 (21:17 +0000)]
Merge "Fix DatePicker.setMin/MaxDate()" into nyc-dev

8 years agoRevert "Add check for '.end-content-title' to force the end of content section in...
Amanda Kassay [Wed, 25 May 2016 20:59:53 +0000 (20:59 +0000)]
Revert "Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section."

This reverts commit 85b7df26975997826a738a46ae4ab797941175ea.

Change-Id: I5c0256cbdc0f3c3588f10eb5accef8cf68642bbb

8 years agoMerge "Return legacy VPN info regardless of lockdown mode" into nyc-dev
Robin Lee [Wed, 25 May 2016 21:05:53 +0000 (21:05 +0000)]
Merge "Return legacy VPN info regardless of lockdown mode" into nyc-dev

8 years agoMerge "Ensure MotionEvent.split() won't be given an invalid value." into nyc-dev
Zach Kuznia [Wed, 25 May 2016 20:57:24 +0000 (20:57 +0000)]
Merge "Ensure MotionEvent.split() won't be given an invalid value." into nyc-dev

8 years agoMerge "API council feedback: hide and document." into nyc-dev
TreeHugger Robot [Wed, 25 May 2016 20:43:55 +0000 (20:43 +0000)]
Merge "API council feedback: hide and document." into nyc-dev

8 years agoMerge "Fix clipping not being activated on children in groups" into nyc-dev
Mady Mellor [Wed, 25 May 2016 20:22:41 +0000 (20:22 +0000)]
Merge "Fix clipping not being activated on children in groups" into nyc-dev

8 years agoEnsure MotionEvent.split() won't be given an invalid value.
Zachary Kuznia [Fri, 13 May 2016 20:11:36 +0000 (13:11 -0700)]
Ensure MotionEvent.split() won't be given an invalid value.

b/27496784

Change-Id: I28bb4ac5bb8a705e7af9b22b2b56cd4061aa06a0

8 years agoMerge "Force pending transactions to flush before screenshot." into nyc-dev
TreeHugger Robot [Wed, 25 May 2016 19:16:12 +0000 (19:16 +0000)]
Merge "Force pending transactions to flush before screenshot." into nyc-dev

8 years agoFix TextView layout reuse when maxLines is set
Siyamed Sinir [Wed, 25 May 2016 18:16:22 +0000 (11:16 -0700)]
Fix TextView layout reuse when maxLines is set

When maxLines is set on StaticLayout and the text is wrapped, during
onMeasure TextView couldn’t recognize the wrap in the layout and tried
to reuse the layout which in turn caused width calculation problems.
This CL checks if maxLines is set, and if there is a text cut-off in
order to reuse existing layout.

Bug: 28468120
Change-Id: Ide43df8512a09112715067cbadf29cc64fd53247

8 years agoMerge "Changes based on API council feedback for performContextClick" into nyc-dev
Mady Mellor [Wed, 25 May 2016 19:00:07 +0000 (19:00 +0000)]
Merge "Changes based on API council feedback for performContextClick" into nyc-dev

8 years agoMerge "Add Samsung print recommendation plugin." into nyc-dev
Philip P. Moltmann [Wed, 25 May 2016 18:51:11 +0000 (18:51 +0000)]
Merge "Add Samsung print recommendation plugin." into nyc-dev

8 years agoMerge "Fix incorrect cleartext attribute" into mnc-mr-docs am: f2e0a719d0 am: 56f32483b0
Chad Brubaker [Wed, 25 May 2016 18:36:47 +0000 (18:36 +0000)]
Merge "Fix incorrect cleartext attribute" into mnc-mr-docs am: f2e0a719d0 am: 56f32483b0
am: d1df52a46b

* commit 'd1df52a46beb5babd0d9f3257b2ade53c9c763cf':
  Fix incorrect cleartext attribute

Change-Id: I613e1eae55525d0326a8513ed25903bbaf0d3fb9

8 years agoMerge "Fix incorrect cleartext attribute" into mnc-mr-docs am: f2e0a719d0
Alex Klyubin [Wed, 25 May 2016 18:24:31 +0000 (18:24 +0000)]
Merge "Fix incorrect cleartext attribute" into mnc-mr-docs am: f2e0a719d0
am: 56f32483b0

* commit '56f32483b04723bf750e51badcfec3203c352d32':
  Fix incorrect cleartext attribute

Change-Id: I689b8df2a928e63b7c0b06198b06e2c6798bcba5

8 years agoMerge "Fix incorrect cleartext attribute" into mnc-mr-docs
Chad Brubaker [Wed, 25 May 2016 18:16:03 +0000 (18:16 +0000)]
Merge "Fix incorrect cleartext attribute" into mnc-mr-docs
am: f2e0a719d0

* commit 'f2e0a719d00c4a7c6865f6784efc9b3f88421136':
  Fix incorrect cleartext attribute

Change-Id: I83bfa396764d6724ceb483e256a96b929c7886d4

8 years agoMerge "Fixed a bug where the expand button was invisible" into nyc-dev
Selim Cinek [Wed, 25 May 2016 18:14:56 +0000 (18:14 +0000)]
Merge "Fixed a bug where the expand button was invisible" into nyc-dev

8 years agoCleaning up NetworkStatsManager.
Antonio Cansado [Wed, 25 May 2016 16:57:21 +0000 (09:57 -0700)]
Cleaning up NetworkStatsManager.

- Throwing SecurityExceptionand and IllegalArgumentException instead of null for new APIs
- removing @removed APIs

Bug:27530098,27379882
Change-Id: Ifbe65bfc5051aa33aff2baa22cfa8e67b0f7c358

8 years agoMerge "Fix incorrect cleartext attribute" into mnc-mr-docs
Alex Klyubin [Wed, 25 May 2016 18:04:53 +0000 (18:04 +0000)]
Merge "Fix incorrect cleartext attribute" into mnc-mr-docs

8 years agoMerge "Fix text appearances not working in colored button styles" into nyc-dev
Chris Banes [Wed, 25 May 2016 17:57:11 +0000 (17:57 +0000)]
Merge "Fix text appearances not working in colored button styles" into nyc-dev

8 years agoMerge "Destroy saved surfaces if one of the last visible windows gets removed" into...
Chong Zhang [Wed, 25 May 2016 17:32:19 +0000 (17:32 +0000)]
Merge "Destroy saved surfaces if one of the last visible windows gets removed" into nyc-dev

8 years agoMerge "QS Edit: Fix up accessibility" into nyc-dev
Jason Monk [Wed, 25 May 2016 17:11:30 +0000 (17:11 +0000)]
Merge "QS Edit: Fix up accessibility" into nyc-dev

8 years agoMerge "QS Edit: Hide black bar in landscape" into nyc-dev
Jason Monk [Wed, 25 May 2016 17:11:22 +0000 (17:11 +0000)]
Merge "QS Edit: Hide black bar in landscape" into nyc-dev

8 years agoMerge "QS API: Handle return value from bindServiceAsUser" into nyc-dev
Jason Monk [Wed, 25 May 2016 17:11:14 +0000 (17:11 +0000)]
Merge "QS API: Handle return value from bindServiceAsUser" into nyc-dev

8 years agoMerge "QS: Fix QS touch breaking" into nyc-dev
Jason Monk [Wed, 25 May 2016 17:11:07 +0000 (17:11 +0000)]
Merge "QS: Fix QS touch breaking" into nyc-dev

8 years agoMerge changes from topic 'cps' into nyc-dev
Julia Reynolds [Wed, 25 May 2016 17:09:24 +0000 (17:09 +0000)]
Merge changes from topic 'cps' into nyc-dev

* changes:
  Api updates.
  Note timezone changes.

8 years agoApi updates.
Julia Reynolds [Tue, 17 May 2016 20:55:18 +0000 (16:55 -0400)]
Api updates.

Change-Id: Ibafef673c54e4ff07bca2bbe70db6cad799b8033
Fixes: 28818092

8 years agoNote timezone changes.
Julia Reynolds [Wed, 25 May 2016 16:29:55 +0000 (12:29 -0400)]
Note timezone changes.

Bug: 28945282
Change-Id: I62fc62e359435f19fecd7e52b2fe778475c5804c

8 years agoChanges based on API council feedback for performContextClick
Mady Mellor [Wed, 25 May 2016 16:49:02 +0000 (09:49 -0700)]
Changes based on API council feedback for performContextClick

Added an overloaded version with (float x, float y).

Fixes: 28295818
Change-Id: I41c2bf225964436655986b3ad4d0c630c658e38b

8 years agoFix text appearances not working in colored button styles
Chris Banes [Wed, 25 May 2016 14:40:46 +0000 (15:40 +0100)]
Fix text appearances not working in colored button styles

Caused by using an explicit textColor in the base
styles, which will always override any textColors in the
text appearance.

BUG: 28933171
Change-Id: I3a9b2884cdd66b329593ae5cea0c314244f4f116

8 years agoFix DatePicker.setMin/MaxDate()
Alan Viverette [Wed, 25 May 2016 16:34:55 +0000 (12:34 -0400)]
Fix DatePicker.setMin/MaxDate()

Previously it would only allow year changes, which... doesn't make sense.

Bug: 28953902
Change-Id: I9b15b96662d9d496e11fb426ff23f14b26e90800

8 years agoQS: Fix QS touch breaking
Jason Monk [Wed, 25 May 2016 16:30:51 +0000 (12:30 -0400)]
QS: Fix QS touch breaking

Seems not all of the QS container logic was inside the inflate
callback.

Change-Id: I78a8b40d1c181f5dac7127a5b5d20d45ae0f333e
Fixes: 28177371

8 years agoMerge "Fix a translate issue with saveLayer" into nyc-dev
John Reck [Wed, 25 May 2016 16:27:30 +0000 (16:27 +0000)]
Merge "Fix a translate issue with saveLayer" into nyc-dev

8 years agoMerge "Workaround to display menus for AppCompat themes" into nyc-dev
Diego Perez [Wed, 25 May 2016 16:23:55 +0000 (16:23 +0000)]
Merge "Workaround to display menus for AppCompat themes" into nyc-dev

8 years agoMerge "Use ICU's Calendar class in date picker & related classes" into nyc-dev
Alan Viverette [Wed, 25 May 2016 16:20:14 +0000 (16:20 +0000)]
Merge "Use ICU's Calendar class in date picker & related classes" into nyc-dev

8 years agoMerge "Update suspended to disabled." into nyc-dev
Kenny Guy [Wed, 25 May 2016 15:49:51 +0000 (15:49 +0000)]
Merge "Update suspended to disabled." into nyc-dev

8 years agoUse ICU's Calendar class in date picker & related classes
Alan Viverette [Wed, 25 May 2016 15:42:42 +0000 (11:42 -0400)]
Use ICU's Calendar class in date picker & related classes

Also organizes imports.

Bug: 28756630
Change-Id: I4e59c4b35c88edd94ff4b2945ad9feb2a4bd0022

8 years agoQS API: Handle return value from bindServiceAsUser
Jason Monk [Wed, 25 May 2016 15:37:47 +0000 (11:37 -0400)]
QS API: Handle return value from bindServiceAsUser

To avoid crashes better.

Change-Id: I72e74729fbc0b1400c21e1ebc165b565ecd13fba
Fixes: 28721139

8 years agoQS Edit: Hide black bar in landscape
Jason Monk [Wed, 25 May 2016 15:19:04 +0000 (11:19 -0400)]
QS Edit: Hide black bar in landscape

Change-Id: I954e5571c01945b697c6254c168c1830467ff7db
Fixes: 28924803

8 years agoMerge "Update preloaded drawables" into nyc-dev
Adam Powell [Wed, 25 May 2016 14:59:32 +0000 (14:59 +0000)]
Merge "Update preloaded drawables" into nyc-dev

8 years agoQS Edit: Fix up accessibility
Jason Monk [Wed, 25 May 2016 14:54:06 +0000 (10:54 -0400)]
QS Edit: Fix up accessibility

Change-Id: I13d426d4ae447c7db074bc7165067870bd8cae5d
Fixes: 28913622

8 years agoMerge "Prevent LayerDrawable bounds updates from being re-entrant" into nyc-dev
Alan Viverette [Wed, 25 May 2016 14:19:39 +0000 (14:19 +0000)]
Merge "Prevent LayerDrawable bounds updates from being re-entrant" into nyc-dev

8 years agoMerge "Default system theme should be DeviceDefault" into nyc-dev
Alan Viverette [Wed, 25 May 2016 14:18:27 +0000 (14:18 +0000)]
Merge "Default system theme should be DeviceDefault" into nyc-dev

8 years agoHide work profile key in user credentials screen
Ricky Wai [Tue, 24 May 2016 18:27:08 +0000 (19:27 +0100)]
Hide work profile key in user credentials screen

Bug: 28878708
Change-Id: Ib250fae2388b061430d93b7d65133002ce664993

8 years agoDo not allow DPM.resetPassword() when child profile exists or user is locked
Ricky Wai [Tue, 24 May 2016 14:02:41 +0000 (15:02 +0100)]
Do not allow DPM.resetPassword() when child profile exists or user is locked

Bug: 28878708
Change-Id: Iaae2a9ba9c7c0ff388264c474c78a0dcd9fec258

8 years agoMerge "Unlock work profile storage even work mode is off" into nyc-dev
Ricky Wai [Wed, 25 May 2016 13:06:23 +0000 (13:06 +0000)]
Merge "Unlock work profile storage even work mode is off" into nyc-dev

8 years agoMerge "Do not tie managed profile synchronously in onUnlockUser()" into nyc-dev
Ricky Wai [Wed, 25 May 2016 13:04:31 +0000 (13:04 +0000)]
Merge "Do not tie managed profile synchronously in onUnlockUser()" into nyc-dev

8 years agoMerge "Make IMM more robust to spurious window focus-in" into nyc-dev
Yohei Yukawa [Wed, 25 May 2016 04:47:30 +0000 (04:47 +0000)]
Merge "Make IMM more robust to spurious window focus-in" into nyc-dev

8 years agoMerge "Use original theme for SuggestsionsPopupWindow" into nyc-dev
Seigo Nonaka [Wed, 25 May 2016 03:24:10 +0000 (03:24 +0000)]
Merge "Use original theme for SuggestsionsPopupWindow" into nyc-dev

8 years agoMerge "Fix default network transition event recording" into nyc-dev
Hugo Benichi [Wed, 25 May 2016 03:22:31 +0000 (03:22 +0000)]
Merge "Fix default network transition event recording" into nyc-dev

8 years agoMerge "Created 4 camera preview stress test cases." into nyc-dev
Hang Yin [Wed, 25 May 2016 03:14:02 +0000 (03:14 +0000)]
Merge "Created 4 camera preview stress test cases." into nyc-dev

8 years agoMerge "Updating user restrictions when they are removed" into nyc-dev
TreeHugger Robot [Wed, 25 May 2016 03:11:47 +0000 (03:11 +0000)]
Merge "Updating user restrictions when they are removed" into nyc-dev

8 years agoMerge "Set input method mode for CascadingMenuPopup." into nyc-dev
Keisuke Kuroyanagi [Wed, 25 May 2016 02:06:24 +0000 (02:06 +0000)]
Merge "Set input method mode for CascadingMenuPopup." into nyc-dev

8 years agoMerge "Clamp start delay to non-negative range" into nyc-dev
Doris Liu [Wed, 25 May 2016 01:41:11 +0000 (01:41 +0000)]
Merge "Clamp start delay to non-negative range" into nyc-dev

8 years agoFix default network transition event recording
Hugo Benichi [Tue, 24 May 2016 02:50:31 +0000 (11:50 +0900)]
Fix default network transition event recording

When disconnecting from a default network X and falling back on another
connected network Y as the new default, ConnectivityService was
attempting to record this event as a X -> Y "atomic" transition.

In practice the default network connectivity is actually lost and
recovering default network takes some non-zero time.

This patch changes the event recording to always record disconnection as
X -> 0 events. At the same time, if there is a fallback network that is
elected as the new default ConnectivityService will also record a 0 -> Y
event.

This patch also improves pretty-printing of DefaultNetworkEvent.

Extract from $ adb shell dumpsys connectivity_metrics_logger --events
17:51:00.086: DefaultNetworkEvent(0 -> 100:CELLULAR)
17:51:25.232: DefaultNetworkEvent(100:IPv4 -> 101:WIFI) # wifi goes on
17:51:44.064: DefaultNetworkEvent(101:DUAL -> 0)        # wifi goes off
17:51:44.187: DefaultNetworkEvent(0 -> 100:CELLULAR)

Bug: 28204408
Change-Id: I63252633235bf6ba833b9ac431a80dda75a93e67

8 years agoMerge "Remove hidden LocaleList default constructor" into nyc-dev
Chet Haase [Wed, 25 May 2016 00:57:40 +0000 (00:57 +0000)]
Merge "Remove hidden LocaleList default constructor" into nyc-dev

8 years agoMerge "Fixed a few battery issues in SystemUI" into nyc-dev
Selim Cinek [Wed, 25 May 2016 00:30:45 +0000 (00:30 +0000)]
Merge "Fixed a few battery issues in SystemUI" into nyc-dev

8 years agoClamp start delay to non-negative range
Doris Liu [Tue, 24 May 2016 23:38:19 +0000 (16:38 -0700)]
Clamp start delay to non-negative range

Bug: 28936388
Change-Id: I2a225e07cad53c6ffc3637219f8c741aca5c008c

8 years agoMerge "resolve merge conflicts of f950ec9 to nyc-dev" into nyc-dev
Jim Miller [Wed, 25 May 2016 00:09:45 +0000 (00:09 +0000)]
Merge "resolve merge conflicts of f950ec9 to nyc-dev" into nyc-dev

8 years agoMerge "Add missing "try ... finally" safeguards" into nyc-dev
TreeHugger Robot [Wed, 25 May 2016 00:09:28 +0000 (00:09 +0000)]
Merge "Add missing "try ... finally" safeguards" into nyc-dev

8 years agoMerge "Fix issue #28931042: wtf in system server" into nyc-dev
Dianne Hackborn [Wed, 25 May 2016 00:00:06 +0000 (00:00 +0000)]
Merge "Fix issue #28931042: wtf in system server" into nyc-dev

8 years agodocs: Instant Apps broken link, wonky video thumbnail
Eric Schmidt [Mon, 23 May 2016 23:18:03 +0000 (16:18 -0700)]
docs: Instant Apps broken link, wonky video thumbnail

Bug: 28861513
Bug: 28842359
Change-Id: I8c90d3131f614727a96937702f062a95f998047a

8 years agoMake IMM more robust to spurious window focus-in
Yohei Yukawa [Tue, 24 May 2016 23:35:17 +0000 (16:35 -0700)]
Make IMM more robust to spurious window focus-in

InputMethodManager (IMM) has a latch switch named IMM#mHasBeenInactive
to forcefully refresh IME focus state when an inactive client
(IMM#mActive == false) is gaining window focus.  However, it turns out
that there is a race condition where the latch could be unexpectedly
turned off. This is probably what we have been chasing in bug 25373872.

Imagine the following scenario:

  1. An app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=false
  2. IMM inside the app receives MSG_SET_ACTIVE w/ active=false
  3. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=true
  4. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=false
  5. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=true

Here, our current strategy has been:
  A. Turn on the latch when MSG_SET_ACTIVE (w/active=false) is handled.
  B. Turn off the latch and ask IMMS to start input when
     MSG_WINDOW_FOCUS_CHANGED (w/ hasWindowFocus=true) is handled.

The problem is that in the step B IMMS can reject the request if
WindowManagerService (WMS) tells that the window in question no longer
has window focus. This is not surprising because the app is
just handling messages in the message queue sequentially.  As a result,
the IME focus is not updated expectedly in the step 5, because the latch
is no longer enabled as we expected.

With this CL, the latch will be re-enabled if the app fails to start
input while IMM#mActive is false as a short-term solution.

In future we may want to address this issue in protocol level so that
we can address other known issues such as bug 26851566 at the same time.

Bug: 28281870
Change-Id: I60adb38013b063918b074c7b947649eada77b2c8

8 years agoFixed a bug where the expand button was invisible
Selim Cinek [Tue, 24 May 2016 23:55:13 +0000 (16:55 -0700)]
Fixed a bug where the expand button was invisible

Since the view wasn't layouted yet it was layouting it wrongly

Change-Id: I62fcdde1eda457bab74765a290865b1749b08dac
Fixes: 28869354

8 years agoUpdating user restrictions when they are removed
Suprabh Shukla [Tue, 24 May 2016 23:23:11 +0000 (16:23 -0700)]
Updating user restrictions when they are removed

Local user restrictions were not being updated in
AppOpsService#setUserRestrictions when a restriction was removed.

Bug: 28908581
Change-Id: If22f5834fadca33ec8b80bc4fb3993c1e1c29824

8 years agoUpdate preloaded drawables
Adam Powell [Tue, 24 May 2016 23:39:16 +0000 (16:39 -0700)]
Update preloaded drawables

Remove holo assets and add all material assets referred to through
styles.

Bug 28729750

Change-Id: I34aac1ac55d087ac60f12c2954e612072a93366b

8 years agoDestroy saved surfaces if one of the last visible windows gets removed
Chong Zhang [Tue, 24 May 2016 23:02:10 +0000 (16:02 -0700)]
Destroy saved surfaces if one of the last visible windows gets removed

Also, if by the time the app is closing, a window is still invisible
in layout (or is already removed), mark the window as mAnimatingExit,
so that the surface is destroyed (or saved again). If it's marked
for removal, the window gets removed as well.

bug: 28913302
Change-Id: Ifa3dc0742f9c8c09d741fd64dcdc01b49075628c

8 years agoMerge "Fix issue #28931042: wtf in system server" into nyc-dev
Dianne Hackborn [Tue, 24 May 2016 23:23:34 +0000 (23:23 +0000)]
Merge "Fix issue #28931042: wtf in system server" into nyc-dev

8 years agoresolve merge conflicts of f950ec9 to nyc-dev
Jim Miller [Tue, 24 May 2016 23:08:15 +0000 (16:08 -0700)]
resolve merge conflicts of f950ec9 to nyc-dev

Change-Id: I131632cb9d64156d10001b3555e8b3bfa471690d

8 years agoRemove hidden LocaleList default constructor
Chet Haase [Tue, 24 May 2016 23:07:00 +0000 (16:07 -0700)]
Remove hidden LocaleList default constructor

Previous change hid this constructor. Now removing it entirely for completeness.

Issue #28296200  API Review: LocaleList

Change-Id: I43476994070b101999d338ec1f5d1a1a0a2a7658

8 years agoAdd missing "try ... finally" safeguards
Pavlin Radoslavov [Tue, 24 May 2016 22:28:41 +0000 (15:28 -0700)]
Add missing "try ... finally" safeguards

Safeguards for code protected by ReentrantReadWriteLock.

Bug: 28734075
Bug: 28799467
Change-Id: Ib7f598a92e8df6bd855ca48cdd094c1c73a935f2

8 years agoMerge "Add support for dismissing in Talkback Mode" into nyc-dev
Sid Soundararajan [Tue, 24 May 2016 22:46:26 +0000 (22:46 +0000)]
Merge "Add support for dismissing in Talkback Mode" into nyc-dev

8 years agoFix issue #28931042: wtf in system server
Dianne Hackborn [Tue, 24 May 2016 20:22:18 +0000 (13:22 -0700)]
Fix issue #28931042: wtf in system server

More broadcasts (from telephony) that should be protected.

Also put a little more information in the wtf message to
help determine where broadcasts from out of the system process
are coming from.

Change-Id: Ie3df25c883482ca54c7a7c5db57ca609950f5cbc

8 years agoMerge "Fix missing permission check when saving pattern/password" into mnc-dev am...
Jim Miller [Tue, 24 May 2016 22:20:09 +0000 (22:20 +0000)]
Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d951a am: 9bf8474c27
am: 89e3f2ba98

* commit '89e3f2ba98ea6d69b1846e996c4c279a9b20c4e9':
  Fix missing permission check when saving pattern/password

Change-Id: Ice157c9ee86cf29380766d3ec266cb57594a5868

8 years agoMerge "Fix missing permission check when saving pattern/password" into mnc-dev am...
Jim Miller [Tue, 24 May 2016 22:14:24 +0000 (22:14 +0000)]
Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d951a
am: 9bf8474c27

* commit '9bf8474c27642f48aa27e2edf1bdd83b27d692c1':
  Fix missing permission check when saving pattern/password

Change-Id: I4238a43dc30be54375b6db129b360cc7d0a90b0e

8 years agoMerge "Fix missing permission check when saving pattern/password" into mnc-dev
Jim Miller [Tue, 24 May 2016 22:08:16 +0000 (22:08 +0000)]
Merge "Fix missing permission check when saving pattern/password" into mnc-dev
am: 45c77d951a

* commit '45c77d951ab5203b8e19c2ed2ce3a0816e42b118':
  Fix missing permission check when saving pattern/password

Change-Id: I81947e95d5365bbf6a4927435f43c73dc4ac2bb0

8 years agoFix a translate issue with saveLayer
John Reck [Tue, 24 May 2016 22:06:01 +0000 (15:06 -0700)]
Fix a translate issue with saveLayer

Bug: 28667141

saveLayer clips the layer to the size it needs to
be and will translate content if necessary, but
the drawLayerOp that results from that was not
translated to handle the shifted draw content.

This fixes that

Change-Id: I3c9ffd5d0282fa1b958bced94c25e9744281e9be

8 years agoMerge "Fix missing permission check when saving pattern/password" into mnc-dev
Jim Miller [Tue, 24 May 2016 22:04:36 +0000 (22:04 +0000)]
Merge "Fix missing permission check when saving pattern/password" into mnc-dev

8 years agoFix clipping not being activated on children in groups
Mady Mellor [Mon, 23 May 2016 23:10:38 +0000 (16:10 -0700)]
Fix clipping not being activated on children in groups

Some views were not getting the call to reactivate clipping
this is because only the when the view was made visible
was it reset, views made invisible would be missed.

Fixes: 27364129
Change-Id: Ie6944569f432cd657f7f741c95c4067b346ea98b

8 years agoMerge "Don't deliver broadcast to apps that are being backed up" into nyc-dev
Amith Yamasani [Tue, 24 May 2016 21:43:52 +0000 (21:43 +0000)]
Merge "Don't deliver broadcast to apps that are being backed up" into nyc-dev

8 years agoFix issue #28931042: wtf in system server
Dianne Hackborn [Tue, 24 May 2016 19:58:21 +0000 (12:58 -0700)]
Fix issue #28931042: wtf in system server

Broadcast needs to have a valid action.  We'll just pick
a generic one, since the receiver here doesn't care.

Change-Id: Ifff87626d11dd9fafb4e68819e8c8cecdf7fe1aa

8 years agoMerge "Report OTA time statistics" into nyc-dev
Tianjie Xu [Tue, 24 May 2016 21:35:23 +0000 (21:35 +0000)]
Merge "Report OTA time statistics" into nyc-dev

8 years agoMerge "Deprecate shell-based UI Automator." into nyc-dev
Allen Hair [Tue, 24 May 2016 21:29:44 +0000 (21:29 +0000)]
Merge "Deprecate shell-based UI Automator." into nyc-dev

8 years agoAdd check for \'.end-content-title\' to force the end of content section in an accord...
Amanda Kassay [Tue, 24 May 2016 21:28:50 +0000 (21:28 +0000)]
Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section. am: 85b7df2697 am: e468c2380d
am: 5a00e9d345

* commit '5a00e9d3450e0baccc89a88e586f8ce558e14aac':
  Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section.

Change-Id: I1d972ef1511ff8205ec54f1af7241db104ea976a

8 years agoMerge "Improve performance of LocaleList with Resources" into nyc-dev
Adam Lesinski [Tue, 24 May 2016 21:25:41 +0000 (21:25 +0000)]
Merge "Improve performance of LocaleList with Resources" into nyc-dev

8 years agoAdd check for \'.end-content-title\' to force the end of content section in an accord...
Amanda Kassay [Tue, 24 May 2016 21:23:50 +0000 (21:23 +0000)]
Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section. am: 85b7df2697
am: e468c2380d

* commit 'e468c2380ddcc1a7c1f2fa3c9995ad999e9c0ca8':
  Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section.

Change-Id: Ibb8848aed348e85fff5a47562212e88172557b0b

8 years agoFixed a few battery issues in SystemUI
Selim Cinek [Tue, 24 May 2016 20:33:47 +0000 (13:33 -0700)]
Fixed a few battery issues in SystemUI

Fixed a bug where animators could run forever because of
a negative start delay.
Also fixed a bug where the shadow would continuously update
when it shouldn't.

Change-Id: Id115d179d99fecf72c5f2b3be1a4c8590361469e
Fixes: 28930837

8 years agoMerge "Remove deprecated AudioManager.AudioRecordingCallback method" into nyc-dev
Jean-Michel Trivi [Tue, 24 May 2016 21:17:48 +0000 (21:17 +0000)]
Merge "Remove deprecated AudioManager.AudioRecordingCallback method" into nyc-dev

8 years agoMerge "Keep notifications with active remote inputs" into nyc-dev
Adrian Roos [Tue, 24 May 2016 21:13:29 +0000 (21:13 +0000)]
Merge "Keep notifications with active remote inputs" into nyc-dev

8 years agoMerge "Fix janky swiping with RemoteInputViews" into nyc-dev
Adrian Roos [Tue, 24 May 2016 21:13:20 +0000 (21:13 +0000)]
Merge "Fix janky swiping with RemoteInputViews" into nyc-dev

8 years agoAdd check for \'.end-content-title\' to force the end of content section in an accord...
Amanda Kassay [Tue, 24 May 2016 21:12:15 +0000 (21:12 +0000)]
Add check for \'.end-content-title\' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section.
am: 85b7df2697

* commit '85b7df26975997826a738a46ae4ab797941175ea':
  Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section.

Change-Id: If25728a85efb5b0ed46e87c45916621d8ad1d9ab

8 years agoMerge "Children should have backgrounds" into nyc-dev
Mady Mellor [Tue, 24 May 2016 20:59:49 +0000 (20:59 +0000)]
Merge "Children should have backgrounds" into nyc-dev

8 years agoAdd check for '.end-content-title' to force the end of content section in an accordio...
Amanda Kassay [Tue, 24 May 2016 20:19:33 +0000 (16:19 -0400)]
Add check for '.end-content-title' to force the end of content section in an accordion. Fixes js error on mobile when the footer is appended inside of a content section.

b/28917925

Related CL (critique): cl/123138252

Staged:
https://android-dot-devsite.googleplex.com/preview/setup-sdk.html?hl=es

Change-Id: I4eb606c0205af2315896fc0587cc1c4c2502f282