OSDN Git Service

android-x86/frameworks-base.git
9 years agoam 26c95085: (-s ours) am cdd3fb5c: Merge "Extracted a separate class to run dexopt...
Andreas Gampe [Fri, 13 Mar 2015 03:20:32 +0000 (03:20 +0000)]
am 26c95085: (-s ours) am cdd3fb5c: Merge "Extracted a separate class to run dexopt on packages"

* commit '26c95085b37d8d1ddc25a8d4d50b54b0ae6242c9':
  Extracted a separate class to run dexopt on packages

9 years agoam bb8c910f: am d2e4a166: Merge "Remove dead path code"
Jason Sams [Fri, 13 Mar 2015 02:59:40 +0000 (02:59 +0000)]
am bb8c910f: am d2e4a166: Merge "Remove dead path code"

* commit 'bb8c910fc12f304c97c94ee86a3a3da56afe8374':
  Remove dead path code

9 years agoDon't allow clients to add FDs to Looper without callbacks.
Jeff Brown [Fri, 13 Mar 2015 02:36:28 +0000 (19:36 -0700)]
Don't allow clients to add FDs to Looper without callbacks.

Bug: 10349083
Change-Id: Ia75e37bb1055559f6442f97c42ec109078e737b6

9 years agoMerge "Don't run full backups until package metadata has been pushed"
Christopher Tate [Fri, 13 Mar 2015 01:27:33 +0000 (01:27 +0000)]
Merge "Don't run full backups until package metadata has been pushed"

9 years agoDon't run full backups until package metadata has been pushed
Christopher Tate [Fri, 13 Mar 2015 01:24:30 +0000 (18:24 -0700)]
Don't run full backups until package metadata has been pushed

Bug 19692849

Change-Id: I13615db7408b5c6fbc787c4773103c052e70f0b2

9 years agoMerge "Volume policy updates."
John Spurlock [Fri, 13 Mar 2015 00:59:33 +0000 (00:59 +0000)]
Merge "Volume policy updates."

9 years agoMerge "NetworkStatsService to adjust VPN stats before recording."
Wenchao Tong [Fri, 13 Mar 2015 00:54:07 +0000 (00:54 +0000)]
Merge "NetworkStatsService to adjust VPN stats before recording."

9 years agoNetworkStatsService to adjust VPN stats before recording.
Wenchao Tong [Wed, 4 Mar 2015 21:26:38 +0000 (13:26 -0800)]
NetworkStatsService to adjust VPN stats before recording.

* Creates a new Parcelable class VpnInfo to hold required
  parameters for VPN stats adjustments.
* ConnectivityService to collect infomation and provide
  a list of VpnInfo, one for each user.
* NetworkStatsService passes the VpnInfo array to
  NetworkStatsRecorder.
* NetworkStatsRecorder calls NetworkStats.migrateTun()
  to do the math.
* Poll NetworkStats when the vpn application calls
  setUnderlyingNetworks().

Bug: 19536273
Change-Id: I7a4c7726b8243fead10416f7ec6eb5cf95f20183

9 years agoMerge "Add API for WebView OffscreenPreRaster setting."
Hui Shu [Fri, 13 Mar 2015 00:38:45 +0000 (00:38 +0000)]
Merge "Add API for WebView OffscreenPreRaster setting."

9 years agoam 6c881ec9: am 872a731e: am a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am...
Luan Nguyen [Fri, 13 Mar 2015 00:03:06 +0000 (00:03 +0000)]
am 6c881ec9: am 872a731e: am a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and design page image assets"" into lmp-docs

* commit '6c881ec9d588202172c45f3152c15fe0069b0ebb':
  Revert "docs: Update auto landing and design page image assets"

9 years agoresolved conflicts for merge of 42f55d1e to master
Marco Nelissen [Thu, 12 Mar 2015 23:17:45 +0000 (16:17 -0700)]
resolved conflicts for merge of 42f55d1e to master

Change-Id: I9c26861c5b0e26bb55e50b2133b7561348a01aec

9 years agoAdd API for WebView OffscreenPreRaster setting.
Hui Shu [Tue, 3 Mar 2015 19:38:41 +0000 (11:38 -0800)]
Add API for WebView OffscreenPreRaster setting.

BUG: 19592029
Change-Id: Ic903b823e5f7830e2cf2d4f3dd9a5458334648a3

9 years agoMerge "Protect against NPE for ActivityRecords without a stack."
Wale Ogunwale [Thu, 12 Mar 2015 22:31:04 +0000 (22:31 +0000)]
Merge "Protect against NPE for ActivityRecords without a stack."

