OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Handle the case where the restore environment doesn't have the ringtone" into...
Amith Yamasani [Wed, 11 Sep 2013 18:27:53 +0000 (18:27 +0000)]
Merge "Handle the case where the restore environment doesn't have the ringtone" into klp-dev

10 years agoMerge "More on issue #10130785: Restore silence and vibrate settings..." into klp-dev
Dianne Hackborn [Wed, 11 Sep 2013 18:13:17 +0000 (18:13 +0000)]
Merge "More on issue #10130785: Restore silence and vibrate settings..." into klp-dev

10 years agoMerge "Revert "Reconcile differences between zip implementations"" into klp-dev
Kenny Root [Wed, 11 Sep 2013 18:11:34 +0000 (18:11 +0000)]
Merge "Revert "Reconcile differences between zip implementations"" into klp-dev

10 years agoHandle the case where the restore environment doesn't have the ringtone
Amith Yamasani [Wed, 11 Sep 2013 18:11:19 +0000 (11:11 -0700)]
Handle the case where the restore environment doesn't have the ringtone

Bug: 10130785

uncanonicalize() can return a null now, so abort restoring the ringtone
in that case.

Change-Id: I28765818c8d3e1fb3f271afdfe66ebc955cfcefe

10 years agoRevert "Reconcile differences between zip implementations"
Kenny Root [Wed, 11 Sep 2013 18:10:09 +0000 (18:10 +0000)]
Revert "Reconcile differences between zip implementations"

This reverts commit 9ffddc7eb50653cf60ce6b27a0e1945eed5b5ce1.

Change-Id: Ifeba63511211bfc2b375f2205e319e91403b7d06

10 years agoMore on issue #10130785: Restore silence and vibrate settings...
Dianne Hackborn [Wed, 11 Sep 2013 18:02:24 +0000 (11:02 -0700)]
More on issue #10130785: Restore silence and vibrate settings...

...in settings > sound

ContentResolver.uncanonicalize needs to be able to fail.

Change-Id: I347ef60fc3619aae203b87079579597c60be8b90

10 years agoMerge "Preparation for deleting WebViewClassic" into klp-dev
Jonathan Dixon [Wed, 11 Sep 2013 17:59:42 +0000 (17:59 +0000)]
Merge "Preparation for deleting WebViewClassic" into klp-dev

10 years agoMerge "Add support for loading banners from HCE services." into klp-dev
Martijn Coenen [Wed, 11 Sep 2013 17:52:18 +0000 (17:52 +0000)]
Merge "Add support for loading banners from HCE services." into klp-dev

10 years agoMerge "Fix issue #10688644: Java crash in com.android.phone:" into klp-dev
Dianne Hackborn [Wed, 11 Sep 2013 17:46:13 +0000 (17:46 +0000)]
Merge "Fix issue #10688644: Java crash in com.android.phone:" into klp-dev

10 years agoMerge "Fix bad references in preloaded-classes" into klp-dev
Adam Skory [Wed, 11 Sep 2013 17:44:14 +0000 (17:44 +0000)]
Merge "Fix bad references in preloaded-classes" into klp-dev

10 years agoMerge "Avoid ref-ing AndroidPixelRefs that wrap others in globalRef/Unref" into klp-dev
Chris Craik [Wed, 11 Sep 2013 17:40:39 +0000 (17:40 +0000)]
Merge "Avoid ref-ing AndroidPixelRefs that wrap others in globalRef/Unref" into klp-dev

10 years agoMerge "Reconcile differences between zip implementations" into klp-dev
Kenny Root [Wed, 11 Sep 2013 17:38:26 +0000 (17:38 +0000)]
Merge "Reconcile differences between zip implementations" into klp-dev

10 years agoFix bad references in preloaded-classes
Adam Skory [Wed, 11 Sep 2013 17:06:25 +0000 (18:06 +0100)]
Fix bad references in preloaded-classes

http://ag/352924 renamed INdefPushCallback
to IAppCallback. Update preloaded-classes
to reflect this.

This is a cherry-pick of Id552e94e3a01cdd61593480f3c0aedb32d185f80

Change-Id: I0901f14fb41f94e3c7572c09e090ec5903a878d1

10 years agoMerge "Fix for the toggle airplane mode hidden API" into klp-dev
Yuhao Zheng [Wed, 11 Sep 2013 17:35:09 +0000 (17:35 +0000)]
Merge "Fix for the toggle airplane mode hidden API" into klp-dev

