OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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

8 years agoMerge "Add Content Description for Focusable Elements in TV Recents UI" into nyc-dev
Sid Soundararajan [Tue, 24 May 2016 20:21:34 +0000 (20:21 +0000)]
Merge "Add Content Description for Focusable Elements in TV Recents UI" into nyc-dev

8 years agoMerge "Process user events from service lifecycle callbacks." into nyc-dev
Winson Chung [Tue, 24 May 2016 20:02:52 +0000 (20:02 +0000)]
Merge "Process user events from service lifecycle callbacks." into nyc-dev

8 years agoMerge changes I7773ed3a,I73d97d9a into nyc-dev
Selim Cinek [Tue, 24 May 2016 20:01:22 +0000 (20:01 +0000)]
Merge changes I7773ed3a,I73d97d9a into nyc-dev

* changes:
  Added accessibility action for scrolling the notifications
  Fixed a bug where the text directionality was inconsistent

8 years agoProcess user events from service lifecycle callbacks.
Winson [Sat, 21 May 2016 01:21:11 +0000 (18:21 -0700)]
Process user events from service lifecycle callbacks.

- Instead of waiting for the broadcast to start loading the user’s
  widgets, handle them in the service callbacks to ensure the app widget
  update broadcasts are enqueued earlier.

Bug: 27262341
Change-Id: I095abe5e15fe46412d00438986f7a9aee50872ca

8 years agoReport OTA time statistics
Tianjie Xu [Fri, 13 May 2016 19:30:29 +0000 (12:30 -0700)]
Report OTA time statistics

Read time and I/O for OTA update from last_install, and report the
statistics using MetricsLogger.histogram.

Bug: 28658632
Change-Id: I7fd06a82cbabd346d6d44f81ebad08f6baf4b8d0

8 years agoImprove performance of LocaleList with Resources
Adam Lesinski [Fri, 20 May 2016 01:23:05 +0000 (18:23 -0700)]
Improve performance of LocaleList with Resources

We allow each individual Resources object to select the best
Locale for the given APK. This allows one update to the configuration
instead of multiple updates, once the locale is chosen.

The Java locale is selected from the app context's locale.

Bug:28625993
Bug:27325465
Change-Id: I99e1e53f522e560f3b80bbd1e1c605f552dbdff0

8 years agoMerge "Fix first notification of each app is not shown" into nyc-dev
Tony Mak [Tue, 24 May 2016 19:46:11 +0000 (19:46 +0000)]
Merge "Fix first notification of each app is not shown" into nyc-dev

8 years agoDoc: delete old test_framework.png am: 05c98d5458
Adarsh Fernando [Tue, 24 May 2016 19:33:17 +0000 (19:33 +0000)]
Doc: delete old test_framework.png am: 05c98d5458
am: 734e7725ac

* commit '734e7725ac142264025cb292a6d22b1e618c8e81':
  Doc: delete old test_framework.png

Change-Id: I5d3e86ad0acc0837d4476b5ff2897764ec7487de

8 years agoDoc: delete old test_framework.png
Adarsh Fernando [Tue, 24 May 2016 19:20:55 +0000 (19:20 +0000)]
Doc: delete old test_framework.png
am: 05c98d5458

* commit '05c98d54583b84160ab8d7957989c8448fc06301':
  Doc: delete old test_framework.png

Change-Id: I54e69e3123b993e9e6e6b9a8a0c1a2e89011ed76

8 years agoPrevent LayerDrawable bounds updates from being re-entrant
Alan Viverette [Tue, 24 May 2016 19:14:38 +0000 (15:14 -0400)]
Prevent LayerDrawable bounds updates from being re-entrant

Collect child invalidations during layer bounds change, then dispatch a
single invalidation if any children requested invalidation. This prevents
re-entrance from, for example, a LayerDrawable.updateLayerBounds() call
invoking setBounds() on a child, which necessarily calls invalidateSelf()
and immediately propagates up to ImageView.invalidateDrawable(), which
then calls configureBounds() and puts us back in updateLayerBounds().

Bug: 28636072
Change-Id: I36c9eefc18904d493292d51b37e4b05cfddcf794

8 years agoRemove deprecated AudioManager.AudioRecordingCallback method
Jean-Michel Trivi [Tue, 24 May 2016 18:51:12 +0000 (11:51 -0700)]
Remove deprecated AudioManager.AudioRecordingCallback method

