144 Commits

Author SHA1 Message Date
shawnlin
2f2956062d Fixed rounded corner javadoc rendering issue.
Bug: 183190634
Test: 1. make doc-comment-check-docs
      2. unzip doc-comment-check-docs-docs.zip in
         $ANDROID_BUILD_TOP/out/target/common/docs
      3. open RoundedCorner.html in reference/android/view/
Change-Id: Iff8d10db2fd3aaa26035e75c6acb342e5dc07a10
2021-03-25 18:26:02 +08:00
Shuzhen Wang
69cf0fd599 Camera: Add visual samples for android.control.zoomRatio
To better document how android.control.zoomRatio works, add diagrams to
illustrate its relationship with scalerCropRegion.

Test: Build and read docs
Bug: 144780745
Change-Id: I90b93c4d516f6f1e2d427ed3d56e85b6c94befe8
2020-03-23 13:26:03 -07:00
Eino-Ville Talvala
a9b1d60f9e Camera: Add android.scaler.rotateAndCrop control
Intended for backward compatibility support for camera apps that do
not handle multi-window scenarios like inset portrait or foldables
with dynamic screen changes.

Test: New CTS tests pass
Bug: 134631897
Change-Id: I1cc85d4413e6af2b490b86916933a5cd7ce84a6a
2020-01-21 00:30:11 -08:00
Eino-Ville Talvala
d2d749afd2 Camera: Add visual samples for android.scaler.cropRegion docs
To better document the cropping specification for camera2, add diagrams
from source.android.com into the reference docs as well.

Test: Docs build, look correct

Change-Id: I18a9c3801e19f39164f0d8c19c0cc001f142024f
2020-01-06 16:10:29 -08:00
TreeHugger Robot
0a8d0b237a Merge "Add code sample and result image for LineHeightSpan" 2019-03-20 16:01:50 +00:00
Haoyu Zhang
7ad6a515d8 Update LineBackgroundSpan.Standard java doc
Add code demo and result image.

Bug: 1526775
Test: make offline-sdk-docs
Change-Id: Ie8f7aa67a49dd79389e3973c2d94a204a1315e11
2019-03-18 17:46:23 -07:00
Haoyu Zhang
10b1aeec15 Add code sample and result image for LineHeightSpan
Bug: 112621694
Test: make offline-sdk-docs
Change-Id: I6d8f022eb24d1d1b17a97999d15a798a04ec0df3
2019-03-18 16:49:50 -07:00
Nader Jawad
55e49d8816 Added support for additional Blend Modes
Created new BlendMode enum that maps to XferModes with additional
supported native values that map to SkBlendMode constants
Created new BlendModeColorFilter
Deprecated PorterDuffColorMode and PorterDuffColorFilter in
favor of BlendMode and BlendModeColorFilter.
Updated Paint API to use setBlendMode and deprecated setXfermode

Bug: 119671925
Bug: 112166079
Bug: 73224934
Test: Added CTS tests for BlendMode and BlendModeColorFilter
Change-Id: Idd50e2f0b81975c5ecf6f1c0edd4eb68198d9131
2018-12-10 15:38:59 -08:00
Scott Main
9e64abe7d7 Delete static versions of _book.yaml and _project.yaml.
These files are used by devsite only, so are maintained in piper.

Change-Id: I5d5662a2a401872a669dba0916b20a79bcfca7ae
2018-05-03 13:56:03 -07:00
TreeHugger Robot
2ba8b2c3c5 Merge "Camera: update tonemap image in html doc" 2018-04-03 13:42:15 +00:00
Adrian Roos
a38538d2d6 Merge "DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES" into pi-dev am: 95712fe0cb
am: b038415e98

Change-Id: If06875a89cdf08eb04aeaeada403e5de8551e326
2018-03-28 15:21:53 +00:00
Adrian Roos
ad1da31764 DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Fixes: 76462084
Test: make doc-comment-check-docs, open $ANDROID_BUILD_TOP/out/target/common/docs/doc-comment-check/reference/android/view/WindowManager.LayoutParams.html, navigate to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Change-Id: I8a9df979cbb062896fa874a163414a4f8a095b21
2018-03-28 15:00:45 +02:00
Siyamed Sinir
07457d42d2 Update baseline api docs
* add an image for better description
* add constraints between TextView height and padding
* fix broken link (getLineSpacing)

