111141 Commits

Author SHA1 Message Date
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
b1be77ef4a am e3c754bb: 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
* commit 'e3c754bb1c518c9166ff4275b5ee59f36c999f4c':
  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.
2013-08-16 15:50:38 -07: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
dd61730d8e am 48570adf: Merge "Fix NPE in DateFormat.is24HourFormat." into klp-dev
* commit '48570adfd927ac1d3bb2a2671a5f54bba573155e':
  Fix NPE in DateFormat.is24HourFormat.
2013-08-16 15:19:13 -07:00
Elliott Hughes
48570adfd9 Merge "Fix NPE in DateFormat.is24HourFormat." into klp-dev 2013-08-16 22:14:42 +00:00
Romain Guy
34d89c6b05 am 836d335f: Merge "Prevent ANR in apps using drawPath() Bug #10347089" into klp-dev
* commit '836d335f9a43e1ebcd2291b211ac04116971124e':
  Prevent ANR in apps using drawPath() Bug #10347089
2013-08-16 15:03:51 -07: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
Elliott Hughes
a11d574fc6 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
2013-08-16 14:48:38 -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
6c9b6aea12 am 3c226bf6: Merge "Fix old remaining i18n bugs on TimePicker:" into klp-dev
* commit '3c226bf6acea0b8dff34a2113009b6d918a3af65':
  Fix old remaining i18n bugs on TimePicker:
2013-08-16 14:42:59 -07:00
Alan Viverette
ca6a3611cd Move forwarding code to ListPopupWindow, add drag-to-open in Spinner
BUG: 9437139
Change-Id: I4599cf65a472b2ce74d2301988359d87917a6eec
2013-08-16 14:41:06 -07:00
Chong Zhang
83ddaf664c MediaPlayer: add listener for subtitle data
Bug: 10326117

Change-Id: I8fbd54df70e37a061c7c875743ded09f1922ef8f
2013-08-16 14:38:48 -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
Elliott Hughes
ae73645241 am 2a8be3cf: am ecdf20d4: Merge "Fix NPE in DateFormat.is24HourFormat."
* commit '2a8be3cf5ebabbbb0c42d946f28cfe33d5653be6':
  Fix NPE in DateFormat.is24HourFormat.
2013-08-16 14:20:50 -07:00
Elliott Hughes
2a8be3cf5e am ecdf20d4: Merge "Fix NPE in DateFormat.is24HourFormat."
* commit 'ecdf20d4fec6107ee49e315cff3dc73f65569843':
  Fix NPE in DateFormat.is24HourFormat.
2013-08-16 14:17:10 -07:00
Elliott Hughes
ecdf20d4fe Merge "Fix NPE in DateFormat.is24HourFormat." 2013-08-16 21:14:19 +00: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
0210bf0862 am aa973d1d: Merge "media: Fix ImageReader only using maxImages=1 no matter what" into klp-dev
* commit 'aa973d1d0b62f1645318b9c9da9212b0bc54246d':
  media: Fix ImageReader only using maxImages=1 no matter what
2013-08-16 14:10:36 -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
bd3c2c3d70 am 88105179: Merge "Clear FBO cache on full memory flush" into klp-dev
* commit '88105179ed90825dd447d5fcc95d18a20dc2f4c3':
  Clear FBO cache on full memory flush
2013-08-16 14:03:44 -07:00
Romain Guy
88105179ed Merge "Clear FBO cache on full memory flush" into klp-dev 2013-08-16 20:59:01 +00:00
John Spurlock
89835ddf32 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
2013-08-16 16:58:45 -04: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
John Du
5a0cf7a27f Adding support for Absolute Volume
Change-Id: I7bbc6f9296221ca219a50a5e377ebac9dcf5a407
2013-08-16 12:25:20 -07:00
Lajos Molnar
3b1cf4efb9 am dad0f462: Merge "MediaFormat: added subtitle format" into klp-dev
* commit 'dad0f462ae6fee99840bbea910c810282bbc1c54':
  MediaFormat: added subtitle format
2013-08-16 12:23:56 -07:00
Eino-Ville Talvala
a475c66ba9 am 448c3395: Merge "Camera2: Add user tag to CaptureRequest" into klp-dev
* commit '448c339596df2a6b08a6f93dbea1d6fc87ba676e':
  Camera2: Add user tag to CaptureRequest
2013-08-16 12:20:24 -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
Elliott Hughes
8d8ef00c82 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
Change-Id: I2df466d85cdeba14dbf882498808cbad9bbb57f4
2013-08-16 11:56:35 -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
49a3fe2686 am d3135451: Merge "Modify wifi BatchedScan." into klp-dev
* commit 'd3135451b1091022264f15a17e0ac85ec8f0bf30':
  Modify wifi BatchedScan.
2013-08-16 11:22:47 -07: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
22aad6113c am 7f2f60de: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '7f2f60debea72f428cda03774e497e63aff08b09':
  Import translations. DO NOT MERGE
2013-08-16 11:08:55 -07:00
Scott Main
9487d1c99d am 0fd59567: am 59616de7: am 8f5a76d2: am b4f96287: add latest Roboto fonts to DAC and update download links
* commit '0fd595672092030d5949f09d27581866b8b315d4':
  add latest Roboto fonts to DAC and update download links
2013-08-16 11:05:18 -07:00
Alan Viverette
6cfce6a18f am 28dd8eb6: Merge "Forward events to ListPopupWindow, highlight touched items" into klp-dev
* commit '28dd8eb615a46ae169132b0ee75ad06b606f010c':
  Forward events to ListPopupWindow, highlight touched items
2013-08-16 11:05:15 -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
059d7759b8 am 960338ad: Merge "Update documentation for FastScroller and SectionIndexer" into klp-dev
* commit '960338adbcc4344b0f9e0478026e42e911eb2210':
  Update documentation for FastScroller and SectionIndexer
2013-08-16 11:01:42 -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