Remove AudioRecordingCallback.onRecordingConfigChanged(
         AudioRecordingConfiguration[] configs)

Bug 28819230

Change-Id: I3b85bb9313267499ac407099939b5889bdba996b

8 years agoDon't deliver broadcast to apps that are being backed up
Amith Yamasani [Mon, 16 May 2016 21:23:04 +0000 (14:23 -0700)]
Don't deliver broadcast to apps that are being backed up

When doing a full backup, mark the process as being in
backup and don't deliver any broadcasts to an app in
that state.

Bug: 25350780
Change-Id: I1adc95431f709495d3c1141c7c5d3616cf9cc1f0

8 years agoMerge "Adding SBAS offset to Gps/Gnss SvStatus converter" into nyc-dev
Wyatt Riley [Tue, 24 May 2016 18:52:50 +0000 (18:52 +0000)]
Merge "Adding SBAS offset to Gps/Gnss SvStatus converter" into nyc-dev

8 years agoAdd Content Description for Focusable Elements in TV Recents UI
Sid Soundararajan [Tue, 24 May 2016 18:49:46 +0000 (11:49 -0700)]
Add Content Description for Focusable Elements in TV Recents UI

Reusing strings from phone version. Will need new strings in MR1.

BUG: 28594452
Change-Id: I49dda83bb1d0d032a22d5171541123525fee929e

8 years agoChildren should have backgrounds
Mady Mellor [Sun, 1 May 2016 00:31:02 +0000 (17:31 -0700)]
Children should have backgrounds

To add a background to children of a group, a couple of things
are changed when a group is in the expanded state:
- The parent's shadow + background is removed
- The group header is given a background and elevation
- The children are elevated to cast a shadow and have backgrounds
- When it's fully expanded the dividers won't be shown
- There's extra height added to the parent so that the child
  may cast the bottom shadow of the group
- As the children move into the bottom stack the last visible
  one alters its height and the ones below it are hidden
  to achieve the clipping effect

Fixes: 27591195
Fixes: 28655641
Change-Id: I0484308843e9b8bc10391387e54de07973a48f7d

8 years agoMerge "media: unhide codec levels" into nyc-dev
TreeHugger Robot [Tue, 24 May 2016 18:36:56 +0000 (18:36 +0000)]
Merge "media: unhide codec levels" into nyc-dev

8 years agoAdd support for dismissing in Talkback Mode
Sid Soundararajan [Thu, 19 May 2016 21:08:46 +0000 (14:08 -0700)]
Add support for dismissing in Talkback Mode

This should let the user be able to access dismiss in talkback
mode. However, because talkback relies on focus changes to work,
the focus change animator is disabled. This means some visuals
will not work the same as when talkback is turned off.

BUG: 28594452
Change-Id: Idb443fe559bd7a636ff381e6727f81d41d0bd325

8 years agoDocs: Changed URL references of relocated test_framework.png am: b4c6f2b637
Adarsh Fernando [Tue, 24 May 2016 18:25:31 +0000 (18:25 +0000)]
Docs: Changed URL references of relocated test_framework.png am: b4c6f2b637
am: 9b81008076

* commit '9b810080769b26b1aecd97b96b3a1ffcd69341c1':
  Docs: Changed URL references of relocated test_framework.png

Change-Id: Ibcd8728ed898c32cac19eeff5ab55cb919acc14d

8 years agoDocs: Changed URL references of relocated test_framework.png
Adarsh Fernando [Tue, 24 May 2016 18:11:43 +0000 (18:11 +0000)]
Docs: Changed URL references of relocated test_framework.png
am: b4c6f2b637

* commit 'b4c6f2b63713c958e46b02b6c520271ec77fdda2':
  Docs: Changed URL references of relocated test_framework.png

Change-Id: Ief551478b2fa023cdea013c766017e3bc0eba79e

8 years agoMerge "Use correct synchronization lock" into nyc-dev
Amith Yamasani [Tue, 24 May 2016 18:10:56 +0000 (18:10 +0000)]
Merge "Use correct synchronization lock" into nyc-dev

8 years agoDeprecate shell-based UI Automator.
Allen Hair [Mon, 23 May 2016 23:31:34 +0000 (16:31 -0700)]
Deprecate shell-based UI Automator.

