OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Null checks to prevent NPEs in Fragments transactions." into mnc-dev
George Mount [Tue, 21 Jul 2015 22:51:27 +0000 (22:51 +0000)]
Merge "Null checks to prevent NPEs in Fragments transactions." into mnc-dev

9 years agoMerge "Add callback to voice interaction session for lockscreen shown" into mnc-dev
Jorim Jaggi [Tue, 21 Jul 2015 22:46:30 +0000 (22:46 +0000)]
Merge "Add callback to voice interaction session for lockscreen shown" into mnc-dev

9 years agoMerge "Touch, wake and unlock" into mnc-dev
Jorim Jaggi [Tue, 21 Jul 2015 21:53:09 +0000 (21:53 +0000)]
Merge "Touch, wake and unlock" into mnc-dev

9 years agoNull checks to prevent NPEs in Fragments transactions.
George Mount [Tue, 21 Jul 2015 21:30:24 +0000 (14:30 -0700)]
Null checks to prevent NPEs in Fragments transactions.

Bug 22631964

Change-Id: I20bc80bfb0ba5f1081d1c349b94db7c5475bcc51

9 years agoMerge "Avoid NPE when no staged installs." into mnc-dev
Jeff Sharkey [Tue, 21 Jul 2015 21:23:56 +0000 (21:23 +0000)]
Merge "Avoid NPE when no staged installs." into mnc-dev

9 years agoMerge "Mark isInUse per-window" into mnc-dev
John Reck [Tue, 21 Jul 2015 20:50:27 +0000 (20:50 +0000)]
Merge "Mark isInUse per-window" into mnc-dev

9 years agoMerge "Updated JavaDoc for DISALLOW_MODIFY_ACCOUNTS restriction" into mnc-dev
Fyodor Kupolov [Tue, 21 Jul 2015 20:32:25 +0000 (20:32 +0000)]
Merge "Updated JavaDoc for DISALLOW_MODIFY_ACCOUNTS restriction" into mnc-dev

9 years agoMerge "Don't kill apps that are multi-user aware..." into mnc-dev
Amith Yamasani [Tue, 21 Jul 2015 20:04:19 +0000 (20:04 +0000)]
Merge "Don't kill apps that are multi-user aware..." into mnc-dev

9 years agoMerge "KM module may consume less input than provided by finish time." into mnc-dev
Alex Klyubin [Tue, 21 Jul 2015 19:50:47 +0000 (19:50 +0000)]
Merge "KM module may consume less input than provided by finish time." into mnc-dev

9 years agoAdd callback to voice interaction session for lockscreen shown
Jorim Jaggi [Mon, 20 Jul 2015 22:51:40 +0000 (15:51 -0700)]
Add callback to voice interaction session for lockscreen shown

Bug: 22402726
Change-Id: Iaf83e2f2b0389d74b6ecf480aa91a34443803f7b

9 years agoMerge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources"...
Adam Lesinski [Tue, 21 Jul 2015 19:26:43 +0000 (19:26 +0000)]
Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev

9 years agoMerge "Add 'pm' operation to set a package's app-linking state" into mnc-dev
Christopher Tate [Tue, 21 Jul 2015 19:11:34 +0000 (19:11 +0000)]
Merge "Add 'pm' operation to set a package's app-linking state" into mnc-dev

9 years agoBatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources
Adam Lesinski [Tue, 21 Jul 2015 19:08:56 +0000 (12:08 -0700)]
BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources

Previously we tried to read /d/wakeup_sources to gather kernel wakelock data. If that
fails we used the older sys file /proc/wakelocks.
N7 has both /proc/wakelocks and /d/wakeup_sources, but /proc/wakelocks
has the actual data we need. All other devices are using /d/wakeup_sources, so
only N7 experienced a loss of kernel wakelock data.

The original regression was introduced here: ag/659258

Bug:22556242
Change-Id: I51ec68e957f587bc1466e24f0a1dbc8cd7753ac6

9 years agoUpdated JavaDoc for DISALLOW_MODIFY_ACCOUNTS restriction
Fyodor Kupolov [Tue, 21 Jul 2015 18:48:18 +0000 (11:48 -0700)]
Updated JavaDoc for DISALLOW_MODIFY_ACCOUNTS restriction

Bug: 21521860
Change-Id: I0c2659f84589a77432317fbc89d49716027577d3

