42854 Commits

Author SHA1 Message Date
Jeff Sharkey
5851493762 Merge "Resized thumbnails; async; extend MatrixCursor." into klp-dev 2013-08-18 20:53:29 +00:00
Matthew Xie
f855a2ff01 Merge "Adding support for Absolute Volume" into klp-dev 2013-08-18 19:46:42 +00:00
Ben Murdoch
e265d96e60 Merge "Update WebView.postUrl documentation." into klp-dev 2013-08-18 15:11:44 +00:00
Jeff Sharkey
9d0843df7e 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: 10333418, 10331689
Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16
2013-08-17 19:05:07 -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
Chet Haase
d1477e7460 Merge "Better Transition interruption" into klp-dev 2013-08-16 23:41:29 +00:00
Alan Viverette
7b1a6f76de Fix padding resolution
BUG: 10361243
Change-Id: I61b03c08b45ca9c921bf787274bdbb3f174bbc7e
2013-08-16 15:03:35 -07: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
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
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
Eino-Ville Talvala
448c339596 Merge "Camera2: Add user tag to CaptureRequest" into klp-dev 2013-08-16 19:14:16 +00: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
Eino-Ville Talvala
4068388bee Camera2: Add user tag to CaptureRequest
Bug: 10360518
Change-Id: I781341b4c598c28ee5dd7551b8e05ab19b8fff0d
2013-08-16 11:10:21 -07:00
Alan Viverette
28dd8eb615 Merge "Forward events to ListPopupWindow, highlight touched items" into klp-dev 2013-08-16 17:59:34 +00:00
Alan Viverette
960338adbc Merge "Update documentation for FastScroller and SectionIndexer" into klp-dev 2013-08-16 17:56:40 +00:00
Ben Murdoch
851004ade0 Update WebView.postUrl documentation.
Clarify format of the 'data' parameter.

Bug: 10188709
Change-Id: Ib0f7553153916ed7b5cc611da5eb481979bf3f93
2013-08-16 16:43:22 +01: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
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
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
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
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
Jeff Sharkey
e0475c8287 Gracefully handle missing directories.
Bug: 10295932
Change-Id: I9d18682d0ba57bf7f77d043ee8dab286ee80ba2a
2013-08-15 12:04:37 -07:00
Jeff Sharkey
2241d45c68 Merge "Root invalidation, write and grid flags, local." into klp-dev 2013-08-15 16:44:15 +00: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
Jeff Sharkey
5b83f854d9 Root invalidation, write and grid flags, local.
Flags to indicate write support, and to indicate that a grid view is
preferred.  Method to inform system that any root caches should be
invalidated.  Methods to mark a Uri as requesting "local only" data.

Helper method for document creation.

Bug: 10330069, 10330108, 10330210, 10329976
Change-Id: I6ce6160f6ce6621e6ea05848a31bbbcb84587671
2013-08-14 21:52:37 -07:00
Alan Viverette
70e907f51f Merge "Prevent refocus after entering touch mode" into klp-dev 2013-08-15 00:01:03 +00:00
Alan Viverette
76e696f6d2 Merge "Add motion event forwarding hidden APIs to View" into klp-dev 2013-08-14 23:01:56 +00:00
Alan Viverette
5482ab01e3 Merge "Throw exception in FragmentManager when queuing to a destroyed activity" into klp-dev 2013-08-14 22:55:55 +00:00
Elliott Hughes
12285f3d9f DateUtils should use the user's 12/24-hour preference, not the locale's.
Bug: 10312832

(cherry picked from commit f0b79aeed36f0839e4effaa36893b7ca71292563)

Change-Id: I0d78725d47009553f9003ccfba06f70f178a6ec1
2013-08-14 15:27:17 -07:00
Alan Viverette
6fb3b9eb28 Add motion event forwarding hidden APIs to View
Change-Id: Ia7ab5496f8064c96b34912b5f5e9af6fd0978b34
2013-08-14 14:57:13 -07:00
Eino-Ville Talvala
66a83ae650 Merge "Camera2: Add metadata keys and enum values" into klp-dev 2013-08-14 20:20:43 +00:00
Jeff Sharkey
7d56ef2d80 Merge "Add GIDs to packages.list, update SD card perms." into klp-dev 2013-08-14 20:08:36 +00:00
Baligh Uddin
7c651c7f1d Import translations. DO NOT MERGE
Change-Id: I7b9539ca9b8988f87e4ca48b555725f6cd133284
Auto-generated-cl: translation import
2013-08-14 11:18:19 -07:00
Alan Viverette
95a4609b90 Throw exception in FragmentManager when queuing to a destroyed activity
Change-Id: I0522cf27fd423070f7578c1c43c1f05a335810bf
2013-08-14 11:17:25 -07:00
Matthew Xie
a5c81e8636 Merge "LE: Add peripheral role support (1/4)" into klp-dev 2013-08-14 08:14:09 +00:00