110518 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Jeff Sharkey
a5599ef636 Documents management mode; API adjustment.
Create documents manage mode to support Downloads and transient
storage devices.  Locks user into requested backend root, and forces
file sizes on and sorting by last modified.

Separate API constants for Documents versus Roots, and give concrete
MIME types for roots.

Treat null sizes as unknown.  Documents are always enabled in list
so that divider is drawn.  Mark external storage file as writable.

Bug: 10329983, 10332993, 10332952
Change-Id: I05f4fdf5b04041a38e1ba7fb30202a3b0c615bf6
2013-08-15 16:25:30 -07:00
David Christie
def20a3350 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).

Change-Id: If7a873fba5a2cd77b836ff3fda89105da20104ac
2013-08-15 16:01:42 -07:00
Zhihai Xu
6bab49deaa Merge "LE: Add support for the HID-over-GATT profile (2/3)" into klp-dev 2013-08-15 22:46:15 +00:00
John Spurlock
1d5ac15974 Merge "Maintain TRANSIENT_*_BAR flags until transient bars hidden." into klp-dev 2013-08-15 22:13:14 +00:00
Andre Eisenbach
c60bed487e LE: Add support for the HID-over-GATT profile (2/3)
bug:8330048
Change-Id: I600563d81dec1638dc35e31e19f61d6c04f09ae8
2013-08-15 15:01:10 -07:00
Jeff Sharkey
0940024980 Merge "DocumentsUI handles GET_CONTENT; hinting, errors." into klp-dev 2013-08-15 21:53:54 +00:00
John Spurlock
27735a4ba5 Maintain TRANSIENT_*_BAR flags until transient bars hidden.
Also factor common bar-management code into a separate helper
class called BarController instead of continuing to pollute
PhoneWindowManager with duplicate logic.

Bug:10345412
Change-Id: I880900e61daa6c2c53b169e4885e68ebc62ecb6c
2013-08-15 17:16:28 -04:00
Jeff Sharkey
54ca29a5b9 DocumentsUI handles GET_CONTENT; hinting, errors.
Document browser now takes over all GET_CONTENT requests that request
openable Uris. It shows both storage backends and includes other apps
that respond to GET_CONTENT. Only grants transient read permissions.

Better guarding against throwing storage backends. Send sort order
and local-only hinting to backends.

Require that OPEN/CREATE_DOC users include openable category.

Bug: 10330112, 10329976, 10340741, 10331689, 10329971
Change-Id: Ieb8768a6d71201816046f4a4c48832061a313c28
2013-08-15 14:14:48 -07:00
Romain Guy
3ed72781a0 Convert 4444 bitmaps to 8888
Bug #10206452

Change-Id: I928c9189b0d80741490b01a739959d8c2d5312a7
(cherry picked from commit a2cdb59b186d0ee51f110c1a7d358911573d48bf)
2013-08-15 19:56:05 +00:00
Dmitry Shmidt
0d8afa2ea3 Merge "wifi: Send event without prefix to p2p0" into klp-dev 2013-08-15 19:32:33 +00:00
Michael Wright
cf770f41ad Merge "Bound touch and tool axes lengths below at 0" into klp-dev 2013-08-15 19:26:43 +00:00
Jeff Sharkey
e0475c8287 Gracefully handle missing directories.
Bug: 10295932
Change-Id: I9d18682d0ba57bf7f77d043ee8dab286ee80ba2a
2013-08-15 12:04:37 -07:00
Lajos Molnar
dc775c66bf MediaFormat: added subtitle format
Added KEY_LANGUAGE that for now only refers to subtitles.
Added createSubtitleFormat() method to create base format.

Signed-off-by: Lajos Molnar <lajos@google.com>
Change-Id: I344c36a3fd0d88c285cdebf3f67e549553b37a8e
Bug: 10326117
2013-08-15 11:43:02 -07:00
Dmitry Shmidt
bbabe14333 wifi: Send event without prefix to p2p0
Bug: 9298955

Change-Id: I71037dd1cd60ee4efa75e1d6fab60a07bdf0626d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-08-15 11:13:03 -07:00
Jeff Sharkey
2241d45c68 Merge "Root invalidation, write and grid flags, local." into klp-dev 2013-08-15 16:44:15 +00:00
John Spurlock
ac0a1ea06f Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev 2013-08-15 16:38:46 +00:00
Daniel Sandler
da68124da2 Merge "Defend against NPE." into klp-dev 2013-08-15 16:06:49 +00:00
Robert Greenwalt
8e628dadc3 Modify wifi BatchedScan.
Add pollBatchedScan API to allow forced retrieval.
Modified driver API, adding MSCAN, removing nextCount and making
the results look more like normal manual scan results.

bug:9301872
Change-Id: I58bce0624c36e2ad8d3c3f5defcb4d4e155dc8f9
2013-08-15 08:39:13 -07:00
John Spurlock
48fa91a818 Recover tracking pointer going up mid-gesture in shade.
Keep track of the pointer id used in driving the gesture. If
it happens to go up mid-gesture (another pointer is still down),
continue the gesture with another down pointer, instead of
abruptly jumping on next ACTION_MOVE.

Bug:10246050
Change-Id: Ia6e59658635fd696974fe415f37811d27da80519
2013-08-15 09:29:31 -04:00
Satoshi Kataoka
69da2690e5 Add an API supportsSwitchingToNextInput
To let the system know an IME supports switching to a next input method

Bug: 8364845
Change-Id: Iabf4f106893ee6a262ad0cd44dbec0c661bf0ff2
2013-08-15 16:11:41 +09:00