9 years agoMerge "Revert "Revert "Remove activity and window stacks when last task is removed."""
Wale Ogunwale [Thu, 12 Mar 2015 22:30:48 +0000 (22:30 +0000)]
Merge "Revert "Revert "Remove activity and window stacks when last task is removed."""

9 years agoMerge "NetworkStats to support VPN accounting."
Wenchao Tong [Thu, 12 Mar 2015 22:10:55 +0000 (22:10 +0000)]
Merge "NetworkStats to support VPN accounting."

9 years agoProtect against NPE for ActivityRecords without a stack.
Wale Ogunwale [Wed, 11 Mar 2015 22:36:30 +0000 (15:36 -0700)]
Protect against NPE for ActivityRecords without a stack.

A previous change allowed us to remove stack that no longer contained
any task. This was causing some NPE when an ActivityRecord.Token or
some other cached ActivityRecord later gets converted back to an
ActivityRecord and we try to access its stack.

Bug: 19552874
Change-Id: Ie9454bbce56591b337f97af40f8c00b8597becdf

9 years agoMerge "Fix negative touch word offset that caused crashing when selecting text"
Roozbeh Pournader [Thu, 12 Mar 2015 21:45:21 +0000 (21:45 +0000)]
Merge "Fix negative touch word offset that caused crashing when selecting text"

9 years agoam 3df87bac: am 5228d083: am 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am...
Luan Nguyen [Thu, 12 Mar 2015 21:33:28 +0000 (21:33 +0000)]
am 3df87bac: am 5228d083: am 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design page image assets" into lmp-docs

* commit '3df87baca9b62acdd425ea2dc8ae390e311ae6a3':
  docs: Update auto landing and design page image assets

9 years agoam 964b4018: am 40055c22: am 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am...
Rich Slogar [Thu, 12 Mar 2015 21:33:21 +0000 (21:33 +0000)]
am 964b4018: am 40055c22: am 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into lmp-docs

* commit '964b4018499a0e1a50364f81f576a7181252841a':
  docs: eclipse revisions update

9 years agoam fd9d8c7b: am e5fd6c76: am 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am...
Andrew Solovay [Thu, 12 Mar 2015 21:33:14 +0000 (21:33 +0000)]
am fd9d8c7b: am e5fd6c76: am 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for Auto"

* commit 'fd9d8c7bcb81c31b7b43eb4f88ab8fc583ea9ac2':
  docs: Revisions to "Providing Messaging for Auto"

9 years agoMerge "Revert "Update ParcelFileDescriptor to use non-blocking I/O.""
Jeff Brown [Thu, 12 Mar 2015 21:25:39 +0000 (21:25 +0000)]
Merge "Revert "Update ParcelFileDescriptor to use non-blocking I/O.""

9 years agoRevert "Update ParcelFileDescriptor to use non-blocking I/O."
Jeff Brown [Thu, 12 Mar 2015 21:25:00 +0000 (21:25 +0000)]
Revert "Update ParcelFileDescriptor to use non-blocking I/O."

Bug: 19715279
This reverts commit a34a3bdcbf2e7057d294a8699bbe1be880500f6d.

Change-Id: Ief03dee1c0a2b4d906797a5c279663c17439c347

9 years agoMerge "Enforce null-termination in ResStringPool::stringAt"
Vishwath Mohan [Thu, 12 Mar 2015 21:17:48 +0000 (21:17 +0000)]
Merge "Enforce null-termination in ResStringPool::stringAt"

9 years agoMerge "Camera: add @hide API for setting camera rotation"
Yin-Chia Yeh [Thu, 12 Mar 2015 20:36:48 +0000 (20:36 +0000)]
Merge "Camera: add @hide API for setting camera rotation"

9 years agoam 276d1bc9: am a98c21a6: Make circular mask thickness configurable
Prashant Malani [Thu, 12 Mar 2015 20:31:52 +0000 (20:31 +0000)]
am 276d1bc9: am a98c21a6: Make circular mask thickness configurable

* commit '276d1bc929485e53ba4d4e93d4cc3ded3fcc2fc3':
  Make circular mask thickness configurable

9 years agoam e011eb4f: am dff0fdb4: Merge "Add translatable=false to dozeComponent" into lmp...
Justin Koh [Thu, 12 Mar 2015 20:31:41 +0000 (20:31 +0000)]
am e011eb4f: am dff0fdb4: Merge "Add translatable=false to dozeComponent" into lmp-mr1-modular-dev

* commit 'e011eb4ff9a082de69fea747141764de2f6f3dcc':
  Add translatable=false to dozeComponent