10 years agoam eacfc308: am a0b259a9: am 161e423e: Merge "docs: Fixed deprecated value. Bug:...
quddusc [Wed, 11 Sep 2013 17:17:41 +0000 (10:17 -0700)]
am eacfc308: am a0b259a9: am 161e423e: Merge "docs: Fixed deprecated value. Bug: 10641906" into jb-mr2-docs

* commit 'eacfc308344b34d27b7cd2ab8cc0fbdefbcc8167':
  docs: Fixed deprecated value. Bug: 10641906

10 years agoam a0b259a9: am 161e423e: Merge "docs: Fixed deprecated value. Bug: 10641906" into...
quddusc [Wed, 11 Sep 2013 17:15:12 +0000 (10:15 -0700)]
am a0b259a9: am 161e423e: Merge "docs: Fixed deprecated value. Bug: 10641906" into jb-mr2-docs

* commit 'a0b259a917f9c7cf73b4e8ceab104cdab4383c24':
  docs: Fixed deprecated value. Bug: 10641906

10 years agoam 161e423e: Merge "docs: Fixed deprecated value. Bug: 10641906" into jb-mr2-docs
quddusc [Wed, 11 Sep 2013 17:09:45 +0000 (10:09 -0700)]
am 161e423e: Merge "docs: Fixed deprecated value. Bug: 10641906" into jb-mr2-docs

* commit '161e423ead0e2272ebb0b73957abf0c916ad57ff':
  docs: Fixed deprecated value. Bug: 10641906

10 years agoFix issue #10688644: Java crash in com.android.phone:
Dianne Hackborn [Wed, 11 Sep 2013 16:51:14 +0000 (09:51 -0700)]
Fix issue #10688644: Java crash in com.android.phone:

java.lang.SecurityException: Operation not allowed

There was a situation I wasn't taking into account -- components
declared by the system has a special ability to run in the processes
of other uids.  This means that if that code loaded into another
process tries to do anything needing an app op verification, it will
fail, because it will say it is calling as the system package name but
it is not actually coming from the system uid.

To fix this, we add a new Context.getOpPackageName() to go along-side
getBasePackageName().  This is a special call for use by all app ops
verification, which will be initialized with either the base package
name, the actual package name, or now the default package name of the
process if we are creating a context for system code being loaded into
a non-system process.

I had to update all of the code doing app ops checks to switch to this
method to get the calling package name.

Also improve the security exception throw to have a more descriptive
error message.

Change-Id: Ic04f77b3938585b02fccabbc12d2f0dc62b9ef25

10 years agoFix for the toggle airplane mode hidden API
Yuhao Zheng [Wed, 11 Sep 2013 16:36:41 +0000 (09:36 -0700)]
Fix for the toggle airplane mode hidden API

Fix to https://googleplex-android-review.git.corp.google.com/#/c/356900/
Previous implementation throws SecurityException when the API is called from apps.
bug:10653570

Change-Id: I95ae6f07db74d881f1a8d3d40a6486105a068e90

10 years agoMerge "Add activity indicator icons to quick settings tiles." into klp-dev
John Spurlock [Wed, 11 Sep 2013 14:50:08 +0000 (14:50 +0000)]
Merge "Add activity indicator icons to quick settings tiles." into klp-dev

10 years agoMerge "Build layer immediately when setting it in ViewPropertyAnimator" into klp-dev
Chet Haase [Wed, 11 Sep 2013 14:14:06 +0000 (14:14 +0000)]
Merge "Build layer immediately when setting it in ViewPropertyAnimator" into klp-dev

10 years agoMerge "Reversing immediately after starting animator ends it" into klp-dev
Chet Haase [Wed, 11 Sep 2013 14:13:48 +0000 (14:13 +0000)]
Merge "Reversing immediately after starting animator ends it" into klp-dev

10 years agoAdd activity indicator icons to quick settings tiles.
John Spurlock [Thu, 5 Sep 2013 20:50:21 +0000 (16:50 -0400)]
Add activity indicator icons to quick settings tiles.

Wifi + RSSI now have activity in / activity out indicators
wired up to information coming from NetworkController.

Bug: 10634208
Change-Id: I3cf29dc905eeaeb4aea8e7df4fe46e70645e0013

10 years agoMerge "New orange color for status bar + qs assets." into klp-dev
Daniel Sandler [Wed, 11 Sep 2013 13:51:19 +0000 (13:51 +0000)]
Merge "New orange color for status bar + qs assets." into klp-dev

10 years agoDon't rely on window state when disabling the panel.
John Spurlock [Wed, 11 Sep 2013 13:28:49 +0000 (09:28 -0400)]
Don't rely on window state when disabling the panel.

