OSDN Git Service

android-x86/frameworks-base.git
10 years agoHide stackId from prying eyes.
Craig Mautner [Mon, 26 Aug 2013 19:25:36 +0000 (12:25 -0700)]
Hide stackId from prying eyes.

Member variable does not have to be publicly visible.

Fixes bug 10461556.

Change-Id: I9aeaf4f451738b1d6dc0289afb1deae6e8f7e5c2

11 years agoMerge "Add the checking for the camcorder profile." into klp-dev
Yu Shan Emily Lau [Tue, 20 Aug 2013 02:36:53 +0000 (02:36 +0000)]
Merge "Add the checking for the camcorder profile." into klp-dev

11 years agoAdd the checking for the camcorder profile.
Yu Shan Emily Lau [Tue, 20 Aug 2013 02:03:26 +0000 (19:03 -0700)]
Add the checking for the camcorder profile.

Not all the devie have camera. Only run the
recording test when the camcorder profile is
not null.

Change-Id: Ib38df363fe5e6049b72e97ae229964fb65882269

11 years agoMerge "AudioSystem: new audioflinger restart detection" into klp-dev
Eric Laurent [Tue, 20 Aug 2013 01:33:26 +0000 (01:33 +0000)]
Merge "AudioSystem: new audioflinger restart detection" into klp-dev

11 years agoAudioSystem: new audioflinger restart detection
Eric Laurent [Thu, 18 Jul 2013 21:41:39 +0000 (14:41 -0700)]
AudioSystem: new audioflinger restart detection

Add a specific method to AudioSystem for AudioService to poll
for AudioFlinger service restart instead of relying on current
callback mechanism which is flaky.

Bug: 9693068.
Change-Id: Id21d142a22b257205700201978cce1cb8b15180d

11 years agoMerge "Display signal strength on data-only SIMs." into klp-dev
Lorenzo Colitti [Tue, 20 Aug 2013 01:17:30 +0000 (01:17 +0000)]
Merge "Display signal strength on data-only SIMs." into klp-dev

11 years agoMerge "Revert "Fix media server restart detection mechanism"" into klp-dev
Eric Laurent [Tue, 20 Aug 2013 01:11:50 +0000 (01:11 +0000)]
Merge "Revert "Fix media server restart detection mechanism"" into klp-dev

11 years agoRevert "Fix media server restart detection mechanism"
Eric Laurent [Thu, 18 Jul 2013 21:08:00 +0000 (14:08 -0700)]
Revert "Fix media server restart detection mechanism"

This reverts commit ca35e4823459189dd57ec5472caf3a617d03b568.

11 years agoMerge changes Id3815fe8,I90a85921 into klp-dev
Jeff Brown [Mon, 19 Aug 2013 23:57:12 +0000 (23:57 +0000)]
Merge changes Id3815fe8,I90a85921 into klp-dev

* changes:
  Define AudioSource.REMOTE_SUBMIX.
  Remove setRemoteSubmixOn method.

11 years agoam cf3aff67: am d1037efe: am 9d237204: Merge "Android 4.3 Platform Google APIs r2...
Joe Fernandez [Mon, 19 Aug 2013 23:55:10 +0000 (16:55 -0700)]
am cf3aff67: am d1037efe: am 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs

* commit 'cf3aff672ce9d7240de1e2e3cc98f21f833957ec':
  Android 4.3 Platform Google APIs r2 system image Release Notes

11 years agoam d1037efe: am 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image...
Joe Fernandez [Mon, 19 Aug 2013 23:53:00 +0000 (16:53 -0700)]
am d1037efe: am 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs

* commit 'd1037efe7edcc202c84cfd8a74c4593d1d03ea2d':
  Android 4.3 Platform Google APIs r2 system image Release Notes

11 years agoam 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image Release Notes...
Joe Fernandez [Mon, 19 Aug 2013 23:49:44 +0000 (16:49 -0700)]
am 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs

* commit '9d237204da9b000c5debfa1f5650d13a545bb7c8':
  Android 4.3 Platform Google APIs r2 system image Release Notes

11 years agoMerge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2...
Joe Fernandez [Mon, 19 Aug 2013 23:47:24 +0000 (23:47 +0000)]
Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs

11 years agoAndroid 4.3 Platform Google APIs r2 system image Release Notes
Joe Fernandez [Thu, 15 Aug 2013 21:06:19 +0000 (14:06 -0700)]
Android 4.3 Platform Google APIs r2 system image Release Notes