9 years agoMerge "Always create nodes for views backed by an adapter." into mnc-dev
Svetoslav [Tue, 21 Jul 2015 19:01:05 +0000 (19:01 +0000)]
Merge "Always create nodes for views backed by an adapter." into mnc-dev

9 years agoDon't kill apps that are multi-user aware...
Amith Yamasani [Tue, 21 Jul 2015 18:46:14 +0000 (11:46 -0700)]
Don't kill apps that are multi-user aware...

... when looking for background user apps that hold RECORD_AUDIO
permission.

On switching users, we kill any apps that might potentially be
recording audio. But we don't want to kill critical apps that need
to stay running because of multi-user aware services.

Bug: 22564430
Change-Id: I6d9a684d4e044cc3018f0f8181a44aa143a3baeb

9 years agoMerge "Use RingtonePlayer to get ringtone title" into mnc-dev
Todd Kennedy [Tue, 21 Jul 2015 18:11:16 +0000 (18:11 +0000)]
Merge "Use RingtonePlayer to get ringtone title" into mnc-dev

9 years agoMark isInUse per-window
John Reck [Tue, 21 Jul 2015 17:23:59 +0000 (10:23 -0700)]
Mark isInUse per-window

Bug: 22509159
Change-Id: I0ae0f1fa582ee38dcb9f24ca20f0b4d0c57ccb32

9 years agoMerge "UsbDeviceManager: add back support for USB overlays" into mnc-dev
Nick Kralevich [Tue, 21 Jul 2015 17:16:07 +0000 (17:16 +0000)]
Merge "UsbDeviceManager: add back support for USB overlays" into mnc-dev

9 years agoMerge "Respect style boundaries when measuring text" into mnc-dev
Raph Levien [Tue, 21 Jul 2015 16:55:37 +0000 (16:55 +0000)]
Merge "Respect style boundaries when measuring text" into mnc-dev

9 years agoMerge "resolved conflicts for merge of 112d8a36 to mnc-dev" into mnc-dev
Diego Perez [Tue, 21 Jul 2015 15:41:08 +0000 (15:41 +0000)]
Merge "resolved conflicts for merge of 112d8a36 to mnc-dev" into mnc-dev

9 years agoresolved conflicts for merge of 112d8a36 to mnc-dev
Diego Perez [Tue, 21 Jul 2015 14:28:10 +0000 (15:28 +0100)]
resolved conflicts for merge of 112d8a36 to mnc-dev

Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2

9 years agoMerge "Don't duplicate recent tasks of the same affinity." into mnc-dev
Wale Ogunwale [Tue, 21 Jul 2015 14:28:13 +0000 (14:28 +0000)]
Merge "Don't duplicate recent tasks of the same affinity." into mnc-dev

9 years agoDon't duplicate recent tasks of the same affinity.
Wale Ogunwale [Mon, 20 Jul 2015 22:43:37 +0000 (15:43 -0700)]
Don't duplicate recent tasks of the same affinity.

In change 510e554283d3dc250f836cd3e4abc36d87319333 we stated
limiting the number of document activity entries in recents
by comparing the realActivity of the tasks. This compared was
done for all tasks not just document tasks there by breaking
the use of task affinity to remove tasks with the same affinity
from recent task list. This change limits the compare of
realActivity to just document tasks.

Bug: 22564474
Bug: 18642190
Change-Id: Idc21ec311f194ab2005cb22380ca56303ae0ad94

9 years agoam d6f2a9ef: am 7720eb18: Merge "Render to measured size when using expand mode"...
Diego Perez [Tue, 21 Jul 2015 13:20:23 +0000 (13:20 +0000)]
am d6f2a9ef: am 7720eb18: Merge "Render to measured size when using expand mode" into lmp-mr1-dev

* commit 'd6f2a9efbb0e0525f6cf970fd9c9b9b7082b19f9':
  Render to measured size when using expand mode

9 years agoam 7720eb18: Merge "Render to measured size when using expand mode" into lmp-mr1-dev
Diego Perez [Tue, 21 Jul 2015 13:06:52 +0000 (13:06 +0000)]
am 7720eb18: Merge "Render to measured size when using expand mode" into lmp-mr1-dev

* commit '7720eb18c1c2fe06e8f4b2f6e2936a4072494da8':
  Render to measured size when using expand mode

9 years agoMerge "Render to measured size when using expand mode" into lmp-mr1-dev
Diego Perez [Tue, 21 Jul 2015 12:56:50 +0000 (12:56 +0000)]
Merge "Render to measured size when using expand mode" into lmp-mr1-dev

