5257 Commits

Author SHA1 Message Date
Svetoslav
53f57d162b Print API tweaks.
Change-Id: I4fcf93f17495740e8b8d0dc4e425a89862716b42
2013-06-22 00:26:49 -07:00
Svetoslav Ganov
4b9a4d1687 Print - platform APIs
Related changes:
    Skia (inlcude PDF APIs): https://googleplex-android-review.googlesource.com/#/c/305814/
    Canvas to PDF: https://googleplex-android-review.googlesource.com/#/c/319367/
    Settings (initial version): https://googleplex-android-review.googlesource.com/#/c/306077/
    Build: https://googleplex-android-review.googlesource.com/#/c/292437/
    Sample print services: https://googleplex-android-review.googlesource.com/#/c/281785/

Change-Id: I104d12efd12577f05c7b9b2a5e5e49125c0f09da
2013-06-21 18:43:17 -07:00
Chet Haase
2ea7f8b9c5 Refactoring/simplifying Transition code/API
Transitions used to be three phase:
- captureValues(): get all relevant property values in the
affected view targets
- setup(): set appropriate start values for affected views
prior to any transitions being played
- play(): create/play Animators for affected views

Now the second and third phases have been collapsed (and named
"play()"). This single step sets initial values for target views
and creates any Animators that should be played during the transition.
The transition mechanism stores these Animators and then starts
them at the appropriate time in the overall transition.

Issue #9507585 Transitions: Simplify Transition.play() design

Change-Id: I3fc67599b38fe49eee885dc5d32444db90b7703b
2013-06-21 16:07:14 -07:00
Andy McFadden
043d13ad4b Minor fixes to android.opengl.Matrix
This has a minor API change: deprecation of the nullary constructor.
The class is entirely composed of static methods, and was written
without a constructor, but the compiler dutifully generated a
default implementation and the API tool slurped it up.

The other changes are to the documentation:

 - Added warnings about the use of overlapping input and output
   on certain methods.
 - Fixed a few inaccuracies (e.g. transposeM() returns a transposed
   matrix, not an inverted matrix).
 - Tidied up the formatting.
 - Generally placated the consistency hobgoblins.

Bug 8868762

Change-Id: Ie3f86b98c477d8dc82d9dcaa311959bd4d191359
2013-06-21 14:49:23 -07:00
Svetoslav Ganov
b06accf34f Merge "Generate PDF from Canvas." 2013-06-21 20:09:51 +00:00
Chet Haase
6ebe3de331 Fix transitions on disappearing view hiearchies
Previously, Fade transitions did not work correctly on hirearchies; they
only handled individual views. in particular, they would side-effect all
fading views by removing them from their parent to fade them out in the
overlay of the scene root. This worked for the fade-out transition itself,
but caused problems when those same hierarchies were added back in and
another Fade was run on the hierarchy, because now all of the views inside
that parent node had been removed, so they didn't fade in at all.

The fix was to add logic in Visibility to detect when a disappearing
view was inside a hierarchy that was also disappearing, and to skip the
fade on the views inside that hierarchy, leaving only the top-most
disappearing view to be faded out, thus preserving the hierarchy under
that faded-out group.

Along the way, there were various cleanups, fixes, and refactorings in the
transition code, and slight API modifications.

Issue #9406371 Transitions: Removing view hierarchy not working correctly
Issue #9470255 Transitions: Separate different transitions by Scene Root

Change-Id: I42e80dac6097fee740f651dcc0535f2c57c11ebb
2013-06-20 15:35:04 -07:00
Svetoslav Ganov
ff4adde573 Generate PDF from Canvas.
This change adds simple APIs that enable an Android application
to generate a PDF document by drawing content on a canvas.

Change-Id: Ibac93d7c37b01a376ce7c48238657d8c7698d588
2013-06-19 19:35:38 -07:00
Jay Shrauner
2b2450702b Merge "Add number presentation column to call log" 2013-06-19 21:14:16 +00:00
Jason Sams
109c46b8ea Merge "Add histogram intrinsic" 2013-06-19 00:26:38 +00:00
Jeff Brown
a506a6ec94 Add an API to allow for creating private virtual displays.
This change enables applications to create a private virtual
display that renders its content to a surface of its own creation.
The display is private in the sense that only the application
that owns the display is allowed to place windows upon it.
Mirroring and blanking is also disabled for these displays.

Bug: 9192512
Change-Id: I852ea07f0c7df1d244e354e3daca3a6960285ca0
2013-06-18 15:32:41 -07:00
Zhijun He
ae2db13e82 Merge "Add Y8 and Y16 image format" 2013-06-18 20:06:22 +00:00
Jason Sams
01e9f90576 Add histogram intrinsic
Change-Id: I67bcaaef033d8770047923e8243e739010238539
2013-06-18 11:53:03 -07:00
Svetoslav
3577a283e1 Adding traits APIs to AccessibilityNodeInfo.
This change adds several traits and properties to AccessibilityNodeInfo
aiming to allow better description of native Android components to
accessibility services as well as mapping web content to native Android
node info tree.