Google APIs System image update with Google Play Services 3.2.25

Change-Id: Iac6987a9dcb55bd971da9ca57c5a5dae0c357be5

11 years agoDefine AudioSource.REMOTE_SUBMIX.
Jeff Brown [Fri, 16 Aug 2013 03:01:50 +0000 (20:01 -0700)]
Define AudioSource.REMOTE_SUBMIX.

Add an API to allow applications to record from the remote
submix when they have the required permissions.

Bug: 10265163
Change-Id: Id3815fe82a6713e058ce4b8ab6128a898481df7e

11 years agoMerge "Notify ViewRootImpl when it's safe to modify Canvas." into klp-dev
Craig Mautner [Mon, 19 Aug 2013 23:11:50 +0000 (23:11 +0000)]
Merge "Notify ViewRootImpl when it's safe to modify Canvas." into klp-dev

11 years agoNotify ViewRootImpl when it's safe to modify Canvas.
Craig Mautner [Mon, 19 Aug 2013 22:47:42 +0000 (15:47 -0700)]
Notify ViewRootImpl when it's safe to modify Canvas.

When Activity.convert{To|From}Translucent() is called the
ViewRootImpl is now notified when it is safe to convert the Canvas
from translucent to opaque and back to translucent. This will make
it possible to save resources when compositing opaque layers.

Fixes bug 10349536.

Change-Id: I7282aee1d54601fb00611d20be204bf164d873f6

11 years agoCamera2: Remove redundant Keys classes
Eino-Ville Talvala [Fri, 16 Aug 2013 21:11:43 +0000 (14:11 -0700)]
Camera2: Remove redundant Keys classes

Also update tests accordingly

Bug: 10345522
Change-Id: I8c7d17cdfbda6faba09134745a96089bf1b70cb7

11 years agoMerge "NFC: Allow HostApduService to indicate transaction unhandled." into klp-dev
Martijn Coenen [Mon, 19 Aug 2013 20:11:09 +0000 (20:11 +0000)]
Merge "NFC: Allow HostApduService to indicate transaction unhandled." into klp-dev

11 years agoMerge "Request more documents when EXTRA_HAS_MORE." into klp-dev
Jeff Sharkey [Mon, 19 Aug 2013 19:58:55 +0000 (19:58 +0000)]
Merge "Request more documents when EXTRA_HAS_MORE." into klp-dev

11 years agoMerge "Management actions, invalidate caches." into klp-dev
Jeff Sharkey [Mon, 19 Aug 2013 19:55:19 +0000 (19:55 +0000)]
Merge "Management actions, invalidate caches." into klp-dev

11 years agoMerge "Remove duplicate sealed node checks, add missing checks" into klp-dev
Alan Viverette [Mon, 19 Aug 2013 19:50:25 +0000 (19:50 +0000)]
Merge "Remove duplicate sealed node checks, add missing checks" into klp-dev

11 years agoRemove duplicate sealed node checks, add missing checks
Alan Viverette [Mon, 19 Aug 2013 19:28:04 +0000 (12:28 -0700)]
Remove duplicate sealed node checks, add missing checks

Change-Id: Icbe79ba4b74776f845b43f261624d0dbeda4250b

11 years agoam 2d9ee707: am 364fe3a8: am b6bc020d: doc change: Samples browsing first changes...
Dirk Dougherty [Mon, 19 Aug 2013 19:14:17 +0000 (12:14 -0700)]
am 2d9ee707: am 364fe3a8: am b6bc020d: doc change: Samples browsing first changes: Samples dir and file starters.

* commit '2d9ee70703cb52a16d726eb177f6f4e0be4f93e2':
  doc change: Samples browsing first changes: Samples dir and file starters.

11 years agoMerge "Expose WifiManager.setTdlsEnabled public API" into klp-dev
Vinit Deshapnde [Mon, 19 Aug 2013 19:14:03 +0000 (19:14 +0000)]
Merge "Expose WifiManager.setTdlsEnabled public API" into klp-dev

11 years agoMerge changes I6d125624,I549a9211 into klp-dev
Eino-Ville Talvala [Mon, 19 Aug 2013 19:12:53 +0000 (19:12 +0000)]
Merge changes I6d125624,I549a9211 into klp-dev

* changes:
  Camera2: Fixed issue with HashSet not being initialized
  Camera2: Documentation fixes, mostly capitalization mistakes