9 years agoFix negative touch word offset that caused crashing when selecting text
Mady Mellor [Thu, 12 Mar 2015 18:01:43 +0000 (11:01 -0700)]
Fix negative touch word offset that caused crashing when selecting text

Previously the offset between the touch event and the start / end of
the word could result in a negative value - we don't care or want
this value to be negative. The negative value also causes the returned
offset to be outside the bounds of the text which resulted in a crash.

Bug: 19705184
Change-Id: I4287df7778c246dd10654f1a1f1e57538e940730

9 years agoMerge "drm: add EVENT_SESSION_RECLAIMED for resource manager."
Ronghua Wu [Thu, 12 Mar 2015 18:05:44 +0000 (18:05 +0000)]
Merge "drm: add EVENT_SESSION_RECLAIMED for resource manager."

9 years agoVolume policy updates.
John Spurlock [Tue, 3 Mar 2015 22:35:57 +0000 (17:35 -0500)]
Volume policy updates.

 - Make volume policy settable by the volume UI instead
   of hardcoded in AudioService.
 - Add status bar icon for silent mode.
 - Limit unmute-on-volume-adjust behavior to tvs.
 - Ensure all changes to device volume are sent through
   setIndex so no change events are missed.

Bug: 19260237
Change-Id: Iea070a7a6f90ff620e39629f2da3f33f87223d72

9 years agoMerge "Allow polling for WindowInsets."
Filip Gruszczynski [Thu, 12 Mar 2015 15:12:43 +0000 (15:12 +0000)]
Merge "Allow polling for WindowInsets."

9 years agoMerge "AudioService: Write base stream volume changes to the event log."
John Spurlock [Thu, 12 Mar 2015 14:50:27 +0000 (14:50 +0000)]
Merge "AudioService: Write base stream volume changes to the event log."

9 years agoMerge "Make QS use SettingsLib's BT code"
Jason Monk [Thu, 12 Mar 2015 14:23:49 +0000 (14:23 +0000)]
Merge "Make QS use SettingsLib's BT code"

9 years agoAudioService: Write base stream volume changes to the event log.
John Spurlock [Tue, 10 Mar 2015 20:00:54 +0000 (16:00 -0400)]
AudioService: Write base stream volume changes to the event log.

 - Add a new volume_changed event, reported at the stream level.
 - Only include changes to base streams (no aliases).
 - Include the caller for each change.  A caller is either:
   -  a pkg name (for external calls or known media sessions)
   -  a system server class's log tag (for internal calls,
      disambiguates "android")

Bug: 19599935
Change-Id: Ia61b68ff1e7e2907a24972790ec052bfe099e665

9 years agoMerge "Make Bitmap_createFromParcel check the color count."
Leon Scroggins III [Thu, 12 Mar 2015 12:24:10 +0000 (12:24 +0000)]
Merge "Make Bitmap_createFromParcel check the color count."

9 years agoMove the "Replace" popup option to the Text Selection ActionMode.
Clara Bayarri [Mon, 2 Mar 2015 16:09:09 +0000 (16:09 +0000)]
Move the "Replace" popup option to the Text Selection ActionMode.

As a first step in unifying the cut/copy/paste ActionMode in Editor
with the paste/replace popup, I'm moving the replace option to
the CAB ActionMode. Paste is already there, so for now all options
are together.

Missing things to address in upcoming CLs:
- Invoke the ActionMode in all cases where the popup shows up now,
ensuring only the options that are currently available show up.
- Get rid of the current popup
- Make the ActionMode a floating toolbar (pending feature completion)
- Define a keyboard shortcut for replace?

Note that since the ActionMode still shows up in the ActionBar and
replace has no icon it now appears as text and takes up lots of
space. This will improve when we can switch to using a floating
toolbar.

Change-Id: Ib6b60bae9b58e4db96b9c4cee556e19d3f1bb466

9 years agoMerge "Add rename support to FingerprintManager"
Jim Miller [Thu, 12 Mar 2015 01:20:05 +0000 (01:20 +0000)]
Merge "Add rename support to FingerprintManager"

9 years agoAdd rename support to FingerprintManager
Jim Miller [Thu, 12 Mar 2015 00:41:58 +0000 (17:41 -0700)]
Add rename support to FingerprintManager

Bug 19592835

Change-Id: I656b3932caf2cfdb9a330522d171a59af2c7a2d1

9 years agoFix 64-bit MessageQueue JNI build
Greg Hackmann [Wed, 11 Mar 2015 23:47:15 +0000 (16:47 -0700)]
Fix 64-bit MessageQueue JNI build