Bug:10488453
Change-Id: I09ffbf166dd34489064cf0d73fe7ae4dd356c6c9

10 years agoNew orange color for status bar + qs assets.
John Spurlock [Wed, 11 Sep 2013 12:27:18 +0000 (08:27 -0400)]
New orange color for status bar + qs assets.

Bug:10502089
Change-Id: I7b43fe260ceccba29f896009ce467fe29ec67f64

10 years agoMerge "Revert services assist context in KitKat" into klp-dev
Adam Skory [Wed, 11 Sep 2013 11:27:50 +0000 (11:27 +0000)]
Merge "Revert services assist context in KitKat" into klp-dev

10 years agoRevert services assist context in KitKat
Adam Skory [Wed, 11 Sep 2013 11:04:58 +0000 (12:04 +0100)]
Revert services assist context in KitKat

Reverts extension to assist context API to query
foreground services for assist context data.

Also hides Intent.ACTION_VOICE_ASSIST because
nobody's actually using it yet.

Bug: 10461702
Change-Id: Idf6836adc659b434e11ebb2b98e8b814c94a7227

10 years agoMerge "Update documentation for speech APIs." into klp-dev
Marc Wilson [Wed, 11 Sep 2013 10:50:34 +0000 (10:50 +0000)]
Merge "Update documentation for speech APIs." into klp-dev

10 years agoAdd support for loading banners from HCE services.
Martijn Coenen [Fri, 6 Sep 2013 04:05:53 +0000 (21:05 -0700)]
Add support for loading banners from HCE services.

Bug: 10262585
Change-Id: I08f06ce92dd9071dc8ad1390ce9a4b877b05827d

10 years agoMerge "More tweaks to match UX spec." into klp-dev
Jeff Sharkey [Wed, 11 Sep 2013 04:18:13 +0000 (04:18 +0000)]
Merge "More tweaks to match UX spec." into klp-dev

10 years agoMore tweaks to match UX spec.
Jeff Sharkey [Wed, 11 Sep 2013 00:56:39 +0000 (17:56 -0700)]
More tweaks to match UX spec.

Fixed text colors to match spec.  Behold The Greyening!  Centered
loader spinner in grid mode.  Show multiple lines in status messages.

Add string descriptions.  Fix bug where toggling size setting didn't
kick a UI rebind.

Bug: 10510022
Change-Id: Icb41ebeb4de0fed8c04fc6cf5213af1587b72641

10 years agoAvoid ref-ing AndroidPixelRefs that wrap others in globalRef/Unref
Chris Craik [Wed, 11 Sep 2013 00:18:04 +0000 (17:18 -0700)]
Avoid ref-ing AndroidPixelRefs that wrap others in globalRef/Unref

bug:10691404

Only ref the wrapped pixel refs, so that they are the single source of
correct refcount, since the wrapping pixel ref can change out from
underneath an SkBitmap.

Change-Id: I253b8737d2afdcc567a26725fa40b1d9ef0e6a92

10 years agoMerge "WirelessChargerDetector: Work around bad sensor timestamps." into klp-dev
Jeff Brown [Wed, 11 Sep 2013 00:35:39 +0000 (00:35 +0000)]
Merge "WirelessChargerDetector: Work around bad sensor timestamps." into klp-dev

10 years agoReconcile differences between zip implementations
Kenny Root [Wed, 21 Aug 2013 17:40:16 +0000 (10:40 -0700)]
Reconcile differences between zip implementations

Reconcile the difference between ZipFileRO and java.util.ZipFile to have
the same behavior.

Bug: 10424836
Change-Id: Iff159c9e1a91b59f6c5346dc0278cb9e4bbc1a39

10 years agoWirelessChargerDetector: Work around bad sensor timestamps.
Jeff Brown [Wed, 11 Sep 2013 00:13:28 +0000 (17:13 -0700)]
WirelessChargerDetector: Work around bad sensor timestamps.

It turns out that on some devices the sensor event timestamp
may be non-monotonic.  This may cause the detector to hold
a wakelock indefinitely if the time jumps backwards.  These
timestamps are not well tested in general so there may be
other artifacts as well.  Use elapsed realtime instead.

Bug: 9926451
Change-Id: Idb0b316e22b23aac86837bd25b953daf49f9b758

10 years agoMerge "Include system packages in packages.list." into klp-dev
Jeff Sharkey [Wed, 11 Sep 2013 00:07:42 +0000 (00:07 +0000)]
Merge "Include system packages in packages.list." into klp-dev