11 years agoam 364fe3a8: am b6bc020d: doc change: Samples browsing first changes: Samples dir...
Dirk Dougherty [Mon, 19 Aug 2013 19:12:05 +0000 (12:12 -0700)]
am 364fe3a8: am b6bc020d: doc change: Samples browsing first changes: Samples dir and file starters.

* commit '364fe3a856e7bd0c0a35724c2f42d381d8616370':
  doc change: Samples browsing first changes: Samples dir and file starters.

11 years agoam b6bc020d: doc change: Samples browsing first changes: Samples dir and file starters.
Dirk Dougherty [Mon, 19 Aug 2013 19:09:45 +0000 (12:09 -0700)]
am b6bc020d: doc change: Samples browsing first changes: Samples dir and file starters.

* commit 'b6bc020d728960dc876a510c9e40cc441a9a9b6b':
  doc change: Samples browsing first changes: Samples dir and file starters.

11 years agoNFC: Allow HostApduService to indicate transaction unhandled.
Martijn Coenen [Thu, 15 Aug 2013 04:04:14 +0000 (21:04 -0700)]
NFC: Allow HostApduService to indicate transaction unhandled.

This will cause the OS to show UI that allows the user to pick
another application that could potentially handle the transaction.

Also, tweak processCommandApdu() method to take a Bundle to be more
future-proof.

Bug: 10262585
Change-Id: If9d060341b472fac0349f539c04b87e85fe79dfb

11 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Mon, 19 Aug 2013 18:38:51 +0000 (18:38 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

11 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Mon, 19 Aug 2013 18:37:08 +0000 (18:37 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

11 years agodoc change: Samples browsing first changes: Samples dir and file starters.
Dirk Dougherty [Tue, 9 Jul 2013 20:18:15 +0000 (13:18 -0700)]
doc change: Samples browsing first changes: Samples dir and file starters.

Change-Id: I6cc8c03bf4c2bcc771d4531619db5b3acd62601f

11 years agoMerge "Remove a fixed-length buffer in the wifi code." into klp-dev
Elliott Hughes [Mon, 19 Aug 2013 18:08:48 +0000 (18:08 +0000)]
Merge "Remove a fixed-length buffer in the wifi code." into klp-dev

11 years agoMerge "Allow for more than one home app." into klp-dev
Craig Mautner [Mon, 19 Aug 2013 16:01:56 +0000 (16:01 +0000)]
Merge "Allow for more than one home app." into klp-dev

11 years agoMerge "Expose KEY_REPEAT_PREVIOUS_FRAME_AFTER and KEY_PUSH_BLANK_BUFFERS_ON_STOP...
Andreas Huber [Mon, 19 Aug 2013 15:39:29 +0000 (15:39 +0000)]
Merge "Expose KEY_REPEAT_PREVIOUS_FRAME_AFTER and KEY_PUSH_BLANK_BUFFERS_ON_STOP" into klp-dev

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 19 Aug 2013 15:23:40 +0000 (08:23 -0700)]
Import translations. DO NOT MERGE

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

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 19 Aug 2013 14:49:07 +0000 (07:49 -0700)]
Import translations. DO NOT MERGE

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

11 years agoMerge "Use panel tracking as signal preventing auto-collapse." into klp-dev
John Spurlock [Mon, 19 Aug 2013 14:35:19 +0000 (14:35 +0000)]
Merge "Use panel tracking as signal preventing auto-collapse." into klp-dev

11 years agoMerge "Transition bars to opaque on user interaction." into klp-dev
John Spurlock [Mon, 19 Aug 2013 14:34:26 +0000 (14:34 +0000)]
Merge "Transition bars to opaque on user interaction." into klp-dev

11 years agoMerge "Lose navigation bar icon alpha in transparent modes." into klp-dev
John Spurlock [Mon, 19 Aug 2013 14:33:51 +0000 (14:33 +0000)]
Merge "Lose navigation bar icon alpha in transparent modes." into klp-dev

11 years agoTransition bars to opaque on user interaction.
John Spurlock [Sat, 17 Aug 2013 21:18:08 +0000 (17:18 -0400)]
Transition bars to opaque on user interaction.

When the transient bars are revealed, smoothly transition the
bar style to opaque to blend with the other panel chrome.

Bug:8706719
Change-Id: I65e5b22e2f91a3db0394c0f571127397ba692f46

11 years agoDisplay signal strength on data-only SIMs.
Lorenzo Colitti [Mon, 12 Aug 2013 11:12:37 +0000 (20:12 +0900)]
Display signal strength on data-only SIMs.