Change-Id: I75b3788e7dcece4a2d64d969a10d28e7a9593cd6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agoEnforce null-termination in ResStringPool::stringAt
Vishwath Mohan [Wed, 11 Mar 2015 23:08:37 +0000 (16:08 -0700)]
Enforce null-termination in ResStringPool::stringAt

Rejects any non null-terminated string that a caller asks
ResStringPool::stringAt for, returning NULL instead.

The rationale for returning NULL rather than amending the string to add
a null-terminator is that conformant APK files will have all their
strings null-terminated anyway, and that this is a possible signal of a
malformed package.

Bug: 15288069
Change-Id: I370937b92f2cadf67fbd54203cbc7d1494be969f

9 years agoMerge "Don't run full backups on stopped packages"
Christopher Tate [Wed, 11 Mar 2015 23:36:49 +0000 (23:36 +0000)]
Merge "Don't run full backups on stopped packages"

9 years agoDon't run full backups on stopped packages
Christopher Tate [Wed, 11 Mar 2015 21:16:15 +0000 (14:16 -0700)]
Don't run full backups on stopped packages

We already decline to run key/value backup passes for (participating)
apps that are in the 'stopped' state.  Now we also properly avoid
full-data backup passes on such apps.

Bug 19684052

Change-Id: Ieafc07b5531a91a243d57238c53db41ad3459140

9 years agoam cdd3fb5c: Merge "Extracted a separate class to run dexopt on packages"
Andreas Gampe [Wed, 11 Mar 2015 23:23:06 +0000 (23:23 +0000)]
am cdd3fb5c: Merge "Extracted a separate class to run dexopt on packages"

* commit 'cdd3fb5cdb9be8ae087c6d0fef2a545fca1c4205':
  Extracted a separate class to run dexopt on packages

9 years agoMerge "Extracted a separate class to run dexopt on packages"
Andreas Gampe [Wed, 11 Mar 2015 23:08:33 +0000 (23:08 +0000)]
Merge "Extracted a separate class to run dexopt on packages"

9 years agoExtracted a separate class to run dexopt on packages
Fyodor Kupolov [Tue, 24 Feb 2015 01:14:45 +0000 (17:14 -0800)]
Extracted a separate class to run dexopt on packages

performDexOptLibsLI and related methods were extracted to PackageDexOptimizer
class. Minor refactoring of PackageManagerService.

This is a non-functional change. It should simplify further work to allow
storing OAT files inside package dir.

(cherry picked from commit eeea67b8c3678d882d3774edc41242c63daa60fa)

Change-Id: I3494a2da70605362bb6fb4625ffbee1cbe1cd457

9 years agoam 20553036: am 68694780: Merge "[ActivityManager] Fix index OOB when resetting remov...
Craig Mautner [Wed, 11 Mar 2015 23:02:44 +0000 (23:02 +0000)]
am 20553036: am 68694780: Merge "[ActivityManager] Fix index OOB when resetting removed task"

* commit '20553036af92a6369b3e53f54a1f4f0ccaf8e981':
  [ActivityManager] Fix index OOB when resetting removed task

9 years agoUpdate ParcelFileDescriptor to use non-blocking I/O.
Jeff Brown [Wed, 11 Mar 2015 01:38:48 +0000 (18:38 -0700)]
Update ParcelFileDescriptor to use non-blocking I/O.

Avoids spinning up a thread just to watch a file descriptor.

Bug: 10349083
Change-Id: I814cb252f075d7a162e1286bbfd1dbec28d17796

9 years agoAdd support for non-blocking I/O with Looper.
Jeff Brown [Fri, 6 Mar 2015 02:21:06 +0000 (18:21 -0800)]
Add support for non-blocking I/O with Looper.

Bug: 10349083
Change-Id: I4a94b1eac53df57c05103913bd593d92b1e062d7

9 years agoExpose some useful methods on Looper and clean up docs.
Jeff Brown [Thu, 5 Mar 2015 18:52:53 +0000 (10:52 -0800)]
Expose some useful methods on Looper and clean up docs.

Change-Id: I40796c3ba07d3c50043da56e835f11fbf9852d30

9 years agoMove sync barrier methods into MessageQueue.
Jeff Brown [Thu, 26 Feb 2015 23:34:16 +0000 (15:34 -0800)]
Move sync barrier methods into MessageQueue.

The methods were previously defined on Looper but on reflection
they actually make more sense on the MessageQueue instead since
the Looper class is primarily concerned with thread lifecycle
rather than the actual messages themselves.