Change-Id: I15aee7a6aba551b737d2c41b4fafd5b0ced9a4b7

8 years agoDoc: delete old test_framework.png
Adarsh Fernando [Tue, 24 May 2016 17:58:43 +0000 (10:58 -0700)]
Doc: delete old test_framework.png

- file now relocated to /studio/images/test/test-framework.png

Change-Id: Ieb2d93472e29741be73f104bf319911b09accf6f

8 years agoFix first notification of each app is not shown
Tony Mak [Tue, 24 May 2016 17:57:50 +0000 (18:57 +0100)]
Fix first notification of each app is not shown

When app tries to post its first notification,
value of now is equal to that of mLastEventTime.
And hence getRate return a very large number.

Bug: 28902358

Change-Id: If5b5b3c46e2bb80a9b40988ba7f7d777e40cc8e7

8 years agoMerge "Fixed enforceMeteredApnPolicy when Data Saver is on." into nyc-dev
TreeHugger Robot [Tue, 24 May 2016 17:51:35 +0000 (17:51 +0000)]
Merge "Fixed enforceMeteredApnPolicy when Data Saver is on." into nyc-dev

8 years agoMerge "Register change Uri and notify changes in bugreportServices." into nyc-dev
Ben Lin [Tue, 24 May 2016 17:48:22 +0000 (17:48 +0000)]
Merge "Register change Uri and notify changes in bugreportServices." into nyc-dev

8 years agoWorkaround to display menus for AppCompat themes
Diego Perez [Tue, 24 May 2016 13:40:34 +0000 (14:40 +0100)]
Workaround to display menus for AppCompat themes

Layoutlib currently does not implement menus for the support Toolbar.
When it detects that an AppCompat theme is being used, it will try to
use by default the support Toolbar which breaks the display of menus.
This works around the problem by forcing layoutlib
to use the framework toolbar in menu previews (regular activities
won't display the menu if they use AppCompat).

Bug: http://b.android.com/210946
Change-Id: Ic1d162c6d74119ef42895776c3bc3851a9549120

8 years agomedia: unhide codec levels
Lajos Molnar [Tue, 24 May 2016 17:24:08 +0000 (10:24 -0700)]
media: unhide codec levels

Bug: 28930361
Change-Id: Ic9c55389c75ef0b789722aa0a7bddd5f56b15049

8 years agoMerge "Fix AudioTrack and AudioRecord documentation" into nyc-dev
Eric Laurent [Tue, 24 May 2016 17:15:10 +0000 (17:15 +0000)]
Merge "Fix AudioTrack and AudioRecord documentation" into nyc-dev

8 years agoMerge "Fix wallpaper crop during unlock animation" into nyc-dev
Chong Zhang [Tue, 24 May 2016 17:09:08 +0000 (17:09 +0000)]
Merge "Fix wallpaper crop during unlock animation" into nyc-dev

8 years agoMerge "Work on issue #27995384: Time in the top bar different..." into nyc-dev
Dianne Hackborn [Tue, 24 May 2016 16:56:00 +0000 (16:56 +0000)]
Merge "Work on issue #27995384: Time in the top bar different..." into nyc-dev

8 years agoDocs: Changed URL references of relocated test_framework.png
Adarsh Fernando [Tue, 24 May 2016 16:42:41 +0000 (09:42 -0700)]
Docs: Changed URL references of relocated test_framework.png

Change-Id: I45458480fd07fc9da7ad74a6fc04b5ccebd8d463

8 years agoAdding SBAS offset to Gps/Gnss SvStatus converter
Wyatt Riley [Mon, 23 May 2016 22:23:12 +0000 (15:23 -0700)]
Adding SBAS offset to Gps/Gnss SvStatus converter

Opposite sign of Glonass & BDS offsets.  Noticed after screenshot search & further testing.

Bug: 28623392
Change-Id: I6a7c98f455ee7df278eed985ba57ec1c12d888e0

8 years agomedia: add missing levels in CodecProfileLevel and fix limits
Lajos Molnar [Tue, 24 May 2016 14:27:21 +0000 (07:27 -0700)]
media: add missing levels in CodecProfileLevel and fix limits

Bug: 28671284
Change-Id: Ie4a91f5639ce8f1c5ac825ec829ac82e695d18b5