OSDN Git Service

android-x86/frameworks-base.git
10 years agoChange case of "keyset" to "keySet" for manifests
Kenny Root [Wed, 18 Sep 2013 18:15:06 +0000 (11:15 -0700)]
Change case of "keyset" to "keySet" for manifests

Bug: 10461185
Change-Id: Ibfe8cc6e716ac8b76ed7c05c26c332673479b7d8

10 years agoMerge "Fix provider leak in PFD" into klp-dev
Amith Yamasani [Wed, 18 Sep 2013 18:01:20 +0000 (18:01 +0000)]
Merge "Fix provider leak in PFD" into klp-dev

10 years agoMerge "Validate AID format and length." into klp-dev
Martijn Coenen [Wed, 18 Sep 2013 17:56:02 +0000 (17:56 +0000)]
Merge "Validate AID format and length." into klp-dev

10 years agoMerge "Use transition-only alpha property for fading transitions" into klp-dev
Chet Haase [Wed, 18 Sep 2013 17:51:33 +0000 (17:51 +0000)]
Merge "Use transition-only alpha property for fading transitions" into klp-dev

10 years agoMerge "Use a native buffer for decoding images." into klp-dev
Leon Scroggins III [Wed, 18 Sep 2013 17:50:55 +0000 (17:50 +0000)]
Merge "Use a native buffer for decoding images." into klp-dev

10 years agoMerge "ImageReader: disable NV21 support" into klp-dev
Zhijun He [Wed, 18 Sep 2013 17:49:30 +0000 (17:49 +0000)]
Merge "ImageReader: disable NV21 support" into klp-dev

10 years agoMerge "Fix leak fix in ViewTreeObserver" into klp-dev
Chet Haase [Wed, 18 Sep 2013 17:48:38 +0000 (17:48 +0000)]
Merge "Fix leak fix in ViewTreeObserver" into klp-dev

10 years agoImageReader: disable NV21 support
Zhijun He [Wed, 18 Sep 2013 15:00:02 +0000 (08:00 -0700)]
ImageReader: disable NV21 support

Bug: 10787131
Change-Id: I5ff0a67144b5ec49eabde6129423a41c9597c2b8

10 years agoMerge "Misc. media API changes" into klp-dev
Lajos Molnar [Wed, 18 Sep 2013 17:20:08 +0000 (17:20 +0000)]
Merge "Misc. media API changes" into klp-dev

10 years agoMerge "Add CaptioningManager listener Subtitle support." into klp-dev
Lajos Molnar [Wed, 18 Sep 2013 16:46:38 +0000 (16:46 +0000)]
Merge "Add CaptioningManager listener Subtitle support." into klp-dev

10 years agoFix provider leak in PFD
Amith Yamasani [Wed, 18 Sep 2013 16:16:15 +0000 (09:16 -0700)]
Fix provider leak in PFD

Code path to release content provider associated with the PFD was
inadvertently bypassed by a previous change. Reinstate that code
when closing the PFD.

Bug: 10767447
Change-Id: I23306cfb3c28c99e587892b17ca85efd3f7a8a07

10 years agoUse a native buffer for decoding images.
Leon Scroggins III [Wed, 11 Sep 2013 00:26:05 +0000 (20:26 -0400)]
Use a native buffer for decoding images.

Fixes BUG:10725383

Depends on https://googleplex-android-review.git.corp.google.com/#/c/357300/
in external/skia.

