110539 Commits

Author SHA1 Message Date
Jeff Brown
64dfb604e7 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
2013-08-19 16:42:07 -07:00
Jeff Brown
f15ef4b02c 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
2013-08-16 20:21:09 -07:00
Alan Viverette
77b2a86144 Merge "Fix padding resolution" into klp-dev 2013-08-17 02:00:39 +00:00
Romain Guy
83aec80fb4 Merge "Fix hardware layers lifecycle Bug #10075732" into klp-dev 2013-08-17 01:41:28 +00:00
Romain Guy
46bfc48110 Fix hardware layers lifecycle
Bug #10075732

Hardware layers could survive across EGL terminate events.

Change-Id: Ie8565d55cb29fe6625fa1584d695edfecd37ab5e
2013-08-16 18:38:29 -07:00
Sascha Haeberling
567c7408cb Merge "Fix typo in JavaDoc for TypeEvaluator." into klp-dev 2013-08-17 01:16:22 +00:00
Ruben Brunk
94a26df84f Merge "Refactor CameraService to handle errors properly." into klp-dev 2013-08-17 00:29:37 +00:00
Jeff Sharkey
d1da67017f Merge "Richer ParcelFileDescriptor close events." into klp-dev 2013-08-17 00:05:36 +00:00
Dmitry Shmidt
b3acd8ef26 Merge "wifi: Do not use prefix for p2p commands" into klp-dev 2013-08-16 23:45:52 +00:00
Chet Haase
d1477e7460 Merge "Better Transition interruption" into klp-dev 2013-08-16 23:41:29 +00:00
David Christie
0ef054b5f1 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 2013-08-16 23:37:48 +00:00
David Christie
3e32bdd418 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
2013-08-16 16:16:27 -07:00
Matthew Williams
0c5b96b1cd Merge "Use pending.xml to persist sync ops." into klp-dev 2013-08-16 23:10:57 +00:00
Jeff Tinker
df717aaa25 Merge "Fix JNI method called with exception pending" into klp-dev 2013-08-16 23:04:54 +00:00
David Christie
d0d554579b 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 2013-08-16 22:55:21 +00:00
David Christie
e3c754bb1c 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 2013-08-16 22:45:34 +00:00
Elliott Hughes
48570adfd9 Merge "Fix NPE in DateFormat.is24HourFormat." into klp-dev 2013-08-16 22:14:42 +00:00
Alan Viverette
7b1a6f76de Fix padding resolution
BUG: 10361243
Change-Id: I61b03c08b45ca9c921bf787274bdbb3f174bbc7e
2013-08-16 15:03:35 -07:00
Romain Guy
836d335f9a Merge "Prevent ANR in apps using drawPath() Bug #10347089" into klp-dev 2013-08-16 21:56:40 +00:00
Elliott Hughes
f9818d33f9 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
2013-08-16 14:53:26 -07:00
Romain Guy
b0a41ed3dc 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
2013-08-16 14:44:38 -07:00
Fabrice Di Meglio
3c226bf6ac Merge "Fix old remaining i18n bugs on TimePicker:" into klp-dev 2013-08-16 21:38:29 +00:00
Jeff Sharkey
da5a3e12f4 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
2013-08-16 14:34:43 -07:00
Fabrice Di Meglio
64902bd89e 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
2013-08-16 14:34:25 -07:00
David Christie
6de1047278 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
2013-08-16 14:12:59 -07:00
Igor Murashkin
aa973d1d0b Merge "media: Fix ImageReader only using maxImages=1 no matter what" into klp-dev 2013-08-16 21:04:15 +00:00
Romain Guy
88105179ed Merge "Clear FBO cache on full memory flush" into klp-dev 2013-08-16 20:59:01 +00:00
Romain Guy
b746371de7 Clear FBO cache on full memory flush
Change-Id: I44e06d5d15cd899a0522c62d7c0d042170665abb
2013-08-16 13:55:29 -07:00
Jeff Tinker
8117d8f702 Fix JNI method called with exception pending
bug: 10313912
Change-Id: I8390905334f2e37f210adced52c31e7a431d4f55
2013-08-16 13:46:02 -07:00
Chet Haase
199acdfcc9 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
2013-08-16 13:22:36 -07:00
Igor Murashkin
dd0643202d 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
2013-08-16 12:20:09 -07:00
Lajos Molnar
dad0f462ae Merge "MediaFormat: added subtitle format" into klp-dev 2013-08-16 19:18:32 +00:00
Eino-Ville Talvala
448c339596 Merge "Camera2: Add user tag to CaptureRequest" into klp-dev 2013-08-16 19:14:16 +00:00
Matthew Williams
ba35271e91 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
2013-08-16 12:01:22 -07:00
Ruben Brunk
66ef645144 Refactor CameraService to handle errors properly.
Bug: 10361136