9 years agoAdd 'pm' operation to set a package's app-linking state
Christopher Tate [Mon, 20 Jul 2015 22:39:39 +0000 (15:39 -0700)]
Add 'pm' operation to set a package's app-linking state

Set an app's state:

  pm set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined}

Read an app's current state:

  pm get-app-link [--user USER_ID] PACKAGE

The latter prints to stdout one of the strings usable as an argument to
set-app-link.  If an error is encountered, the string printed to
stderr begins with "Error: ".

Bug 19628527

Change-Id: I68b6dc24445917807345a8cf5baa2078490740af

9 years agoUse RingtonePlayer to get ringtone title
Todd Kennedy [Mon, 20 Jul 2015 20:32:40 +0000 (13:32 -0700)]
Use RingtonePlayer to get ringtone title

Instead of requiring every application that calls Rintone.getTitle()
to request android.permission.READ_EXTERNAL_STORAGE, pass the call
through to the system UI process. We only do this for media store
URIs.

Bug: 22067670
Change-Id: I38cf3fb8d769ef6984c41a7b04afbbd4c57175ce

9 years agoMerge "TIF: Get or create the user state when failed to find existing one" into mnc-dev
Jae Seo [Mon, 20 Jul 2015 23:59:22 +0000 (23:59 +0000)]
Merge "TIF: Get or create the user state when failed to find existing one" into mnc-dev

9 years agoMerge "TIF: Use copied track list for onTracksChanged() callback" into mnc-dev
Terry Heo [Mon, 20 Jul 2015 23:57:28 +0000 (23:57 +0000)]
Merge "TIF: Use copied track list for onTracksChanged() callback" into mnc-dev

9 years agoTouch, wake and unlock
Jorim Jaggi [Thu, 9 Jul 2015 19:13:59 +0000 (12:13 -0700)]
Touch, wake and unlock

- Add onFingerprintAcquired, so Keyguard can grab a wakelock to prevent
the device from sleeping.
- If we get a successful fingerprint, wake the device up, immediately
dismiss the keyguard and tell PWM that we kicked off our frame that
will represent the correct state.
- PWM then waits for this frame to be drawn, and then turns on the
screen, which results in unlocking directly to the previsouly
opened app.

Bug: 21855614
Change-Id: I5f43df17fa5e4e9c6a6392eef4a4590b07df4f96

9 years agoMerge "MediaSessionRecord: do not hold a lock when calling AudioSystem.isStreamActive...
Dongwon Kang [Mon, 20 Jul 2015 23:49:59 +0000 (23:49 +0000)]
Merge "MediaSessionRecord: do not hold a lock when calling AudioSystem.isStreamActive" into mnc-dev

9 years agoMerge "Test app to emit all AccessibilityEvents to logcat." into mnc-dev
Jorim Jaggi [Mon, 20 Jul 2015 23:43:48 +0000 (23:43 +0000)]
Merge "Test app to emit all AccessibilityEvents to logcat." into mnc-dev

9 years agoFix unnecessary layer creation for appear animation
Jorim Jaggi [Mon, 20 Jul 2015 18:43:27 +0000 (11:43 -0700)]
Fix unnecessary layer creation for appear animation

Bug: 22561692
Change-Id: I9e5a52f8113d1cbb5afba61d7979770c2dddc5ed

9 years agoAvoid NPE when no staged installs.
Jeff Sharkey [Mon, 20 Jul 2015 23:36:55 +0000 (16:36 -0700)]
Avoid NPE when no staged installs.

listFiles() returns null instead of empty list; deal with it.

Bug: 22608671
Change-Id: I60dabec31932af3cded915c6927a4c5e5c71775d

9 years agoMerge "[RenderScript] Add docs advising users about dstAtop bug." into mnc-dev
Miao Wang [Mon, 20 Jul 2015 23:37:44 +0000 (23:37 +0000)]
Merge "[RenderScript] Add docs advising users about dstAtop bug." into mnc-dev

9 years agoFix window animation flickering
Jorim Jaggi [Mon, 20 Jul 2015 18:54:26 +0000 (11:54 -0700)]
Fix window animation flickering

Bug: 22502673
Change-Id: I939e5840e10f3c0582148a5a01908076f994ae69

9 years agoRespect style boundaries when measuring text
Raph Levien [Mon, 20 Jul 2015 23:22:01 +0000 (16:22 -0700)]
Respect style boundaries when measuring text