On SIM cards that support data but not voice, we currently
display a null signal strength icon, which is confusing because
data is actually working.

Fix this by displaying signal bars as well as showing the
"emergency calls only" or "no service" text which indicates that
voice service is not available.

Bug: 3339315
Change-Id: I7d888721e8dc5e22fefd1b8fa85ba046d46a8fba

11 years agoRequest more documents when EXTRA_HAS_MORE.
Jeff Sharkey [Mon, 19 Aug 2013 05:26:48 +0000 (22:26 -0700)]
Request more documents when EXTRA_HAS_MORE.

Implement EXTRA_HAS_MORE and EXTRA_REQUEST_MORE contract with
document providers.  Providers can include EXTRA_HAS_MORE when
additional data is available with additional cost, such as a network
request.

Listen to content changes based on returned cursor instead of
original Uri.  Include a test backend to exercise.  UX still under
development.

Bug: 10350207
Change-Id: Iaa8954df55a1a1c0aa96eb8a4fd288e12c2fbb01

11 years agoManagement actions, invalidate caches.
Jeff Sharkey [Mon, 19 Aug 2013 00:38:20 +0000 (17:38 -0700)]
Management actions, invalidate caches.

In manage mode, touching launches a VIEW intent for the file.  Also
adds actions for sharing and deleting.

Move roots and thumbnail caches into Application object, and flush
cache when thumbnail size changes.  Listen for package changes and
broadcasts that should invalidate our roots cache.

Pick default grid/list mode based on provider hint.

Bug: 10329983103302101037883410330069
Change-Id: I75afb1c58ab71bb9d55852b1059da7257a376248

11 years agoMerge "Resized thumbnails; async; extend MatrixCursor." into klp-dev
Jeff Sharkey [Sun, 18 Aug 2013 20:53:29 +0000 (20:53 +0000)]
Merge "Resized thumbnails; async; extend MatrixCursor." into klp-dev

11 years agoMerge "Adding support for Absolute Volume" into klp-dev
Matthew Xie [Sun, 18 Aug 2013 19:46:42 +0000 (19:46 +0000)]
Merge "Adding support for Absolute Volume" into klp-dev

11 years agoMerge "Update WebView.postUrl documentation." into klp-dev
Ben Murdoch [Sun, 18 Aug 2013 15:11:42 +0000 (15:11 +0000)]
Merge "Update WebView.postUrl documentation." into klp-dev

11 years agoResized thumbnails; async; extend MatrixCursor.
Jeff Sharkey [Tue, 7 May 2013 19:41:33 +0000 (12:41 -0700)]
Resized thumbnails; async; extend MatrixCursor.

When requesting thumbnails, check if their dimensions are larger
than requested, and downscale to avoid memory pressure.  Load them
async and with LruCache.

Extend MatrixCursor so that RowBuilder can offer() columns without
requiring they know the projection map.  This makes it easier to
respond to query() calls, where the remote side controls the
projection map.  Use it to handle custom projections in external
storage backend.

Update date/time formatting to match spec.

Bug: 1033341810331689
Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16

11 years agoAllow for more than one home app.
Craig Mautner [Sun, 18 Aug 2013 00:04:56 +0000 (17:04 -0700)]
Allow for more than one home app.

Having a single mHomeProcess in ActivityManagerService ignores the
possibility of multiple processes serving as home. Particularly when
we have a home activity that only serves to launch the true home
activity.

Fixes bug b10296766

Change-Id: I9e5c9c955c64f4b3df856b6bc66d6a0d93f85aab

11 years agoUse panel tracking as signal preventing auto-collapse.
John Spurlock [Sat, 17 Aug 2013 18:05:49 +0000 (14:05 -0400)]
Use panel tracking as signal preventing auto-collapse.

Keeping track of pointer down at the window view level is unreliable
since gestures can be stolen.

Bug:10328256
Bug:10226720
Change-Id: I92d72f9eed73f90d2a7c5b30a3f6a4aa6549f799

11 years agoRemove setRemoteSubmixOn method.
Jeff Brown [Sat, 10 Aug 2013 00:30:57 +0000 (17:30 -0700)]
Remove setRemoteSubmixOn method.

The submix will be controlled automatically from now on based on
whether there is an active audio recorder.

Bug: 10265163
Change-Id: I90a8592136c6507680e70f054243df70cc82efad