Change-Id: Iff356b94754fc9960774fa17e3eec9604229cba6

9 years agoRename Looper::isIdling() to isPolling() to resolve confusion.
Jeff Brown [Thu, 26 Feb 2015 22:43:53 +0000 (14:43 -0800)]
Rename Looper::isIdling() to isPolling() to resolve confusion.

The loop isn't technically idle at this time, it's just checking
whether any file descriptors have pending events.  However it's
still a good signal as to whether the loop is alive.

Added a real isIdle() function.

Bug: 19532373
Change-Id: Idd273e8774f469ccafb00d560818cf279dfd6ba6

9 years agoRevert "Revert "Remove activity and window stacks when last task is removed.""
Wale Ogunwale [Wed, 11 Mar 2015 16:23:25 +0000 (09:23 -0700)]
Revert "Revert "Remove activity and window stacks when last task is removed.""

This reverts commit 7a7bf5ea48b12f044c591fb03ed3e58acd28ceb7.

9 years agoMerge "Fix XML parsing crash in SettingsProvider"
Raph Levien [Wed, 11 Mar 2015 21:50:02 +0000 (21:50 +0000)]
Merge "Fix XML parsing crash in SettingsProvider"

9 years agoFix XML parsing crash in SettingsProvider
Raph Levien [Wed, 11 Mar 2015 21:09:26 +0000 (14:09 -0700)]
Fix XML parsing crash in SettingsProvider

A previous change added more whitespace to settings_global.xml to
improve human readability, but the parser is overly picky in ignoring
whitespace. This patch makes it accept all whitespace strings.

Bug: 19696812
Change-Id: I3ebb8f6df2e25f4e6b6841da743be3f3a91e2442

9 years agoMerge "Fix dialog overlay theme background color, add theme attr"
Alan Viverette [Wed, 11 Mar 2015 21:24:45 +0000 (21:24 +0000)]
Merge "Fix dialog overlay theme background color, add theme attr"

9 years agoFix dialog overlay theme background color, add theme attr
Alan Viverette [Wed, 11 Mar 2015 21:21:14 +0000 (14:21 -0700)]
Fix dialog overlay theme background color, add theme attr

Bug: 19524852
Change-Id: Id3188d5c0ac9ef985bb17831c46a8aff20f89bc1

9 years agoAllow polling for WindowInsets.
Filip Gruszczynski [Thu, 26 Feb 2015 23:46:47 +0000 (15:46 -0800)]
Allow polling for WindowInsets.

Change-Id: I36feb2403b1bcf6de5d8808734c46999a38e7403

9 years agoam d2e4a166: Merge "Remove dead path code"
Jason Sams [Wed, 11 Mar 2015 21:06:53 +0000 (21:06 +0000)]
am d2e4a166: Merge "Remove dead path code"

* commit 'd2e4a166ebae4dcf0a9d6cb186283739443b0803':
  Remove dead path code

9 years agoMerge "Various fixes for popup monkey testing"
Alan Viverette [Wed, 11 Mar 2015 21:04:24 +0000 (21:04 +0000)]
Merge "Various fixes for popup monkey testing"

9 years agoMerge "Fix artifacts in clip reveal animations"
Chet Haase [Wed, 11 Mar 2015 20:57:28 +0000 (20:57 +0000)]
Merge "Fix artifacts in clip reveal animations"

9 years agoMerge "Remove dead path code"
Jason Sams [Wed, 11 Mar 2015 20:55:07 +0000 (20:55 +0000)]
Merge "Remove dead path code"

9 years agoMerge branch 'master' of https://googleplex-android.googlesource.com/_direct/platform...
Shawn Willden [Wed, 11 Mar 2015 20:10:03 +0000 (20:10 +0000)]
Merge branch 'master' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/base

9 years agoMerge "Add a check for invalid spans being set by SpellChecker."
Roozbeh Pournader [Wed, 11 Mar 2015 20:09:36 +0000 (20:09 +0000)]
Merge "Add a check for invalid spans being set by SpellChecker."

9 years agoam 3b9cfe30: am a6ed1b95: am 6e116429: Merge "Generate gnu hash for arm only"
Dimitry Ivanov [Wed, 11 Mar 2015 20:09:17 +0000 (20:09 +0000)]
am 3b9cfe30: am a6ed1b95: am 6e116429: Merge "Generate gnu hash for arm only"

* commit '3b9cfe30ed4ae34d06a8f005c8ada593c314316b':
  Generate gnu hash for arm only