The existing implementation of handleText() in TextLine laid out
text to the end of the context. However, in cases where the text is
broken into multiple style spans, it's only valid to lay out up to
the end of the style span. This can lead to inconsistent
measurements, especially in the presence of legitimate zero-width
characters such as bidi control characters and zero width space.

This patch changes the invocation of getRunAdvance to measure only
within the style span.

Bug: 22589743
Change-Id: I027f5e77db27ddf9596ef20adcad7e62a82b41de

9 years agoTIF: Get or create the user state when failed to find existing one
Jae Seo [Mon, 20 Jul 2015 23:15:01 +0000 (16:15 -0700)]
TIF: Get or create the user state when failed to find existing one

Bug: 22560640
Change-Id: Idc56dc2b16319d173f005fc236f91f70d1a93fad

9 years agoMerge "Fix SysUI crashes on svelte devices" into mnc-dev
Jorim Jaggi [Mon, 20 Jul 2015 23:09:44 +0000 (23:09 +0000)]
Merge "Fix SysUI crashes on svelte devices" into mnc-dev

9 years ago[RenderScript] Add docs advising users about dstAtop bug.
Miao Wang [Mon, 20 Jul 2015 22:05:31 +0000 (15:05 -0700)]
[RenderScript] Add docs advising users about dstAtop bug.

Bug: 22047392
Change-Id: I736a697276020687c20dff515aabb1be1776f8c0

9 years agoMediaSessionRecord: do not hold a lock when calling AudioSystem.isStreamActive
Dongwon Kang [Mon, 20 Jul 2015 22:59:53 +0000 (15:59 -0700)]
MediaSessionRecord: do not hold a lock when calling AudioSystem.isStreamActive

AudioSystem.isStreamActive() includes a blocking IPC, so it shouldn't be called
in MSR.adjustVolume() which is called from MediaSessionService while holding a
lock.

Bug: 22606983
Change-Id: I3ab94e73731176d9bf80dbc2121702025547114c

9 years agoMerge "Adjust padding and font size in time picker for Large text mode" into mnc-dev
Alan Viverette [Mon, 20 Jul 2015 22:48:26 +0000 (22:48 +0000)]
Merge "Adjust padding and font size in time picker for Large text mode" into mnc-dev

9 years agoFix SysUI crashes on svelte devices
Jorim Jaggi [Mon, 20 Jul 2015 21:44:55 +0000 (14:44 -0700)]
Fix SysUI crashes on svelte devices

Bug: 22602295
Change-Id: Idac0d62683c0f6f7cf7b795967632e34d771c4f7

9 years agoMerge "Add missing invalidation check to drawable cache" into mnc-dev
Alan Viverette [Mon, 20 Jul 2015 22:44:30 +0000 (22:44 +0000)]
Merge "Add missing invalidation check to drawable cache" into mnc-dev

9 years agoUsbDeviceManager: add back support for USB overlays
Nick Kralevich [Mon, 20 Jul 2015 22:36:21 +0000 (15:36 -0700)]
UsbDeviceManager: add back support for USB overlays

Commit fcf10f7c12cb3107bdfedce6f76a8c866d154f3c removed support for USB
overlays. Add it back in, as some devices depend on it.

Bug: 22062484
Bug: 21195124
Change-Id: I74d12699201355b07475744c641e31fdc4bb5a4a

9 years agoMerge "[Fix MANAGE_USER permission in AccountManagerService] It seems that curently...
Simranjit Singh Kohli [Mon, 20 Jul 2015 22:39:49 +0000 (22:39 +0000)]
Merge "[Fix MANAGE_USER permission in AccountManagerService] It seems that curently there were situations where the init of Accounts in cache could trigger MANAGE_USER permission needed errors. The callers should make sure they are calling it after clearing identity." into mnc-dev

9 years agoMerge "Fix issue #22564918: Request is inactive" into mnc-dev
Dianne Hackborn [Mon, 20 Jul 2015 22:34:46 +0000 (22:34 +0000)]
Merge "Fix issue #22564918: Request is inactive" into mnc-dev

9 years agoFix jank in swipe-up to unlock
Jorim Jaggi [Wed, 15 Jul 2015 01:08:43 +0000 (18:08 -0700)]
Fix jank in swipe-up to unlock

Some stuff is slow in the swipe-up to unlock transition. Introduce
DejankUtils to execute it when RenderThread is doing its work.

