43563 Commits

Author SHA1 Message Date
John Spurlock
0d669d6d67 am ab8fe692: Merge "Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE." into klp-dev
* commit 'ab8fe692961bb3bf71169fd7a43aff4de837ab26':
  Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE.
2013-08-28 18:04:25 -07:00
John Spurlock
ab8fe69296 Merge "Rename hideybars constant to SYSTEM_UI_FLAG_IMMERSIVE." into klp-dev 2013-08-29 01:00:03 +00:00
Igor Murashkin
2a3eced15e camera2: Don't NPE when closing the CameraDevice
Bug: 10360518
Change-Id: I0154e12490a063adea753c0aa6ae422605ba5ac5
2013-08-28 17:38:39 -07:00
Baligh Uddin
ad155cdacc Import translations. DO NOT MERGE
Change-Id: I22efa95394f7b572df2b43138fee45bd7eaf4229
Auto-generated-cl: translation import
2013-08-28 17:36:17 -07:00
Alan Viverette
fb410d219f Fix documentation regarding defStyle in View constructor
BUG: 8912583
Change-Id: Ib8b1f8baa4ee98aae0e66edc547ab014b2401415
2013-08-28 16:57:42 -07:00
Chet Haase
3ddc33e26c am 52485b0b: Merge "Better transition interruption and TextChange fixes" into klp-dev
* commit '52485b0b7ef066241371393dc6060bccd090a222':
  Better transition interruption and TextChange fixes
2013-08-28 16:57:31 -07:00
Chet Haase
52485b0b7e Merge "Better transition interruption and TextChange fixes" into klp-dev 2013-08-28 23:55:10 +00:00
Isaac Katzenelson
b889b546e8 am 18f590a9: Merge "Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly." into klp-dev
* commit '18f590a9b7d2690e5f4189d8d0c025ff1a5bf199':
  Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly.
2013-08-28 16:54:02 -07:00
Chet Haase
af78bdd615 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
2013-08-28 16:50:13 -07:00
Isaac Katzenelson
18f590a9b7 Merge "Remove EXTRA_DELETE_AFTER_USE and update descriptions accordingly." into klp-dev 2013-08-28 23:49:41 +00:00
Sandeep Siddhartha
529763b690 am bd31a483: Merge "Tweak the HotwordRecognizer API" into klp-dev
* commit 'bd31a483d358b02e4a16949b576560d4e0672ea3':
  Tweak the HotwordRecognizer API
2013-08-28 16:43:41 -07:00
Sandeep Siddhartha
bd31a483d3 Merge "Tweak the HotwordRecognizer API" into klp-dev 2013-08-28 23:39:00 +00:00
Sandeep Siddhartha
823393477b 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
2013-08-28 16:27:36 -07:00
Mindy Pereira
f16836318b am dd9b079c: Merge "Fix case when user touches the very edge of a view" into klp-dev
* commit 'dd9b079cdf57f13f38d2700f05650fd04d4009d6':
  Fix case when user touches the very edge of a view
2013-08-28 16:10:36 -07:00
Mindy Pereira
dd9b079cdf Merge "Fix case when user touches the very edge of a view" into klp-dev 2013-08-28 23:08:53 +00:00
Matthew Xie
c5470778a4 Block ble adv api based on resource config
bug 10516911

Change-Id: I7a62103a1116ffbf7c3c934c1794384c0e6fbdd3
2013-08-28 15:45:23 -07:00
Mindy Pereira
0d3da1232b 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
2013-08-28 15:00:14 -07:00
Fabrice Di Meglio
f73df21a8e am 627dd9b5: 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
* commit '627dd9b584a267b206bace8dc518287fe58b9563':
  Fix bug #10515013 CalendarView is always forcing first day of the week to Sunday and not taking into account CLDR data