10 years agoBuild layer immediately when setting it in ViewPropertyAnimator
Chet Haase [Wed, 11 Sep 2013 00:05:44 +0000 (17:05 -0700)]
Build layer immediately when setting it in ViewPropertyAnimator

Previously, withLayer() would simply set the layer type in the runnable
called in onAnimationStart(). Now we also call buildLayer(), to get it
out of the way prior to the view drawing for the first time after the
animation begins.

Issue #9422420 ViewPropertyAnimator.withLayer() should build layer immediately

Change-Id: I99923a234f7ca1ec0b6f1b0bf28b62a71ab7eb4d

10 years agoMerge "Backup and restore ringtone and notification ringtone" into klp-dev
Amith Yamasani [Wed, 11 Sep 2013 00:03:50 +0000 (00:03 +0000)]
Merge "Backup and restore ringtone and notification ringtone" into klp-dev

10 years agoMerge "More UX work for thumbnails, search, management." into klp-dev
Jeff Sharkey [Tue, 10 Sep 2013 23:59:43 +0000 (23:59 +0000)]
Merge "More UX work for thumbnails, search, management." into klp-dev

10 years agoInclude system packages in packages.list.
Jeff Sharkey [Tue, 10 Sep 2013 23:57:24 +0000 (16:57 -0700)]
Include system packages in packages.list.

This provides group membership to the FUSE daemon, since system
packages like NFC and Bluetooth hold sdcard_rw.

Bug: 10610659
Change-Id: I7428e999cfa4087ffe220b9d8bd80827191ab997

10 years agoMerge "Propagate input ANR reason to activity manager log." into klp-dev
Jeff Brown [Tue, 10 Sep 2013 23:52:53 +0000 (23:52 +0000)]
Merge "Propagate input ANR reason to activity manager log." into klp-dev

10 years agoPropagate input ANR reason to activity manager log.
Jeff Brown [Tue, 10 Sep 2013 23:44:24 +0000 (16:44 -0700)]
Propagate input ANR reason to activity manager log.

Make it a little easier to diagnose input dispatch timeouts by
providing the detailed reason as the ANR annotation in the log.

Bug: 10689184
Change-Id: Ie18fd9ad066b0673d1f57c030e027ad0085f4650

10 years agoMore UX work for thumbnails, search, management.
Jeff Sharkey [Tue, 10 Sep 2013 19:04:26 +0000 (12:04 -0700)]
More UX work for thumbnails, search, management.

Hide non-finished downloads from normal picker UI, but keep them
around in management mode.  Uses a Uri query parameter and a hidden
API on DocumentsProvider.

Scale thumbnails to fit viewport, always show MIME icon while waiting
on thumbnails, and crossfade between them.  Cancel thumbnail tasks
when views are recycled.

Filter directories out of search results for now.  Also leave sort
ordering from backend intact, since it's custom ranking.  Fix
SearchView interaction to dismiss properly and restore across
orientation and drawer state changes.

Hide most actions when drawer is open.  Invalidate RootInfo cache
when locale changes.  Apply sort ordering when showing recent create
directories.  Hide recent summary string when icon is enough for user
to disambiguate.

Bug: 1066718410665663
Change-Id: I331d3272a08c497f88dc659d9e112231cb35aa69

10 years agoMerge "Update javadocs for number presentation" into klp-dev
Yorke Lee [Tue, 10 Sep 2013 23:25:14 +0000 (23:25 +0000)]
Merge "Update javadocs for number presentation" into klp-dev

10 years agoUpdate javadocs for number presentation
Yorke Lee [Tue, 10 Sep 2013 21:39:24 +0000 (14:39 -0700)]
Update javadocs for number presentation

Bug: 10461762
Change-Id: Idfd19fb5f522569afa775ce95e0ba975324a0ee2

10 years agoMerge "When waiting for activity to finish don't reset" into klp-dev
Craig Mautner [Tue, 10 Sep 2013 22:11:57 +0000 (22:11 +0000)]
Merge "When waiting for activity to finish don't reset" into klp-dev

10 years agoMerge "Fix scissor for functor invocation" into klp-dev
John Reck [Tue, 10 Sep 2013 21:03:48 +0000 (21:03 +0000)]
Merge "Fix scissor for functor invocation" into klp-dev

10 years agoMerge "Fix FontRenderer bug." into klp-dev
Tim Murray [Tue, 10 Sep 2013 21:00:37 +0000 (21:00 +0000)]
Merge "Fix FontRenderer bug." into klp-dev