11 years agoMerge "Fix padding resolution" into klp-dev
Alan Viverette [Sat, 17 Aug 2013 02:00:39 +0000 (02:00 +0000)]
Merge "Fix padding resolution" into klp-dev

11 years agoMerge "Fix hardware layers lifecycle Bug #10075732" into klp-dev
Romain Guy [Sat, 17 Aug 2013 01:41:28 +0000 (01:41 +0000)]
Merge "Fix hardware layers lifecycle Bug #10075732" into klp-dev

11 years agoFix hardware layers lifecycle
Romain Guy [Sat, 17 Aug 2013 01:38:29 +0000 (18:38 -0700)]
Fix hardware layers lifecycle
Bug #10075732

Hardware layers could survive across EGL terminate events.

Change-Id: Ie8565d55cb29fe6625fa1584d695edfecd37ab5e

11 years agoMerge "Fix typo in JavaDoc for TypeEvaluator." into klp-dev
Sascha Haeberling [Sat, 17 Aug 2013 01:16:22 +0000 (01:16 +0000)]
Merge "Fix typo in JavaDoc for TypeEvaluator." into klp-dev

11 years agoMerge "Refactor CameraService to handle errors properly." into klp-dev
Ruben Brunk [Sat, 17 Aug 2013 00:29:37 +0000 (00:29 +0000)]
Merge "Refactor CameraService to handle errors properly." into klp-dev

11 years agoExpose WifiManager.setTdlsEnabled public API
Vinit Deshapnde [Sat, 17 Aug 2013 00:16:45 +0000 (17:16 -0700)]
Expose WifiManager.setTdlsEnabled public API

Bug: 10221775

Change-Id: I559e4a2afd525a03c8a13fd151eca4638426d03e

11 years agoMerge "Richer ParcelFileDescriptor close events." into klp-dev
Jeff Sharkey [Sat, 17 Aug 2013 00:05:36 +0000 (00:05 +0000)]
Merge "Richer ParcelFileDescriptor close events." into klp-dev

11 years agoMerge "wifi: Do not use prefix for p2p commands" into klp-dev
Dmitry Shmidt [Fri, 16 Aug 2013 23:43:25 +0000 (23:43 +0000)]
Merge "wifi: Do not use prefix for p2p commands" into klp-dev

11 years agoMerge "Better Transition interruption" into klp-dev
Chet Haase [Fri, 16 Aug 2013 23:38:47 +0000 (23:38 +0000)]
Merge "Better Transition interruption" into klp-dev

11 years agoMerge "Add comments to new hidden API in LocationRequest. Document their purpose...
David Christie [Fri, 16 Aug 2013 23:37:48 +0000 (23:37 +0000)]
Merge "Add comments to new hidden API in LocationRequest. Document their purpose and permissions required in case this is unhidden in a different code line." into klp-dev

11 years agoAdd comments to new hidden API in LocationRequest.
David Christie [Fri, 16 Aug 2013 23:16:27 +0000 (16:16 -0700)]
Add comments to new hidden API in LocationRequest.
Document their purpose and permissions required in case
this is unhidden in a different code line.

Change-Id: I42f6f950157f488cf51b361e3411861ff98794e8

11 years agoMerge "Use pending.xml to persist sync ops." into klp-dev
Matthew Williams [Fri, 16 Aug 2013 23:10:57 +0000 (23:10 +0000)]
Merge "Use pending.xml to persist sync ops." into klp-dev

11 years agoMerge "Fix JNI method called with exception pending" into klp-dev
Jeff Tinker [Fri, 16 Aug 2013 23:04:54 +0000 (23:04 +0000)]
Merge "Fix JNI method called with exception pending" into klp-dev

11 years agoMerge "Use default class loader when creating a LocationRequest from Parcel. This...
David Christie [Fri, 16 Aug 2013 22:55:20 +0000 (22:55 +0000)]
Merge "Use default class loader when creating a LocationRequest from Parcel. This seems to be the standard usage, and there are rare reports of requestLocationUpdates giving NullPointerExceptions on the first call to requestLocationUpdates but not on subsequent calls (b/10207898)." into klp-dev

11 years agoMerge "Ensure LocationRequest's worksource defaults to null Helps to make sure the...
David Christie [Fri, 16 Aug 2013 22:45:34 +0000 (22:45 +0000)]
Merge "Ensure LocationRequest's worksource defaults to null Helps to make sure the service doesn't throw a SecurityException for not having the UPDATE_DEVICE_STATS permission." into klp-dev

