OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Replace stream wrap-function w/ more specific ones" into klp-dev
Leon Scroggins III [Thu, 29 Aug 2013 17:12:00 +0000 (17:12 +0000)]
Merge "Replace stream wrap-function w/ more specific ones" into klp-dev

10 years agoAdd frameworks support for sample profiling from traceview gui.
Jeff Hao [Thu, 22 Aug 2013 22:53:12 +0000 (15:53 -0700)]
Add frameworks support for sample profiling from traceview gui.

(cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9)

Change-Id: I3553bafe24ac8deb4fa3f9a4d78939c3848b3850

10 years agoMerge "Stronger DocumentsProvider contract." into klp-dev
Jeff Sharkey [Thu, 29 Aug 2013 04:27:02 +0000 (04:27 +0000)]
Merge "Stronger DocumentsProvider contract." into klp-dev

10 years agoStronger DocumentsProvider contract.
Jeff Sharkey [Wed, 28 Aug 2013 01:26:48 +0000 (18:26 -0700)]
Stronger DocumentsProvider contract.

Using a contract class requires that a provider implement it exactly
with little help. This change introduces a DocumentsProvider abstract
class that provides a client-side implementation of the contract that
greatly reduces developer burden, and improves correctness.

This also moves to first-class DocumentRoot objects, and moves calls
with complex side effects to be ContentProvider.call() invocations,
offering more granular permission control over Uri operations that
shouldn't be available through Uri grants.

This new design also relaxes the requirement that root information be
burned into every Uri.  Migrate ExternalDocumentsProvider and
DocumentsUI to adopt new API.