10 years agoFix FontRenderer bug.
Tim Murray [Tue, 10 Sep 2013 20:46:49 +0000 (13:46 -0700)]
Fix FontRenderer bug.

bug 10691313

Change-Id: Icd5341a3c2066e337911f040ddc935c48c8d7cd1

10 years agoFix scissor for functor invocation
John Reck [Tue, 10 Sep 2013 20:12:09 +0000 (13:12 -0700)]
Fix scissor for functor invocation

 Bug: 10677765
 enableScissor() must precede setScissorFromClip() as
 otherwise setScissorFromClip() doesn't do anything.
 Also make sure to call setScissorFromClip() if
 enableScissor() returns true as enableScissor() calls
 resetScissor() if the scissor state has changed.

Change-Id: I9226b20bb256c92066aae344e4e6407540b6eae9

10 years agoMerge "Factor out read/write SMS settings seperate from send/receive." into klp-dev
David Braun [Tue, 10 Sep 2013 20:33:27 +0000 (20:33 +0000)]
Merge "Factor out read/write SMS settings seperate from send/receive." into klp-dev

10 years agoMerge "Verify inputs to PAC resolving." into klp-dev
Jason Monk [Tue, 10 Sep 2013 20:27:23 +0000 (20:27 +0000)]
Merge "Verify inputs to PAC resolving." into klp-dev

10 years agoFactor out read/write SMS settings seperate from send/receive.
David Braun [Tue, 10 Sep 2013 20:14:46 +0000 (13:14 -0700)]
Factor out read/write SMS settings seperate from send/receive.

Change-Id: I161782b1508be433c910ec13c0b18e728bf7d2ba

10 years agoMerge "Make ListView's illegal state exception more helpful" into klp-dev
Alan Viverette [Tue, 10 Sep 2013 20:05:59 +0000 (20:05 +0000)]
Merge "Make ListView's illegal state exception more helpful" into klp-dev

10 years agoMerge "MediaMuxer: Add setLocation API" into klp-dev
Zhijun He [Tue, 10 Sep 2013 19:41:10 +0000 (19:41 +0000)]
Merge "MediaMuxer: Add setLocation API" into klp-dev

10 years agoMerge "camera2: Don't NPE in onStatusChanged" into klp-dev
Igor Murashkin [Tue, 10 Sep 2013 19:29:27 +0000 (19:29 +0000)]
Merge "camera2: Don't NPE in onStatusChanged" into klp-dev

10 years agoMerge "Fix for transition layout suppression" into klp-dev
Chet Haase [Tue, 10 Sep 2013 18:44:21 +0000 (18:44 +0000)]
Merge "Fix for transition layout suppression" into klp-dev

10 years agoFix some bizarre Spinner behavior
Adam Powell [Tue, 10 Sep 2013 18:38:52 +0000 (11:38 -0700)]
Fix some bizarre Spinner behavior

* Make sure the recycler is cleared when the adapter is changed.
  Bug 10689596

* Don't add views to measure the baseline.
  Bug 10690353

Change-Id: I841dc05652eef3319721631f96332f7900d1a631

10 years agoFix for transition layout suppression
Chet Haase [Tue, 10 Sep 2013 18:30:22 +0000 (11:30 -0700)]
Fix for transition layout suppression

The ChangeBounds transition causes its target view parents to suppress
layout for the duration of the transition. This is done to avoid artifacts
caused by running layout while layout bounds are being animated between
different scene values.

In order to react correctly to new transition/scene information (such as
running a new transition while another is already running), the transition
system calls pause() on all running transitions to allow layout (among other
things) to work correctly, then resume() after this is finished. This works
in general, but pause/resume do not take account of child transitions that
have already played and ended. ChangeBounds, uses pause/resume to
restore normal layout and re-enable layout suppression. This means that
when resume() is called on a ChangeBounds transition that has already
ended, that transition will leave the parent in a suppressed-layout
state, basically forever. This can cause artifacts like we're seeing in
recent ActionBar changes where the account spinner is never repopulated because
layout is never allowed to run.

The fix is to note when a transition ends and noop future calls to pause/resume.

Issue #10648936 Transitions don't work with new ActionBar functionality

Change-Id: Id9d41c0352b2270d46cfd5ad4dba130767bbf303

10 years agoMake ListView's illegal state exception more helpful
Alan Viverette [Tue, 10 Sep 2013 18:22:53 +0000 (11:22 -0700)]
Make ListView's illegal state exception more helpful

Change-Id: I3d3205d32c6992c184a218248ba72ebf6c45a2d1