2013-08-28 12:57:03 -07:00
Fabrice Di Meglio
627dd9b584 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 2013-08-28 19:53:56 +00:00
Sam Blitzstein
229ba4974b 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
2013-08-28 11:42:05 -07:00
Martijn Coenen
df4d1d624d Add requireDeviceUnlock attribute for NFC HCE.
Also added AID description, and renamed PackageManager
feature. The old name has to stay at least for a bit,
because we are already deploying apps in our builds that
use the constant.

Bug: 10461409
Bug: 10461753
Change-Id: I7a5bb023bb567dd8b0a17e8e54e9559d7fcf64f5
2013-08-28 11:18:58 -07:00
Alan Viverette
c971f04067 am ce9e2526: Merge "Implement new accessibility APIs in lists, text view" into klp-dev
* commit 'ce9e2526d43159df931cc9c0ba7173960d8a6a06':
  Implement new accessibility APIs in lists, text view
2013-08-28 10:49:44 -07:00
Alan Viverette
5b2081dc41 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
2013-08-28 10:43:07 -07:00
Alan Viverette
b27239b4ca am 116c12ef: Merge "Add public API for obtaining drag-to-open listener" into klp-dev
* commit '116c12ef4c5fc2d5e5e90a417c4386c1f9a3ddf6':
  Add public API for obtaining drag-to-open listener
2013-08-28 10:27:24 -07:00
Alan Viverette
116c12ef4c Merge "Add public API for obtaining drag-to-open listener" into klp-dev 2013-08-28 17:25:06 +00:00
Jeff Hao
896e5d7587 am 09944b04: am 6b34ab3f: Merge "Merge MPSE and SPSE Chunk handlers for ddms."
* commit '09944b04fa29eca7f889413988a05a268a5521f5':
  Merge MPSE and SPSE Chunk handlers for ddms.
2013-08-27 18:21:27 -07:00
Jeff Hao
f46f843171 am 5d21168b: am 366291e2: Merge "Add frameworks support for sample profiling from traceview gui."
* commit '5d21168bb4b33fb5eb8770996895a729880c7dbc':
  Add frameworks support for sample profiling from traceview gui.
2013-08-27 18:21:23 -07:00
Jeff Hao
09944b04fa am 6b34ab3f: Merge "Merge MPSE and SPSE Chunk handlers for ddms."
* commit '6b34ab3f1aafc3143c71e342b7a9f5a6ddfeabb4':
  Merge MPSE and SPSE Chunk handlers for ddms.
2013-08-27 18:18:47 -07:00
Jeff Hao
5d21168bb4 am 366291e2: Merge "Add frameworks support for sample profiling from traceview gui."
* commit '366291e2830b96268458dd6c5b15412e46d93145':
  Add frameworks support for sample profiling from traceview gui.
2013-08-27 18:18:43 -07:00
Amith Yamasani
e9ecc8b499 Improve Intent disambig dialog behavior
Keep track of last chosen activity for a particular intent, similar
to how it is tracked for "Always" choices.
Pre-select the last chosen activity if previously the user picked
"Just once".
Downgrade "Always" to "Last chosen" if there's a new kid on the block,
instead of removing it entirely.
Add methods to set and get last chosen entry.

UI - switch from Grid to List.

Bug: 9958096

Change-Id: Ied57147739a3ade1d36c3a7ec1e8ce77e5c5bb16
2013-08-27 18:05:00 -07:00
Jeff Hao
6c7bac69f5 Merge MPSE and SPSE Chunk handlers for ddms.
(cherry picked from commit fd224b97797dfb7e3ee1e2f56c3109d1594cf040)

Change-Id: I1dab7801d47f092259916c4aea19b20d17951c2f
2013-08-27 17:59:32 -07:00
Jeff Hao
ffee626c3a Add frameworks support for sample profiling from traceview gui.
(cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9)