Bug: 22205322
Change-Id: I7089f0a1bdca13ad13a1e305a7bff32276a3cd53

9 years agoFix issue #22564918: Request is inactive
Dianne Hackborn [Mon, 20 Jul 2015 21:49:58 +0000 (14:49 -0700)]
Fix issue #22564918: Request is inactive

Add Request.isActive() API.  Also improve documentation to tell
people what things cause it to become inactive.  And fix a race
where we were modifying the active list from outside the main
thread without locking it.

Change-Id: I9248e014126cb121612edbe595108ace753456e2

9 years agoAllow navigation bar drawing during window animations
Jorim Jaggi [Mon, 20 Jul 2015 19:19:52 +0000 (12:19 -0700)]
Allow navigation bar drawing during window animations

Bug: 22605259
Change-Id: I080dc7bf2dfdc6666a5f38eebecc7c9a6034d04a

9 years agoMerge "Fix default value of stereoReset() in the documentation." into mnc-dev
Roozbeh Pournader [Mon, 20 Jul 2015 21:20:00 +0000 (21:20 +0000)]
Merge "Fix default value of stereoReset() in the documentation." into mnc-dev

9 years agoMerge "Fix: Wrong suggestion popup position in extract mode." into mnc-dev
Keisuke Kuroyanagi [Mon, 20 Jul 2015 21:12:36 +0000 (21:12 +0000)]
Merge "Fix: Wrong suggestion popup position in extract mode." into mnc-dev

9 years agoMerge "Support optional modem restart on certain errors." into mnc-dev
Robert Greenwalt [Mon, 20 Jul 2015 21:10:39 +0000 (21:10 +0000)]
Merge "Support optional modem restart on certain errors." into mnc-dev

9 years agoAlways create nodes for views backed by an adapter.
Svetoslav [Mon, 20 Jul 2015 21:00:58 +0000 (14:00 -0700)]
Always create nodes for views backed by an adapter.

Some views are backed by adapter and if the adapter changed
but views are not updated we were not reporting the views.
This is not correct as the accessibility layer should always
access whatever is on the screen regardless if we know it
will change in the next layout pass.

bug:20920903

Change-Id: I5851c886848e7b8e59b76419c22124790d7e6f05

9 years agoMerge "Fix hotspot brokenness" into mnc-dev
Jason Monk [Mon, 20 Jul 2015 20:47:15 +0000 (20:47 +0000)]
Merge "Fix hotspot brokenness" into mnc-dev

9 years agoMerge "MediaSession: Do not lock on AudioManager.getStreamVolume" into mnc-dev
Jae Seo [Mon, 20 Jul 2015 20:45:07 +0000 (20:45 +0000)]
Merge "MediaSession: Do not lock on AudioManager.getStreamVolume" into mnc-dev

9 years agoMerge "Inherit ABI when moving existing install." into mnc-dev
Jeff Sharkey [Mon, 20 Jul 2015 20:44:53 +0000 (20:44 +0000)]
Merge "Inherit ABI when moving existing install." into mnc-dev

9 years agoInherit ABI when moving existing install.
Jeff Sharkey [Mon, 20 Jul 2015 20:40:18 +0000 (13:40 -0700)]
Inherit ABI when moving existing install.

Previously installed apps are moved between volumes as an complete
package, including any previously unpacked native libraries.  This
means we need to inherit any previously derived ABI when moving.

Bug: 22093837
Change-Id: I7656e338affa44e7f997fe4aa95bb297c0acc165

9 years agoMerge "Bidi-wrap the results of format[Short]FileSize()." into mnc-dev
Roozbeh Pournader [Mon, 20 Jul 2015 20:30:37 +0000 (20:30 +0000)]
Merge "Bidi-wrap the results of format[Short]FileSize()." into mnc-dev

9 years agoAdjust padding and font size in time picker for Large text mode
Alan Viverette [Mon, 20 Jul 2015 20:28:21 +0000 (16:28 -0400)]
Adjust padding and font size in time picker for Large text mode

Bug: 22514034
Change-Id: I9ad22f2d14565b67558f2a48b2c160e05c23f81c

9 years agoAdd missing invalidation check to drawable cache
Alan Viverette [Mon, 20 Jul 2015 20:03:04 +0000 (16:03 -0400)]
Add missing invalidation check to drawable cache

