OSDN Git Service

android-x86/frameworks-base.git
8 years agoRevert "Improve accessibility window title behavior"
Phil Weaver [Wed, 8 Jun 2016 00:34:40 +0000 (00:34 +0000)]
Revert "Improve accessibility window title behavior"

Bug: 29127065

This reverts commit 2a7e4442bf9892842e0fc7eba9296e8fcf9f8ea5.

Change-Id: Ibc5527cfedd49c685ffd1b8ae59e87ed99c93d39

8 years agoImprove accessibility window title behavior
Phil Weaver [Thu, 19 May 2016 22:27:07 +0000 (15:27 -0700)]
Improve accessibility window title behavior

Suppress the default, unlocalized strings from being read as title.

Bug: 28744278
Change-Id: Iea0f7d8fed3d6428ada725cf3ffa077ba974b74a

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 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 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 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 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

8 years agoSet autobundled summary color.
Julia Reynolds [Fri, 20 May 2016 14:25:43 +0000 (10:25 -0400)]
Set autobundled summary color.

Change-Id: I8ceb0b045359dc364fcec411fcfc610f7f57d8db
Fixes: 28615262

8 years agoMerge "QS: Don't cause click noise when opening from QQS" into nyc-dev
Jason Monk [Tue, 24 May 2016 13:35:02 +0000 (13:35 +0000)]
Merge "QS: Don't cause click noise when opening from QQS" into nyc-dev

8 years agoMerge "Set accessibility string for suspended widgets." into nyc-dev
Kenny Guy [Tue, 24 May 2016 13:11:11 +0000 (13:11 +0000)]
Merge "Set accessibility string for suspended widgets." into nyc-dev

8 years agoMerge "Load WebView even if WebView relro creation times out." into nyc-dev
Gustav Sennton [Tue, 24 May 2016 10:39:31 +0000 (10:39 +0000)]
Merge "Load WebView even if WebView relro creation times out." into nyc-dev

8 years agoMerge "Support IPv6 multicast filtering in APF." into nyc-dev
Lorenzo Colitti [Tue, 24 May 2016 03:14:37 +0000 (03:14 +0000)]
Merge "Support IPv6 multicast filtering in APF." into nyc-dev

8 years agoReduced the impact of "synchronized" statements
Pavlin Radoslavov [Mon, 23 May 2016 05:16:41 +0000 (22:16 -0700)]
Reduced the impact of "synchronized" statements

* Removed "synchronized" statements that are not needed
* Replaced "synchronized" statements with Read/Write lock as
 appropriate. The lock protects the access to and the setting of
 BluetoothAdapter.mService and BluetoothManagerService.mBluetooth and
 associated state.

Bug: 28734075
Bug: 28799467
Change-Id: I8f8281c505f0a1ae0add1e14a3caba1f5b2a98e4

8 years agoFix AudioTrack and AudioRecord documentation
Eric Laurent [Mon, 23 May 2016 19:41:50 +0000 (12:41 -0700)]
Fix AudioTrack and AudioRecord documentation

Improve documentation for error codes returned by
AudioTrack.write() and AudioRecord.read() methods.
Fix native to JAVA error code conversion in JNI.

Bug: 28906466

Change-Id: I4d48b1d428834b7a39a14e2d81b6c164696817a8

8 years agoCreated 4 camera preview stress test cases.
Hang Yin [Tue, 10 May 2016 19:26:13 +0000 (12:26 -0700)]
Created 4 camera preview stress test cases.

The 4 stress test cases cover situations of preview switch between
front/back camera and between photo/video mode. Followed Google
Camera App Kenai version streaming rules to set preview request in
the tests.

b/28916141 will be solved once this change is merged

Change-Id: I448be429df5b0813fa2e2f6ff05ad2936afee1b3

8 years agoUse correct synchronization lock
Amith Yamasani [Tue, 24 May 2016 00:21:08 +0000 (17:21 -0700)]
Use correct synchronization lock

This is to fix an incorrect unregister() that was crashing
the system server. The only way it could be happening is
because of incorrect locking. So, hopefully this fixes it.

Bug: 28813750
Change-Id: Ie3c47ffa3024a0c533e12db0d2d021df8fc0367a

8 years agoMerge "Fix issue #28868955: CTS: PendingIntentTest failures; Regressed in NRD48x...
Dianne Hackborn [Tue, 24 May 2016 00:18:38 +0000 (00:18 +0000)]
Merge "Fix issue #28868955: CTS: PendingIntentTest failures; Regressed in NRD48x" into nyc-dev

8 years agoMerge "PIP: Handle configuration changes" into nyc-dev
Jaewan Kim [Tue, 24 May 2016 00:05:26 +0000 (00:05 +0000)]
Merge "PIP: Handle configuration changes" into nyc-dev

8 years agoAdded accessibility action for scrolling the notifications
Selim Cinek [Fri, 20 May 2016 19:44:30 +0000 (12:44 -0700)]
Added accessibility action for scrolling the notifications

Also made the stackscroller focusable if and only if it is
scrollable. This will allow it to be important for accessibility
again.

Change-Id: I7773ed3a19d23f6bc62a1b9a23464cfbecd0ec03
Fixes: 25673942

8 years agoFix wallpaper crop during unlock animation
Chong Zhang [Mon, 23 May 2016 23:43:48 +0000 (16:43 -0700)]
Fix wallpaper crop during unlock animation

Do not crop wallpaper if the wallpaper target is animating but stack
clip mode is not STACK_CLIP_AFTER_ANIM. We can't crop wallpaper with
final bounds as the crop needs to apply before the transform.

bug: 28887408
Change-Id: I62b9a5ca818c3ca8d0af26d807318f63747b8ac4

8 years agoWork on issue #27995384: Time in the top bar different...
Dianne Hackborn [Mon, 23 May 2016 22:59:18 +0000 (15:59 -0700)]
Work on issue #27995384: Time in the top bar different...

...from time in the clock app

Always reset the kernel's next wake up time when we come
out of it, even if it didn't say an alarm went off.

Also add some more debugging to try to figure out what is
going on.

Change-Id: Ibf36d65b78c841128774d81517a7eb670c396c29

8 years agoMerge "Support DHCPv4 rebinding state" into nyc-dev
Erik Kline [Mon, 23 May 2016 23:19:03 +0000 (23:19 +0000)]
Merge "Support DHCPv4 rebinding state" into nyc-dev

8 years agoMerge "Deprecate unnecessairy Notification.Style constructors" into nyc-dev
TreeHugger Robot [Mon, 23 May 2016 23:04:35 +0000 (23:04 +0000)]
Merge "Deprecate unnecessairy Notification.Style constructors" into nyc-dev

8 years agoFixed a bug where the text directionality was inconsistent
Selim Cinek [Fri, 20 May 2016 20:29:23 +0000 (13:29 -0700)]
Fixed a bug where the text directionality was inconsistent

The title would not be fully right aligned because it wasn't
layouted with match_parent because there could be a second visible
text when there is a progressbar.

Change-Id: I73d97d9a8addaec0e3b849349f220c764fa45db0
Fixes: 27893267

8 years agoFix issue #28868955: CTS: PendingIntentTest failures; Regressed in NRD48x
Dianne Hackborn [Mon, 23 May 2016 21:39:45 +0000 (14:39 -0700)]
Fix issue #28868955: CTS: PendingIntentTest failures; Regressed in NRD48x

Uh, yeah.

Change-Id: I452187fcdda634ebf00e5d6bcaa45433f348c17e