11 years agoMerge "Fix NPE in DateFormat.is24HourFormat." into klp-dev
Elliott Hughes [Fri, 16 Aug 2013 22:14:42 +0000 (22:14 +0000)]
Merge "Fix NPE in DateFormat.is24HourFormat." into klp-dev

11 years agoFix padding resolution
Alan Viverette [Fri, 16 Aug 2013 22:03:35 +0000 (15:03 -0700)]
Fix padding resolution

BUG: 10361243
Change-Id: I61b03c08b45ca9c921bf787274bdbb3f174bbc7e

11 years agoMerge "Prevent ANR in apps using drawPath() Bug #10347089" into klp-dev
Romain Guy [Fri, 16 Aug 2013 21:56:39 +0000 (21:56 +0000)]
Merge "Prevent ANR in apps using drawPath() Bug #10347089" into klp-dev

11 years agoFix NPE in DateFormat.is24HourFormat.
Elliott Hughes [Fri, 16 Aug 2013 18:56:35 +0000 (11:56 -0700)]
Fix NPE in DateFormat.is24HourFormat.

In some cases, we end up being called by code that doesn't have a valid
Context. It got away with this historically because it wasn't formatting
times (just dates), so it never went down a path that tried to query the
user's 12/24-hour preference. This patch just ensures that we don't try
to get the preference unless we actually need it.

Bug: 10339015

(cherry picked from commit 8d8ef00c8276200f108433922761401817fd9a50)

Change-Id: If074a67fa52943c0ec7bb5c5bbe5a11f54fb1f97

11 years agoRemove a fixed-length buffer in the wifi code.
Elliott Hughes [Fri, 9 Aug 2013 21:59:39 +0000 (14:59 -0700)]
Remove a fixed-length buffer in the wifi code.

Also increase the size of the buffer we do need, simplify the code, and
fix some of the error checking.

(cherry-pick of 56968581ce77d3c0ee4286da6b0d5548874934b9.)

Bug: http://code.google.com/p/android/issues/detail?id=36193
Bug: 10363597
Change-Id: Iadd2ee25469a37ddf06c3292b675a4cbcc4ecfa3

11 years agoPrevent ANR in apps using drawPath()
Romain Guy [Fri, 16 Aug 2013 21:44:38 +0000 (14:44 -0700)]
Prevent ANR in apps using drawPath()
Bug #10347089

If an app clears its path cache before stopping background tasks, it could
get into an infinite loop in PathCache::trim().

Change-Id: Ieb865b762e7b00aebaba0c023769c2db286a94f5

11 years agoMerge "Fix old remaining i18n bugs on TimePicker:" into klp-dev
Fabrice Di Meglio [Fri, 16 Aug 2013 21:38:29 +0000 (21:38 +0000)]
Merge "Fix old remaining i18n bugs on TimePicker:" into klp-dev

11 years agoRicher ParcelFileDescriptor close events.
Jeff Sharkey [Sun, 11 Aug 2013 19:54:42 +0000 (12:54 -0700)]
Richer ParcelFileDescriptor close events.

When reading from the end of a pipe or socket, there is no way to
tell if the other end has finished successfully, encountered an error,
or outright crashed.  To solve this, we create a second socketpair()
as a communication channel between the two ends of a pipe or
socket pair, sending a status code with details about why the
ParcelFileDescriptor was closed.

The writer end of a pipe or socket can closeWithError() to send a
message to the reader end.  When the reader encounters EOF, they
call checkError() to detect if any error occured.  This also detects
the case where the remote process died without sending a success
message.

This design is also extended to support regular files on disk, using
the communication channel above to detect various remote close events
or crashes, and delivering that event to a supplied OnCloseListener.

Replaces JNI with best-practice Libcore.os calls, and deprecates
some flags to match Context.

Bug: 10330121
Change-Id: I8cfa1e4fb6f57397667c7f785106193e0faccad3

11 years agoFix old remaining i18n bugs on TimePicker:
Fabrice Di Meglio [Fri, 16 Aug 2013 00:49:49 +0000 (17:49 -0700)]
Fix old remaining i18n bugs on TimePicker:

- put am/pm on the left side of hours for hu, zh, ja and ko Locales
- use the hours/minutes separator from the Locale (fi, sr, ...)
- updated layouts (better for Arabic, Farsi and Hebrew)
- support double digits format for 12h and single digit format for
24h (it, ja, vi, ...)
- fix setIs24HourView(boolean) behavior: do not lose the current hour
value when switching from 12h to 24h