Bug: 22478448
Change-Id: Ic9da1898cd921d8c133ef5397fc97a664601a863

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Mon, 20 Jul 2015 19:58:35 +0000 (19:58 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 20 Jul 2015 19:51:19 +0000 (12:51 -0700)]
Import translations. DO NOT MERGE

Change-Id: I41156105dcb753a1d9338cdbacebe03d2b4b4f1d
Auto-generated-cl: translation import

9 years agoMerge "Fix issue #22531747: Assist info should declare if user has disabled..." into...
Dianne Hackborn [Mon, 20 Jul 2015 19:50:47 +0000 (19:50 +0000)]
Merge "Fix issue #22531747: Assist info should declare if user has disabled..." into mnc-dev

9 years agoFix issue #22531747: Assist info should declare if user has disabled...
Dianne Hackborn [Sat, 18 Jul 2015 01:04:14 +0000 (18:04 -0700)]
Fix issue #22531747: Assist info should declare if user has disabled...

...context and/or screenshot

Added new API to find out what contextual data has been globally disabled.

Also updated various documentation to make it clear what kind of contextual
data you will get (and when it will be null).

Also added a new Activity.showAssist() API because...  well, I was already
in there, it was easy to do, it is safe, and maybe people will build cool
things with it.

Change-Id: Ia553d6bcdd098dc0fce4b9237fbfaca9652fc74b

9 years agoMerge "Fixed issue with background user window consuming touch events" into mnc-dev
Wale Ogunwale [Mon, 20 Jul 2015 18:45:58 +0000 (18:45 +0000)]
Merge "Fixed issue with background user window consuming touch events" into mnc-dev

9 years agoMerge "Fix for MidiManager bug" into mnc-dev
Ricardo Garcia [Mon, 20 Jul 2015 18:03:41 +0000 (18:03 +0000)]
Merge "Fix for MidiManager bug" into mnc-dev

9 years agoMerge "Bug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WIND...
Billy Lau [Mon, 20 Jul 2015 17:57:25 +0000 (17:57 +0000)]
Merge "Bug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WINDOW through AppOps" into mnc-dev

9 years agoMerge "Better logging of MediaPlayer failure reason." into mnc-dev
Jeff Sharkey [Mon, 20 Jul 2015 17:37:06 +0000 (17:37 +0000)]
Merge "Better logging of MediaPlayer failure reason." into mnc-dev

9 years agoBug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WINDOW
Billy Lau [Mon, 20 Jul 2015 16:34:09 +0000 (17:34 +0100)]
Bug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WINDOW
through AppOps

Expose OP_STR strings that describes the ops for WRITE_SETTINGS and
SYSTEM_ALERT_WINDOW permissions such that apps can query AppOpsManager
whether this capability is turned on or off by the user.

Change-Id: I0e7a6f39e02389290232e450624b40ffb255abfb

9 years agoMerge "Media button intent should be send to current user only." into mnc-dev
Jean-Michel Trivi [Mon, 20 Jul 2015 17:25:27 +0000 (17:25 +0000)]
Merge "Media button intent should be send to current user only." into mnc-dev

9 years agoFix default value of stereoReset() in the documentation.
Roozbeh Pournader [Fri, 17 Jul 2015 21:00:10 +0000 (14:00 -0700)]
Fix default value of stereoReset() in the documentation.

The default has been 'true' for eternity in the code. But the
documentation was mistakenly saying it was 'false'. Going with the
code, since there are people out there relying on the code continuing
to work the same way.

Bug: 22557371
Change-Id: I6f4e7b2052d0cc30d41e8ccf2b9a5c6111fa0ab7

9 years agoMerge "Don't fall back to domain verification state when looking up app linkage state...
Christopher Tate [Mon, 20 Jul 2015 17:05:27 +0000 (17:05 +0000)]
Merge "Don't fall back to domain verification state when looking up app linkage state" into mnc-dev

9 years agoBetter logging of MediaPlayer failure reason.
Jeff Sharkey [Mon, 20 Jul 2015 16:38:02 +0000 (09:38 -0700)]
Better logging of MediaPlayer failure reason.

Otherwise exception details are dropped on the floor, making it
hard to debug.

Bug: 22525550
Change-Id: I6ab9eb8461a23b9d9b8a0ea6dd1ae8ee2495dd01

9 years agoFix hotspot brokenness
Jason Monk [Mon, 20 Jul 2015 16:18:38 +0000 (12:18 -0400)]
Fix hotspot brokenness

 - Only get state from broadcast to not get out of sync with Settings
 - Actually set the state when there isn't a boolean in the refresh
   object
 - Remove unused things