10 years agoBackup and restore ringtone and notification ringtone
Amith Yamasani [Fri, 6 Sep 2013 20:54:28 +0000 (13:54 -0700)]
Backup and restore ringtone and notification ringtone

Use the new content provider API to canonicalize Uris.
If the provider doesn't support it, don't save the value,
unless it's a silent ringtone.

Bug: 10130785

Change-Id: Id08bb2812b9b2a7036a25801d1997661b0017629

10 years agoMerge "Set country code on P2p interfaces as well" into klp-dev
Vinit Deshapnde [Tue, 10 Sep 2013 17:32:52 +0000 (17:32 +0000)]
Merge "Set country code on P2p interfaces as well" into klp-dev

10 years agoMerge "Add a hidden API to toggle airplane mode." into klp-dev
Yuhao Zheng [Tue, 10 Sep 2013 17:12:00 +0000 (17:12 +0000)]
Merge "Add a hidden API to toggle airplane mode." into klp-dev

10 years agoMerge "Remove legacy HCE APIs." into klp-dev
Martijn Coenen [Tue, 10 Sep 2013 17:04:31 +0000 (17:04 +0000)]
Merge "Remove legacy HCE APIs." into klp-dev

10 years agoAdd a hidden API to toggle airplane mode.
Yuhao Zheng [Tue, 10 Sep 2013 00:00:04 +0000 (17:00 -0700)]
Add a hidden API to toggle airplane mode.

Added a hidden API under ConnectivityManager to toggle airplane mode.
This may be a temp solution for b/10653570.
bug:10653570

Change-Id: I0b2b42230073289eb8dc6891317d62b84e26c133

10 years agoMerge "AudioTrack.getTimestamp() return type is now boolean" into klp-dev
Glenn Kasten [Tue, 10 Sep 2013 16:36:23 +0000 (16:36 +0000)]
Merge "AudioTrack.getTimestamp() return type is now boolean" into klp-dev

10 years agoMerge "Remove FD optimization case for decodeStream" into klp-dev
John Reck [Tue, 10 Sep 2013 16:25:14 +0000 (16:25 +0000)]
Merge "Remove FD optimization case for decodeStream" into klp-dev

10 years agoMerge "Use correct timescale for "date taken" field" into klp-dev
Marco Nelissen [Tue, 10 Sep 2013 16:09:16 +0000 (16:09 +0000)]
Merge "Use correct timescale for "date taken" field" into klp-dev

10 years agoMerge "Don't leave space for summary text if it's an empty string" into klp-dev
Amith Yamasani [Tue, 10 Sep 2013 15:59:37 +0000 (15:59 +0000)]
Merge "Don't leave space for summary text if it's an empty string" into klp-dev

10 years agoMediaMuxer: Add setLocation API
Zhijun He [Mon, 9 Sep 2013 22:47:06 +0000 (15:47 -0700)]
MediaMuxer: Add setLocation API

This API could be used for camera recording when MediaMuxer is used to write
output media file.

Bug: 10594784
Change-Id: Ide2d6e1d87b246100a5def49bfb8646dc984a512

10 years agoUpdate documentation for speech APIs.
Marc Wilson [Tue, 10 Sep 2013 14:29:00 +0000 (15:29 +0100)]
Update documentation for speech APIs.

Makes it clear that the intent and service APIs are likely to stream
audio over the network and notes that impact this has on bandwidth and
battery life.
Also clarifies that the service API should not be used for continuous
recognition as a result. The intent API only runs when the activity is
in the foreground so I didn't mention continuous recognition for it.

Bug: 10674392
Change-Id: Ib5e0c16b3124f4b7d892ef5bd4167f23662d2ca3

10 years agoWhen waiting for activity to finish don't reset
Craig Mautner [Fri, 6 Sep 2013 18:59:38 +0000 (11:59 -0700)]
When waiting for activity to finish don't reset

In cases where the client is waiting for an activity to launch
(startActivityMayWait()) it is a bad idea to clear
ActivityRecord.displayStartTime when going into the pause state. If
displayStartTime is cleared before the activity is displayed,
the client will never be released.

This fix keeps pause from clearing displayStartTime if any client
is waiting for the activity to be displayed.

Fixes bug 10095558. But not a permanent fix, startActivityMayWait()
should not be called by any production code.

Change-Id: I7cbdcb04256f4a26233867c52aedd3bc4151adc3

10 years agoMerge "Don't set Allocation mSize when we have no Type." into klp-dev
Stephen Hines [Tue, 10 Sep 2013 05:23:10 +0000 (05:23 +0000)]
Merge "Don't set Allocation mSize when we have no Type." into klp-dev

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

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

