Date: Mon, 30 Nov 2015 09:51:33 +0000
Subject: [PATCH] Fix @code escapes
The body of {@code} must not be HTML escaped. This is one of
several changes that fix the source in conjunction with a
doclava fix.
Bug: 25757239
Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
---
core/java/android/annotation/BinderThread.java | 6 +-
core/java/android/annotation/CallSuper.java | 4 +-
core/java/android/annotation/CheckResult.java | 2 +-
core/java/android/annotation/ColorInt.java | 2 +-
core/java/android/annotation/FloatRange.java | 4 +-
core/java/android/annotation/IntDef.java | 19 ++--
core/java/android/annotation/IntRange.java | 4 +-
core/java/android/annotation/MainThread.java | 4 +-
.../android/annotation/RequiresPermission.java | 20 ++--
core/java/android/annotation/Size.java | 2 +-
core/java/android/annotation/StringDef.java | 12 +--
core/java/android/annotation/UiThread.java | 6 +-
core/java/android/annotation/WorkerThread.java | 6 +-
core/java/android/app/ActivityManager.java | 4 +-
core/java/android/hardware/Camera.java | 6 +-
core/java/android/hardware/package.html | 2 +-
core/java/android/net/PskKeyManager.java | 2 +-
core/java/android/nfc/NfcAdapter.java | 4 +-
core/java/android/os/PowerManager.java | 4 +-
core/java/android/service/dreams/DreamService.java | 2 +-
core/java/android/service/textservice/package.html | 4 +-
core/java/android/speech/RecognitionListener.java | 2 +-
core/java/android/speech/RecognitionService.java | 2 +-
core/java/android/text/format/Time.java | 4 +-
core/java/android/transition/ArcMotion.java | 9 +-
core/java/android/transition/PathMotion.java | 6 +-
.../java/android/transition/PatternPathMotion.java | 9 +-
core/java/android/transition/Transition.java | 30 +++---
core/java/android/view/View.java | 2 +-
.../android/view/inputmethod/InputMethodInfo.java | 2 +-
.../view/inputmethod/InputMethodSubtype.java | 2 +-
core/java/android/webkit/WebView.java | 2 +-
core/java/android/widget/ProgressBar.java | 2 +-
core/res/AndroidManifest.xml | 4 +-
core/res/res/values/attrs_manifest.xml | 6 +-
core/res/res/values/themes_holo.xml | 2 +-
core/res/res/values/themes_material.xml | 2 +-
.../intl/es/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/es/google/play/filters.jd | 18 ++--
docs/html-intl/intl/es/preview/api-overview.jd | 6 +-
.../intl/ja/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/ja/google/play/filters.jd | 14 +--
.../html-intl/intl/ja/guide/topics/fundamentals.jd | 10 +-
docs/html-intl/intl/ja/preview/api-overview.jd | 6 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/ja/training/basics/intents/filters.jd | 18 ++--
docs/html-intl/intl/ja/training/tv/start/start.jd | 2 +-
.../intl/ko/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/ko/google/play/filters.jd | 16 ++--
docs/html-intl/intl/ko/preview/api-overview.jd | 4 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/ko/training/basics/intents/filters.jd | 20 ++--
docs/html-intl/intl/pt-br/preview/api-overview.jd | 6 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/pt-br/training/basics/intents/filters.jd | 20 ++--
.../intl/ru/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/ru/google/play/filters.jd | 18 ++--
docs/html-intl/intl/ru/preview/api-overview.jd | 6 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/ru/training/basics/intents/filters.jd | 20 ++--
.../intl/zh-cn/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/zh-cn/google/play/filters.jd | 16 ++--
docs/html-intl/intl/zh-cn/preview/api-overview.jd | 4 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/zh-cn/training/basics/intents/filters.jd | 20 ++--
.../intl/zh-tw/distribute/googleplay/quality/tv.jd | 2 +-
docs/html-intl/intl/zh-tw/google/play/filters.jd | 14 +--
docs/html-intl/intl/zh-tw/preview/api-overview.jd | 6 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../intl/zh-tw/training/basics/intents/filters.jd | 18 ++--
docs/html/about/dashboards/index.jd | 4 +-
docs/html/about/versions/android-1.6.jd | 6 +-
docs/html/about/versions/android-2.0-highlights.jd | 2 +-
docs/html/about/versions/android-2.3.jd | 2 +-
docs/html/about/versions/android-3.0.jd | 34 +++----
docs/html/about/versions/android-3.1.jd | 8 +-
docs/html/about/versions/android-3.2.jd | 2 +-
docs/html/about/versions/android-4.0.3.jd | 2 +-
docs/html/about/versions/android-4.0.jd | 34 +++----
docs/html/about/versions/android-4.1.jd | 14 +--
docs/html/about/versions/android-4.2.jd | 24 ++---
docs/html/about/versions/android-4.3.jd | 38 ++++----
docs/html/about/versions/android-4.4.jd | 8 +-
docs/html/about/versions/android-5.0.jd | 6 +-
docs/html/distribute/essentials/quality/tv.jd | 2 +-
docs/html/google/play/billing/billing_integrate.jd | 4 +-
docs/html/google/play/expansion-files.jd | 18 ++--
docs/html/google/play/filters.jd | 18 ++--
docs/html/google/play/licensing/setting-up.jd | 4 +-
docs/html/google/play/publishing/multiple-apks.jd | 20 ++--
docs/html/guide/components/activities.jd | 22 ++---
docs/html/guide/components/aidl.jd | 2 +-
docs/html/guide/components/fragments.jd | 6 +-
docs/html/guide/components/fundamentals.jd | 2 +-
docs/html/guide/components/intents-common.jd | 26 ++---
docs/html/guide/components/intents-filters.jd | 40 ++++----
.../html/guide/components/processes-and-threads.jd | 10 +-
docs/html/guide/components/services.jd | 8 +-
docs/html/guide/components/tasks-and-back-stack.jd | 14 +--
docs/html/guide/practices/compatibility.jd | 6 +-
docs/html/guide/practices/optimizing-for-3.0.jd | 28 +++---
docs/html/guide/practices/screen-compat-mode.jd | 22 ++---
docs/html/guide/practices/screens-distribution.jd | 24 ++---
docs/html/guide/practices/screens-support-1.5.jd | 4 +-
docs/html/guide/practices/screens_support.jd | 24 ++---
docs/html/guide/practices/tablets-and-handsets.jd | 4 +-
.../html/guide/topics/connectivity/bluetooth-le.jd | 2 +-
docs/html/guide/topics/connectivity/nfc/hce.jd | 2 +-
docs/html/guide/topics/data/backup.jd | 8 +-
docs/html/guide/topics/data/data-storage.jd | 4 +-
docs/html/guide/topics/graphics/opengl.jd | 8 +-
docs/html/guide/topics/manifest/action-element.jd | 6 +-
.../topics/manifest/activity-alias-element.jd | 4 +-
.../html/guide/topics/manifest/activity-element.jd | 14 +--
.../guide/topics/manifest/application-element.jd | 8 +-
.../html/guide/topics/manifest/category-element.jd | 4 +-
.../topics/manifest/compatible-screens-element.jd | 16 ++--
docs/html/guide/topics/manifest/data-element.jd | 8 +-
.../manifest/grant-uri-permission-element.jd | 2 +-
docs/html/guide/topics/manifest/manifest-intro.jd | 4 +-
.../guide/topics/manifest/meta-data-element.jd | 4 +-
.../html/guide/topics/manifest/provider-element.jd | 4 +-
.../html/guide/topics/manifest/receiver-element.jd | 2 +-
docs/html/guide/topics/manifest/service-element.jd | 4 +-
.../topics/manifest/supports-screens-element.jd | 4 +-
.../topics/manifest/uses-configuration-element.jd | 4 +-
.../guide/topics/manifest/uses-feature-element.jd | 8 +-
docs/html/guide/topics/media/mediarouter.jd | 4 +-
.../guide/topics/providers/document-provider.jd | 4 +-
.../guide/topics/resources/accessing-resources.jd | 18 ++--
.../guide/topics/resources/color-list-resource.jd | 4 +-
.../guide/topics/resources/drawable-resource.jd | 40 ++++----
.../html/guide/topics/resources/layout-resource.jd | 2 +-
docs/html/guide/topics/resources/more-resources.jd | 36 +++----
.../guide/topics/resources/providing-resources.jd | 28 +++---
.../html/guide/topics/resources/runtime-changes.jd | 2 +-
.../html/guide/topics/resources/string-resource.jd | 30 +++---
docs/html/guide/topics/resources/style-resource.jd | 4 +-
.../topics/search/adding-custom-suggestions.jd | 6 +-
.../search/adding-recent-query-suggestions.jd | 2 +-
docs/html/guide/topics/search/search-dialog.jd | 34 +++----
docs/html/guide/topics/search/searchable-config.jd | 12 +--
docs/html/guide/topics/security/permissions.jd | 2 +-
docs/html/guide/topics/ui/accessibility/apps.jd | 4 +-
.../html/guide/topics/ui/accessibility/services.jd | 6 +-
docs/html/guide/topics/ui/actionbar.jd | 28 +++---
docs/html/guide/topics/ui/controls/button.jd | 4 +-
docs/html/guide/topics/ui/controls/spinner.jd | 2 +-
docs/html/guide/topics/ui/controls/text.jd | 2 +-
docs/html/guide/topics/ui/dialogs.jd | 4 +-
docs/html/guide/topics/ui/menus.jd | 18 ++--
docs/html/guide/topics/ui/settings.jd | 26 ++---
docs/html/guide/topics/ui/themes.jd | 26 ++---
docs/html/guide/webapps/best-practices.jd | 4 +-
docs/html/guide/webapps/targeting.jd | 6 +-
docs/html/guide/webapps/webview.jd | 4 +-
docs/html/ndk/downloads/revision_history.jd | 24 ++---
docs/html/ndk/guides/abis.jd | 6 +-
docs/html/ndk/guides/android_mk.jd | 4 +-
docs/html/ndk/guides/application_mk.jd | 6 +-
docs/html/ndk/guides/concepts.jd | 10 +-
docs/html/ndk/guides/cpp-support.jd | 2 +-
docs/html/ndk/guides/cpu-features.jd | 2 +-
docs/html/ndk/guides/ndk-build.jd | 12 +--
docs/html/ndk/guides/ndk-gdb.jd | 32 +++----
docs/html/ndk/guides/ndk-stack.jd | 4 +-
docs/html/ndk/guides/prebuilts.jd | 4 +-
docs/html/ndk/guides/setup.jd | 2 +-
docs/html/ndk/guides/stable_apis.jd | 52 +++++-----
docs/html/ndk/guides/standalone_toolchain.jd | 28 +++---
docs/html/ndk/samples/sample_na.jd | 2 +-
docs/html/preview/api-overview.jd | 6 +-
docs/html/tools/adk/adk2.jd | 4 +-
docs/html/tools/devices/emulator.jd | 4 +-
docs/html/tools/devices/managing-avds.jd | 2 +-
docs/html/tools/extras/oem-usb.jd | 8 +-
docs/html/tools/help/adb.jd | 2 +-
docs/html/tools/help/desktop-head-unit.jd | 4 +-
docs/html/tools/help/emulator.jd | 4 +-
docs/html/tools/help/jobb.jd | 16 ++--
docs/html/tools/help/lint.jd | 4 +-
docs/html/tools/help/shell.jd | 106 ++++++++++-----------
docs/html/tools/help/uiautomator/index.jd | 12 +--
docs/html/tools/help/zipalign.jd | 2 +-
docs/html/tools/sdk/eclipse-adt.jd | 8 +-
docs/html/tools/sdk/tools-notes.jd | 2 +-
docs/html/tools/support-library/features.jd | 34 +++----
docs/html/tools/support-library/index.jd | 2 +-
docs/html/tools/support-library/setup.jd | 12 +--
docs/html/tools/testing-support-library/index.jd | 12 +--
docs/html/tools/testing/testing_ui.jd | 8 +-
.../activity-testing/activity-basic-testing.jd | 4 +-
.../activity-testing/activity-ui-testing.jd | 8 +-
docs/html/training/app-indexing/deep-linking.jd | 8 +-
.../training/app-indexing/enabling-app-indexing.jd | 12 +--
docs/html/training/articles/memory.jd | 2 +-
docs/html/training/articles/security-tips.jd | 6 +-
docs/html/training/auto/start/index.jd | 6 +-
.../training/basics/actionbar/adding-buttons.jd | 8 +-
docs/html/training/basics/actionbar/setting-up.jd | 4 +-
docs/html/training/basics/actionbar/styling.jd | 4 +-
.../training/basics/activity-lifecycle/starting.jd | 2 +-
.../training/basics/firstapp/starting-activity.jd | 4 +-
docs/html/training/basics/fragments/fragment-ui.jd | 4 +-
docs/html/training/basics/intents/filters.jd | 20 ++--
docs/html/training/basics/network-ops/managing.jd | 6 +-
.../basics/supporting-devices/languages.jd | 8 +-
.../basics/supporting-devices/platforms.jd | 4 +-
docs/html/training/camera/photobasics.jd | 2 +-
docs/html/training/camera/videobasics.jd | 2 +-
docs/html/training/custom-views/create-view.jd | 6 +-
.../training/displaying-bitmaps/manage-memory.jd | 2 +-
docs/html/training/gestures/detector.jd | 4 +-
docs/html/training/gestures/movement.jd | 4 +-
docs/html/training/id-auth/custom_auth.jd | 2 +-
docs/html/training/id-auth/identify.jd | 2 +-
.../training/implementing-navigation/ancestral.jd | 12 +--
.../training/implementing-navigation/lateral.jd | 2 +-
.../training/implementing-navigation/temporal.jd | 8 +-
.../training/improving-layouts/loading-ondemand.jd | 2 +-
.../improving-layouts/optimizing-layout.jd | 2 +-
.../training/improving-layouts/reusing-layouts.jd | 16 ++--
.../training/in-app-billing/preparing-iab-app.jd | 2 +-
docs/html/training/keyboard-input/visibility.jd | 10 +-
docs/html/training/location/display-address.jd | 2 +-
docs/html/training/scheduling/alarms.jd | 2 +-
.../testing/ui-testing/uiautomator-testing.jd | 2 +-
.../unit-testing/instrumented-unit-tests.jd | 10 +-
.../testing/unit-testing/local-unit-tests.jd | 30 +++---
docs/html/training/tv/discovery/searchable.jd | 6 +-
docs/html/training/tv/start/start.jd | 2 +-
docs/html/training/volley/request-custom.jd | 10 +-
.../graphics/drawable/AnimationDrawable.java | 4 +-
.../android/graphics/drawable/ScaleDrawable.java | 2 +-
keystore/java/android/security/KeyChain.java | 4 +-
.../java/android/security/keystore/KeyInfo.java | 18 ++--
telecomm/java/android/telecom/InCallService.java | 14 +--
wifi/java/android/net/wifi/WifiManager.java | 2 +-
wifi/java/android/net/wifi/p2p/package.html | 2 +-
wifi/java/android/net/wifi/package.html | 2 +-
240 files changed, 1102 insertions(+), 1105 deletions(-)
diff --git a/core/java/android/annotation/BinderThread.java b/core/java/android/annotation/BinderThread.java
index c69ba10bd748..6f85e0457e0e 100644
--- a/core/java/android/annotation/BinderThread.java
+++ b/core/java/android/annotation/BinderThread.java
@@ -29,10 +29,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* on the binder thread.
*
* Example:
- *
{@code
- * (@BinderThread
+ *
+ * @BinderThread
* public BeamShareData createBeamShareData() { ... }
- * }
+ *
*
* {@hide}
*/
diff --git a/core/java/android/annotation/CallSuper.java b/core/java/android/annotation/CallSuper.java
index 82e27232abb6..b10a28acf7a4 100644
--- a/core/java/android/annotation/CallSuper.java
+++ b/core/java/android/annotation/CallSuper.java
@@ -25,10 +25,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* Denotes that any overriding methods should invoke this method as well.
*
* Example:
- *
{@code
+ *
* @CallSuper
* public abstract void onFocusLost();
- * }
+ *
*
* @hide
*/
diff --git a/core/java/android/annotation/CheckResult.java b/core/java/android/annotation/CheckResult.java
index 787514e9f8c3..97d031a760a6 100644
--- a/core/java/android/annotation/CheckResult.java
+++ b/core/java/android/annotation/CheckResult.java
@@ -29,7 +29,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
*
* Example:
*
{@code
- * public @CheckResult String trim(String s) { return s.trim(); }
+ * public @CheckResult String trim(String s) { return s.trim(); }
* ...
* s.trim(); // this is probably an error
* s = s.trim(); // ok
diff --git a/core/java/android/annotation/ColorInt.java b/core/java/android/annotation/ColorInt.java
index 69d196c6b5e4..4671b1b9f887 100644
--- a/core/java/android/annotation/ColorInt.java
+++ b/core/java/android/annotation/ColorInt.java
@@ -31,7 +31,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
*
* Example:
*
{@code
- * public abstract void setTextColor(@ColorInt int color);
+ * public abstract void setTextColor(@ColorInt int color);
* }
*
* @hide
diff --git a/core/java/android/annotation/FloatRange.java b/core/java/android/annotation/FloatRange.java
index 3a7c15015b49..05b51680b1b0 100644
--- a/core/java/android/annotation/FloatRange.java
+++ b/core/java/android/annotation/FloatRange.java
@@ -28,12 +28,12 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* Denotes that the annotated element should be a float or double in the given range
*
* Example:
- *
{@code
+ *
* @FloatRange(from=0.0,to=1.0)
* public float getAlpha() {
* ...
* }
- * }
+ *
*
* @hide
*/
diff --git a/core/java/android/annotation/IntDef.java b/core/java/android/annotation/IntDef.java
index 3cae9c522829..a18bfa5a5702 100644
--- a/core/java/android/annotation/IntDef.java
+++ b/core/java/android/annotation/IntDef.java
@@ -27,25 +27,24 @@ import static java.lang.annotation.RetentionPolicy.CLASS;
* named constants. If the {@link #flag()} attribute is set to true,
* multiple constants can be combined.
*
- * Example:
- *
{@code
- * @Retention(CLASS)
- * @IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
- * public @interface NavigationMode {}
+ *
+ * @Retention(SOURCE)
+ * @IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
+ * public @interface NavigationMode {}
* public static final int NAVIGATION_MODE_STANDARD = 0;
* public static final int NAVIGATION_MODE_LIST = 1;
* public static final int NAVIGATION_MODE_TABS = 2;
* ...
- * public abstract void setNavigationMode(@NavigationMode int mode);
+ * public abstract void setNavigationMode(@NavigationMode int mode);
* @NavigationMode
* public abstract int getNavigationMode();
- * }
+ *
* For a flag, set the flag attribute:
- * {@code
+ *
* @IntDef(
* flag = true
- * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
- * }
+ * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
+ *
*
* @hide
*/
diff --git a/core/java/android/annotation/IntRange.java b/core/java/android/annotation/IntRange.java
index b489c01dfd69..c043e2db6a98 100644
--- a/core/java/android/annotation/IntRange.java
+++ b/core/java/android/annotation/IntRange.java
@@ -29,12 +29,12 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* Denotes that the annotated element should be an int or long in the given range
*
* Example:
- *
{@code
+ *
* @IntRange(from=0,to=255)
* public int getAlpha() {
* ...
* }
- * }
+ *
*
* @hide
*/
diff --git a/core/java/android/annotation/MainThread.java b/core/java/android/annotation/MainThread.java
index 18a4283b2532..52f8dfb2dbb1 100644
--- a/core/java/android/annotation/MainThread.java
+++ b/core/java/android/annotation/MainThread.java
@@ -29,10 +29,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* on the main thread.
*
* Example:
- *
{@code
+ *
* @MainThread
* public void deliverResult(D data) { ... }
- * }
+ *
*
* {@hide}
*/
diff --git a/core/java/android/annotation/RequiresPermission.java b/core/java/android/annotation/RequiresPermission.java
index 113c0554ccbe..59d419f78ee0 100644
--- a/core/java/android/annotation/RequiresPermission.java
+++ b/core/java/android/annotation/RequiresPermission.java
@@ -32,26 +32,26 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
*
* Example of requiring a single permission:
* {@code
- * @RequiresPermission(Manifest.permission.SET_WALLPAPER)
+ * {@literal @}RequiresPermission(Manifest.permission.SET_WALLPAPER)
* public abstract void setWallpaper(Bitmap bitmap) throws IOException;
*
- * @RequiresPermission(ACCESS_COARSE_LOCATION)
+ * {@literal @}RequiresPermission(ACCESS_COARSE_LOCATION)
* public abstract Location getLastKnownLocation(String provider);
* }
* Example of requiring at least one permission from a set:
* {@code
- * @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
+ * {@literal @}RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
* public abstract Location getLastKnownLocation(String provider);
* }
* Example of requiring multiple permissions:
* {@code
- * @RequiresPermission(allOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
+ * {@literal @}RequiresPermission(allOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
* public abstract Location getLastKnownLocation(String provider);
* }
* Example of requiring separate read and write permissions for a content provider:
* {@code
- * @RequiresPermission.Read(@RequiresPermission(READ_HISTORY_BOOKMARKS))
- * @RequiresPermission.Write(@RequiresPermission(WRITE_HISTORY_BOOKMARKS))
+ * {@literal @}RequiresPermission.Read(@RequiresPermission(READ_HISTORY_BOOKMARKS))
+ * {@literal @}RequiresPermission.Write(@RequiresPermission(WRITE_HISTORY_BOOKMARKS))
* public static final Uri BOOKMARKS_URI = Uri.parse("content://browser/bookmarks");
* }
*
@@ -59,7 +59,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* a permission which depends on the value of the parameter. For example, consider
* {@link android.app.Activity#startActivity(Intent)}:
*
{@code
- * public void startActivity(@RequiresPermission Intent intent) { ... }
+ * public void startActivity(@RequiresPermission Intent intent) { ... }
* }
* Notice how there are no actual permission names listed in the annotation. The actual
* permissions required will depend on the particular intent passed in. For example,
@@ -71,7 +71,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* and the actual permission requirement for this particular intent is described on
* the Intent name itself:
* {@code
- * @RequiresPermission(Manifest.permission.CALL_PHONE)
+ * {@literal @}RequiresPermission(Manifest.permission.CALL_PHONE)
* public static final String ACTION_CALL = "android.intent.action.CALL";
* }
*
@@ -115,7 +115,7 @@ public @interface RequiresPermission {
* When specified on a parameter, the annotation indicates that the method requires
* a permission which depends on the value of the parameter (and typically
* the corresponding field passed in will be one of a set of constants which have
- * been annotated with a {@code @RequiresPermission} annotation.)
+ * been annotated with a @RequiresPermission
annotation.)
*/
@Target({FIELD, METHOD, PARAMETER})
@interface Read {
@@ -128,7 +128,7 @@ public @interface RequiresPermission {
* When specified on a parameter, the annotation indicates that the method requires
* a permission which depends on the value of the parameter (and typically
* the corresponding field passed in will be one of a set of constants which have
- * been annotated with a {@code @RequiresPermission} annotation.)
+ * been annotated with a @RequiresPermission
annotation.)
*/
@Target({FIELD, METHOD, PARAMETER})
@interface Write {
diff --git a/core/java/android/annotation/Size.java b/core/java/android/annotation/Size.java
index 389b819bb41a..7c3e70f658e9 100644
--- a/core/java/android/annotation/Size.java
+++ b/core/java/android/annotation/Size.java
@@ -31,7 +31,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
*
* Example:
*
{@code
- * public void getLocationInWindow(@Size(2) int[] location) {
+ * public void getLocationInWindow(@Size(2) int[] location) {
* ...
* }
* }
diff --git a/core/java/android/annotation/StringDef.java b/core/java/android/annotation/StringDef.java
index 5f7f380c40ec..8c8d5d8794dc 100644
--- a/core/java/android/annotation/StringDef.java
+++ b/core/java/android/annotation/StringDef.java
@@ -26,20 +26,20 @@ import static java.lang.annotation.RetentionPolicy.CLASS;
* type and that its value should be one of the explicitly named constants.
*
* Example:
- *
{@code
+ *
* @Retention(SOURCE)
- * @StringDef({
+ * @StringDef({
* POWER_SERVICE,
* WINDOW_SERVICE,
* LAYOUT_INFLATER_SERVICE
- * })
- * public @interface ServiceName {}
+ * })
+ * public @interface ServiceName {}
* public static final String POWER_SERVICE = "power";
* public static final String WINDOW_SERVICE = "window";
* public static final String LAYOUT_INFLATER_SERVICE = "layout_inflater";
* ...
- * public abstract Object getSystemService(@ServiceName String name);
- * }
+ * public abstract Object getSystemService(@ServiceName String name);
+ *
*
* @hide
*/
diff --git a/core/java/android/annotation/UiThread.java b/core/java/android/annotation/UiThread.java
index b81460023112..53121e7d532f 100644
--- a/core/java/android/annotation/UiThread.java
+++ b/core/java/android/annotation/UiThread.java
@@ -29,10 +29,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* on the UI thread.
*
* Example:
- *
{@code
+ *
* @UiThread
- * public abstract void setText(@NonNull String text) { ... }
- * }
+ * public abstract void setText(@NonNull String text) { ... }
+ *
*
* {@hide}
*/
diff --git a/core/java/android/annotation/WorkerThread.java b/core/java/android/annotation/WorkerThread.java
index dd12e05ed71a..0d2c43e8fc00 100644
--- a/core/java/android/annotation/WorkerThread.java
+++ b/core/java/android/annotation/WorkerThread.java
@@ -29,10 +29,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
* on a worker thread.
*
* Example:
- *
{@code
- * (@WorkerThread
+ *
+ * @WorkerThread
* protected abstract FilterResults performFiltering(CharSequence constraint);
- * }
+ *
*
* {@hide}
*/
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java
index f7aee759f3b9..0b94632aa47f 100644
--- a/core/java/android/app/ActivityManager.java
+++ b/core/java/android/app/ActivityManager.java
@@ -81,9 +81,9 @@ public class ActivityManager {
/**
* {@code
- * <meta-data>} name for a 'home' Activity that declares a package that is to be
+ * } name for a 'home' Activity that declares a package that is to be
* uninstalled in lieu of the declaring one. The package named here must be
- * signed with the same certificate as the one declaring the {@code <meta-data>}.
+ * signed with the same certificate as the one declaring the {@code }.
*/
public static final String META_HOME_ALTERNATE = "android.app.home.alternate";
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index 73bb4266e649..8a87bff2c8b5 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -2891,8 +2891,7 @@ public class Camera {
* y for the Y plane and row c for the U and V
* planes:
*
- * {@code
- *
+ * {@code
* yStride = (int) ceil(width / 16.0) * 16;
* uvStride = (int) ceil( (yStride / 2) / 16.0) * 16;
* ySize = yStride * height;
@@ -2900,8 +2899,9 @@ public class Camera {
* yRowIndex = yStride * y;
* uRowIndex = ySize + uvSize + uvStride * c;
* vRowIndex = ySize + uvStride * c;
- * size = ySize + uvSize * 2;
+ * size = ySize + uvSize * 2;
* }
+ *
*
* @param pixel_format the desired preview picture format, defined by
* one of the {@link android.graphics.ImageFormat} constants. (E.g.,
diff --git a/core/java/android/hardware/package.html b/core/java/android/hardware/package.html
index 5b04da11e4fe..ee54476d97b8 100644
--- a/core/java/android/hardware/package.html
+++ b/core/java/android/hardware/package.html
@@ -4,6 +4,6 @@
not all Android-powered devices support all hardware features, so you should declare hardware
that your application requires using the {@code
-<uses-feature>} manifest element.