9 years agoam 91239a0b: am cc2212d2: Merge "Adds system property for developer option for force...
Mark Renouf [Wed, 11 Mar 2015 20:09:08 +0000 (20:09 +0000)]
am 91239a0b: am cc2212d2: Merge "Adds system property for developer option for force-enable burn-in protection" into lmp-mr1-modular-dev

* commit '91239a0b738a503ab0f4ed4111e1b5f81d927e38':
  Adds system property for developer option for force-enable burn-in protection

9 years agoMerge "MidiManager: Add MIDI device status notifications"
Mike Lockwood [Wed, 11 Mar 2015 19:43:47 +0000 (19:43 +0000)]
Merge "MidiManager: Add MIDI device status notifications"

9 years agoMerge "MidiDevice: Add support for making direct connections between ports"
Mike Lockwood [Wed, 11 Mar 2015 19:43:29 +0000 (19:43 +0000)]
Merge "MidiDevice: Add support for making direct connections between ports"

9 years agoMerge "Cleanups & simplifications"
John Reck [Wed, 11 Mar 2015 19:42:18 +0000 (19:42 +0000)]
Merge "Cleanups & simplifications"

9 years agoam 872a731e: am a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge...
Luan Nguyen [Wed, 11 Mar 2015 19:30:38 +0000 (19:30 +0000)]
am 872a731e: am a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and design page image assets"" into lmp-docs

* commit '872a731e596810bb5040553f16c3965c47ed9518':
  Revert "docs: Update auto landing and design page image assets"

9 years agoVarious fixes for popup monkey testing
Alan Viverette [Wed, 11 Mar 2015 19:21:30 +0000 (12:21 -0700)]
Various fixes for popup monkey testing

Ensures PopupMenu works correctly when multiple calls are made to show
and dismiss. Ensure PopupWindow works correctly when multiple calls are
made to showAsDropDown and dismiss (fixes multiple clicks on Spinner).

Bug: 19672907
Bug: 19671831
Change-Id: Ib92accd8fd70a1ff1f8cda27155347b007a4d25b

9 years agoam a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs...
Luan Nguyen [Wed, 11 Mar 2015 19:19:31 +0000 (19:19 +0000)]
am a0f20621: am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and design page image assets"" into lmp-docs

* commit 'a0f20621f1943dfc545e1c2cee3ed6b9c321f61b':
  Revert "docs: Update auto landing and design page image assets"

9 years agoam dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto...
Luan Nguyen [Wed, 11 Mar 2015 19:12:53 +0000 (19:12 +0000)]
am dd7d025b: am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and design page image assets"" into lmp-docs

* commit 'dd7d025b97aa09723f1695f23b85d1d926cb7ea1':
  Revert "docs: Update auto landing and design page image assets"

9 years agoam ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and...
Luan Nguyen [Wed, 11 Mar 2015 19:07:52 +0000 (19:07 +0000)]
am ca0db1a0: am eeb79d10: am 9a7238d8: Merge "Revert "docs: Update auto landing and design page image assets"" into lmp-docs

* commit 'ca0db1a0ec0fc0456ec4180d7b0bbac7e43dffec':
  Revert "docs: Update auto landing and design page image assets"

9 years agoresolved conflicts for merge of 91239a0b to master
Mark Renouf [Wed, 11 Mar 2015 18:38:23 +0000 (14:38 -0400)]
resolved conflicts for merge of 91239a0b to master

Change-Id: Ib30f0631278602f0363181021f1ad364e4ec2f8d

9 years agoMerge "Fix android.text.cts.StaticLayoutTest#testGetEllipsisCount"
Raph Levien [Wed, 11 Mar 2015 18:33:58 +0000 (18:33 +0000)]
Merge "Fix android.text.cts.StaticLayoutTest#testGetEllipsisCount"

9 years agoCleanups & simplifications
John Reck [Wed, 11 Mar 2015 15:50:53 +0000 (08:50 -0700)]
Cleanups & simplifications

Change-Id: I5ad5e3b8fe55b1528f2e20c63e5abe51d9e40ff1

9 years agoam a3d25d74: Merge "Fix context leak"
Marco Nelissen [Wed, 11 Mar 2015 18:21:24 +0000 (18:21 +0000)]
am a3d25d74: Merge "Fix context leak"

* commit 'a3d25d7489d7e071fb6db01b62ec9d925e1d493d':
  Fix context leak

9 years agoMerge "Fix context leak"
Marco Nelissen [Wed, 11 Mar 2015 18:10:04 +0000 (18:10 +0000)]
Merge "Fix context leak"

