1982 Commits

Author SHA1 Message Date
Alan Viverette
6ce6d70f9c Separate background from ripple for better focus/press UX
Regresses the "jump" when focus changes, since the background position
is static and we don't have any reasonable UX spec for this yet.

BUG: 16323640
Change-Id: I7152546ed08375864174049b342653b3c4d3d9fb
2014-07-24 16:31:42 -07:00
Behdad Esfahbod
fa80f7491d Add letter-spacing to Paint and TextView
New API is hidden.

Bug: 15594400
Change-Id: I5cbe7aebef0b7280eb13924f2a706c0cb4a4688e
2014-07-24 18:46:07 -04:00
Alan Viverette
96335e3543 Merge "Remove the max ripple count exceeded warning" into lmp-dev 2014-07-24 15:36:09 +00:00
Alan Viverette
e5d6cf85e2 Remove the max ripple count exceeded warning
BUG: 16543509
Change-Id: I84ec8e01136d1f0f34c6153d8ef7936de547746e
2014-07-24 13:45:46 -07:00
Leon Scroggins III
b7b8e921c7 Document BlurMaskFilter.Blur.
BUG:1894887
Change-Id: Ia5ed8d8d5e3fcebec6f903b2641d030e8b29513c
2014-07-24 10:41:27 -04:00
Leon Scroggins III
866cf65cc3 Make updateLocalMatrix replace the current Matrix.
Fixes a bug introduced in I3c3316377874e89fccc85afb864bc038b0ef3890.

CreateLocalMatrixShader combines the existing matrix with the new
matrix, which is not what we want. Keep track of the original
SkShader at all times, and always create the local matrix shader
with the original. Store the SkShader with a local matrix as
Shader.native_with_local_matrix.

Make Shader.native_instance private. Instead of allowing direct
access, add an init() method which sets it, and getNativeInstance(),
which returns either native_instance or native_with_local_matrix,
as appropriate.

Make Shader subclasses call init(), instead of setting native_instance
directly.

Pass native_with_local_matrix pointer to nativeSetLocalMatrix and
nativeDestructor, which unrefs it (if not null).

Since nativeSetLocalMatrix no longer replaces the original, do not
unref it.

Add a comment to Shader.updateLocalMatrix that it does not affect
ComposeShaders created with this Shader. (This should have been a
part of I3c3316377874e89fccc85afb864bc038b0ef3890.)

BUG:16293121
Change-Id: Ieb31c7e1fe99081f6b81493178f4a18d3c5df643
2014-07-24 09:30:23 -04:00
ztenghui
5a836f74df Add negative sign separation support in the pathData
bug:14585171

Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
2014-07-23 21:46:16 +00:00
Alan Viverette
ade9ef236c Ensure ripple mask gets updated in public constructor
Change-Id: I084ff0357c8e3cf08d3700d9c7dce42726b986f1
2014-07-23 11:25:28 -07:00
Chris Craik
c403a39089 Merge "Make setter methods on Outline call setEmpty() based on params" into lmp-dev 2014-07-22 22:02:55 +00:00
Chris Craik
0645128b80 Make setter methods on Outline call setEmpty() based on params
bug:16142564

Additionally, better define behavior around null outline providers:

A view with an empty outline, and setClipToOutline=true will not be
rendered, though one with a null outline provider
(and thus no outline) will be.

Change-Id: Ic9549841b107b2eb51b417c66058a0cd69dd89eb
2014-07-22 15:15:11 -07:00
Derek Sollenberger
8872b38ef4 Separate Canvas JNI code from the implementation.
This introduces Canvas.h which is a pure virtual interface that
is intended to be used by both Skia and HWUI implementation. To help
stage this transition this CL only introduces the interface and Skia
implementation.  The interface is not intended to be final and will
undoubtedly go through iterations in both style and location as we
look to introduce the HWUI implementation.

BUG:15672762
Change-Id: Ibaccdddb87d3b9358f4f0c1d317ead5282d4ee16
2014-07-21 12:08:57 -04:00
Alan Viverette
4f64c04850 Clean up view tinting APIs, tileModeX/Y attribute docs
BUG: 16400590
BUG: 16403307
Change-Id: Ie924815a39eb0e683d1982b08ec478ed3edbfb7b
2014-07-22 01:03:58 +00:00
Chris Craik
31ba192dd2 Tweaks to outline API
b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
2014-07-19 00:13:59 +00:00
ztenghui
9d59a76dd0 Fix FIT_XY scaleType issue on VectorDrawable
bug:16019658

Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
2014-07-18 20:39:35 +00:00
ztenghui
670689af43 Fix caching in VectorDrawable to pass the CTS test
bug:16380401

Change-Id: I573f4cc782707c6ef3484597ddc621a7a6353898
2014-07-18 20:07:21 +00:00
ztenghui
738177caf6 Add the RTL support to VectorDrawable.
bug:15905631