- Connect calls now return status_t error flags.

Change-Id: Ibce9ab047348cfcade7e70a2ef03f5a833e13af8
2013-08-16 18:34:23 +00:00
Robert Greenwalt
d3135451b1 Merge "Modify wifi BatchedScan." into klp-dev 2013-08-16 18:17:51 +00:00
Eino-Ville Talvala
4068388bee Camera2: Add user tag to CaptureRequest
Bug: 10360518
Change-Id: I781341b4c598c28ee5dd7551b8e05ab19b8fff0d
2013-08-16 11:10:21 -07:00
Baligh Uddin
7f2f60debe Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-16 18:02:17 +00:00
Scott Main
0fd5956720 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
2013-08-16 11:02:03 -07:00
Alan Viverette
28dd8eb615 Merge "Forward events to ListPopupWindow, highlight touched items" into klp-dev 2013-08-16 17:59:34 +00:00
Scott Main
59616de7ea 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
2013-08-16 10:58:52 -07:00
Alan Viverette
960338adbc Merge "Update documentation for FastScroller and SectionIndexer" into klp-dev 2013-08-16 17:56:40 +00:00
Scott Main
8f5a76d2bf am b4f96287: add latest Roboto fonts to DAC and update download links
* commit 'b4f96287285cd0886954d1576157b7a38995af88':
  add latest Roboto fonts to DAC and update download links
2013-08-16 10:55:07 -07:00
Scott Main
b4f9628728 add latest Roboto fonts to DAC and update download links
Change-Id: I6232cf02486d5b82d503ebe8c6035a7da2a1093d
2013-08-16 10:41:31 -07:00
Satoshi Kataoka
0a94b9ce27 Merge "Add an API supportsSwitchingToNextInput" into klp-dev 2013-08-16 07:08:52 +00:00
Sascha Haeberling
bac752632c Fix typo in JavaDoc for TypeEvaluator.
Change-Id: Ice2b2db117e1f91ad70ed55d4cc0b14b86804c1c
2013-08-15 19:37:32 -07:00
Alan Viverette
86f5e8956d Update documentation for FastScroller and SectionIndexer
BUG: 3341285
Change-Id: I0607031576eaaecaebe848437cfbacd0d1a4b161
2013-08-15 18:16:06 -07:00
Alan Viverette
c05027214f Forward events to ListPopupWindow, highlight touched items
Moves most of the drag-to-open behavior into ListPopupWindow's
particular implementation of ListView. Uses hidden View API for
forwarding events between different windows.

Overflow menu opens on first touch, closes on touch end outside
the overflow button. Clicks that occur during drag-to-open mode
result in alpha animation of the selector drawable.

BUG: 9437139
Change-Id: I70f540555a03450638a27880b3ae3b031ca6e2ed
2013-08-15 18:05:52 -07:00
Baligh Uddin
6f2883c9ac Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-16 00:28:16 +00:00
Jeff Sharkey
3aa2d9f553 Merge "Documents management mode; API adjustment." into klp-dev 2013-08-16 00:08:05 +00:00