10 years agoMerge "Fix getCallingPackage() to handle reentrance." into klp-dev
Jeff Sharkey [Tue, 10 Sep 2013 04:41:53 +0000 (04:41 +0000)]
Merge "Fix getCallingPackage() to handle reentrance." into klp-dev

10 years agoMerge changes I7b3f4c68,I9f022a08 into klp-dev
Jeff Sharkey [Tue, 10 Sep 2013 04:40:41 +0000 (04:40 +0000)]
Merge changes I7b3f4c68,I9f022a08 into klp-dev

* changes:
  Rename offer() to add(), remove/hide some APIs.
  Sort order is sticky for session, back leaves.

10 years agoMerge "Clarify InputDevice#getControllerNumber documentation" into klp-dev
Jeff Brown [Tue, 10 Sep 2013 03:35:55 +0000 (03:35 +0000)]
Merge "Clarify InputDevice#getControllerNumber documentation" into klp-dev

10 years agoFix checkbuild error due to javadoc reference to hidden class
Sandeep Siddhartha [Tue, 10 Sep 2013 02:15:28 +0000 (19:15 -0700)]
Fix checkbuild error due to javadoc reference to hidden class

Change-Id: I128b8a6dd725468d0c9503b8229f8939fddb51bc

10 years agoFix getCallingPackage() to handle reentrance.
Jeff Sharkey [Tue, 10 Sep 2013 01:52:48 +0000 (18:52 -0700)]
Fix getCallingPackage() to handle reentrance.

Keep any previous value in the stack frame and restore when the
current call is finished.

Bug: 10659409
Change-Id: I02b760ae9ca06a4b3602725e02f649f1ada460a0

10 years agoRemove system user id for cm tests
Xia Wang [Fri, 6 Sep 2013 22:19:03 +0000 (15:19 -0700)]
Remove system user id for cm tests

Change-Id: I51f500c8e7b4e2963093e20c6f20bcfe020995c9
(cherry picked from commit 575495c29007503566e28004bf60018a824b1f1b)

10 years agoDon't set Allocation mSize when we have no Type.
Stephen Hines [Tue, 10 Sep 2013 00:56:07 +0000 (17:56 -0700)]
Don't set Allocation mSize when we have no Type.

Bug: 10667740

A3D creates Allocations before knowing the underlying Type (and thus size).
Moving the mSize calculation to be conditional for concrete Allocations
eliminates the bug. In the future, we could let A3D dynamically update the
Allocation size if it is necessary to improve heap behavior.

Change-Id: I520246806b6ead0387a1a41372dade1a6e7c2271

10 years agoRename offer() to add(), remove/hide some APIs.
Jeff Sharkey [Tue, 10 Sep 2013 00:46:54 +0000 (17:46 -0700)]
Rename offer() to add(), remove/hide some APIs.

Change MatrixCursor offer() to add() based on review feedback.  Remove
some now-unused XML metadata.  Hide document creation, since it's not
supported in initial version.

Bug: 105778091046170610678563
Change-Id: I7b3f4c6899c28f633471ef816bee22bf032aa0d2

10 years agoSort order is sticky for session, back leaves.
Jeff Sharkey [Tue, 10 Sep 2013 00:35:46 +0000 (17:35 -0700)]
Sort order is sticky for session, back leaves.

Instead of persisting sort order per-directory, the order is now
sticky for that session.  Any user selected sort order takes
precedence over an ordering hinted by a backend.

When a restored DocumentStack is untouched, the back key now leaves
the dialog, instead of popping from the restored stack.

Persist list/grid mode changes async.

Bug: 1065960410672973
Change-Id: I9f022a081c014537447c9c2af10e19d8cd9566aa

10 years agoMerge "Disabled states, more UX work, bug fixes." into klp-dev
Jeff Sharkey [Tue, 10 Sep 2013 00:08:17 +0000 (00:08 +0000)]
Merge "Disabled states, more UX work, bug fixes." into klp-dev

10 years agoDisabled states, more UX work, bug fixes.
Jeff Sharkey [Mon, 9 Sep 2013 23:51:06 +0000 (16:51 -0700)]
Disabled states, more UX work, bug fixes.

Fix drawable state to correctly show dimmed disabled state.  Update
disabled state for all children to grey out text.

Block multi-selection of documents not matching MIME filter.  Load
thumbnails in parallel.  Show thumbnails in list mode based on MIME
type to match spec.

Give each footer a unique view type to avoid recycler crashes.