Change-Id: If66cb6f802d894f0a2357b43eede6854791f3b67

11 years agoEnsure LocationRequest's worksource defaults to null
David Christie [Fri, 16 Aug 2013 21:12:59 +0000 (14:12 -0700)]
Ensure LocationRequest's worksource defaults to null
Helps to make sure the service doesn't throw a
SecurityException for not having the UPDATE_DEVICE_STATS
permission.

Change-Id: I9be0302f1378d2c4441e6b7d5ce472ed0d5fbd80

11 years agoMerge "media: Fix ImageReader only using maxImages=1 no matter what" into klp-dev
Igor Murashkin [Fri, 16 Aug 2013 21:02:11 +0000 (21:02 +0000)]
Merge "media: Fix ImageReader only using maxImages=1 no matter what" into klp-dev

11 years agoMerge "Clear FBO cache on full memory flush" into klp-dev
Romain Guy [Fri, 16 Aug 2013 20:56:59 +0000 (20:56 +0000)]
Merge "Clear FBO cache on full memory flush" into klp-dev

11 years agoLose navigation bar icon alpha in transparent modes.
John Spurlock [Fri, 16 Aug 2013 19:06:51 +0000 (15:06 -0400)]
Lose navigation bar icon alpha in transparent modes.

Also decouple visual style from bar mode in preparation for future
changes.

Bug:10344949
Change-Id: I8e5a94b023cd6a6606c3aab485f81b1494295cee

11 years agoClear FBO cache on full memory flush
Romain Guy [Fri, 16 Aug 2013 20:55:29 +0000 (13:55 -0700)]
Clear FBO cache on full memory flush

Change-Id: I44e06d5d15cd899a0522c62d7c0d042170665abb

11 years agoFix JNI method called with exception pending
Jeff Tinker [Fri, 16 Aug 2013 20:46:02 +0000 (13:46 -0700)]
Fix JNI method called with exception pending

bug: 10313912
Change-Id: I8390905334f2e37f210adced52c31e7a431d4f55

11 years agoBetter Transition interruption
Chet Haase [Thu, 25 Jul 2013 01:40:55 +0000 (18:40 -0700)]
Better Transition interruption

Previously, a running transition on a scene root would simply
be canceled when a new transition was started. This would result in
abrupt scene changes, especially in generic use cases where apps/widgets
would spawn multiple transitions in successive rendering frames due to
small changes in view properties.

The new approach is to check all running animations against new transitions.
If there are overlapping properties that are being set to different values,
the new animations win and the old ones are canceled. If the end values are the
same, the new animations are noop'd and the old ones are allowed to continue
as-is.

There was also improvement to capturing state while other transitions are
running, necessary in this new world where old transitions are allowed to
continue running. Now, transitions are pause()'d while values are captured,
then resume()'d after capturing is done. This allows the system to see what the
real view properties are, instead of the mid-animation values.

Change-Id: I8e77fb9c1967087a682bb26a45763005f5ca9179

11 years agoAdding support for Absolute Volume
John Du [Fri, 19 Jul 2013 18:30:34 +0000 (11:30 -0700)]
Adding support for Absolute Volume

Change-Id: I7bbc6f9296221ca219a50a5e377ebac9dcf5a407

11 years agomedia: Fix ImageReader only using maxImages=1 no matter what
Igor Murashkin [Thu, 15 Aug 2013 02:05:17 +0000 (19:05 -0700)]
media: Fix ImageReader only using maxImages=1 no matter what

- No longer return null when some bad error happens
- Throws OutOfResourcesException when images need to be closed
- Throws IllegalStateException when an unknown internal error happens

Bug: 10333400
Change-Id: Ia53a5dd33f9ce53abd036e080e6fcc4ded9b251d

11 years agoMerge "MediaFormat: added subtitle format" into klp-dev
Lajos Molnar [Fri, 16 Aug 2013 19:15:24 +0000 (19:15 +0000)]
Merge "MediaFormat: added subtitle format" into klp-dev

11 years agoMerge "Camera2: Add user tag to CaptureRequest" into klp-dev
Eino-Ville Talvala [Fri, 16 Aug 2013 19:14:15 +0000 (19:14 +0000)]
Merge "Camera2: Add user tag to CaptureRequest" into klp-dev

11 years agoUse pending.xml to persist sync ops.
Matthew Williams [Tue, 13 Aug 2013 22:53:31 +0000 (15:53 -0700)]
Use pending.xml to persist sync ops.