In the previous fix for BUG:8432093 and BUG:6493544
(https://googleplex-android-review.googlesource.com/#/c/346191/),
instead of calling mark on the provided input stream, we
copied the entire stream in native code (except in one case;
more details below), allowing rewind no matter how much of
the stream had been read. This was because two decoders
may rewind after reading an arbitrary amount of the stream:
SkImageDecoder_wbmp and SkImageDecoder_libjpeg.

It turns out that the jpeg decoder does not need this rewind
after arbitrary length (it is a failure recovery case, and
libjpeg has a default recovery we can use - the above referenced
CL in Skia uses the default).

Although the wbmp decoder could read any amount given a
stream with the "right" data, and then return false, such a
stream would not be a valid stream of another format, so it
is okay for this rewind to fail.

Further, the previous fix was inefficient in the common case
where the caller decodes just the bounds, resets, then decodes
the entire image (since we have copied the entire stream twice).
The copy also resulted in the crashes seen in BUG:10725383.

In this CL, buffer only the amount of input needed by
SkImageDecoder::Factory to determine the type of image decoder
needed. Do not mark the input stream provided by the caller,
so their mark (if any) can remain in tact. The new Skia class
SkFrontBufferedStream allows buffering just the beginning
of the stream.

core/jni/android/graphics/BitmapFactory.cpp:
Instead of calling GetRewindableStream (which has been removed),
call CreateJavaInputStreamAdaptor. Then wrap it in an
SkFrontBufferedStream, with a large enough buffer to determine
which type of image is used.

core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h:
core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:
Remove mark, markSupported, and rewind. CreateJavaInputStreamAdaptor
now turns an SkStream which is not rewindable. If the caller
needs rewind that needs to be handled differently (for example,
by using SkFrontBufferedStream, as is done in BitmapFactory and
Movie.
Remove RewindableJavaStream and GetRewindableStream.
Remove code specific to ByteArrayInputStream, which makes slow
JNI calls. Instead, depend on the caller to buffer the input
in the general case. There is no reason to special case this
stream (especially since we already have decodeByteArray).
Remove CheckForAssetStream, which is now always special cased
in Java.

core/jni/android/graphics/Movie.cpp:
Call CreateJavaInputStreamAdaptor and use an SkFrontBufferedStream.
Add a native function for decoding an Asset, and remove old
call to CheckForAssetStream.

graphics/java/android/graphics/BitmapFactory.java:
Write a helper function for decoding a stream to consolidate
common code.
Buffer enough of the input so that SkImageDecoder::Factory
can rewind after having read enough to determine the type.
Unlike the old code, do NOT mark the caller's stream. This is
handled in native code. The caller's mark (if any) is left alone.

graphics/java/android/graphics/Movie.java:
Check for an Asset stream before passing to native, and
call a native function for handling the asset directly.

BUG:6493544
BUG:8432093
BUG:10725383

Change-Id: Ide74d3606ff4bb2a8c6cdbf11bae3f96696f331a

10 years agoUse transition-only alpha property for fading transitions
Chet Haase [Mon, 16 Sep 2013 20:56:21 +0000 (13:56 -0700)]
Use transition-only alpha property for fading transitions

The original bug is fixed already, but showed up some problems in
the underlying fade-transition implementation. This fix addresses
those and other issues. The biggest part of the change should help
transition robustness in general, as it removes the dependency on the
public 'alpha' property of views and uses, instead, a new hidden property
on views called 'transitionAlpha'. This is a value which is normally
opaque (1), but which can be used by transitions (only) to animate the
translucency of views without disturbing the actual 'alpha' value which
might be manipulated outside of transitions. This should make transitions
much more robust in general.

In implementing and testing this overall fix, I noticed a couple of things
about transitions that were simply wrong (such as starting fades from the
wrong start value, and incorrectly avoiding transitions on some views
that didn't happen to have ids), and those are fixed in this CL as well.

Issue #10726905 ActionBar weirdness in People app
Issue #10727937 Menu items in gallery appear in faded color after selecting an image/album by long press

Change-Id: If1618446db10c1bfcff4761449241de4f559afc1

10 years agoFix leak fix in ViewTreeObserver
Chet Haase [Wed, 18 Sep 2013 15:44:33 +0000 (08:44 -0700)]
Fix leak fix in ViewTreeObserver

The leak fix of the CopyOnWriteArray in ViewTreeObserver was
too aggressive, always clearing the shadow copy when it should only
have cleared it when needed. The way it works now, we will always
clear the listeners for ViewTreeObserver after the listeners
are processed.

Issue #10815924 ViewTreeObserver leak fix too aggressive

Change-Id: Iff0095d73beb38e52b0a5ae6b6378afec4458fd3

10 years agoValidate AID format and length.
Martijn Coenen [Wed, 18 Sep 2013 15:26:18 +0000 (17:26 +0200)]
Validate AID format and length.

Bug: 10817001
Change-Id: I7cb0d4f718c467d2fccb30068f383f8e71a4a39b

10 years agoMerge "Ensure WeeksAdapter calls notifyDataSetChanged when needed" into klp-dev
Alan Viverette [Wed, 18 Sep 2013 06:03:33 +0000 (06:03 +0000)]
Merge "Ensure WeeksAdapter calls notifyDataSetChanged when needed" into klp-dev

10 years agoMerge "Fix ImageReader onImageAvailable synchronization" into klp-dev
Jesse Hall [Wed, 18 Sep 2013 03:32:17 +0000 (03:32 +0000)]
Merge "Fix ImageReader onImageAvailable synchronization" into klp-dev

10 years agoFix javadoc in RemoteControlClient and MediaMetadataEditor
Jean-Michel Trivi [Wed, 18 Sep 2013 02:13:55 +0000 (19:13 -0700)]
Fix javadoc in RemoteControlClient and MediaMetadataEditor

Change-Id: Ibd333d9cb47e74c4ca1d8ec7bd950224d81783b0

10 years agoMisc. media API changes
Lajos Molnar [Wed, 18 Sep 2013 01:58:14 +0000 (18:58 -0700)]
Misc. media API changes

- MediaCodec.setParameter signature to take android.os.Bundle
- PARAMETER_KEY_VIDEO_BITRATE value
- comments for MediaFormat.KEY_LANGUAGE and createSubtitleFormat

Change-Id: I092e9830cb21df08b331854cbd28c758db06bc10
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10461617

10 years agoMerge "RemoteController class to expose IRemoteControlDisplay features" into klp-dev
Jean-Michel Trivi [Wed, 18 Sep 2013 01:51:16 +0000 (01:51 +0000)]
Merge "RemoteController class to expose IRemoteControlDisplay features" into klp-dev

10 years agoMerge "Conservatively estimate geometry bounds" into klp-dev
Chris Craik [Wed, 18 Sep 2013 01:50:02 +0000 (01:50 +0000)]
Merge "Conservatively estimate geometry bounds" into klp-dev

10 years agoMerge "Disallow negative scale matrices in merged Bitmap drawing" into klp-dev
Chris Craik [Wed, 18 Sep 2013 01:49:32 +0000 (01:49 +0000)]
Merge "Disallow negative scale matrices in merged Bitmap drawing" into klp-dev

10 years agoRemoteController class to expose IRemoteControlDisplay features
Jean-Michel Trivi [Mon, 2 Sep 2013 01:06:45 +0000 (18:06 -0700)]
RemoteController class to expose IRemoteControlDisplay features

Wrap all the features of IRemoteControlDisplay.aidl in a
 new class, RemoteController, that implements the
 IRemoteControlDisplay interface.

The API functions to expose in the SDK are tagged with
 "CANDIDATE FOR API"

Bug 8209392

Change-Id: I597bcd503ac93e73889c9ae8b47b16c4fcb363bc

10 years agoFix ImageReader onImageAvailable synchronization
Jesse Hall [Tue, 17 Sep 2013 21:19:44 +0000 (14:19 -0700)]
Fix ImageReader onImageAvailable synchronization

This avoids a race where close() can return while there are still
onImageAvailable callbacks pending.

Bug: 10666923
Change-Id: Ic519b68f3132ceb7f95a9a42ebd1032c1638fbf5

10 years agoMerge "Camera2: Add docs for availableProcessedSizes" into klp-dev
Zhijun He [Wed, 18 Sep 2013 01:01:32 +0000 (01:01 +0000)]
Merge "Camera2: Add docs for availableProcessedSizes" into klp-dev

10 years agoConservatively estimate geometry bounds
Chris Craik [Tue, 17 Sep 2013 23:20:29 +0000 (16:20 -0700)]
Conservatively estimate geometry bounds

bug:10761696

Avoids a case where a rect with top coordinate of (e.g.) 0.51f is
assumed to not draw in the first row of pixels, which leads to it not
being clipped. Since rounding can cause it to render in this first
pixel anyway, we very slightly expand geometry bounds.

Now, in ambiguous cases, the geometry bounds are expanded so clipping
is more likely to happen.

Change-Id: I119b7c7720de07bac1634549724ffb63935567fc

10 years agoMerge "Try fixing the build again" into klp-dev
Justin Mattson [Wed, 18 Sep 2013 00:35:12 +0000 (00:35 +0000)]
Merge "Try fixing the build again" into klp-dev

10 years agoMerge "Maybe fix issue #10797796: IllegalStateException in ProcessState..." into...
Dianne Hackborn [Wed, 18 Sep 2013 00:34:02 +0000 (00:34 +0000)]
Merge "Maybe fix issue #10797796: IllegalStateException in ProcessState..." into klp-dev

10 years agoMaybe fix issue #10797796: IllegalStateException in ProcessState...
Dianne Hackborn [Wed, 18 Sep 2013 00:14:57 +0000 (17:14 -0700)]
Maybe fix issue #10797796: IllegalStateException in ProcessState...

...caused runtime restart

There were some situations where the package list could be set
with process stats when it shouldn't.  Not sure if this is causing
the problem, since there is no repro.

Also some improvements to debug output -- new commands to clear
all stats, print full details of stats, and print a one-day
summary (which should match what the UI shows).

Change-Id: I9581db4059d7bb094f79f2fe06c1ccff3e1a4e74

10 years agoMerge "Make touch states neutralized by replacing default pressed states for most...
petergng@google.com [Wed, 18 Sep 2013 00:26:35 +0000 (00:26 +0000)]
Merge "Make touch states neutralized by replacing default pressed states for most fw widgets" into klp-dev

10 years agoMerge "Fix vertical scroll computation in NumberPicker" into klp-dev
Alan Viverette [Wed, 18 Sep 2013 00:21:38 +0000 (00:21 +0000)]
Merge "Fix vertical scroll computation in NumberPicker" into klp-dev

10 years agoTry fixing the build again
Justin Mattson [Wed, 18 Sep 2013 00:18:29 +0000 (17:18 -0700)]
Try fixing the build again

Change-Id: I4b4daae3e290e3548d2bb9c122a8f576c4050994

10 years agoMerge "Add isQuickScaleEnabled to ScaleGestureDetector" into klp-dev
Mindy Pereira [Tue, 17 Sep 2013 23:57:54 +0000 (23:57 +0000)]
Merge "Add isQuickScaleEnabled to ScaleGestureDetector" into klp-dev

10 years agoAdjust absolute volume only when the device is streaming music
Matthew Xie [Thu, 12 Sep 2013 07:32:22 +0000 (00:32 -0700)]
Adjust absolute volume only when the device is streaming music

The device has to be A2DP device
Remove AudioManager#avrcpUpdateVolume
bug 10681804

Change-Id: I2bc85e48fdff374638b984af593c6f1c4ddd3ee6

10 years agoMerge "Add bounds checks before accessing ArrayList." into klp-dev
Craig Mautner [Tue, 17 Sep 2013 23:13:31 +0000 (23:13 +0000)]
Merge "Add bounds checks before accessing ArrayList." into klp-dev

10 years agoAdd bounds checks before accessing ArrayList.
Craig Mautner [Tue, 17 Sep 2013 22:53:34 +0000 (15:53 -0700)]
Add bounds checks before accessing ArrayList.

Add a test for emptiness before accessing either mTaskHistory[0] or
TaskRecord.mActivities[0]. This will keep us from hitting
IndexOutOfBoundsException.

Fixes bug 10789624.

Change-Id: If726df888a2c8b393788793b6220a6bffe2df883

10 years agoMerge "Guard against null Context in attachInfo()." into klp-dev
Jeff Sharkey [Tue, 17 Sep 2013 22:38:17 +0000 (22:38 +0000)]
Merge "Guard against null Context in attachInfo()." into klp-dev

10 years agoMerge "Revise new public API for ratings in RemoteControlClient" into klp-dev
Jean-Michel Trivi [Tue, 17 Sep 2013 22:35:07 +0000 (22:35 +0000)]
Merge "Revise new public API for ratings in RemoteControlClient" into klp-dev

10 years agoGuard against null Context in attachInfo().
Jeff Sharkey [Tue, 17 Sep 2013 22:18:43 +0000 (15:18 -0700)]
Guard against null Context in attachInfo().

Some CTS tests were running into this.

Bug: 10805216
Change-Id: I425d2a0064612af70a64f457e159498cb6257a28

10 years agoMerge "Implement new method for handling SMS/MMS on the platform" into klp-dev
David Braun [Tue, 17 Sep 2013 22:14:54 +0000 (22:14 +0000)]
Merge "Implement new method for handling SMS/MMS on the platform" into klp-dev

10 years agoMerge "Do not assign InputMethod to non-input windows." into klp-dev
Craig Mautner [Tue, 17 Sep 2013 22:13:09 +0000 (22:13 +0000)]
Merge "Do not assign InputMethod to non-input windows." into klp-dev

10 years agoRevise new public API for ratings in RemoteControlClient
Jean-Michel Trivi [Fri, 6 Sep 2013 23:17:13 +0000 (16:17 -0700)]
Revise new public API for ratings in RemoteControlClient

Refactor RemoteControlClient.MetadataEditor to move functionality
 in new abstract class MediaMetadataEditor, so it can be also
 used on the "display" side of the RemoteControl functionality.
Compatibility of these changes has been tested against
 existing Play applications which use the RemoteControlClient API.

Move the new constants and method definitions related to the
 ratings feature to MediaMetadataEditor. This changes the
 yet-to-be-published ratings API, so this doesn't break
 compatibility.
Rating feature is handled by the new Rating class with a set
 of constructors that handle the different rating models.

Bug 8440498

Change-Id: I9b6dc2204bfc48594bad5cd6449d357f8a485da0

10 years agoMerge "Update the APIs to fix the build" into klp-dev
Svetoslav [Tue, 17 Sep 2013 21:58:35 +0000 (21:58 +0000)]
Merge "Update the APIs to fix the build" into klp-dev

10 years agoMerge "Fix 10550373: Stopping FUL when emergency dialer opens" into klp-dev
Brian Colonna [Tue, 17 Sep 2013 21:58:05 +0000 (21:58 +0000)]
Merge "Fix 10550373: Stopping FUL when emergency dialer opens" into klp-dev

10 years agoUpdate the APIs to fix the build
Svetoslav [Tue, 17 Sep 2013 21:55:35 +0000 (14:55 -0700)]
Update the APIs to fix the build

Change-Id: I1204fb2dff9e2db187e78cd6cfdc3c94650c1d86

10 years agoDo not assign InputMethod to non-input windows.
Craig Mautner [Tue, 17 Sep 2013 21:50:56 +0000 (14:50 -0700)]
Do not assign InputMethod to non-input windows.

The InputMethod window was being assigned to the bottommost
window as a fall-through situation when no window could receive
input. This fix changes that so that if the bottommost window
cannot receive IME input then the InputMethod will be unassigned.

In most ANRs associated with bug 10689184 mInputMethodTarget
was assigned to the Wallpaper window and the InputMethod was
placed directly above it. When the ANR occurred the window that
was awaiting focused was then always placed immediately above the
InputMethod. This fix will keep that situation from happening.

Change-Id: Ic247e8132a907f2712a9f8a89e43c099142ec851

10 years agoEnsure WeeksAdapter calls notifyDataSetChanged when needed
Alan Viverette [Tue, 17 Sep 2013 21:39:07 +0000 (14:39 -0700)]
Ensure WeeksAdapter calls notifyDataSetChanged when needed

Also cleans up references to Context.

BUG: 10241917
Change-Id: Ic0b3d650cd85d656002cbb11b2bc73180ffe1bec

10 years agoFix 10550373: Stopping FUL when emergency dialer opens
Brian Colonna [Tue, 17 Sep 2013 19:51:32 +0000 (15:51 -0400)]
Fix 10550373: Stopping FUL when emergency dialer opens

Face Unlock wasn't being stopped when the emergency dialer opened,
causing FUL to flash briefly after the emergency dialer appeared.
This was most noticeable on Hammerhead devices.

This change allows EmergencyButton to stop FUL by way of
KeyguardUpdateMonitor.  Note that it must stop FUL immediately rather
than going through a handler.  If going through a handler FUL is not
stopped in time to prevent the issue.

Change-Id: I3985969a19e909e2633d7876a3fb2d34c70e2cc1

10 years agoMerge "Fix black bar drawn sometimes when swiping away items in Recents" into klp-dev
Michael Jurka [Tue, 17 Sep 2013 20:46:38 +0000 (20:46 +0000)]
Merge "Fix black bar drawn sometimes when swiping away items in Recents" into klp-dev

10 years agoMerge "Action bar transitions - handle expanding/collapsing action views" into klp-dev
Adam Powell [Tue, 17 Sep 2013 20:47:08 +0000 (20:47 +0000)]
Merge "Action bar transitions - handle expanding/collapsing action views" into klp-dev

10 years agoMerge "Print pooler crashes for some page ranges." into klp-dev
Svetoslav [Tue, 17 Sep 2013 20:46:35 +0000 (20:46 +0000)]
Merge "Print pooler crashes for some page ranges." into klp-dev

10 years agoMerge "Adding more standard media sizes." into klp-dev
Svetoslav Ganov [Tue, 17 Sep 2013 20:46:22 +0000 (20:46 +0000)]
Merge "Adding more standard media sizes." into klp-dev

10 years agoMerge "Add permissions for the InCallUI Split." into klp-dev
Santos Cordon [Tue, 17 Sep 2013 20:43:03 +0000 (20:43 +0000)]
Merge "Add permissions for the InCallUI Split." into klp-dev

10 years agoFix black bar drawn sometimes when swiping away items in Recents
Michael Jurka [Tue, 17 Sep 2013 15:42:54 +0000 (17:42 +0200)]
Fix black bar drawn sometimes when swiping away items in Recents

- move drawing of faded black edges to RecentsPanelView
- invalidate RecentsPanelView when scroll value of Recents*ScrollView changes

Bug: 10022236

Change-Id: Idb102fb2454c2a077920b770e25c449ccd33486e

10 years agoMerge "Reduce memory usage of default thumbnail" into klp-dev
Michael Jurka [Tue, 17 Sep 2013 20:40:33 +0000 (20:40 +0000)]
Merge "Reduce memory usage of default thumbnail" into klp-dev

10 years agoMerge "Fix parenthetical error." into klp-dev
Craig Mautner [Tue, 17 Sep 2013 20:21:40 +0000 (20:21 +0000)]
Merge "Fix parenthetical error." into klp-dev

10 years agoCamera2: Add docs for availableProcessedSizes
Zhijun He [Tue, 17 Sep 2013 19:46:29 +0000 (12:46 -0700)]
Camera2: Add docs for availableProcessedSizes

Bug: 10745982
Change-Id: Ia240fa6c0dc0485e2b8dcd04c5a87fa515b0d7b0

10 years agoMake touch states neutralized by replacing default pressed states for most fw widgets
petergng@google.com [Sat, 14 Sep 2013 05:07:09 +0000 (22:07 -0700)]
Make touch states neutralized by replacing default pressed states for most fw widgets

Change-Id: Iebf9623cccbb09d1c31b6e4f32af6b587391bc19

10 years agoMerge "Fix issue #10795385: System process crash reinstalling GEL -" into klp-dev
Dianne Hackborn [Tue, 17 Sep 2013 18:08:00 +0000 (18:08 +0000)]
Merge "Fix issue #10795385: System process crash reinstalling GEL -" into klp-dev

10 years agoMerge "BatteryMeterView: Charging trumps empty." into klp-dev
John Spurlock [Tue, 17 Sep 2013 18:07:24 +0000 (18:07 +0000)]
Merge "BatteryMeterView: Charging trumps empty." into klp-dev

10 years agoFix issue #10795385: System process crash reinstalling GEL -
Dianne Hackborn [Tue, 17 Sep 2013 17:56:49 +0000 (10:56 -0700)]
Fix issue #10795385: System process crash reinstalling GEL -

NPE at com.android.server.am.ProcessRecord.resetPackageList(ProcessRecord.java:596)

Take care of some more cases now that baseProcessTracker can be null.

Change-Id: I394c0b7802788118c3ad6bcac5dfdd23eeda8d58

10 years agoFix parenthetical error.
Craig Mautner [Tue, 17 Sep 2013 17:50:53 +0000 (10:50 -0700)]
Fix parenthetical error.

Mis-grouping of && and || from CL ag/360551.

Fixes bug 10798273.

Change-Id: Idbc77e03d09f7ad5fcf1a5de98c6c14f0c63a6e4

10 years agoAdd isQuickScaleEnabled to ScaleGestureDetector
Mindy Pereira [Mon, 16 Sep 2013 18:36:12 +0000 (11:36 -0700)]
Add isQuickScaleEnabled to ScaleGestureDetector

Change-Id: I23dabb8bec69573ca833e06a4fd36435c75d7d04

10 years agoMerge "More debugging for b/106899184" into klp-dev
Craig Mautner [Tue, 17 Sep 2013 17:39:08 +0000 (17:39 +0000)]
Merge "More debugging for b/106899184" into klp-dev

10 years agoAdd CaptioningManager listener Subtitle support.
Lajos Molnar [Wed, 11 Sep 2013 23:26:18 +0000 (16:26 -0700)]
Add CaptioningManager listener Subtitle support.

Update default track selection based on settings change.
Implement HLS track selection scheme.
This requires synchronization for subtitletrack and controller.

Change-Id: I8295956d264ab2016a83957ace37d9d7b1acde4c
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10326117

10 years agoAction bar transitions - handle expanding/collapsing action views
Adam Powell [Tue, 17 Sep 2013 17:08:41 +0000 (10:08 -0700)]
Action bar transitions - handle expanding/collapsing action views

Make sure we beginDelayedTransition when we expand and collapse action
views, specifically before any callbacks go out that might alter the
hierarchy.

Change-Id: Iffc286cccd9be83ad03aeede605870ac12cc6bab

10 years agoAdding more standard media sizes.
Svetoslav Ganov [Tue, 17 Sep 2013 16:44:40 +0000 (09:44 -0700)]
Adding more standard media sizes.

Added more North America media sizes as well as Chinese and Japanese.

bug:10495384

Change-Id: I74869c13d1412780b0053ef665845d65e972e526

10 years agoMore debugging for b/106899184
Craig Mautner [Tue, 17 Sep 2013 05:50:50 +0000 (22:50 -0700)]
More debugging for b/106899184

Change-Id: I729a2c5bae087713765d782daaa7309ee6cd5b5a

10 years agoam a621cfe8: am fe790af5: am 1e6c936e: Merge "Doc change: change initial quota limit...
Dirk Dougherty [Tue, 17 Sep 2013 16:25:31 +0000 (09:25 -0700)]
am a621cfe8: am fe790af5: am 1e6c936e: Merge "Doc change: change initial quota limit for Google Play Developer API v1_1." into jb-mr2-docs

* commit 'a621cfe84fcdab3b4e956148203be66e158316da':
  Doc change: change initial quota limit for Google Play Developer API v1_1.

10 years agoReduce memory usage of default thumbnail
Michael Jurka [Tue, 17 Sep 2013 12:18:04 +0000 (14:18 +0200)]
Reduce memory usage of default thumbnail

Bug: 10639174

Change-Id: I2b7f3844e77427d2327a7d89c63e4f3b0d890bc0

10 years agoam fe790af5: am 1e6c936e: Merge "Doc change: change initial quota limit for Google...
Dirk Dougherty [Tue, 17 Sep 2013 16:23:21 +0000 (09:23 -0700)]
am fe790af5: am 1e6c936e: Merge "Doc change: change initial quota limit for Google Play Developer API v1_1." into jb-mr2-docs

* commit 'fe790af5897a9c466b5b0a79201ad7752782eaac':
  Doc change: change initial quota limit for Google Play Developer API v1_1.

10 years agoam 1e6c936e: Merge "Doc change: change initial quota limit for Google Play Developer...
Dirk Dougherty [Tue, 17 Sep 2013 16:20:57 +0000 (09:20 -0700)]
am 1e6c936e: Merge "Doc change: change initial quota limit for Google Play Developer API v1_1." into jb-mr2-docs

* commit '1e6c936e84675925ef5c58a04c6e80d8894d7128':
  Doc change: change initial quota limit for Google Play Developer API v1_1.

10 years agoMerge "Doc change: change initial quota limit for Google Play Developer API v1_1...
Dirk Dougherty [Tue, 17 Sep 2013 16:17:58 +0000 (16:17 +0000)]
Merge "Doc change: change initial quota limit for Google Play Developer API v1_1." into jb-mr2-docs

10 years agoDoc change: change initial quota limit for Google Play Developer API v1_1.
Dirk Dougherty [Tue, 17 Sep 2013 16:13:29 +0000 (09:13 -0700)]
Doc change: change initial quota limit for Google Play Developer API v1_1.

Change-Id: I553bbe9794cfbeee0fc8ebeded5af9ce6256a975

10 years agoMerge "Public API for LoudnessEnhancer audio effect" into klp-dev
Jean-Michel Trivi [Tue, 17 Sep 2013 16:00:07 +0000 (16:00 +0000)]
Merge "Public API for LoudnessEnhancer audio effect" into klp-dev

10 years agoMerge "Add a feature to specify if device admins are supported on the device" into...
Amith Yamasani [Tue, 17 Sep 2013 15:56:14 +0000 (15:56 +0000)]
Merge "Add a feature to specify if device admins are supported on the device" into klp-dev

10 years agoBatteryMeterView: Charging trumps empty.
John Spurlock [Tue, 17 Sep 2013 15:03:03 +0000 (11:03 -0400)]
BatteryMeterView: Charging trumps empty.

Match the style implicit in the battery assets: if charging,
show the bolt, not the exclamation point.

Bug:10651062
Change-Id: I3edd822326ad611972e791cf4acc8c395e51a74d

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 17 Sep 2013 04:05:19 +0000 (04:05 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 17 Sep 2013 04:05:05 +0000 (04:05 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 17 Sep 2013 04:04:50 +0000 (04:04 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 17 Sep 2013 04:04:23 +0000 (04:04 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "App UI freezes when printing. API clean up." into klp-dev
Svetoslav [Tue, 17 Sep 2013 02:28:34 +0000 (02:28 +0000)]
Merge "App UI freezes when printing. API clean up." into klp-dev

10 years agoPrint pooler crashes for some page ranges.
Svetoslav [Tue, 17 Sep 2013 02:03:39 +0000 (19:03 -0700)]
Print pooler crashes for some page ranges.

1. The print spooler fails to parse page ranges that end with
   a dash, e,g, "1-", which are however valid inputs since the
   user can continue typing to end up with a well-fromed range.

2. After a layout we are asking for the first selected page
   to be written emulating print preview, thus increasing the
   changes that apps will correctly implement the APIs.

bug:10743632

Change-Id: Ia74172d4fa6bce6ad93a0bc53da1aaa3fe8bef42

10 years agoMerge "Fix issue #10779747: Calendar Storage crash observed..." into klp-dev
Dianne Hackborn [Tue, 17 Sep 2013 02:12:58 +0000 (02:12 +0000)]
Merge "Fix issue #10779747: Calendar Storage crash observed..." into klp-dev

10 years agoMerge "Don't assume that transport unbind == transport invalid" into klp-dev
Christopher Tate [Tue, 17 Sep 2013 02:10:40 +0000 (02:10 +0000)]
Merge "Don't assume that transport unbind == transport invalid" into klp-dev

10 years agoMerge "ImageReader: fix the 0 crop rect size issue" into klp-dev
Zhijun He [Tue, 17 Sep 2013 02:07:21 +0000 (02:07 +0000)]
Merge "ImageReader: fix the 0 crop rect size issue" into klp-dev

10 years agoFix issue #10779747: Calendar Storage crash observed...
Dianne Hackborn [Tue, 17 Sep 2013 02:02:52 +0000 (19:02 -0700)]
Fix issue #10779747: Calendar Storage crash observed...

...while setting up a new user from settings.

The delayed service start stuff was too aggressive -- it would
allow a process to be killed between the an onReceive() that calls
startService() and that service being started.  This means that
apps that set up global state that they expect to remain set up
during that time could be lost.

This is the first part of a fix, which tightens up when we allow
services to be delayed.  Now we will immediately start the service
as long as it currently as a process running that is not in the
cached state.  (Previously we would delay if the process was in
the receiver state.)

This unfortunately means that our service start delay is much
less effective.  To address that, there will be a follow-on change
to tie broadcast delivery into this to see if we can delay the
finish of a broadcast as long as there are background services
starting in that process.

Change-Id: I2bba2295d10699ee3479375bbe87114b2cbb0826

10 years agoMerge "Work on issue #10771346: runtime restart" into klp-dev
Dianne Hackborn [Tue, 17 Sep 2013 01:43:09 +0000 (01:43 +0000)]
Merge "Work on issue #10771346: runtime restart" into klp-dev

10 years agoDisallow negative scale matrices in merged Bitmap drawing
Chris Craik [Mon, 16 Sep 2013 21:47:13 +0000 (14:47 -0700)]
Disallow negative scale matrices in merged Bitmap drawing

bug:10622962

Change-Id: I55ac18ad56b53dc9e6e6ea14cd3ec4bdafa98ac3

10 years agoDon't assume that transport unbind == transport invalid
Christopher Tate [Tue, 17 Sep 2013 01:12:24 +0000 (18:12 -0700)]
Don't assume that transport unbind == transport invalid

We now expect that the transport service's host process will be
OOM-killed sometimes, but will come back automatically because we
still hold the binding.  So, we no longer drop it as the
expected-to-be-current transport when that happens.

Bug 10728767

Change-Id: I5e756e8942e7c4c3567632f10460ee31b9618d75

10 years agoPublic API for LoudnessEnhancer audio effect
Jean-Michel Trivi [Sun, 15 Sep 2013 19:12:03 +0000 (12:12 -0700)]
Public API for LoudnessEnhancer audio effect

Follows the API style of the other audio effects

Bug 8413913

Change-Id: I1ee21b0af7d9fc565d9cdacd006684577eeb7b21

10 years agoMerge "Introduce maxSdkVersion for <uses-permission>" into klp-dev
Christopher Tate [Tue, 17 Sep 2013 01:01:47 +0000 (01:01 +0000)]
Merge "Introduce maxSdkVersion for <uses-permission>" into klp-dev

10 years agoApp UI freezes when printing. API clean up.
Svetoslav [Tue, 17 Sep 2013 00:53:51 +0000 (17:53 -0700)]
App UI freezes when printing. API clean up.

1. The UI of a printing app was freezing a little when calling the print
   method since the print manager service was waiting for it to bind to the
   print spooler which generated the print job id (and the initial print
   job info really). Now the print manager service is responsible for job
   id generation and does not not wait for the print spooler to spin. Hence,
   the app UI is not blocked at all. Note that the print manager initiates
   the binding to the spooler and as soon as it completes the spooler shows
   the print UI which is hosted in its process. It is not possible to show
   the print UI before the system is bound to the spooler since during this
   binding the system passes a callback to the spooler so the latter can
   talk to the system.

2. Changed the print job id to be an opaque class allowing us to vary the
   way we generate print job ids in the future.

3. The queued print job state was hidden but the print job returned by the
   print method of the print manager is in that state. Now now hidden.

4. We were incorrecly removing print job infos if they are completed or
   cancelled. Doing that is problematic since the print job returned by
   the print method allows the app to query for the job info after the
   job has been say completed. Hence, an app can initiate printing and
   get a print job whose state is "created" and hold onto it until after
   the job is completed, now if the app asks for the print job info it
   will get an info in "created" state even though the job is "completed"
   since the spooler was not retaining the completed jobs. Now the spooler
   removes the PDF files for the completed and cancelled print jobs but
   keeps around the infos (also persisting them to disc) so it can answer
   questions about them. On first boot or switch to a user we purge the
   persisted print jobs in completed/cancelled state since they
   are obsolete - no app can have a handle to them.

5. Removed the print method that takes a file since we have a public
   PrintDocumentAdapter implementation for printing files. Once can
   instantiate a PrintFileDocumentAdapter and pass it to the print
   method. This class also allows overriding of the finish method to
   know when the data is spooled and deleted the file if desired, etc.

6. Replaced the wrong code to slice a large list of parcelables to
   use ParceledListSlice class.

bug:10748093

Change-Id: I1ebeeb47576e88fce550851cdd3e401fcede6e2b

10 years agoMerge "Loudness enhancer audio effect" into klp-dev
Jean-Michel Trivi [Tue, 17 Sep 2013 00:52:19 +0000 (00:52 +0000)]
Merge "Loudness enhancer audio effect" into klp-dev

10 years agoWork on issue #10771346: runtime restart
Dianne Hackborn [Tue, 17 Sep 2013 00:40:27 +0000 (17:40 -0700)]
Work on issue #10771346: runtime restart

Haven't found the underlying cause, but this will give us more
information when we get into the bad state.

Change-Id: I9aebd3a025a7c0d931f43098461b64ee3c220746

10 years agoAdd a feature to specify if device admins are supported on the device
Amith Yamasani [Mon, 16 Sep 2013 17:44:57 +0000 (10:44 -0700)]
Add a feature to specify if device admins are supported on the device

Bug: 9520957

DevicePolicyManagerService will play dumb if the feature is not installed.

Continue to keep track of failed password attempts for keyguard's use.

Change-Id: I28d258dc09a8b4976b188da6f453d8daabcc4bdd

10 years agoIntroduce maxSdkVersion for <uses-permission>
Christopher Tate [Mon, 16 Sep 2013 23:34:52 +0000 (16:34 -0700)]
Introduce maxSdkVersion for <uses-permission>

This way an application can automatically sunset its permission requests
when running on later versions of the OS where those permissions are no
longer relevant, but may be alarming to the user.  A canonical example
is WRITE_EXTERNAL_STORAGE, which as of KLP becomes unnecessary for an app
to use the external storage volume solely for its own large-data needs,
without the need for actual file-system sharing among multiple apps.

Bug 9761041

Change-Id: I60130af3a108fe4a750c356038a1c8cb897e9c8b

10 years agoMerge "Consider current EAP TLS configurations as 'valid'" into klp-dev
Vinit Deshapnde [Mon, 16 Sep 2013 23:52:57 +0000 (23:52 +0000)]
Merge "Consider current EAP TLS configurations as 'valid'" into klp-dev

10 years agoImageReader: fix the 0 crop rect size issue
Zhijun He [Mon, 16 Sep 2013 23:03:36 +0000 (16:03 -0700)]
ImageReader: fix the 0 crop rect size issue

Rect isValid actually include the zero size case, which we don't want to include
in our case. This causes camera ImageReader test case fails at buffer size
sanity check.

Bug: 9802344
Change-Id: I561f5a049c6117c613df1e1b2789c43af9a19628

10 years agoMerge "Update transient navigation confirmation wording & behavior" into klp-dev
John Spurlock [Mon, 16 Sep 2013 23:03:25 +0000 (23:03 +0000)]
Merge "Update transient navigation confirmation wording & behavior" into klp-dev