Show breadcrumb icons in recent create paths.  Fix timestamp bug when
querying/updating recent paths.

Make ContentProviderClient.closeQuietly() really be quiet.

Bug: 1066836410510022106687011053422410667726
Change-Id: I3c705412fb211519f15ad41a273a7533b878e9e5

10 years agoRemove FD optimization case for decodeStream
John Reck [Mon, 9 Sep 2013 23:37:57 +0000 (16:37 -0700)]
Remove FD optimization case for decodeStream

 Bug: 10677727
 The problem is that the FileInputStream may be wrapping a pipe or
 AssetFileDescriptor which fails if handed to decodeFileDescriptor.
 The problem is that AFDs can start in the middle of a file, whereas
 decodeFileDescriptor assumes it can mmap() the FD and start at
 the beginning.

Change-Id: I98a3c5f789865145e25a99b32d205e290808c1cf

10 years agoMerge "Add flags word to initialization." into klp-dev
Tim Murray [Mon, 9 Sep 2013 23:34:38 +0000 (23:34 +0000)]
Merge "Add flags word to initialization." into klp-dev

10 years agoSet country code on P2p interfaces as well
Vinit Deshapnde [Mon, 9 Sep 2013 23:28:31 +0000 (16:28 -0700)]
Set country code on P2p interfaces as well

This change will set country code on P2p interfaces as well, so the
drivers are free to use channels that are permitted regionally. This
is required for FCC style compliance and Miracast certification.

Bug: 10513263

Change-Id: I88c645bd488066d5167e23e2772f2e0e1f40fa8a

10 years agoMerge "Move public consts to HotwordRecognitionService" into klp-dev
Sandeep Siddhartha [Mon, 9 Sep 2013 23:25:26 +0000 (23:25 +0000)]
Merge "Move public consts to HotwordRecognitionService" into klp-dev

10 years agoAdd flags word to initialization.
Tim Murray [Mon, 9 Sep 2013 23:15:56 +0000 (16:15 -0700)]
Add flags word to initialization.

bug 10427951

Change-Id: I1356b9b96315ead44aa3898de5604d75f9bb8be5

10 years agoMerge "Add updateListener to ViewPropertyAnimator" into klp-dev
Chet Haase [Mon, 9 Sep 2013 23:03:28 +0000 (23:03 +0000)]
Merge "Add updateListener to ViewPropertyAnimator" into klp-dev

10 years agoMerge "Create a pixelref wrapper for reused bitmaps" into klp-dev
Chris Craik [Mon, 9 Sep 2013 23:00:48 +0000 (23:00 +0000)]
Merge "Create a pixelref wrapper for reused bitmaps" into klp-dev

10 years agoMerge "Fix pixel test" into klp-dev
Andy McFadden [Mon, 9 Sep 2013 22:55:35 +0000 (22:55 +0000)]
Merge "Fix pixel test" into klp-dev

10 years agoAudioTrack.getTimestamp() return type is now boolean
Glenn Kasten [Mon, 9 Sep 2013 21:39:02 +0000 (14:39 -0700)]
AudioTrack.getTimestamp() return type is now boolean

Change-Id: Ie231652dc0959343f0726dcb985b6715bfe014f6

10 years agoMerge "Preserve CTS fail behaviour on null bundle for old API" into klp-dev
Matthew Williams [Mon, 9 Sep 2013 22:06:05 +0000 (22:06 +0000)]
Merge "Preserve CTS fail behaviour on null bundle for old API" into klp-dev

10 years agoMerge "Do not enter resumeTopActivity recursively." into klp-dev
Craig Mautner [Mon, 9 Sep 2013 21:55:20 +0000 (21:55 +0000)]
Merge "Do not enter resumeTopActivity recursively." into klp-dev

10 years agoDon't leave space for summary text if it's an empty string
Amith Yamasani [Mon, 9 Sep 2013 21:46:07 +0000 (14:46 -0700)]
Don't leave space for summary text if it's an empty string

Bug: 10639567
Change-Id: Ifeb71ea0779a86e39fe55fb0bc6cd267dba4a92e

10 years agoPreserve CTS fail behaviour on null bundle for old API
Matthew Williams [Mon, 9 Sep 2013 21:35:27 +0000 (14:35 -0700)]
Preserve CTS fail behaviour on null bundle for old API

For ContentResolver.requestSync() a null bundle should not be
allowed. However we don't want to enforce this for the new API,
so we remove this check from the SyncRequest.Builder#build()

Change-Id: I69353d24edbd686da6ded2856c0920315cb76e85