Change-Id: Ieb3dcac2dd446ba89f307716411688dcd6ec5279
2014-07-17 17:37:19 +00:00
John Reck
580ff8142b Revert "Separate Canvas JNI code from the implementation."
This reverts commit e28a5afee885cd69a5be5809f88116b601cb1a72.

 Appears to cause memory corruption and random appearances of
 chinese

 Bug: 16343240
 Bug: 16336642

Change-Id: Ife169181f40adff4b12948ed5f9d3a88dcec935b
2014-07-17 17:36:24 +00:00
Chris Craik
889fc94ffa Merge "Add accessibility text contrast setting" into lmp-dev 2014-07-16 21:54:23 +00:00
Chris Craik
cce47eb580 Add accessibility text contrast setting
b/14624452

Adds a feature which draws all text (in the HW accelerated standard
path) in a high contrast mode. Text is drawn at full alpha, and either
white or black (depending on its original color) with a starkly
contrasted outline beneath it.

Change-Id: I943f624b6367de35367cced3b2a8298f2bc62377
2014-07-16 18:25:23 -07:00
Alan Viverette
d646fa2933 Fix state list drawable transitions
BUG: 16345178
Change-Id: I3a4f09462ac127bfb2adba6f63f5f44e5d4ea693
2014-07-16 20:11:53 +00:00
ztenghui
7bc6a3f023 Add more reverse support to AnimatedVD
bug:16162242

Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
2014-07-16 19:26:26 +00:00
Alan Viverette
6e0a9fa6ed DO NOT MERGE Add support for AVD reverse() to ASLD, clean up transition handling
BUG: 16162242
Change-Id: I29336491d01d40e5369503ece858bcbe5aa99b19
(cherry picked from commit 4e9c797a9c024e5a4226ed37eece16e3db2edb78)
2014-07-16 16:25:59 +00:00
Alan Viverette
7068c39526 Fix hotspot movement on focus change
BUG: 15726988
Change-Id: I97f88e5f7e404ecfcd5c254fddd18c8f6616064e
2014-07-16 00:06:14 +00:00
Derek Sollenberger
f5d6c555c3 Separate Canvas JNI code from the implementation. DO NOT MERGE
This introduces Canvas.h which is a pure virtual interface that
is intended to be used by both Skia and HWUI implementation. To help
stage this transition this CL only introduces the interface and Skia
implementation.  The interface is not intended to be final and will
undoubtedly go through iterations in both style and location as we
look to introduce the HWUI implementation.

BUG:15672762
Change-Id: Idefadede356f688edb8eb09b4a02aa01b4077f62
2014-07-15 15:08:29 +00:00
Chris Craik
757f0f36b9 Merge "Implement outline support for nine patches" into lmp-dev 2014-07-14 22:55:21 +00:00
Chris Craik
47cd8e921d Implement outline support for nine patches
b/15856895

Nine patches now have outline round rect metadata stored as optional
png tags. aapt generates these automatically by inspecting the bitmap
pixels to estimate outline bounds and round rect radius, based on
opacity.

Change-Id: I226e328a97873010d9e1adb797ac48f93a31183c
2014-07-14 15:01:27 -07:00
ztenghui
dc4335408b Merge "Enable the bitmap cache for the VectorDrawable" into lmp-dev 2014-07-14 18:37:52 +00:00
ztenghui
482eb53c8a Enable the bitmap cache for the VectorDrawable
b/16299765

Change-Id: Ia2c0fd366abc097d1ce485936de74e4e898cc07a
2014-07-14 15:49:04 -07:00
Eino-Ville Talvala
b942b05093 Deprecate android.hardware.Camera
__
             ||
             ||
             ||
             ||---____-----+
             ||    \_/     |
             ||   /. .\    |
             ||  ||---||   |
             ||   |___|    |
             ||    | |     |
             ||---____-----+
             ||
             ||
             ||
_____________||_________________

Replaced by android.hardware.camera2

- Also deprecate MediaRecorder#setCamera
- Also deprecate all Camera inner classes
- Update reference documentation in various classes to point to camera2
- Add note to camera API guide that it uses the old API
  (until a new guide is available)
- Remove old hidden raw sensor format; superceded by RAW_SENSOR.

Change-Id: I3d839765fc9b9aae906751ee32d6956ef40451ce
2014-07-13 21:45:57 -07:00
Alan Viverette
935b1fa24d Remove old RippleDrawable constructor, fix new constructor
BUG: 16221737
Change-Id: I3807d8d7ccccf66568b9d5421cb9456fe818e2bf
2014-07-11 12:34:06 -07:00
Leon Scroggins III
d66a8719b0 Merge "Simplify Shader.setLocalMatrix." 2014-07-10 21:35:02 +00:00
Leon Scroggins III
ab87983a11 Simplify Shader.setLocalMatrix.
Previously, calling setLocalMatrix updated any Paint that had the
Shader attached. This depended on deprecated behavior in Skia. Use
new Skia APIs, and do not modify any Paints that use the Shader.