Support pending ops by producing badly formed xml.
fixed bug that stopped alarm manager from updating if the
next alarm time is in the past.
Use new AlarmManager API for old AM behaviour - to set
exact alarms.

Change-Id: I57090f9c7155996298be7ec968a88f17ac1938a7

11 years agoRefactor CameraService to handle errors properly.
Ruben Brunk [Thu, 8 Aug 2013 20:05:30 +0000 (13:05 -0700)]
Refactor CameraService to handle errors properly.

Bug: 10361136

- Connect calls now return status_t error flags.

Change-Id: Ibce9ab047348cfcade7e70a2ef03f5a833e13af8

11 years agoMerge "Modify wifi BatchedScan." into klp-dev
Robert Greenwalt [Fri, 16 Aug 2013 18:17:51 +0000 (18:17 +0000)]
Merge "Modify wifi BatchedScan." into klp-dev

11 years agoCamera2: Add user tag to CaptureRequest
Eino-Ville Talvala [Thu, 8 Aug 2013 23:56:28 +0000 (16:56 -0700)]
Camera2: Add user tag to CaptureRequest

Bug: 10360518
Change-Id: I781341b4c598c28ee5dd7551b8e05ab19b8fff0d

11 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Fri, 16 Aug 2013 18:02:17 +0000 (18:02 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

11 years agoam 59616de7: am 8f5a76d2: am b4f96287: add latest Roboto fonts to DAC and update...
Scott Main [Fri, 16 Aug 2013 18:02:03 +0000 (11:02 -0700)]
am 59616de7: am 8f5a76d2: am b4f96287: add latest Roboto fonts to DAC and update download links

* commit '59616de7ea4719cc3a6f75f8d4ff80d7d735d8c1':
  add latest Roboto fonts to DAC and update download links

11 years agoMerge "Forward events to ListPopupWindow, highlight touched items" into klp-dev
Alan Viverette [Fri, 16 Aug 2013 17:56:42 +0000 (17:56 +0000)]
Merge "Forward events to ListPopupWindow, highlight touched items" into klp-dev

11 years agoam 8f5a76d2: am b4f96287: add latest Roboto fonts to DAC and update download links
Scott Main [Fri, 16 Aug 2013 17:58:52 +0000 (10:58 -0700)]
am 8f5a76d2: am b4f96287: add latest Roboto fonts to DAC and update download links

* commit '8f5a76d2bf011a7ae72d4c6845ee41fb63b21698':
  add latest Roboto fonts to DAC and update download links

11 years agoMerge "Update documentation for FastScroller and SectionIndexer" into klp-dev
Alan Viverette [Fri, 16 Aug 2013 17:56:40 +0000 (17:56 +0000)]
Merge "Update documentation for FastScroller and SectionIndexer" into klp-dev

11 years agoam b4f96287: add latest Roboto fonts to DAC and update download links
Scott Main [Fri, 16 Aug 2013 17:55:07 +0000 (10:55 -0700)]
am b4f96287: add latest Roboto fonts to DAC and update download links

* commit 'b4f96287285cd0886954d1576157b7a38995af88':
  add latest Roboto fonts to DAC and update download links

11 years agoadd latest Roboto fonts to DAC and update download links
Scott Main [Fri, 16 Aug 2013 17:41:31 +0000 (10:41 -0700)]
add latest Roboto fonts to DAC and update download links

Change-Id: I6232cf02486d5b82d503ebe8c6035a7da2a1093d

11 years agoUpdate WebView.postUrl documentation.
Ben Murdoch [Fri, 16 Aug 2013 15:43:22 +0000 (16:43 +0100)]
Update WebView.postUrl documentation.

Clarify format of the 'data' parameter.

Bug: 10188709
Change-Id: Ib0f7553153916ed7b5cc611da5eb481979bf3f93

11 years agoMerge "Add an API supportsSwitchingToNextInput" into klp-dev
Satoshi Kataoka [Fri, 16 Aug 2013 07:08:51 +0000 (07:08 +0000)]
Merge "Add an API supportsSwitchingToNextInput" into klp-dev

11 years agoFix typo in JavaDoc for TypeEvaluator.
Sascha Haeberling [Fri, 16 Aug 2013 02:37:32 +0000 (19:37 -0700)]
Fix typo in JavaDoc for TypeEvaluator.

Change-Id: Ice2b2db117e1f91ad70ed55d4cc0b14b86804c1c