Bug: 22573156
Change-Id: Ibfb4966c99ba85f83701695c38275ba217854b22

9 years agoTIF: Use copied track list for onTracksChanged() callback
Terry Heo [Fri, 17 Jul 2015 07:03:28 +0000 (16:03 +0900)]
TIF: Use copied track list for onTracksChanged() callback

In notifyTracksChanged(), the calling onTracksChanged() could be delayed.
To prevent race condition on tracks, we should use the copy of tracks.

Bug: 22436933
Change-Id: I0c595df9d06d5f7bda4a9f8c21a661f7aa7db71f

9 years agoFixed issue with background user window consuming touch events
Wale Ogunwale [Sat, 18 Jul 2015 05:29:54 +0000 (22:29 -0700)]
Fixed issue with background user window consuming touch events

When adding a window for a background user, it is possible for
the window to consume touch events because it is in the
COMMIT_DRAW_PENDING state. We allow the background user window
to transition READY_TO_SHOW state, but hide the window.

Change is based on https://android-review.googlesource.com/#/c/158772
and also reverts commits 6ee618509a392adb183c2e70390cd9e2031ff0d8
and 588932a53e63c0a7ee281dea22559c129b40eb99

Bug: 22531717
Bug: 22207948
Bug: 18510914
https://code.google.com/p/android-developer-preview/issues/detail?id=2667

Change-Id: I68d2e532c2b1def0d7b22c9b60e48110cf3cd686

9 years agoAdjust fingerprint icon placement to spec
Jorim Jaggi [Fri, 17 Jul 2015 19:00:34 +0000 (12:00 -0700)]
Adjust fingerprint icon placement to spec

Bug: 22502068
Change-Id: I12952cb1ea43f365d5a63ec2636a5d60a981b93f

9 years agoMerge "Fix AssetAtlas usage in BitmapShaders" into mnc-dev
Chris Craik [Fri, 17 Jul 2015 23:59:14 +0000 (23:59 +0000)]
Merge "Fix AssetAtlas usage in BitmapShaders" into mnc-dev

9 years agoFix: Wrong suggestion popup position in extract mode.
Keisuke Kuroyanagi [Mon, 6 Jul 2015 09:20:41 +0000 (18:20 +0900)]
Fix: Wrong suggestion popup position in extract mode.

Replace text was handled by the original EditText; thus, we
couldn't correctly decide popup window position.
Also, changing selection range replaces entire text of the
extracted EditText. As a result, text cannot be replaced
with the selected item when there is a selection.

This change is a workaround for this issue. This quits
offering "Replace" for selection in extract mode.

Bug: 22038802
Change-Id: I052b027cfd10eeb289f77f4c6b228acf58fea636

9 years agoMerge "Fix image wallpaper size" into mnc-dev
Adrian Roos [Fri, 17 Jul 2015 23:29:56 +0000 (23:29 +0000)]
Merge "Fix image wallpaper size" into mnc-dev

9 years agoMerge "Clear identity when killing media provider." into mnc-dev
Jeff Sharkey [Fri, 17 Jul 2015 23:29:51 +0000 (23:29 +0000)]
Merge "Clear identity when killing media provider." into mnc-dev

9 years agoMerge "Localize SimpleMonthView" into mnc-dev
Chet Haase [Fri, 17 Jul 2015 23:27:54 +0000 (23:27 +0000)]
Merge "Localize SimpleMonthView" into mnc-dev

9 years agoClear identity when killing media provider.
Jeff Sharkey [Fri, 17 Jul 2015 22:12:39 +0000 (15:12 -0700)]
Clear identity when killing media provider.

Otherwise various shell "sm" commands fail because they don't hold
the right permissions.

Bug: 22564405
Change-Id: I88081e8a9b27ee43904d3ea6f745aba3af4e2150

9 years agoMerge "Persist version data on a per-volume basis." into mnc-dev
Jeff Sharkey [Fri, 17 Jul 2015 23:20:35 +0000 (23:20 +0000)]
Merge "Persist version data on a per-volume basis." into mnc-dev

9 years agoPersist version data on a per-volume basis.
Jeff Sharkey [Fri, 17 Jul 2015 21:56:34 +0000 (14:56 -0700)]
Persist version data on a per-volume basis.