Test: make -offline-sdk-docs
Test: Visual inspection on generated doc, screenshot attached to ticket
Bug: 74032223
Change-Id: I34b91454d3a43f8cb5a450c8d34de9f1abde0d52
2018-03-23 17:14:12 -07:00
Yin-Chia Yeh
9174b1b450 Camera: update tonemap image in html doc
Bug: 74942037
Change-Id: I6ac4bd9e7a6d9bb2b8e3d1303656c0cdc525178b
2018-03-15 11:28:20 -07:00
Florina Muntenescu
57c8b961db Allowing Typeface as a param in TypefaceSpan.
Test: TypefaceSpanTest.java
Bug: 26946279
Change-Id: I99a46fbc41ada567731f034f515998654ce77cb2
2018-02-03 00:45:52 +00:00
TreeHugger Robot
85d8a99310 Merge "Updating more spans" 2018-02-02 00:26:48 +00:00
Florina Muntenescu
139e1b5c01 Updating more spans
Test: N/A
Bug: 72092996
Change-Id: Iecd3595a03cde2a1d58e4be00b7cf9b6783d4e2a
2018-01-31 18:25:02 +00:00
Florina Muntenescu
8ec69a628b Merge "Making QuoteSpan more flexible." 2018-01-26 03:19:11 +00:00
Florina Muntenescu
58414a4867 Update JavaDocs for Alignment, Clickable, Editable and MetricAffecting
spans.

Test: N/A
Bug: 72092996
Change-Id: I716ed3841d7ac0b1cc2f75021ae0e02d1bf05524
2018-01-25 09:06:28 +00:00
Florina Muntenescu
f58a0282a9 Making QuoteSpan more flexible.
Test: QuoteSpanTest
Bug: 72410257
Change-Id: Ie0e159b4f645b7935454ad25fd43c5d0e8f3d7c1
2018-01-25 08:50:49 +00:00
TreeHugger Robot
414b665f2d Merge "Make BulletSpan more flexible and update JavaDoc." 2018-01-23 13:57:29 +00:00
Florina Muntenescu
987189b936 Make BulletSpan more flexible and update JavaDoc.
Test: BulletSpanTest
Bug: 72217003
Change-Id: I0ba4d93bd5a7bac02410e0edbd4b20f254959d4e
2018-01-23 12:08:39 +00:00
Florina Muntenescu
6d0474944a Updating JavaDocs for more spans.
Test: N/A
Bug:72092996
Change-Id: I2706465d3d61117b0b5b9e6a013f213988c92521
2018-01-22 18:40:50 +00:00
Florina Muntenescu
6e6772ff03 Update JavaDoc for BackgroundColorSpan and ForegroundColorSpan.
Test: N/A
Bug: 72092996
Change-Id: Iec7f378557759e2fdd2969f579e1dfd4635b123a
2018-01-19 17:52:31 +00:00
Eino-Ville Talvala
9dc7ec1f54 Camera2: Update generated docs to latest version
- Move camera reference doc images to /reference/images
- Minor formatting changes due to merging SDK/NDK metadata definitions
- Minor wording changes for the same