9 years agoAdd a check for invalid spans being set by SpellChecker.
Roozbeh Pournader [Wed, 11 Mar 2015 18:09:34 +0000 (11:09 -0700)]
Add a check for invalid spans being set by SpellChecker.

One of the exit conditions of the loop immediately above the code is
when a BreakIterator finishes its input and emits BreakIterator.DONE,
which we were then mistakenly then using as a parameter for setting
spans.

Bug: 12936072
Bug: 5555929
Change-Id: Ib4aba113f2e7838cd040076160c1dd0fb90adb1a

9 years agoFix android.text.cts.StaticLayoutTest#testGetEllipsisCount
Raph Levien [Wed, 11 Mar 2015 18:02:33 +0000 (11:02 -0700)]
Fix android.text.cts.StaticLayoutTest#testGetEllipsisCount

The "moreChars" predicate (which is used in ellipsis computation) was
slightly incorrect, sometimes being computed as false when the line
break is at the end of a paragraph but not the end of the buffer.
This patch makes the behavior consistent with shipping versions.

Bug: 19676414
Change-Id: I72e16794e895c2eb765b21feaf59fcdccc4857f1

9 years agoRemove dead path code
Jason Sams [Wed, 11 Mar 2015 18:00:00 +0000 (11:00 -0700)]
Remove dead path code

This API was never shipped and the implementation
never finished.

Change-Id: I2491db216d6a7a8ea30628d791773f89da5fb4d2

9 years agoam 5228d083: am 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge...
Luan Nguyen [Wed, 11 Mar 2015 17:53:39 +0000 (17:53 +0000)]
am 5228d083: am 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design page image assets" into lmp-docs

* commit '5228d0832a6c1a12fd789c28bb591b6642f55b5e':
  docs: Update auto landing and design page image assets

9 years agoam 40055c22: am 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge...
Rich Slogar [Wed, 11 Mar 2015 17:53:32 +0000 (17:53 +0000)]
am 40055c22: am 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into lmp-docs

* commit '40055c220fd77d1d2160e151e0993419772ba444':
  docs: eclipse revisions update

9 years agoam e5fd6c76: am 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs...
Andrew Solovay [Wed, 11 Mar 2015 17:53:26 +0000 (17:53 +0000)]
am e5fd6c76: am 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for Auto"

* commit 'e5fd6c76a451700aaf34a6fc587f7d8855ada6e8':
  docs: Revisions to "Providing Messaging for Auto"

9 years agoam 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update...
Luan Nguyen [Wed, 11 Mar 2015 17:42:58 +0000 (17:42 +0000)]
am 0c3282b5: am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design page image assets" into lmp-docs

* commit '0c3282b5d2f491bfb0ca6b5cda62864d0b42bba7':
  docs: Update auto landing and design page image assets

9 years agoam 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse...
Rich Slogar [Wed, 11 Mar 2015 17:42:54 +0000 (17:42 +0000)]
am 11558e5d: am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into lmp-docs

* commit '11558e5d2259a48604f494c540df72de34977ce5':
  docs: eclipse revisions update

9 years agoam 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions...
Andrew Solovay [Wed, 11 Mar 2015 17:42:50 +0000 (17:42 +0000)]
am 3d950de4: am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for Auto"

* commit '3d950de4d4028e0c7763932c00c372d41c832e87':
  docs: Revisions to "Providing Messaging for Auto"

9 years agoMake Bitmap_createFromParcel check the color count.
Leon Scroggins III [Wed, 11 Mar 2015 17:12:06 +0000 (13:12 -0400)]
Make Bitmap_createFromParcel check the color count.

When reading from the parcel, if the number of colors is invalid, early
exit.

Add two more checks: setInfo must return true, and Parcel::readInplace
must return non-NULL. The former ensures that the previously read values
(width, height, etc) were valid, and the latter checks that the Parcel
had enough data even if the number of colors was reasonable.

Also use an auto-deleter to handle deletion of the SkBitmap.

BUG=19666945

Change-Id: Icbd562d6d1f131a723724883fd31822d337cf5a6

9 years agoMerge "Implement PostMessage API for Webview"
Selim Gurun [Wed, 11 Mar 2015 17:32:34 +0000 (17:32 +0000)]
Merge "Implement PostMessage API for Webview"

9 years agoam 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing...
Luan Nguyen [Wed, 11 Mar 2015 17:32:01 +0000 (17:32 +0000)]
am 50a9b835: am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design page image assets" into lmp-docs

* commit '50a9b83554decb4913fc8eac9862edf902149265':
  docs: Update auto landing and design page image assets

