docs: Replacing {#link with {@link
Several java files had the typo {#link (for cross-references to other
Javadocs) instead of the proper {@link format. This was confusing the
new doc publish tool (Mivi) since that's the format used for {# Django
comments #}.
Fixed a couple of links that had other errors (which prevented building
once the {# -> {@ was done) and other typos.
Replaced throughout the frameworks/base project; I'll need a separate CL
for the AndroidX fixes.
Staged to:
go/dac-stage/reference/android/app/Instrumentation.html
go/dac-stage/reference/android/bluetooth/BluetoothAdapter.html
go/dac-stage/reference/android/bluetooth/BluetoothDevice.html
go/dac-stage/reference/android/bluetooth/BluetoothServerSocket.html
go/dac-stage/reference/android/inputmethodservice/InputMethodService.html
go/dac-stage/reference/android/view/KeyCharacterMap.html
go/dac-stage/reference/android/view/KeyEvent.html
go/dac-stage/reference/android/media/AudioManager.html
go/dac-stage/reference/android/net/wifi/WifiConfiguration.html
(Other files were not in the public Javadocs.)
Bug: 111925950
Test: make ds-docs
Exempt-From-Owner-Approval: Docs-only change
Change-Id: Ia06e1fffd814671289a1caebd5962aedc18a28d7
Merged-In: Ia06e1fffd814671289a1caebd5962aedc18a28d7
This commit is contained in:
@@ -1749,7 +1749,7 @@ public class Instrumentation {
|
||||
/**
|
||||
* Like {@link #execStartActivity(android.content.Context, android.os.IBinder,
|
||||
* android.os.IBinder, String, android.content.Intent, int, android.os.Bundle)},
|
||||
* but for calls from a {#link Fragment}.
|
||||
* but for calls from a {@link Fragment}.
|
||||
*
|
||||
* @param who The Context from which the activity is being started.
|
||||
* @param contextThread The main thread of the Context from which the activity
|
||||
|
||||
@@ -2797,7 +2797,7 @@ public final class BluetoothAdapter {
|
||||
* socket will be encrypted.
|
||||
* <p>Use {@link BluetoothServerSocket#accept} to retrieve incoming connections from a listening
|
||||
* {@link BluetoothServerSocket}.
|
||||
* <p>The system will assign a dynamic PSM value. This PSM value can be read from the {#link
|
||||
* <p>The system will assign a dynamic PSM value. This PSM value can be read from the {@link
|
||||
* BluetoothServerSocket#getPsm()} and this value will be released when this server socket is
|
||||
* closed, Bluetooth is turned off, or the application exits unexpectedly.
|
||||
* <p>The mechanism of disclosing the assigned dynamic PSM value to the initiating peer is
|
||||
@@ -2847,7 +2847,7 @@ public final class BluetoothAdapter {
|
||||
* <p>Use {@link BluetoothServerSocket#accept} to retrieve incoming connections from a listening
|
||||
* {@link BluetoothServerSocket}.
|
||||
* <p>The system will assign a dynamic protocol/service multiplexer (PSM) value. This PSM value
|
||||
* can be read from the {#link BluetoothServerSocket#getPsm()} and this value will be released
|
||||
* can be read from the {@link BluetoothServerSocket#getPsm()} and this value will be released
|
||||
* when this server socket is closed, Bluetooth is turned off, or the application exits
|
||||
* unexpectedly.
|
||||
* <p>The mechanism of disclosing the assigned dynamic PSM value to the initiating peer is
|
||||
|
||||
@@ -1567,7 +1567,7 @@ public final class BluetoothDevice implements Parcelable {
|
||||
* For example, for Bluetooth 2.1 devices, if any of the devices does not
|
||||
* have an input and output capability or just has the ability to
|
||||
* display a numeric key, a secure socket connection is not possible.
|
||||
* In such a case, use {#link createInsecureRfcommSocket}.
|
||||
* In such a case, use {@link createInsecureRfcommSocket}.
|
||||
* For more details, refer to the Security Model section 5.2 (vol 3) of
|
||||
* Bluetooth Core Specification version 2.1 + EDR.
|
||||
* <p>Use {@link BluetoothSocket#connect} to initiate the outgoing
|
||||
@@ -1601,7 +1601,7 @@ public final class BluetoothDevice implements Parcelable {
|
||||
* For example, for Bluetooth 2.1 devices, if any of the devices does not
|
||||
* have an input and output capability or just has the ability to
|
||||
* display a numeric key, a secure socket connection is not possible.
|
||||
* In such a case, use {#link createInsecureRfcommSocket}.
|
||||
* In such a case, use {@link createInsecureRfcommSocket}.
|
||||
* For more details, refer to the Security Model section 5.2 (vol 3) of
|
||||
* Bluetooth Core Specification version 2.1 + EDR.
|
||||
* <p>Use {@link BluetoothSocket#connect} to initiate the outgoing
|
||||
@@ -1658,7 +1658,7 @@ public final class BluetoothDevice implements Parcelable {
|
||||
* For example, for Bluetooth 2.1 devices, if any of the devices does not
|
||||
* have an input and output capability or just has the ability to
|
||||
* display a numeric key, a secure socket connection is not possible.
|
||||
* In such a case, use {#link createInsecureRfcommSocketToServiceRecord}.
|
||||
* In such a case, use {@link #createInsecureRfcommSocketToServiceRecord}.
|
||||
* For more details, refer to the Security Model section 5.2 (vol 3) of
|
||||
* Bluetooth Core Specification version 2.1 + EDR.
|
||||
* <p>Hint: If you are connecting to a Bluetooth serial board then try
|
||||
@@ -1938,7 +1938,7 @@ public final class BluetoothDevice implements Parcelable {
|
||||
* encrypted.
|
||||
* <p> Use this socket if an authenticated socket link is possible. Authentication refers
|
||||
* to the authentication of the link key to prevent man-in-the-middle type of attacks. When a
|
||||
* secure socket connection is not possible, use {#link createInsecureLeL2capCocSocket(int,
|
||||
* secure socket connection is not possible, use {@link createInsecureLeL2capCocSocket(int,
|
||||
* int)}.
|
||||
*
|
||||
* @param transport Bluetooth transport to use, must be {@link #TRANSPORT_LE}
|
||||
|
||||
@@ -201,7 +201,7 @@ public final class BluetoothServerSocket implements Closeable {
|
||||
/**
|
||||
* Returns the assigned dynamic protocol/service multiplexer (PSM) value for the listening L2CAP
|
||||
* Connection-oriented Channel (CoC) server socket. This server socket must be returned by the
|
||||
* {#link BluetoothAdapter.listenUsingL2capCoc(int)} or {#link
|
||||
* {@link BluetoothAdapter.listenUsingL2capCoc(int)} or {@link
|
||||
* BluetoothAdapter.listenUsingInsecureL2capCoc(int)}. The returned value is undefined if this
|
||||
* method is called on non-L2CAP server sockets.
|
||||
*
|
||||
|
||||
@@ -2110,7 +2110,7 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
* Called when the application has reported a new location of its text
|
||||
* cursor. This is only called if explicitly requested by the input method.
|
||||
* The default implementation does nothing.
|
||||
* @deprecated Use {#link onUpdateCursorAnchorInfo(CursorAnchorInfo)} instead.
|
||||
* @deprecated Use {@link #onUpdateCursorAnchorInfo(CursorAnchorInfo)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public void onUpdateCursor(Rect newCursor) {
|
||||
@@ -2177,7 +2177,7 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {#link ExtractEditText} if it is considered to be visible and active. Otherwise
|
||||
* @return {@link ExtractEditText} if it is considered to be visible and active. Otherwise
|
||||
* {@code null} is returned.
|
||||
*/
|
||||
private ExtractEditText getExtractEditTextIfVisible() {
|
||||
|
||||
@@ -103,9 +103,9 @@ public class SoftInputWindow extends Dialog {
|
||||
/**
|
||||
* Set which boundary of the screen the DockWindow sticks to.
|
||||
*
|
||||
* @param gravity The boundary of the screen to stick. See {#link
|
||||
* android.view.Gravity.LEFT}, {#link android.view.Gravity.TOP},
|
||||
* {#link android.view.Gravity.BOTTOM}, {#link
|
||||
* @param gravity The boundary of the screen to stick. See {@link
|
||||
* android.view.Gravity.LEFT}, {@link android.view.Gravity.TOP},
|
||||
* {@link android.view.Gravity.BOTTOM}, {@link
|
||||
* android.view.Gravity.RIGHT}.
|
||||
*/
|
||||
public void setGravity(int gravity) {
|
||||
|
||||
@@ -46,7 +46,7 @@ public class NetworkMisc implements Parcelable {
|
||||
|
||||
/**
|
||||
* Set if the user desires to use this network even if it is unvalidated. This field has meaning
|
||||
* only if {#link explicitlySelected} is true. If it is, this field must also be set to the
|
||||
* only if {@link explicitlySelected} is true. If it is, this field must also be set to the
|
||||
* appropriate value based on previous user choice.
|
||||
*/
|
||||
public boolean acceptUnvalidated;
|
||||
|
||||
@@ -123,7 +123,7 @@ public class KeyCharacterMap implements Parcelable {
|
||||
/**
|
||||
* Modifier keys may be chorded with character keys.
|
||||
*
|
||||
* @see {#link #getModifierBehavior()} for more details.
|
||||
* @see {@link #getModifierBehavior()} for more details.
|
||||
*/
|
||||
public static final int MODIFIER_BEHAVIOR_CHORDED = 0;
|
||||
|
||||
@@ -131,7 +131,7 @@ public class KeyCharacterMap implements Parcelable {
|
||||
* Modifier keys may be chorded with character keys or they may toggle
|
||||
* into latched or locked states when pressed independently.
|
||||
*
|
||||
* @see {#link #getModifierBehavior()} for more details.
|
||||
* @see {@link #getModifierBehavior()} for more details.
|
||||
*/
|
||||
public static final int MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED = 1;
|
||||
|
||||
|
||||
@@ -883,8 +883,8 @@ public class KeyEvent extends InputEvent implements Parcelable {
|
||||
/**
|
||||
* {@link #getAction} value: multiple duplicate key events have
|
||||
* occurred in a row, or a complex string is being delivered. If the
|
||||
* key code is not {#link {@link #KEYCODE_UNKNOWN} then the
|
||||
* {#link {@link #getRepeatCount()} method returns the number of times
|
||||
* key code is not {@link #KEYCODE_UNKNOWN} then the
|
||||
* {@link #getRepeatCount()} method returns the number of times
|
||||
* the given key code should be executed.
|
||||
* Otherwise, if the key code is {@link #KEYCODE_UNKNOWN}, then
|
||||
* this is a sequence of characters as returned by {@link #getCharacters}.
|
||||
|
||||
@@ -4552,7 +4552,7 @@ public class AudioManager {
|
||||
|
||||
/**
|
||||
* The message sent to apps when the contents of the device list changes if they provide
|
||||
* a {#link Handler} object to addOnAudioDeviceConnectionListener().
|
||||
* a {@link Handler} object to addOnAudioDeviceConnectionListener().
|
||||
*/
|
||||
private final static int MSG_DEVICES_CALLBACK_REGISTERED = 0;
|
||||
private final static int MSG_DEVICES_DEVICES_ADDED = 1;
|
||||
|
||||
@@ -4781,7 +4781,7 @@ public final class MediaPlayer2Impl extends MediaPlayer2 {
|
||||
|
||||
private void sendCompleteNotification(int status) {
|
||||
// In {@link #notifyWhenCommandLabelReached} case, a separate callback
|
||||
// {#link #onCommandLabelReached} is already called in {@code process()}.
|
||||
// {@link #onCommandLabelReached} is already called in {@code process()}.
|
||||
if (mMediaCallType == CALL_COMPLETED_NOTIFY_WHEN_COMMAND_LABEL_REACHED) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ import android.util.Log;
|
||||
* <p>To use, connect up the sourceListener callback, and then when executing
|
||||
* the graph, use the SurfaceTexture object passed to the callback to feed
|
||||
* frames into the filter graph. For example, pass the SurfaceTexture into
|
||||
* {#link
|
||||
* {@link
|
||||
* android.hardware.Camera.setPreviewTexture(android.graphics.SurfaceTexture)}.
|
||||
* This filter is intended for applications that need for flexibility than the
|
||||
* CameraSource and MediaSource provide. Note that the application needs to
|
||||
|
||||
@@ -1244,7 +1244,7 @@ public class RankingHelper implements RankingConfig {
|
||||
/**
|
||||
* Dump only the ban information as structured JSON for the stats collector.
|
||||
*
|
||||
* This is intentionally redundant with {#link dumpJson} because the old
|
||||
* This is intentionally redundant with {@link dumpJson} because the old
|
||||
* scraper will expect this format.
|
||||
*
|
||||
* @param filter
|
||||
@@ -1288,7 +1288,7 @@ public class RankingHelper implements RankingConfig {
|
||||
/**
|
||||
* Dump only the channel information as structured JSON for the stats collector.
|
||||
*
|
||||
* This is intentionally redundant with {#link dumpJson} because the old
|
||||
* This is intentionally redundant with {@link dumpJson} because the old
|
||||
* scraper will expect this format.
|
||||
*
|
||||
* @param filter
|
||||
|
||||
@@ -504,7 +504,7 @@ public class WifiConfiguration implements Parcelable {
|
||||
/**
|
||||
* @hide
|
||||
* Universal name for app creating the configuration
|
||||
* see {#link {@link PackageManager#getNameForUid(int)}
|
||||
* see {@link PackageManager#getNameForUid(int)}
|
||||
*/
|
||||
@SystemApi
|
||||
public String creatorName;
|
||||
@@ -512,7 +512,7 @@ public class WifiConfiguration implements Parcelable {
|
||||
/**
|
||||
* @hide
|
||||
* Universal name for app updating the configuration
|
||||
* see {#link {@link PackageManager#getNameForUid(int)}
|
||||
* see {@link PackageManager#getNameForUid(int)}
|
||||
*/
|
||||
@SystemApi
|
||||
public String lastUpdateName;
|
||||
|
||||
Reference in New Issue
Block a user