Bug: 69175492
Bug: 29102963
Bug: 33262893
Test: Build and manual inspection of generated docs diff
Change-Id: Ieaf0c1943eba378cc94a22d184734602c40e25e7
2017-11-15 13:30:21 -08:00
Andrew Solovay
c5a8efde13 docs: Restoring file to allow staging reference docs from Gerrit
Previously deleted almost all the docs (with CL http://ag/1970807),
since those docs are now managed and staged/published from Piper.
However, reference docs are still generated in Gerrit, so it's useful
to be able to stage those docs from a Gerrit client--and that was
broken by my change, since the staging tool expects to see
_book.yaml and _project.yaml in the reference doc directory. So,
restoring those files to re-enable staging of reference docs from
Gerrit.

The publish process is *not* changed: we still grab a good build
from the appropriate Gerrit branch and migrate those files into
Piper, then publish the Piper files.

Test: make ds-docs ; devsite stage --site=android en/reference
Change-Id: I392f1699dc68767d1ac9b7113a149062e5e48ef7
2017-04-18 14:00:55 -07:00
Romain Guy
c7dacca008 Documentation for PorterDuffXfermode
It tooks 10 years, but better late than never!

Bug: 32984164
Test: Compiled documentation and checked in Chrome
Change-Id: I6dfd7fba6d3077f8c774b203589083bdbc15f9d2
2017-03-31 18:56:37 -07:00
Andrew Solovay
6305094786 cherry-pick from nyc-mr1-dev docs: Removing Android docs from Gerrit
Original Change-Id: I5331cdc968be817ff70ba32dd03fce76493a6ab8
Test: make ds-docs

Android developer docs are now maintained in Piper, go/dac-source

Removing all files from Gerrit, since these files can cause build
errors if they refer to classes that are later removed (whence
bug b/35849713 ).

Gerrit already has readme files in these directories telling people
docs are not maintained here; these readmes will be a lot easier to
spot now.

Ran a doc build with these files deleted, and it seems to work fine,
so submitting this CL *shouldn't* break anything.

Bug: 35849713
Change-Id: Ic74c3f97f9620daf23543930a8b7ed1386f4d172
2017-03-21 14:18:01 -07:00
Romain Guy
9505a65527 Add new RGBA_F16 bitmap config
This configuration uses 64 bits per pixel. Heach component is stored as a
half precision float value (16 bits). Half floats can be decoded/encoded
using android.util.Half.

RGBA_F16 bitmaps are used to decode wide-gamut images stored in 16 bit
formats (PNG 16 bit for instance). aapt is currently not aware of PNG
16 bits so such files must be placed in raw/ resource directories.

This first pass provides only partial drawing support with hardware
acceleration. RGBA_F16 bitmaps are stored in linear space and need
to be encoded to gamma space with the appropriate OETF to be rendered
properly on Android's current surfaces. They are however suitable for
linear blending. Full rendering support will be provided in a future
CL (BitmapShaders might be a bit tricky to handle properly during
shader generation).

Bug: 32984164
Test: bit CtsGraphicsTestCases:android.graphics.cts.BitmapRGBAF16Test

Change-Id: I328e6b567441a1b9d152a3e7be944a2cf63193bd
2016-12-16 09:15:07 -08:00
Elliot Waite
ce6660d1d4 Change insecure HTTP resource link to scheme-relative link. am: fc175c08cb am: c67ea5e3ff am: 4835467efa
am: 27e3cf2a3f

Change-Id: If718e3a97738bd04a262ad03881a011af43f01f8
2016-12-06 02:17:45 +00:00
Elliot Waite
fc175c08cb Change insecure HTTP resource link to scheme-relative link.
Change-Id: Id3c0d448b7aa4cafd87cfa46408c62a6fb0f3e57
2016-11-30 17:42:18 -08:00
Romain Guy
15296a2d34 Add API to visualize/debug/compare color spaces and colors
ColorSpace.createRenderer() returns a ColorSpace.Renderer which
can be used to visualize multiple color spaces and colors (each
associated with a specific color space) in the same CIE 1931 xyY
chromaticity diagram. This API was used to generate all the
diagrams shown in the documentation.

Bug: 32984164
Test: ColorSpaceTest in CTS
Change-Id: Ic94d939d5cfd563d826701f5e876b67b47ed56ec
2016-11-30 09:33:28 -08:00
Romain Guy
199e5a98dd Add images to document built-in color spaces
Bug: 32984164
Test: make offline-sdk-referenceonly-docs and manual validation of output

Change-Id: I2f0e00e5a0581517bb7c535e8aee150f87ac7a6e
2016-11-28 17:38:27 -08:00
Amanda Kassay
9504b4903a Adding projec.yaml files to all top/sub categories.
Change-Id: I8ac3a958852071da46fa08178ca3a74b103e48df
2016-07-19 16:49:01 -04:00
Dirk Dougherty
44b31fa0c4 Merge "fix typo in book path for devsite builds." into mnc-mr-docs 2016-05-15 19:38:52 +00:00
smain@google.com
89d11705a1 Update links for all files under sdk/ that moved to studio/
Change-Id: I624621dfd7df0f441d0b559e5a12029e5e299964
2016-05-15 02:55:23 +00:00
Joe Fernandez
2e30b3a11e docs: DoDS, wearable reference docs
- fix navtree data file for TOC functionality
b/28462526

Change-Id: I8fde25b67972e9b610dddcc402a0e8164600ff71
2016-05-11 17:33:11 -07:00
Dirk Dougherty
6b94e98a20 fix typo in book path for devsite builds.
Change-Id: I06b3bfc6ec2d3e9944bef7f7beb3e710525ae867
2016-05-11 16:32:34 -07:00
Dirk Dougherty
1e0d1c67b4 Merge "Add navtree for wearable support lib." into mnc-mr-docs 2016-05-11 19:42:58 +00:00
Dirk Dougherty
debd2a7d41 Add updated Test Support lib docs to reference.
Change-Id: Ib572c99c07890a9b91aa53154d937ac45605d122
2016-05-11 12:34:12 -07:00
Dirk Dougherty
0da6c2de9a Add navtree for wearable support lib.
Change-Id: Ibc16e3752912ed0653e5ff192cd0983c681c4683
2016-05-11 12:18:24 -07:00
Joe Fernandez
95df02229c docs: DoDS Wear reference docs (regenerated)
b/28462526

Change-Id: I59874b401aafb76f965a9dc734db73abf68a1250
2016-05-10 19:12:36 -07:00
sreevanis
00beb18410 cherrypick from mnc-docs docs: Updated API changes for Dinar wearable support.
Bug:27807732
original Change-Id: Ic63b5af0a3c6c87324285ded60c8877fbf86c24d

Change-Id: Icd3dcbb6c56383817315ba4a6bb3ec7b72a54345
2016-03-29 13:32:35 -07:00
smain@google.com
2b903d08f0 update all hardcoded zippy images to use new Material icon (down-facing instead of right-facing)
this is tied to I33a4ef90359838c02def90beb486e5a2dc21cbf7 which updates the script in kind.

Change-Id: I0c5aed4c2ca1d38e92f07c3e688bfa2d3b574bfc
2016-03-16 12:13:05 -07:00
David Friedman
0571a1d4c3 Docs: Adds three files that were omitted from ag/743190.
Bug: 22979024
Change-Id: Ifdb4e2db5901e654c3d63895997da69dcf8b396b
2015-10-05 13:28:37 -07:00
Quddus Chong
c8fe6745cc docs: Updated Javadocs for Android Testing Support Library v0.4.
bug: 23932175

Change-Id: I6c8859d6a3a7b57e8c774cd8c6cf4ac3188e1fbd
2015-09-16 12:18:46 -07:00
David Friedman
6a21a5a142 am 9f4ddca9: am 56c22d29: Merge "Docs: Creating interactive watch faces Bug: 21721463" into mnc-preview-docs
* commit '9f4ddca909e1f7d4274da3282a05494d6fb2f3f9':
  Docs: Creating interactive watch faces Bug: 21721463
2015-08-20 01:15:08 +00:00
David Friedman
9f4ddca909 am 56c22d29: Merge "Docs: Creating interactive watch faces Bug: 21721463" into mnc-preview-docs
* commit '56c22d29b8727e55073cede04b51e65eb6125b9f':
  Docs: Creating interactive watch faces Bug: 21721463
2015-08-20 00:57:50 +00:00
David Friedman
e6705bf25d Docs: Creating interactive watch faces
Bug: 21721463

Training module and related API-reference documentation. This is new
material for Android Wear D(iamond) release.

Change-Id: I9959bca50fd96812abd7cfb693139986bc59b133
2015-08-19 17:41:57 -07:00
Quddus Chong
db87d7cd9e docs: Re-added gms_lists.js and gcm_lists.js for GMS v7.8 (Reblochon) Javadoc discovery.
Change-Id: I872bbb5069418a4dfb174dda5dd9e86b833f7894
2015-08-17 14:28:32 -07:00