In addition, update callers to call setShader (again) after modifying
the Shader.

Sample app at ag/499573 for testing.

Depends on I673801444f0a8fd4f192b5b7effdde1aa83e702b in external/skia.

BUG:14315916
Change-Id: I3c3316377874e89fccc85afb864bc038b0ef3890
2014-07-10 18:01:22 -04:00
Alan Viverette
4c33b9f7d4 Merge "Remove material progress drawable" 2014-07-10 20:54:59 +00:00
Alan Viverette
d7f4a3cdd7 Remove material progress drawable
BUG: 16138805
Change-Id: If8a8981e6ce741d563e870e3c09cbb5f39d30ac9
2014-07-10 15:48:37 -07:00
ztenghui
8d0d24f7a2 Fix the render order to follow the XML file order.
So we put path and group into a big list, then use reflectiont to handle them
differently.

bug:16162141

Change-Id: I4c84dc952d5d9b49412301dcd6459395e21d3b31
2014-07-10 22:04:20 +00:00
Svet Ganov
525a66b2bb Adding print preview.
This change adds the pring preview part of the new print UX. The
UI has two parts, the top section is the print options and the
bottom section print preview with a list of pages. The user can
interact only with one of them. When print options are expanded
they cover the preview content and a scrim is laid out on top of
the preview. Tapping the scrim collapses the print options. When
the user types in page ranges and closes the options to look at
the preview, the latter is updated to show only these pages. In
the list of pages the user can further prune pages by deselecting
them.

Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
2014-07-09 18:43:38 +00:00
ztenghui
55f765441c Add constant state support back to VectorDrawable
At the same time, AVD is using a mutated version of VD.
And AVD won't support constant state.
Move the targetsMap down into constant state.

bug:16017895

Change-Id: I12fbc52a8719362adba9df1e0f97288decbd33b2
2014-07-09 16:05:36 +00:00
Alan Viverette
9e6f9924c4 Fix layer drawable inflation
Change-Id: I2f16e3ddea919c33dc7b62f457a994e6d8a66e5b
2014-07-07 17:12:42 -07:00
Alan Viverette
13d965485e Fix build
Change-Id: I20f3ae19bd6d7cdc6dd6b9e947bdfea38893a167
2014-07-07 23:30:56 +00:00
Alan Viverette
8e5e11b99f Handle configuration changes in drawable attributes
Adds themeable attribute support to InsetDrawable, adds support
for attribute configuration changes to all themable drawables.

BUG: 16045735
Change-Id: I3dc62d28801760ac69d303be81b6c78bb9bb5aca
2014-07-07 22:54:22 +00:00
Alan Viverette
7c0517272b Fix getOutline() in ripple and layer drawables
BUG: 16134862
Change-Id: Ibcef20fc154ecc342344770f96fbd3d77d6fad26
2014-07-07 15:29:12 -07:00
Alan Viverette
2a0d4a1fff Merge "Update AnimatedStateListDrawable to work with Animatable drawables" 2014-07-07 17:47:39 +00:00
Alan Viverette
f456b1f078 Update AnimatedStateListDrawable to work with Animatable drawables
BUG: 16016730
Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
2014-07-03 19:03:21 -07:00
Zhijun He
d1988a98ed Add RAW10 image format
- Add RAW10 format in ImageFormat
- Add ImageReader support for this format

Bug: 15989722
Change-Id: Ic38ae596d5a472e990389d1fa221a82bea97b715
2014-07-07 08:01:06 -07:00
Nick Kralevich
617dca9242 am 50c3c114: am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"
* commit '50c3c114603b493d7814c83f96c8057e040e6c28':
  Correct typo in doc comment
2014-07-05 17:12:08 +00:00
Nick Kralevich
826504249d am 7ea31c67: am c43f3eb6: am 8b333467: Merge "fix trivial typo: s/meansure/measure"
* commit '7ea31c67f707be3fa208f93fa458068d57545e77':
  fix trivial typo: s/meansure/measure
2014-07-05 17:11:55 +00:00
Nick Kralevich
50c3c11460 am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"
* commit '664ec0a6e6cedf47adc54f2e0cd8f1435d699b72':
  Correct typo in doc comment
2014-07-05 17:06:11 +00:00
Nick Kralevich
7ea31c67f7 am c43f3eb6: am 8b333467: Merge "fix trivial typo: s/meansure/measure"
* commit 'c43f3eb67bbf60af61b3cd18bc5b6a684c8744c6':
  fix trivial typo: s/meansure/measure
2014-07-05 17:05:58 +00:00
Nick Kralevich
8b333467fe Merge "fix trivial typo: s/meansure/measure" 2014-07-03 01:32:01 +00:00
Jason Sams
24bea6a3ef Resolve conflicts with AOSP.
Change-Id: I2f1afdb83dcfc9078df5d3c2f13abacb6504d73d
2014-07-02 14:32:24 -07:00