Change-Id: Ic193ddadf01c42905fc7c35a1a8bf89fba4556e9
2013-08-27 17:46:18 -07:00
Fabrice Di Meglio
b08e5788a7 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
2013-08-27 17:43:53 -07:00
Svetoslav Ganov
39149ff6be am ca09dbc6: Merge "Print APIs update." into klp-dev
* commit 'ca09dbc67b28d5d1d16b7966b855229697c6c549':
  Print APIs update.
2013-08-27 17:10:10 -07:00
Svetoslav Ganov
ca09dbc67b Merge "Print APIs update." into klp-dev 2013-08-28 00:07:09 +00:00
Martijn Coenen
61fdf6d155 am bbbc8660: Merge "Add NFC reader-mode API." into klp-dev
* commit 'bbbc8660cdbfb033291f1911742a942a42c85af0':
  Add NFC reader-mode API.
2013-08-27 16:11:32 -07:00
Martijn Coenen
bbbc8660cd Merge "Add NFC reader-mode API." into klp-dev 2013-08-27 23:08:56 +00:00
Alan Viverette
5c5fbb39ec am 3d1b3cb9: Merge "Add documentation to onTouchEvent for accessibility" into klp-dev
* commit '3d1b3cb9d9ea206d4244ed369224faf4d859973e':
  Add documentation to onTouchEvent for accessibility
2013-08-27 15:52:50 -07:00
Alan Viverette
3d1b3cb9d9 Merge "Add documentation to onTouchEvent for accessibility" into klp-dev 2013-08-27 22:48:03 +00:00
Alan Viverette
1955a5b531 Add public API for obtaining drag-to-open listener
BUG: 10457019
Change-Id: I66485521c54b82033044834e7aab6707a3049e6b
2013-08-27 15:45:16 -07:00
Martijn Coenen
c20ed2ff12 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
2013-08-27 14:32:53 -07:00
Craig Mautner
8fce994c84 am ac738a25: Merge "Hide stackId from prying eyes." into klp-dev
* commit 'ac738a25f8d0a9fcd5e30ad1a7b98683726c49f3':
  Hide stackId from prying eyes.
2013-08-27 14:23:04 -07:00
Craig Mautner
ac738a25f8 Merge "Hide stackId from prying eyes." into klp-dev 2013-08-27 21:20:30 +00:00
Christopher Tate
4b739259d2 am d381680b: Merge "Make sure to actually log when Log.wtf() hiccups" into klp-dev
* commit 'd381680b63a36f8a4f1b07286947f1227d83139d':
  Make sure to actually log when Log.wtf() hiccups
2013-08-27 14:19:29 -07:00
Christopher Tate
d381680b63 Merge "Make sure to actually log when Log.wtf() hiccups" into klp-dev 2013-08-27 21:15:03 +00:00
Christopher Tate
941adc95e1 Make sure to actually log when Log.wtf() hiccups
Bug 10494724

Change-Id: I687d7df73a8f4594d42955f100d928e98bbd9b30
2013-08-27 14:10:44 -07:00
Chet Haase
b9a474c29b am f1c3f28e: Merge "Fix NPE when setting new LayoutTransition" into klp-dev
* commit 'f1c3f28eb9e87ddc6b5a3fdc5a3553b8134aff61':
  Fix NPE when setting new LayoutTransition
2013-08-27 12:51:56 -07:00
Chet Haase
f1c3f28eb9 Merge "Fix NPE when setting new LayoutTransition" into klp-dev 2013-08-27 19:50:43 +00:00
Leon Scroggins III
ca32021b43 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
2013-08-27 15:28:58 -04:00
Fabrice Di Meglio
71de13128f am 6d7771b5: Merge "Fix bug #10462461 CTS TimePickerTest are broken for testSetOnTimeChangedListener()" into klp-dev
* commit '6d7771b575ec9303515128e98fcb67689414ac6e':
  Fix bug #10462461 CTS TimePickerTest are broken for testSetOnTimeChangedListener()
2013-08-27 12:28:43 -07:00