9 years agoam 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions...
Rich Slogar [Wed, 11 Mar 2015 17:31:57 +0000 (17:31 +0000)]
am 8ab872db: am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into lmp-docs

* commit '8ab872dba1eff1477cb12da63d1f882260a271ae':
  docs: eclipse revisions update

9 years agoam a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing...
Andrew Solovay [Wed, 11 Mar 2015 17:31:53 +0000 (17:31 +0000)]
am a493c489: am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for Auto"

* commit 'a493c48989f3c80dd061b86a6216a622b20dfc7f':
  docs: Revisions to "Providing Messaging for Auto"

9 years agoam a98c21a6: Make circular mask thickness configurable
Prashant Malani [Wed, 11 Mar 2015 17:24:54 +0000 (17:24 +0000)]
am a98c21a6: Make circular mask thickness configurable

* commit 'a98c21a662040a8afa75a35bd882c292f7ed8414':
  Make circular mask thickness configurable

9 years agoam dff0fdb4: Merge "Add translatable=false to dozeComponent" into lmp-mr1-modular-dev
Justin Koh [Wed, 11 Mar 2015 17:23:34 +0000 (17:23 +0000)]
am dff0fdb4: Merge "Add translatable=false to dozeComponent" into lmp-mr1-modular-dev

* commit 'dff0fdb4172a230e4faff7ed93842c21a2d57335':
  Add translatable=false to dozeComponent

9 years agoImplement PostMessage API for Webview
Selim Gurun [Wed, 11 Mar 2015 00:40:06 +0000 (17:40 -0700)]
Implement PostMessage API for Webview

Bug: 10237116

This CL implements the postmessage API for webview. It provides
a way for java applications to post messages to JS frames and
establish message channels, and then do full-duplex communication
after that.

Change-Id: Idbc2918552a4c9fd28ae1ddf19bd360e71f8a4a2

9 years agoMidiManager: Add MIDI device status notifications
Mike Lockwood [Mon, 9 Mar 2015 19:00:20 +0000 (12:00 -0700)]
MidiManager: Add MIDI device status notifications

MidiManager clients can be notified of device status changes via a new MidiDeviceStatus object.
MidiDeviceStatus contains the busy status of the device's input ports and number of
connections to the output ports.
MidiDeviceService now has an optional callback for receiving notifications when its ports change as well.

Change-Id: I1600df4464d82724bc026c27b9633ae9c412d3f0

9 years agoMidiDevice: Add support for making direct connections between ports
Mike Lockwood [Fri, 6 Mar 2015 18:48:51 +0000 (10:48 -0800)]
MidiDevice: Add support for making direct connections between ports

The output port of one device can be connected to the input port of another
device using the new MidiDevice.connectPorts() method.
This allows an application to direct the output of one device directly
to the input port of another without having to copy data from one to another.

Change-Id: I4d361c4e0950b9b9516b0c2f0c158677b1aca208

9 years agoam 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design...
Luan Nguyen [Wed, 11 Mar 2015 17:18:43 +0000 (17:18 +0000)]
am 42ee70aa: am 24b4e572: am 0fc17c37: Merge "docs: Update auto landing and design page image assets" into lmp-docs

* commit '42ee70aac023da26a6dc4dee5856871372e792e8':
  docs: Update auto landing and design page image assets

9 years agoam dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into...
Rich Slogar [Wed, 11 Mar 2015 17:18:39 +0000 (17:18 +0000)]
am dcc5a34b: am 08ddf132: am 0c1076b2: Merge "docs: eclipse revisions update" into lmp-docs

* commit 'dcc5a34b14ae09598d9c019c0d4706c5e2d00be2':
  docs: eclipse revisions update

9 years agoam 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for...
Andrew Solovay [Wed, 11 Mar 2015 17:18:23 +0000 (17:18 +0000)]
am 5f8e08ed: am 66b4b317: am 0a3f9c7d: docs: Revisions to "Providing Messaging for Auto"

* commit '5f8e08ed2c97bb92232e500e7c32b31b8bbd5dcd':
  docs: Revisions to "Providing Messaging for Auto"

9 years agoFix context leak
Marco Nelissen [Wed, 11 Mar 2015 16:59:49 +0000 (09:59 -0700)]
Fix context leak

Using an activity context with AudioManager could cause that context
to be held on to longer than desired, for example if the caller
acquired audio focus but never abandoned it. Fix acquire/abandon in
VideoView, and use the application context in AudioManager to mitigate
the issue for other misbehaving code.

Bug: https://code.google.com/p/android/issues/detail?id=152173
Change-Id: I0fb8390207422c784800dda25b1f2c03d4574bcd