Bug: 10497206
Change-Id: I6f2b3f519bfd62a9d693223ea5628a971ce2e743

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 29 Aug 2013 03:06:07 +0000 (03:06 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 29 Aug 2013 03:04:13 +0000 (03:04 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 29 Aug 2013 03:04:00 +0000 (03:04 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 29 Aug 2013 01:35:58 +0000 (18:35 -0700)]
Import translations. DO NOT MERGE

Change-Id: I665172800a06d780b92a5db2ab549980c87e8524
Auto-generated-cl: translation import

10 years agoMerge "Fix documentation regarding defStyle in View constructor" into klp-dev
Alan Viverette [Thu, 29 Aug 2013 01:15:48 +0000 (01:15 +0000)]
Merge "Fix documentation regarding defStyle in View constructor" into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 29 Aug 2013 01:05:47 +0000 (18:05 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic6b1048f4afaa520fea602ec4367de5e192186bd
Auto-generated-cl: translation import

10 years agoMerge "Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE." into klp-dev
John Spurlock [Thu, 29 Aug 2013 01:00:03 +0000 (01:00 +0000)]
Merge "Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE." into klp-dev

10 years agoMerge "More elaborate logs to debug missing APs" into klp-dev
Robert Greenwalt [Thu, 29 Aug 2013 00:51:35 +0000 (00:51 +0000)]
Merge "More elaborate logs to debug missing APs" into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 29 Aug 2013 00:36:17 +0000 (17:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: I22efa95394f7b572df2b43138fee45bd7eaf4229
Auto-generated-cl: translation import

10 years agoFix documentation regarding defStyle in View constructor
Alan Viverette [Wed, 28 Aug 2013 23:57:42 +0000 (16:57 -0700)]
Fix documentation regarding defStyle in View constructor

BUG: 8912583
Change-Id: Ib8b1f8baa4ee98aae0e66edc547ab014b2401415

10 years agoMerge "Start using the Hotword recognition APIs" into klp-dev
Sandeep Siddhartha [Wed, 28 Aug 2013 23:55:57 +0000 (23:55 +0000)]
Merge "Start using the Hotword recognition APIs" into klp-dev

10 years agoMerge "Better transition interruption and TextChange fixes" into klp-dev
Chet Haase [Wed, 28 Aug 2013 23:55:10 +0000 (23:55 +0000)]
Merge "Better transition interruption and TextChange fixes" into klp-dev

10 years agoBetter transition interruption and TextChange fixes
Chet Haase [Tue, 27 Aug 2013 23:06:26 +0000 (16:06 -0700)]
Better transition interruption and TextChange fixes

Previously, the TextChange transition didn't handle interruption/
cancellation at all, which made it problematic to use in any real
situation where a transition might get interrupted mid-animation.
Also, the way that it side-effected the text of TextView objects caused
errors in the UI when the transition was interrupted, because it would
not clean up after itself properly as new transitions queried the
current state of the UI.

Also, the prior cancellation logic for all transitions was not quite
correct; we were pausing transitions but resuming the animations, making it
tricky to write transitions that would restore state correctly.

Change-Id: I5a9f3c915e9834ec59ce1e1c3c96a88d11e4aa1b

10 years agoMerge "Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly." into klp-dev
Isaac Katzenelson [Wed, 28 Aug 2013 23:49:41 +0000 (23:49 +0000)]
Merge "Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly." into klp-dev

10 years agoStart using the Hotword recognition APIs
Sandeep Siddhartha [Tue, 27 Aug 2013 03:58:53 +0000 (20:58 -0700)]
Start using the Hotword recognition APIs

- Gets rid of all assumptions about the hotword service
- Fixes bug where the hotword detection would keep running accidentally
  even when the screen got turned off

Change-Id: Ie86c1a4f4343bdf7e61f7c21114fd3b287bd5401

10 years agoMerge "Tweak the HotwordRecognizer API" into klp-dev
Sandeep Siddhartha [Wed, 28 Aug 2013 23:38:53 +0000 (23:38 +0000)]
Merge "Tweak the HotwordRecognizer API" into klp-dev

10 years agoTweak the HotwordRecognizer API
Sandeep Siddhartha [Tue, 27 Aug 2013 20:09:41 +0000 (13:09 -0700)]
Tweak the HotwordRecognizer API

- Make it more intuitive by enforcing callers to set a listener while
  starting recognition
- Fix TODO to resolve the ComponentName if none is provided
- Unbind from the Hotword service if stopRecognition is called
- Get rid of the callback in onStopHotwordRecognition

Change-Id: I8edad0ef0f3671283aeb51eaed1d3b8dab01baa0

10 years agoMerge "Fix case when user touches the very edge of a view" into klp-dev
Mindy Pereira [Wed, 28 Aug 2013 23:08:53 +0000 (23:08 +0000)]
Merge "Fix case when user touches the very edge of a view" into klp-dev

10 years agoFix case when user touches the very edge of a view
Mindy Pereira [Wed, 28 Aug 2013 22:00:14 +0000 (15:00 -0700)]
Fix case when user touches the very edge of a view

This now counts touches at the exact top edge of the view as valid

Change-Id: I9e81a7001632c38d567dde40954e079e7145fa36

10 years agoMore elaborate logs to debug missing APs
Vinit Deshapnde [Wed, 28 Aug 2013 20:13:40 +0000 (13:13 -0700)]
More elaborate logs to debug missing APs

Bug: 10375978

Change-Id: Ic9bb8f3a7a0684143e4e77f8da0d2c833293c94a

10 years agoMerge "Fix bug #10515013 CalendarView is always forcing first day of the week to...
Fabrice Di Meglio [Wed, 28 Aug 2013 19:53:56 +0000 (19:53 +0000)]
Merge "Fix bug #10515013 CalendarView is always forcing first day of the week to Sunday and not taking into account CLDR data" into klp-dev

10 years agoMerge "Ensure IME windows always appear north of the nav bar." into klp-dev
John Spurlock [Wed, 28 Aug 2013 19:32:05 +0000 (19:32 +0000)]
Merge "Ensure IME windows always appear north of the nav bar." into klp-dev

10 years agoam d4702f3c: am 6d3fbd00: am 8236443b: Doc change: update spam policy image.
Dirk Dougherty [Wed, 28 Aug 2013 18:46:48 +0000 (11:46 -0700)]
am d4702f3c: am 6d3fbd00: am 8236443b: Doc change: update spam policy image.

* commit 'd4702f3c67473045d92eb4c3ea001d671f2f5f56':
  Doc change: update spam policy image.

10 years agoam 6d3fbd00: am 8236443b: Doc change: update spam policy image.
Dirk Dougherty [Wed, 28 Aug 2013 18:44:42 +0000 (11:44 -0700)]
am 6d3fbd00: am 8236443b: Doc change: update spam policy image.

* commit '6d3fbd0073cdb9cd21acfb56b58a29634bd182ad':
  Doc change: update spam policy image.

10 years agoRemove EXTRA_DELETE_AFTER_USE and update descriptions accordingly.
Sam Blitzstein [Wed, 28 Aug 2013 18:42:05 +0000 (11:42 -0700)]
Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly.

As per UX, we're removing the EXTRA_DELETE_AFTER_USE flag. Instead,
apps that pick up these intents should automatically delete alarms
and timers, unless the user is taken into the app to explicicitly
specify the time/length.

Change-Id: Ibd582788c04e121427467f6549759c8b7706df8c

10 years agoam 8236443b: Doc change: update spam policy image.
Dirk Dougherty [Wed, 28 Aug 2013 18:42:05 +0000 (11:42 -0700)]
am 8236443b: Doc change: update spam policy image.

* commit '8236443bdac2ba7c7630ddcc4ce9a18a03fe31a1':
  Doc change: update spam policy image.

10 years agoDoc change: update spam policy image.
Dirk Dougherty [Wed, 28 Aug 2013 17:43:36 +0000 (10:43 -0700)]
Doc change: update spam policy image.

Change-Id: Ib19ea838f0f72725cedf2cea8aff505ccc477a45

10 years agoEnsure IME windows always appear north of the nav bar.
John Spurlock [Wed, 28 Aug 2013 18:17:09 +0000 (14:17 -0400)]
Ensure IME windows always appear north of the nav bar.

Even if the bars are transparent / invisible.

Refactor the PSB bar mode override logic to take the IME hint into
account.  Bars are overriden to opaque when hint is showing.

Initialize bar state to showing, fix bug that would mark state
as hidden pre-show (on shell restart).

Bug:10505132
Bug:9499956
Change-Id: I21e830e90c7e9812b4192ca65c3c0cd7a6b72798

10 years agoMerge "Set alpha channel correctly when recomputing gradient" into klp-dev
Alan Viverette [Wed, 28 Aug 2013 18:03:11 +0000 (18:03 +0000)]
Merge "Set alpha channel correctly when recomputing gradient" into klp-dev

10 years agoMerge "Implement new accessibility APIs in lists, text view" into klp-dev
Alan Viverette [Wed, 28 Aug 2013 17:44:44 +0000 (17:44 +0000)]
Merge "Implement new accessibility APIs in lists, text view" into klp-dev

10 years agoMerge "Protecting against NPE with null country detector." into klp-dev
Santos Cordon [Wed, 28 Aug 2013 17:43:18 +0000 (17:43 +0000)]
Merge "Protecting against NPE with null country detector." into klp-dev

10 years agoImplement new accessibility APIs in lists, text view
Alan Viverette [Wed, 28 Aug 2013 17:43:07 +0000 (10:43 -0700)]
Implement new accessibility APIs in lists, text view

Sets contentInvalid for TextViews with errors, sets collection
and item properties in AbsListView, GridView, and ListView.

BUG: 10391326
Change-Id: I91191c8ce1e10a1112f74215e30b26349396344b

10 years agoMerge "Add public API for obtaining drag-to-open listener" into klp-dev
Alan Viverette [Wed, 28 Aug 2013 17:25:06 +0000 (17:25 +0000)]
Merge "Add public API for obtaining drag-to-open listener" into klp-dev

10 years agoSet alpha channel correctly when recomputing gradient
Alan Viverette [Wed, 28 Aug 2013 17:24:12 +0000 (10:24 -0700)]
Set alpha channel correctly when recomputing gradient

The alpha channel is applied by modulateAlpha(). Setting it to
mAlpha in ensureValidRect() locked the maximum alpha channel to
whatever value was set before layout. Setting it to BLACK
ensures it can be modulated later.

BUG: 10514848
Change-Id: If7a824410a66f1e9b648e20ee627bdf99a42ae78

10 years agoMerge "Use explicit intent for MediaScannerConnection" into klp-dev
Marco Nelissen [Wed, 28 Aug 2013 17:19:47 +0000 (17:19 +0000)]
Merge "Use explicit intent for MediaScannerConnection" into klp-dev

10 years agoMerge "Don't clear Global Proxy on boot." into klp-dev
Jason Monk [Wed, 28 Aug 2013 14:41:15 +0000 (14:41 +0000)]
Merge "Don't clear Global Proxy on boot." into klp-dev

10 years agoMerge "SystemUI asset update post ux asset merge." into klp-dev
John Spurlock [Wed, 28 Aug 2013 13:26:01 +0000 (13:26 +0000)]
Merge "SystemUI asset update post ux asset merge." into klp-dev

10 years agoSystemUI asset update post ux asset merge.
John Spurlock [Wed, 28 Aug 2013 12:56:20 +0000 (08:56 -0400)]
SystemUI asset update post ux asset merge.

Bug:10502089
Change-Id: I88b0b4a17018766bccb99426f8f270214c883427

10 years agoMerge "Remove period from "No service."" into klp-dev
Daniel Sandler [Wed, 28 Aug 2013 13:01:20 +0000 (13:01 +0000)]
Merge "Remove period from "No service."" into klp-dev

10 years agoRemove period from "No service."
Daniel Sandler [Thu, 13 Jun 2013 19:58:26 +0000 (15:58 -0400)]
Remove period from "No service."

Bug: 10460869
Change-Id: I57b030518c9cfec367da21e39af7a001a565daa4

10 years agoMerge "ImageReader: Fix null listener case" into klp-dev
Zhijun He [Wed, 28 Aug 2013 02:22:36 +0000 (02:22 +0000)]
Merge "ImageReader: Fix null listener case" into klp-dev

10 years agoMerge "Remove unreferenced assets from SystemUI." into klp-dev
John Spurlock [Wed, 28 Aug 2013 01:26:13 +0000 (01:26 +0000)]
Merge "Remove unreferenced assets from SystemUI." into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Wed, 28 Aug 2013 00:45:47 +0000 (00:45 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoFix bug #10515013 CalendarView is always forcing first day of the week to Sunday...
Fabrice Di Meglio [Wed, 28 Aug 2013 00:43:53 +0000 (17:43 -0700)]
Fix bug #10515013 CalendarView is always forcing first day of the week to Sunday and not taking into account CLDR data

- remove the "force to Sunday"
- code cleaning and remove dependency on deprecated API

Change-Id: I992e893a904c45c8e0ce1d9dedb59b352e3a449f

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Wed, 28 Aug 2013 00:42:58 +0000 (00:42 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Wed, 28 Aug 2013 00:42:35 +0000 (00:42 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Print APIs update." into klp-dev
Svetoslav Ganov [Wed, 28 Aug 2013 00:07:08 +0000 (00:07 +0000)]
Merge "Print APIs update." into klp-dev

10 years agoProtecting against NPE with null country detector.
Santos Cordon [Tue, 27 Aug 2013 23:45:37 +0000 (16:45 -0700)]
Protecting against NPE with null country detector.

bug:10514454
Change-Id: I316c47eddbe4929599866a3f9da9129d0056e3e2

10 years agoMerge "Add NFC reader-mode API." into klp-dev
Martijn Coenen [Tue, 27 Aug 2013 23:08:56 +0000 (23:08 +0000)]
Merge "Add NFC reader-mode API." into klp-dev

10 years agoImageReader: Fix null listener case
Zhijun He [Tue, 27 Aug 2013 23:02:21 +0000 (16:02 -0700)]
ImageReader: Fix null listener case

Only do the handler check when listener is not null.

Bug: 10360518
Change-Id: I9940942ae95a492c92e028e5f862beea16e1da80

10 years agoMerge "Add documentation to onTouchEvent for accessibility" into klp-dev
Alan Viverette [Tue, 27 Aug 2013 22:48:03 +0000 (22:48 +0000)]
Merge "Add documentation to onTouchEvent for accessibility" into klp-dev

10 years agoMerge "Fix channel set option in wifi batch scan command." into klp-dev
Sreeram Ramachandran [Tue, 27 Aug 2013 22:45:30 +0000 (22:45 +0000)]
Merge "Fix channel set option in wifi batch scan command." into klp-dev

10 years agoAdd public API for obtaining drag-to-open listener
Alan Viverette [Tue, 27 Aug 2013 22:45:16 +0000 (15:45 -0700)]
Add public API for obtaining drag-to-open listener

BUG: 10457019
Change-Id: I66485521c54b82033044834e7aab6707a3049e6b

10 years agoRemove unreferenced assets from SystemUI.
John Spurlock [Tue, 27 Aug 2013 21:53:08 +0000 (17:53 -0400)]
Remove unreferenced assets from SystemUI.

Bug:10502089
Change-Id: I9c414ff88054a764ab56f70ae8a0c0c82c248be9

10 years agoFix channel set option in wifi batch scan command.
Sreeram Ramachandran [Tue, 27 Aug 2013 21:49:23 +0000 (14:49 -0700)]
Fix channel set option in wifi batch scan command.

Fix by not including extraneous delimiters, and changing the delimiter from a
space to a comma.

Bug: 10444428
Change-Id: Ia3197045d44a2f959316935ae085575500e65459

10 years agoAdd NFC reader-mode API.
Martijn Coenen [Tue, 27 Aug 2013 21:32:53 +0000 (14:32 -0700)]
Add NFC reader-mode API.

Allows applications to temporarily force the NFC controller
to only do tag discovery. This will allow Android applications
to read and interact with devices that employ HCE.

Bug: 10360259
Change-Id: I709ead9a26f8e6ae8582cc295d82bd896e7c5bba

10 years agoMerge "When adding a window evaluate all tasks." into klp-dev
Craig Mautner [Tue, 27 Aug 2013 21:20:52 +0000 (21:20 +0000)]
Merge "When adding a window evaluate all tasks." into klp-dev

10 years agoMerge "Hide stackId from prying eyes." into klp-dev
Craig Mautner [Tue, 27 Aug 2013 21:20:30 +0000 (21:20 +0000)]
Merge "Hide stackId from prying eyes." into klp-dev

10 years agoMerge "Make sure to actually log when Log.wtf() hiccups" into klp-dev
Christopher Tate [Tue, 27 Aug 2013 21:15:03 +0000 (21:15 +0000)]
Merge "Make sure to actually log when Log.wtf() hiccups" into klp-dev

10 years agoMake sure to actually log when Log.wtf() hiccups
Christopher Tate [Tue, 27 Aug 2013 21:10:44 +0000 (14:10 -0700)]
Make sure to actually log when Log.wtf() hiccups

Bug 10494724

Change-Id: I687d7df73a8f4594d42955f100d928e98bbd9b30

10 years agoMerge "Temporary disable Hotword on lockscreen" into klp-dev
Sandeep Siddhartha [Tue, 27 Aug 2013 20:31:32 +0000 (20:31 +0000)]
Merge "Temporary disable Hotword on lockscreen" into klp-dev

10 years agoTemporary disable Hotword on lockscreen
Sandeep Siddhartha [Tue, 27 Aug 2013 20:25:40 +0000 (13:25 -0700)]
Temporary disable Hotword on lockscreen

Change-Id: Icdddcc0308b9f3153172e34a8f4d051c58829653

10 years agoWhen adding a window evaluate all tasks.
Craig Mautner [Tue, 27 Aug 2013 20:25:17 +0000 (13:25 -0700)]
When adding a window evaluate all tasks.

Previously the code was adding a window based only on the tasks on
the stack belonging to the window being added. But if a window from
another stack was on top the window would be added out of order.

In particular when there was a dialog over the launcher app and the
device was rotated, the launcher window was being added over the
dialog. This caused the launcher icons to obscure the dialog and for
the dialog buttons to be untouchable.

Fixes bug 9984067.

Change-Id: I9a57eb641d118f4a90e98af8ca77127ab5364e79

10 years agoMerge "Fix NPE for devices w/out soft-nav." into klp-dev
John Spurlock [Tue, 27 Aug 2013 20:16:30 +0000 (20:16 +0000)]
Merge "Fix NPE for devices w/out soft-nav." into klp-dev

10 years agoFix NPE for devices w/out soft-nav.
John Spurlock [Tue, 27 Aug 2013 20:08:28 +0000 (16:08 -0400)]
Fix NPE for devices w/out soft-nav.

And fix other places w/out null guards in PhoneStatusBar.

Bug:10507892
Change-Id: I1be1b4c88bedd097530fd44d3506b716957f9c14

10 years agoMerge "Fix NPE when setting new LayoutTransition" into klp-dev
Chet Haase [Tue, 27 Aug 2013 19:49:28 +0000 (19:49 +0000)]
Merge "Fix NPE when setting new LayoutTransition" into klp-dev

10 years agoReplace stream wrap-function w/ more specific ones
Leon Scroggins III [Tue, 20 Aug 2013 21:59:39 +0000 (17:59 -0400)]
Replace stream wrap-function w/ more specific ones

The current stream wrapper returns a potentially incorrect
value for a call to getLength(), is typically copied into
another stream (not always in the same way), and doesn't
always take advantage of its underlying data (like when it
is an Asset). The overall goal of this CL is to provide the
caller with something that is ready to use, depending on
what is asked for. If a copy is desired, the copy is made
before being returned to the caller.

core/jni/android/graphics/Bitmap.cpp:

    Include SkStream.h, since it is no longer included by
    CreateJavaOutputStreamAdaptor's header file.

core/jni/android/graphics/BitmapFactory.cpp:

    Pass an SkStreamRewindable to decoding functions, as Skia
    decoders will be updated to only take an SkStreamRewindable
    (which makes more sense because they require rewinding).

    Call the more specific GetRewindableStream to get a
    rewindable stream.

    Remove copyAssetToStream which has been moved to Utils.

    In nativeDecodeAsset, pass forcePurgeable as allowPurgeable
    in doDecode. Technically the old code worked, but it checked
    the BitmapOptions again.

    Remove getFDSize, which is no longer used.

core/jni/android/graphics/BitmapRegionDecoder.cpp:

    Remove redundant buildSkMemoryStream. nativeNewInstanceFromStream
    now calls CopyJavaInputStream, which handles the copy.

    Copy the Asset directly, using common code, rather than creating
    an AssetStreamAdaptor to copy.

core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:
core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h:

    Provide new interfaces to access data from a Java InputStream.
    The new interfaces are more specific about what type of stream
    is desired.

    Use forward declarations where possible.

    Remove doSize, which gives a misleading answer to the question
    of how long the entire stream is.

    TODO: Only call FindClass etc once.

core/jni/android/graphics/Movie.cpp:

    Check for an asset stream, and use it if possible. Then call
    GetRewindableStream if there is not an asset.
    Remove the memory leak. Call DeleteLocalRef to delete the
    allocated memory.

core/jni/android/graphics/Picture.cpp:

    Call the new interface.

core/jni/android/graphics/Utils.cpp:
core/jni/android/graphics/Utils.h:

    Make AssetStreamAdaptor inherit from SkStreamRewindable so it
    can be passed to Skia decoding functions once they require it.

    Add CopyAssetToStream (moved from BitmapFactory.cpp) so it can
    be used by multiple files.

graphics/java/android/graphics/BitmapFactory.java:

    Remove the call to mark, which is now done natively.

    Remove the BufferedInputStream. Mark/reset is now handled
    by native code.

    Allow decodeStream to handle a FileInputStream by using the
    FileDescriptor, if it is seekable. In decodeFileDescriptor,
    call nativeDecodeStream instead of decodeStream so this new
    functionality will not loop.

    Call setDensityFromOptions in decodeFileDescriptor.

graphics/java/android/graphics/BitmapRegionDecoder.java:

    Remove the BufferedInputStream. Mark/reset is now handled
    by native code.

TODO: ADD TESTS!

Requires https://googleplex-android-review.googlesource.com/#/c/344317/

BUG=https://b.corp.google.com/issue?id=8432093

Change-Id: I4419b70b3482325c98ecc673dbfc4613f1b18581

10 years agoFix NPE when setting new LayoutTransition
Chet Haase [Tue, 27 Aug 2013 19:22:29 +0000 (12:22 -0700)]
Fix NPE when setting new LayoutTransition

ViewGroup.setLayoutTransition() has logic to cancel a previously-running
transition and remove the ViewGroup's listener from that transition. However,
it is possible for the transition to be set to null on the ViewGroup on the
cancel() call, making the next call to remove the listener crash with an NPE.

The fix is to use a temporary variable to hold the old reference and
not depend on the class instance variable remaining valid/non-null across
the call to cancel().

Issue #10488932 Hangout NPE in ViewGroup.setLayoutTransition on initiating a new conversation
Issue #10509201 ViewGroup.setLayoutTransition(null) causes crash when being called in LayoutTransition.TransitionListener.endTransition()

Change-Id: I7c181b79e6601024c93a8dc246d32b751f78b216

10 years agoMerge "Fix bug #10462461 CTS TimePickerTest are broken for testSetOnTimeChangedListen...
Fabrice Di Meglio [Tue, 27 Aug 2013 19:04:12 +0000 (19:04 +0000)]
Merge "Fix bug #10462461 CTS TimePickerTest are broken for testSetOnTimeChangedListener()" into klp-dev

10 years agoPrint APIs update.
Svetoslav Ganov [Tue, 27 Aug 2013 07:30:54 +0000 (00:30 -0700)]
Print APIs update.

1. Added scale to fit and scale to fill fitting modes.

2. Added APIs for a print app to specify which constraints imposed
   by the print attributes were satsified during a layout so they
   are not handled by the printer again, e.g. if the content is to
   be in landscape the the app generated such content the printer
   should rotate the content again.

3. Added some printer statuses.

4. Added a helper class that generates PDF documents with correct
   size based on the passed in print attributes.

5. Exposed a ctor for PageRange which was hidden by mistake and apps
   could not create page ranges. Added API for changing the printer
   status.

Change-Id: If1334a61d2d931027b98075f653018d456b1b768

10 years agoRename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE.
John Spurlock [Tue, 27 Aug 2013 18:23:33 +0000 (14:23 -0400)]
Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE.

And add more colour to the docs.

Bug:10460791
Change-Id: I703d927101bb034ba6dd061e6afd3e1946440fe5

10 years agoMerge "Remove or reduce visibility of deprecated methods" into klp-dev
Tom O'Neill [Tue, 27 Aug 2013 18:23:18 +0000 (18:23 +0000)]
Merge "Remove or reduce visibility of deprecated methods" into klp-dev

10 years agoMerge "Change DBG to false to eliminate logcat messages." into klp-dev
Chris Wren [Tue, 27 Aug 2013 18:20:44 +0000 (18:20 +0000)]
Merge "Change DBG to false to eliminate logcat messages." into klp-dev

10 years agoMerge "Update AccessibilityNodeInfo API as per API council request" into klp-dev
Svetoslav Ganov [Tue, 27 Aug 2013 18:14:00 +0000 (18:14 +0000)]
Merge "Update AccessibilityNodeInfo API as per API council request" into klp-dev

10 years agoRemove or reduce visibility of deprecated methods
Tom O'Neill [Tue, 27 Aug 2013 17:53:15 +0000 (10:53 -0700)]
Remove or reduce visibility of deprecated methods

- Fix additional getInt() path, restores the location settings screen
functionality.

- Should fix "unresolved link" build breakages in
git_klp-dev-plus-aosp-without-vendor, which is much more persnickety than
klp-dev for some reason.

- Add warning that we may add additional location modes in the future.

- Finish fix for b/10461763 and b/10461474

Change-Id: Id7155e3a0d7526a377d446018ef3bdb057bad3a6

10 years agoMerge "Allow wallpaper to extend into the entire screen." into klp-dev
John Spurlock [Tue, 27 Aug 2013 17:19:35 +0000 (17:19 +0000)]
Merge "Allow wallpaper to extend into the entire screen." into klp-dev

10 years agoAllow wallpaper to extend into the entire screen.
John Spurlock [Mon, 26 Aug 2013 21:58:58 +0000 (17:58 -0400)]
Allow wallpaper to extend into the entire screen.

Previously it was constrained to displayInfo.appWidth/appHeight
which comes from PWM.getNonDecorDisplayWidth/Height, which includes
the nav bar.

Also adjust window layout to entire screen.

This allows wallpaper to extend into the navigation bar region,
important if the nav bar is hidden or transparent.

Bug:10505328
Change-Id: Ia6057b9c57b476a48f3b2d8b6368fd631e944a3e

10 years agoMerge "Camera2: Add CameraDevice#flush()" into klp-dev
Eino-Ville Talvala [Tue, 27 Aug 2013 16:49:04 +0000 (16:49 +0000)]
Merge "Camera2: Add CameraDevice#flush()" into klp-dev

10 years agoMerge "Address API council comments on location mode API council" into klp-dev
Tom O'Neill [Tue, 27 Aug 2013 15:44:15 +0000 (15:44 +0000)]
Merge "Address API council comments on location mode API council" into klp-dev

10 years agoUpdate AccessibilityNodeInfo API as per API council request
Svetoslav Ganov [Sat, 24 Aug 2013 03:37:28 +0000 (20:37 -0700)]
Update AccessibilityNodeInfo API as per API council request

bug:10461302

Change-Id: I9709a271ab3720e064b98c79c0950d811fe37b73

10 years agoMerge "Update system bar assets to new style." into klp-dev
John Spurlock [Tue, 27 Aug 2013 15:05:27 +0000 (15:05 +0000)]
Merge "Update system bar assets to new style." into klp-dev

10 years agoUpdate system bar assets to new style.
John Spurlock [Sun, 25 Aug 2013 14:38:32 +0000 (10:38 -0400)]
Update system bar assets to new style.

Update to new system bar assets (ic_*, stat_*).

Update color resources driving style for battery meter + clock.

Add new xxhdpi versions.

Bug:10502089
Change-Id: Ic957ad9886fbb05ed0ca1765fb9e324bfd8ab609

10 years agoDon't clear Global Proxy on boot.
Jason Monk [Tue, 27 Aug 2013 14:51:24 +0000 (10:51 -0400)]
Don't clear Global Proxy on boot.

Doesn't clear the global proxy when a deprecated one is not found because
there still may be a non-deprecated global proxy present.

Bug: 10457179
Change-Id: I68e6d5aee7b4940f9315484060c7d82cb8ccfa70

10 years agoMerge "Address API Review for SettingInjectorService" into klp-dev
Tom O'Neill [Tue, 27 Aug 2013 14:35:43 +0000 (14:35 +0000)]
Merge "Address API Review for SettingInjectorService" into klp-dev

10 years agoMerge "Add a simple test for NetworkManagementService." into klp-dev
Lorenzo Colitti [Tue, 27 Aug 2013 04:08:54 +0000 (04:08 +0000)]
Merge "Add a simple test for NetworkManagementService." into klp-dev

10 years agoMerge "Touch up the Hotword API" into klp-dev
Sandeep Siddhartha [Tue, 27 Aug 2013 02:24:25 +0000 (02:24 +0000)]
Merge "Touch up the Hotword API" into klp-dev

10 years agoTouch up the Hotword API
Sandeep Siddhartha [Tue, 27 Aug 2013 00:59:34 +0000 (17:59 -0700)]
Touch up the Hotword API

- Few comments got missed from the last review

Change-Id: I933912c51794875be5d129351d4f06bc040537a6

10 years agoFix docs build.
Ying Wang [Tue, 27 Aug 2013 00:48:22 +0000 (17:48 -0700)]
Fix docs build.

Change-Id: I7bfcfea052de6959230bb361400e760eab35b78c

10 years agoMerge "Add Service API to perform Hotword recognition" into klp-dev
Sandeep Siddhartha [Tue, 27 Aug 2013 00:38:40 +0000 (00:38 +0000)]
Merge "Add Service API to perform Hotword recognition" into klp-dev

10 years agoAdd Service API to perform Hotword recognition
Sandeep Siddhartha [Fri, 23 Aug 2013 23:40:08 +0000 (16:40 -0700)]
Add Service API to perform Hotword recognition

Change-Id: I855330b255a12cce309aa11e0b7cde5b8e061043

10 years agoMerge "Increase sampling data size limits" into klp-dev
Vinit Deshapnde [Tue, 27 Aug 2013 00:23:10 +0000 (00:23 +0000)]
Merge "Increase sampling data size limits" into klp-dev

10 years agoMerge "Tweak visibility logic for inflated view scenarios" into klp-dev
Chet Haase [Mon, 26 Aug 2013 23:29:34 +0000 (23:29 +0000)]
Merge "Tweak visibility logic for inflated view scenarios" into klp-dev

10 years agoTweak visibility logic for inflated view scenarios
Chet Haase [Mon, 26 Aug 2013 14:34:12 +0000 (07:34 -0700)]
Tweak visibility logic for inflated view scenarios

Previously, Visibility would determine whether a given view was
worthy of a transition by checking the visibility of that view's
parent hierarchy. This is done to avoid fading every view in
a hierarchy when only the top-most node should be faded.

However, the logic was flawed because it assumed the end scene
parent was stable between scenes, which is not the case with inflated
layout scenes, in which the parent views are not the same, even though they
may represent the same parents (via ids).

The new approach is to check information on both the start and end scene
parents, and to take ids into account when checking the state of these
parents in the start/end scenes. Also, avoid this logic altogether if the
transition is targeted at specific views (don't bother checking the
parents if the transition was told to fade specific views).

Issue #10442447 Transitions: Fades don't happen correctly in some situations

Change-Id: Icea24b892f2eff2d37c6436ccfe4e288aac84178

10 years agoMerge "Expand documentation around ViewParent#childHasTransientStateChanged" into...
Adam Powell [Mon, 26 Aug 2013 22:32:04 +0000 (22:32 +0000)]
Merge "Expand documentation around ViewParent#childHasTransientStateChanged" into klp-dev

10 years agoAdd documentation to onTouchEvent for accessibility
Alan Viverette [Mon, 26 Aug 2013 22:29:03 +0000 (15:29 -0700)]
Add documentation to onTouchEvent for accessibility

BUG: 10429918
Change-Id: I2e2826601ba1560186e19f15928de41674a72505

10 years agoMerge ""Year" is an authorized metadate long field." into klp-dev
Jean-Michel Trivi [Mon, 26 Aug 2013 22:28:12 +0000 (22:28 +0000)]
Merge ""Year" is an authorized metadate long field." into klp-dev