15308 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
Andrew Solovay
d6d93efa7b docs: Adding file to support staging reference docs am: c40eccd9ad
am: afa73636f7

Change-Id: I3e9bd5ee15e3d820e9cc73782417c7d273f280bb
2018-01-09 21:59:05 +00:00
Andrew Solovay
c40eccd9ad docs: Adding file to support staging reference docs
We use the devsite tool to stage reference docs for review (to
go/dac-stage). That tool is currently broken, because it's expecting
to find a _reference-head-tags.html file which currently exists in
Piper but not in Gerrit. Copying that file into Gerrit lets us
build the Javadocs and stage them. (Files in p/f/b/docs don't
generally affect anything outside of the doc builds.)

Tested by building docs and staging Adapter.html to:
go/dac-stage/reference/android/widget/Adapter.html

Test: make ds-docs
Bug: 71717397
Change-Id: I05430f2d9f23e62b4423b2d6f304c4be1c43b880
2018-01-08 15:57:29 -08: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
Alan Viverette
d88a7ffc7c Update references to removed APIs
Test: make PRODUCT-sdk_google_aw_x86-sdk
Change-Id: I8e13f43520e609808a9825fa3c89f4233076c5a9
2017-03-17 16:48:12 -04:00
Elliot Waite
0ce4b0e4c3 Fix @links in reference docs. am: 54de77470d am: ab978c035e am: 28ba4722a9
am: 9b21265b2c

Change-Id: If246ebdb36cf2832d5a6c42cbe752e290b6fb6e8
2017-01-26 04:49:33 +00:00
Elliot Waite
9b21265b2c Fix @links in reference docs. am: 54de77470d am: ab978c035e
am: 28ba4722a9

Change-Id: I98177a8cf0a20677e140406bb7371474ca259e5b
2017-01-26 04:44:54 +00:00
Elliot Waite
28ba4722a9 Fix @links in reference docs. am: 54de77470d
am: ab978c035e

Change-Id: If0d0613362e0ea95cf48eaf9a16d3eea48b589ea
2017-01-26 04:39:57 +00:00
Elliot Waite
54de77470d Fix @links in reference docs.
Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
2017-01-25 17:00:55 -08:00
Romain Guy
c9ba559021 Add wide color gamut and HDR resource qualifiers
Bug: 32984164
Test: Config_test, AaptConfig_test and aapt2_tests
Change-Id: Ie9c82bfe2d36b1d6180ee223250ab5bb2ce90dd4
2017-01-19 18:44:00 -08:00
Zak Cohen
1a6acdbb86 Introduce new UI_MODE_TYPE_VR_HEADSET and qualifier.
Bug: 30989383
Test: Unit test for aapt2
Change-Id: I66dc65af6327b94fed74538bee08cada0b8be4fa
2017-01-11 11:44:47 -08:00
Xin Li
16bb6dcd45 Merge "Use half-width quotes in code example." am: 1fe99a819c am: 161d1487ba am: 2cb75e822d
am: 2b555e366e

Change-Id: I15790d515674c1697256143d417b651bc0ebad02
2017-01-05 22:14:22 +00:00
Xin Li
2b555e366e Merge "Use half-width quotes in code example." am: 1fe99a819c am: 161d1487ba
am: 2cb75e822d

Change-Id: I04cd0d83d7f808068d5021fb28d7b8b868f90c3b
2017-01-05 22:05:33 +00:00
Xin Li
2cb75e822d Merge "Use half-width quotes in code example." am: 1fe99a819c
am: 161d1487ba

Change-Id: Ia4814baf438c72d4ceed3be864e391513ed1c78e
2017-01-05 21:57:48 +00:00
Xin Li
5c14ebbbfa Use half-width quotes in code example.
Test: m -j49 -k docs
BUG: 34106216
Change-Id: I366b0bf085ad3fd166b7961301bb8c35da6a7630
2017-01-05 11:49:43 -08:00
Kevin Hufnagle
b5936940e8 docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50 am: c32df53fc7 am: d7c1e9bcd0 am: fb99d1450d am: 63d1963345 am: c580c3401a
am: a4a0906431

Change-Id: Ia91cab4a08489b22ebef4d152e4ab40cb300bc4a
2017-01-04 01:55:18 +00:00
Kevin Hufnagle
a4a0906431 docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50 am: c32df53fc7 am: d7c1e9bcd0 am: fb99d1450d am: 63d1963345
am: c580c3401a

Change-Id: I66640153bd0dcaeca11f1e82fc0d721d995281ff
2017-01-04 01:49:20 +00:00
Kevin Hufnagle
c580c3401a docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50 am: c32df53fc7 am: d7c1e9bcd0 am: fb99d1450d
am: 63d1963345

Change-Id: I586a41814eb4f0d15d411e03b80c02dfa782b5eb
2017-01-04 01:45:26 +00:00
Kevin Hufnagle
c3bfedf5fa docs: Added note - test subscriptions cannot use reserved IDs am: 98a11580ef am: c8ccc66e85 am: 1c85b504e2 am: 01e3564a0d am: c2aae1a1e7
am: 2427b36665

Change-Id: Ia186ece4f69d2e94b88cb73296674383fe6a00c8
2017-01-04 01:44:44 +00:00
Kevin Hufnagle
2427b36665 docs: Added note - test subscriptions cannot use reserved IDs am: 98a11580ef am: c8ccc66e85 am: 1c85b504e2 am: 01e3564a0d
am: c2aae1a1e7

Change-Id: I6c8f8c224b33c46da62c66765608b02125af8598
2017-01-04 01:37:51 +00:00
Kevin Hufnagle
fb99d1450d docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50 am: c32df53fc7
am: d7c1e9bcd0

Change-Id: I7f9ce1b661f8defca2918eece234a9c26d5f08a3
2017-01-04 01:37:00 +00:00
Kevin Hufnagle
8f8f62a499 docs: Added note - test subscriptions cannot use reserved IDs am: 98a11580ef am: c8ccc66e85 am: 1c85b504e2
am: 01e3564a0d

Change-Id: Iaed661507e97025f1b0c12aa9e808c006c184cac
2017-01-04 01:32:55 +00:00
Kevin Hufnagle
c2aae1a1e7 docs: Added note - test subscriptions cannot use reserved IDs am: 98a11580ef am: c8ccc66e85 am: 1c85b504e2
am: 01e3564a0d

Change-Id: Ic1454c9328a54777ba21cdee438e8d1bf91d5130
2017-01-04 01:32:53 +00:00
Kevin Hufnagle
d7c1e9bcd0 docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50
am: c32df53fc7

Change-Id: Ib2ac681a13b8d3b80feba803f25fdc8dbdcfe4f9
2017-01-04 01:32:24 +00:00