Change-Id: I36b893cbaa6213c9d02d805e9dc36b6d792b4961
2013-06-18 10:41:48 -07:00
Jay Shrauner
d88eb719ac Add number presentation column to call log
Change call log so instead of overloading the phone number with special
strings "-1", "-2", etc to denote private phone numbers, payphones, etc,
put presentation type in its own column and expose in the public API these
type values.

Bug:6948882
Change-Id: I230c26aa0428d605a0e83169a635b5bbf1aa4e3f
2013-06-18 10:20:04 -07:00
Zhijun He
1eb818e5b3 Add Y8 and Y16 image format
These APIs are hidden. Also correct the value of RAW_SENSOR.

Bug: 9254294
Change-Id: Ic6271f5f6bfcfdd8b545d69a9a2154241c34d73b
2013-06-18 10:13:18 -07:00
Elliott Hughes
0e3e249ddb am 96fefaa2: am b87e6138: am 618ed234: Merge "Track nio API change."
* commit '96fefaa23bf95ae6736df90f018cb8c86cb943c3':
  Track nio API change.
2013-06-14 16:27:37 -07:00
Elliott Hughes
96fefaa23b am b87e6138: am 618ed234: Merge "Track nio API change."
* commit 'b87e6138d169e5fd23b964056431e2c357323fd2':
  Track nio API change.
2013-06-14 16:25:00 -07:00
Elliott Hughes
b87e6138d1 am 618ed234: Merge "Track nio API change."
* commit '618ed2340283263164f578f818cc09148aacb9ed':
  Track nio API change.
2013-06-14 16:22:12 -07:00
Elliott Hughes
28b7245cc1 Track nio API change.
Change-Id: I6a6d6c9e5f658b66dca0db226d2d91ee5f8ab2c7
2013-06-14 15:41:26 -07:00
Dianne Hackborn
df1c0bf774 Add scheme specific part to IntentFilter.
Change-Id: I063d086cdc742800b8e31ddf2942f2e9230e2785
2013-06-12 18:08:17 -07:00
Svetoslav Ganov
7a56be0915 Revert "Generate PDF from Canvas."
This reverts commit 923c633ccfda45312fec5a3484b6cc1308cc71ab

Change-Id: Ie49f593ec702c1ecf96a5cc1fafa680c1db08747
2013-06-12 23:06:46 +00:00
Svetoslav Ganov
923c633ccf Generate PDF from Canvas.
This change adds simple APIs that enable an Android application
to generate a PDF document by drawing content on a canvas.

Change-Id: Iddcd126b3af37c73d99262f6b276caa07b998c1d
2013-06-12 14:20:26 -07:00
Alan Viverette
a6954f7e12 Merge "Add getters for ListView header & footer divider drawing attrs." 2013-06-12 19:49:13 +00:00
Alan Viverette
5542103589 Add getters for ListView header & footer divider drawing attrs.
Bug: 6104055
Change-Id: I874d631ec6fbb0e99790a3f37d00d589c1d63d34
2013-06-11 17:50:56 -07:00
Dianne Hackborn
fc74f85f2e Merge "Fix build." 2013-06-12 00:14:45 +00:00
Dianne Hackborn
fd20604704 Fix build.
Change-Id: I166c744e0f6bf62ac06b4797b87e064e14d0b85e
2013-06-11 17:13:52 -07:00
Glenn Kasten
2a6b702521 Fix build
Change-Id: Iacac057570e9fcfe850ee597c0a26b2d06ab7910
2013-06-11 15:36:06 -07:00
Marco Nelissen
8d7f9f813d am 3826e8bd: am 37490462: Merge "Unhide MediaExtractor.getPsshInfo()" into jb-mr2-dev
* commit '3826e8bd6e30dbda90f330e4b3facbccc8c4bb9e':
  Unhide MediaExtractor.getPsshInfo()
2013-06-11 14:13:51 -07:00
Scott Main
06c05c4070 am be173f6a: am 8fb120b6: Merge "add ViewGroup\'s layoutMode attribute to public resources bug: 9359960" into jb-mr2-dev
* commit 'be173f6a16619ed82469bda7cf0df7c3763d3c81':
  add ViewGroup's layoutMode attribute to public resources bug: 9359960
2013-06-11 14:13:48 -07:00
Marco Nelissen
3826e8bd6e am 37490462: Merge "Unhide MediaExtractor.getPsshInfo()" into jb-mr2-dev
* commit '374904621a79eb12416da4a26be515ae9a2d243a':
  Unhide MediaExtractor.getPsshInfo()