Now that we support multiple adopted external storage devices, we
need to keep track of version data for each volume.  This means we
now correctly handle certificate upgrade edge cases, permission
regranting, and clearing of code caches on a per-volume basis.

Bug: 22298966
Change-Id: Ifb9940c197f6c058a3ecca728257f853ce0fd7f4

9 years agoMerge "Add API to turn OFF "best network selection" feature" into mnc-dev
xinhe [Fri, 17 Jul 2015 23:13:03 +0000 (23:13 +0000)]
Merge "Add API to turn OFF "best network selection" feature" into mnc-dev

9 years agoFix AssetAtlas usage in BitmapShaders
Chris Craik [Fri, 17 Jul 2015 22:51:36 +0000 (15:51 -0700)]
Fix AssetAtlas usage in BitmapShaders

bug:22521999

Change-Id: I60859748ceee19ebc89ec98845e550ea26e36ecd

9 years agoMerge "Revert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"" into...
Svetoslav Ganov [Fri, 17 Jul 2015 22:39:29 +0000 (22:39 +0000)]
Merge "Revert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"" into mnc-dev

9 years agoDon't fall back to domain verification state when looking up app linkage state
Christopher Tate [Fri, 17 Jul 2015 22:39:08 +0000 (15:39 -0700)]
Don't fall back to domain verification state when looking up app linkage state

This is in support of the always/never/ask UI tweaks in Settings: any
"assume always" fallback at the verification layer should not be
conflated with the user-facing semantic toggle.  This was causing the
UI to report apps as being in the 'always open their links' state
inappropriately.

Bug 22532193

Change-Id: Iaa4bc3a2d5db814e1b0d96bc1c4ecfaafb1e3105

9 years agoMerge "Work on issue #22556778: Starting under voice control not allowed" into mnc-dev
Dianne Hackborn [Fri, 17 Jul 2015 22:03:44 +0000 (22:03 +0000)]
Merge "Work on issue #22556778: Starting under voice control not allowed" into mnc-dev

9 years agoLocalize SimpleMonthView
Chet Haase [Fri, 17 Jul 2015 19:42:08 +0000 (12:42 -0700)]
Localize SimpleMonthView

The days of the month were not being localized, resulting in
English numbers for non-English languages. Now we format the numbers
with the current locale.

Issue #22540629  [MRA14D][Arab][Token] numbers displayed in english

Change-Id: I2b17d55ba2d0aa47b5a28c8846c6cf9723ababb1

9 years agoMerge "Grant default permissions to default apps despite user choices." into mnc-dev
Svet Ganov [Fri, 17 Jul 2015 20:58:11 +0000 (20:58 +0000)]
Merge "Grant default permissions to default apps despite user choices." into mnc-dev

9 years agoGrant default permissions to default apps despite user choices.
Svet Ganov [Fri, 17 Jul 2015 01:56:16 +0000 (18:56 -0700)]
Grant default permissions to default apps despite user choices.

This implements the policy of granting default permissions to default
apps upon a selection despite past user permission choices. The act of
picking the app as the default one means the user expects it to work in
this capacity as SMS app, Phone app, Browser app.

bug:22062549

Change-Id: I5e427f2b939e85bb8bbfd311cc271b96857a7ce6

9 years agoRevert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"
Svetoslav Ganov [Fri, 17 Jul 2015 20:34:18 +0000 (20:34 +0000)]
Revert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"

This reverts commit 33852d8cd21434b4106b8f2c504752ef34abb2da.

Change-Id: I29a212876c93ae0288967ffcff223abafad78827

9 years agoMerge "Do not auto grant GET_ACCOUNTS as it is temporarily normal" into mnc-dev
Svet Ganov [Fri, 17 Jul 2015 20:27:33 +0000 (20:27 +0000)]
Merge "Do not auto grant GET_ACCOUNTS as it is temporarily normal" into mnc-dev

9 years agoDo not auto grant GET_ACCOUNTS as it is temporarily normal
Svet Ganov [Fri, 17 Jul 2015 20:21:32 +0000 (13:21 -0700)]
Do not auto grant GET_ACCOUNTS as it is temporarily normal

bug:22550851

Change-Id: Iea5dd8fde07074220167a937b32208b1c9488d9d

9 years agoMerge "Scaling (Animated)VectorDrawable inside ImageView" into mnc-dev
ztenghui [Fri, 17 Jul 2015 20:21:14 +0000 (20:21 +0000)]
Merge "Scaling (Animated)VectorDrawable inside ImageView" into mnc-dev