2013-06-11 14:10:26 -07:00
Scott Main
be173f6a16 am 8fb120b6: Merge "add ViewGroup\'s layoutMode attribute to public resources bug: 9359960" into jb-mr2-dev
* commit '8fb120b67d785dc5ab0ebdb8efd7988da1a94365':
  add ViewGroup's layoutMode attribute to public resources bug: 9359960
2013-06-11 14:10:18 -07:00
Marco Nelissen
374904621a Merge "Unhide MediaExtractor.getPsshInfo()" into jb-mr2-dev 2013-06-11 04:01:47 +00:00
Romain Guy
a4cda4d643 Merge "Make constants final" 2013-06-11 01:26:23 +00:00
Romain Guy
fadd208144 Make constants final
Change-Id: Ifd54e55011ab63a10ddf851529ce4779447133e0
2013-06-10 17:03:47 -07:00
Adam Powell
2be7ec671b Add View methods isAttachedToWindow and hasLayout
isAttachedToWindow does what it says on the label and provides a
standard, public API for checking a view's attachment state. This
removes the need for tracking this out of band in response to
onAttachedToWindow/onDetachedFromWindow in custom view
implementations.

hasLayout returns true whenever the view has been through at least one
call to layout() since the last time it was attached to or detached
from a window. This allows for standard checks in code that needs to
behave differently if first layout has not completed yet, such as
whether or not to no-op an animation in order to set up initial state.

Change-Id: I8dab70dcd5a22a32e260ed50987ccdaa4100072b
2013-06-10 16:28:35 -07:00
Marco Nelissen
ecba2e4b95 Unhide MediaExtractor.getPsshInfo()
b/9373882

Change-Id: I2af42656d6a7eb19e8e9ec798b615dab0d9d33cb
2013-06-10 15:06:28 -07:00
Scott Main
dc74caa7e8 add ViewGroup's layoutMode attribute to public resources
bug: 9359960

Change-Id: I9d3d45c6494ded12170c88f5080bbb0a58d0fd74
2013-06-10 14:51:37 -07:00
Chet Haase
4f5072327d Add dynamic scene creation/transition capability
Add TransitionManager.beginDelayedTransition() to handle starting a transition
on the next frame for a given scene root based on all changes that
take place between the first call to that method and the next animation frame.

Issue #9321937 Transitions: consider batching up multiple scene actions

Change-Id: I3fc92b6b4ec5ff42b1e678bcfd385703e32eba2a
2013-06-10 14:06:14 -07:00
Romain Guy
2df804462b Merge "Fix the build" 2013-06-07 21:54:47 +00:00
Romain Guy
28323a425f Fix the build
Change-Id: I506b24e2228d49badc513fdd839671ba50bb2faf
2013-06-07 14:54:01 -07:00
Eino-Ville Talvala
b2675542c2 Initial commit of new camera API, mostly just the interface.
- New core API classes in android.hardware.photography
- android.media.Image and android.media.ImageReader classes for
  application access to direct hardware image buffers.
- Additions to android.graphics.ImageFormat to describe new image
  types needed by new camera API.
- Some documentation included; very little implementation.

Bug: 9111736
Change-Id: I0680f35944d1cb8845b7dc0c67edc8c0f0864573
2013-06-07 21:29:45 +00:00
Svetoslav
494cb689d0 Merge "Optimizing AccessibilityNodeInfo caching." 2013-06-07 00:04:57 +00:00
Elliott Hughes
0d6123e48f am 20c3a1b4: am 47aa51d0: am 70b74646: Merge "Track libcore changes."
* commit '20c3a1b47abc630cd18ac0c113529f9082a8af9b':
  Track libcore changes.
2013-06-06 13:58:31 -07:00
Elliott Hughes
47aa51d029 am 70b74646: Merge "Track libcore changes."
* commit '70b74646b8114b7ee9e35ce4283ecab8c8528dcc':
  Track libcore changes.
2013-06-06 13:53:54 -07:00
Elliott Hughes
598a16f71e Track libcore changes.
Bug: 3484927
Change-Id: I3a3c4a9f0ad6055261f705987bc576cd28bebb46
2013-06-06 13:40:21 -07:00
Chris Wren
29ee561d2d Merge "reveal the notification extras" 2013-06-06 19:51:47 +00:00
Chris Wren
da76ad2ea3 reveal the notification extras
Change-Id: Ic97e3485dc23eeb5cfb565a5cef98489acdec8a2
2013-06-06 15:34:21 -04:00
Alan Viverette
4ea7b1c3d5 Fix mistake in current APIs.
Change-Id: I5f41108a2c28169c0a5433993fea5bb1b6037c5a
2013-06-06 11:06:38 -07:00
Chet Haase
e2b66ff085 Merge "Fix CrossFade transition" 2013-06-06 17:37:10 +00:00
Alan Viverette
b33d778e9c Merge "Deprecate DrawableStateList.getChildren() and add getChild()." 2013-06-06 17:36:40 +00:00