Skip to content

Commit

Permalink
Fix @links in reference docs. am: 54de774
Browse files Browse the repository at this point in the history
am: ab978c0

Change-Id: Ibec2b85708f9ff923156f4d867c9c2f71c75d41c
  • Loading branch information
Elliot Waite authored and android-build-merger committed Jan 26, 2017
2 parents 32e6da5 + ab978c0 commit de2557f
Show file tree
Hide file tree
Showing 38 changed files with 98 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ public String getPackageName() throws UiObjectNotFoundException {
*
* @return Rect
* @throws UiObjectNotFoundException
* @see {@link #getBounds()}
* @see #getBounds()
* @since API Level 17
*/
public Rect getVisibleBounds() throws UiObjectNotFoundException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void connect() {
* actions such as dialing 911 or posting messages to public forums, etc.
*
* @param isSet True to set as monkey test. False to set as regular functional test (default).
* @see {@link ActivityManager#isUserAMonkey()}
* @see ActivityManager#isUserAMonkey()
*/
public void setRunAsMonkey(boolean isSet) {
IActivityManager am = ActivityManagerNative.getDefault();
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/accounts/AbstractAccountAuthenticator.java
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response,
* @param account the account to clone, will never be null
* @return a Bundle result or null if the result is to be returned via the response.
* @throws NetworkErrorException
* @see {@link #addAccountFromCredentials(AccountAuthenticatorResponse, Account, Bundle)}
* @see #addAccountFromCredentials(AccountAuthenticatorResponse, Account, Bundle)
*/
public Bundle getAccountCredentialsForCloning(final AccountAuthenticatorResponse response,
final Account account) throws NetworkErrorException {
Expand All @@ -732,7 +732,7 @@ public void run() {
* provided by {@link #getAccountCredentialsForCloning(AccountAuthenticatorResponse, Account)}.
* @return a Bundle result or null if the result is to be returned via the response.
* @throws NetworkErrorException
* @see {@link #getAccountCredentialsForCloning(AccountAuthenticatorResponse, Account)}
* @see #getAccountCredentialsForCloning(AccountAuthenticatorResponse, Account)
*/
public Bundle addAccountFromCredentials(final AccountAuthenticatorResponse response,
Account account,
Expand Down
18 changes: 9 additions & 9 deletions core/java/android/app/Activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -4213,7 +4213,7 @@ public void startActivityForResult(@RequiresPermission Intent intent, int reques
* @param requestCode If >= 0, this code will be returned in
* onActivityResult() when the activity exits.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws android.content.ActivityNotFoundException
Expand Down Expand Up @@ -4422,7 +4422,7 @@ public void startIntentSenderForResult(IntentSender intent, int requestCode,
* <var>flagsMask</var>
* @param extraFlags Always set to 0.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details. If options
* have also been supplied by the IntentSender, options given here will
* override any that conflict with those given by the IntentSender.
Expand Down Expand Up @@ -4507,7 +4507,7 @@ public void startActivity(Intent intent) {
*
* @param intent The intent to start.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws android.content.ActivityNotFoundException
Expand Down Expand Up @@ -4556,7 +4556,7 @@ public void startActivities(Intent[] intents) {
*
* @param intents The intents to start.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws android.content.ActivityNotFoundException
Expand Down Expand Up @@ -4605,7 +4605,7 @@ public void startIntentSender(IntentSender intent,
* <var>flagsMask</var>
* @param extraFlags Always set to 0.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details. If options
* have also been supplied by the IntentSender, options given here will
* override any that conflict with those given by the IntentSender.
Expand Down Expand Up @@ -4665,7 +4665,7 @@ public boolean startActivityIfNeeded(@RequiresPermission @NonNull Intent intent,
* onActivityResult() when the activity exits, as described in
* {@link #startActivityForResult}.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @return If a new activity was launched then true is returned; otherwise
Expand Down Expand Up @@ -4742,7 +4742,7 @@ public boolean startNextMatchingActivity(@RequiresPermission @NonNull Intent int
* your own activity; the only changes you can make are to the extras
* inside of it.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @return Returns a boolean indicating whether there was another Activity
Expand Down Expand Up @@ -4797,7 +4797,7 @@ public void startActivityFromChild(@NonNull Activity child, @RequiresPermission
* @param intent The intent to start.
* @param requestCode Reply request code. < 0 if reply is not requested.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws android.content.ActivityNotFoundException
Expand Down Expand Up @@ -4850,7 +4850,7 @@ public void startActivityFromFragment(@NonNull Fragment fragment,
* @param intent The intent to start.
* @param requestCode Reply request code. < 0 if reply is not requested.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws android.content.ActivityNotFoundException
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/app/ActivityManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2183,13 +2183,13 @@ public static class RunningServiceInfo implements Parcelable {
public static final int FLAG_FOREGROUND = 1<<1;

/**
* Bit for {@link #flags): set if the service is running in a
* Bit for {@link #flags}: set if the service is running in a
* core system process.
*/
public static final int FLAG_SYSTEM_PROCESS = 1<<2;

/**
* Bit for {@link #flags): set if the service is running in a
* Bit for {@link #flags}: set if the service is running in a
* persistent process.
*/
public static final int FLAG_PERSISTENT_PROCESS = 1<<3;
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/app/Fragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ public void startActivity(Intent intent) {
*
* @param intent The intent to start.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*/
public void startActivity(Intent intent, Bundle options) {
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/app/TaskStackBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void startActivities(Bundle options, UserHandle userHandle) {
* Start the task stack constructed by this builder.
*
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*/
public void startActivities(Bundle options) {
Expand Down Expand Up @@ -259,7 +259,7 @@ public PendingIntent getPendingIntent(int requestCode, @PendingIntent.Flags int
* {@link Intent#fillIn(Intent, int)} to control which unspecified parts of the
* intent that can be supplied when the actual send happens.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @return The obtained PendingIntent
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/app/backup/BackupAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ private void applyXmlFiltersAndDoFullBackupForDomain(String packageName, String
* <p class="note">Attempting to back up files in directories that are ignored by
* the backup system will have no effect. For example, if the app calls this method
* with a file inside the {@link #getNoBackupFilesDir()} directory, it will be ignored.
* See {@link #onFullBackup(FullBackupDataOutput) for details on what directories
* See {@link #onFullBackup(FullBackupDataOutput)} for details on what directories
* are excluded from backups.
*
* @param file The file to be backed up. The file must exist and be readable by
Expand Down
5 changes: 3 additions & 2 deletions core/java/android/appwidget/AppWidgetHostView.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ public LayoutParams generateLayoutParams(AttributeSet attrs) {
}

/**
* Sets an executor which can be used for asynchronously inflating and applying the remoteviews.
* @see {@link RemoteViews#applyAsync(Context, ViewGroup, RemoteViews.OnViewAppliedListener, Executor)}
* Sets an executor which can be used for asynchronously inflating. CPU intensive tasks like
* view inflation or loading images will be performed on the executor. The updates will still
* be applied on the UI thread.
*
* @param executor the executor to use or null.
* @hide
Expand Down
6 changes: 3 additions & 3 deletions core/java/android/content/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ public boolean canStartActivityForResult() {
*
* @param intents An array of Intents to be started.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws ActivityNotFoundException &nbsp;
Expand Down Expand Up @@ -1696,7 +1696,7 @@ public boolean canStartActivityForResult() {
* @param intents An array of Intents to be started.
* @param options Additional options for how the Activity should be started.
* @param userHandle The user for whom to launch the activities
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details.
*
* @throws ActivityNotFoundException &nbsp;
Expand Down Expand Up @@ -1745,7 +1745,7 @@ public abstract void startIntentSender(IntentSender intent,
* <var>flagsMask</var>
* @param extraFlags Always set to 0.
* @param options Additional options for how the Activity should be started.
* See {@link android.content.Context#startActivity(Intent, Bundle)
* See {@link android.content.Context#startActivity(Intent, Bundle)}
* Context.startActivity(Intent, Bundle)} for more details. If options
* have also been supplied by the IntentSender, options given here will
* override any that conflict with those given by the IntentSender.
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/content/Intent.java
Original file line number Diff line number Diff line change
Expand Up @@ -8129,7 +8129,7 @@ public void setSourceBounds(Rect r) {
* @return Returns a bit mask of {@link #FILL_IN_ACTION},
* {@link #FILL_IN_DATA}, {@link #FILL_IN_CATEGORIES}, {@link #FILL_IN_PACKAGE},
* {@link #FILL_IN_COMPONENT}, {@link #FILL_IN_SOURCE_BOUNDS},
* {@link #FILL_IN_SELECTOR} and {@link #FILL_IN_CLIP_DATA indicating which fields were
* {@link #FILL_IN_SELECTOR} and {@link #FILL_IN_CLIP_DATA} indicating which fields were
* changed.
*/
@FillInFlags
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/content/SyncRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected SyncRequest(SyncRequest.Builder b) {
}

/**
* Builder class for a @link SyncRequest. As you build your SyncRequest this class will also
* Builder class for a {@link SyncRequest}. As you build your SyncRequest this class will also
* perform validation.
*/
public static class Builder {
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/hardware/usb/UsbEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public int getEndpointNumber() {
* if the direction is host to device, and
* {@link UsbConstants#USB_DIR_IN} if the
* direction is device to host.
* @see {@link UsbConstants#USB_DIR_IN}
* @see {@link UsbConstants#USB_DIR_OUT}
* @see UsbConstants#USB_DIR_IN
* @see UsbConstants#USB_DIR_OUT
*
* @return the endpoint's direction
*/
Expand Down
8 changes: 4 additions & 4 deletions core/java/android/inputmethodservice/InputMethodService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2370,16 +2370,16 @@ public boolean onExtractTextContextMenuItem(int id) {
}
return true;
}

/**
* Return text that can be used as a button label for the given
* {@link EditorInfo#imeOptions EditorInfo.imeOptions}. Returns null
* if there is no action requested. Note that there is no guarantee that
* the returned text will be relatively short, so you probably do not
* want to use it as text on a soft keyboard key label.
*
* @param imeOptions The value from @link EditorInfo#imeOptions EditorInfo.imeOptions}.
*
*
* @param imeOptions The value from {@link EditorInfo#imeOptions EditorInfo.imeOptions}.
*
* @return Returns a label to use, or null if there is no action.
*/
public CharSequence getTextForImeAction(int imeOptions) {
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/net/Uri.java
Original file line number Diff line number Diff line change
Expand Up @@ -1746,8 +1746,8 @@ public boolean getBooleanQueryParameter(String key, boolean defaultValue) {
* begin with and a scheme component cannot be found.
*
* @return normalized Uri (never null)
* @see {@link android.content.Intent#setData}
* @see {@link android.content.Intent#setDataAndNormalize}
* @see android.content.Intent#setData
* @see android.content.Intent#setDataAndNormalize
*/
public Uri normalizeScheme() {
String scheme = getScheme();
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/service/carrier/CarrierService.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ public CarrierService() {
* <p>
* Requires Permission:
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
* Or the calling app has carrier privileges.
* @see {@link android.telephony.TelephonyManager#hasCarrierPrivileges}
* or the calling app has carrier privileges.
*
* @param active Whether the carrier network change is or shortly will be
* active. Set this value to true to begin showing
* alternative UI and false to stop.
* @see android.telephony.TelephonyManager#hasCarrierPrivileges
*/
public final void notifyCarrierNetworkChange(boolean active) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public void unregisterAsSystemService() throws RemoteException {
}

/**
* Request that the listener be rebound, after a previous call to (@link requestUnbind).
* Request that the listener be rebound, after a previous call to {@link #requestUnbind}.
*
* <p>This method will fail for listeners that have
* not been granted the permission by the user.
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/text/Editable.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public interface Editable
public Editable append(char text);

/**
* Convenience for replace(0, length(), "", 0, 0)
* @see #replace(int, int, CharSequence, int, int)
* Convenience for replace(0, length(), "", 0, 0).
* Note that this clears the text, not the spans;
* use {@link #clearSpans} if you need that.
* @see #replace(int, int, CharSequence, int, int)
*/
public void clear();

Expand Down
2 changes: 1 addition & 1 deletion core/java/android/text/style/ImageSpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ImageSpan(Bitmap b) {
}

/**
* @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead.
* @deprecated Use {@link #ImageSpan(Context, Bitmap, int)} instead.
*/
@Deprecated
public ImageSpan(Bitmap b, int verticalAlignment) {
Expand Down
16 changes: 8 additions & 8 deletions core/java/android/text/style/TtsSpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public DecimalBuilder() {
/**
* Creates a TtsSpan of type {@link #TYPE_DECIMAL} and sets the
* {@link #ARG_INTEGER_PART} and {@link #ARG_FRACTIONAL_PART} arguments.
* @see {@link #setArgumentsFromDouble(double, int, int)
* @see #setArgumentsFromDouble(double, int, int)
*/
public DecimalBuilder(double number,
int minimumFractionDigits,
Expand Down Expand Up @@ -1082,7 +1082,7 @@ public MeasureBuilder setDenominator(String denominator) {
* Sets the {@link #ARG_UNIT} argument.
* @param unit The unit of the measure.
* @return This instance.
* @see {@link TtsSpan.ARG_UNIT}
* @see TtsSpan.ARG_UNIT
*/
public MeasureBuilder setUnit(String unit) {
return setStringArgument(TtsSpan.ARG_UNIT, unit);
Expand Down Expand Up @@ -1116,7 +1116,7 @@ public TimeBuilder(int hours, int minutes) {
* Sets the {@link #ARG_HOURS} argument.
* @param hours The value to be set for hours. See {@link #ARG_HOURS}.
* @return This instance.
* @see {@link #ARG_HOURS}
* @see #ARG_HOURS
*/
public TimeBuilder setHours(int hours) {
return setIntArgument(TtsSpan.ARG_HOURS, hours);
Expand All @@ -1127,7 +1127,7 @@ public TimeBuilder setHours(int hours) {
* @param minutes The value to be set for minutes. See
* {@link #ARG_MINUTES}.
* @return This instance.
* @see {@link #ARG_MINUTES}
* @see #ARG_MINUTES
*/
public TimeBuilder setMinutes(int minutes) {
return setIntArgument(TtsSpan.ARG_MINUTES, minutes);
Expand Down Expand Up @@ -1177,7 +1177,7 @@ public DateBuilder(Integer weekday,
* @param weekday The value to be set for weekday. See
* {@link #ARG_WEEKDAY}.
* @return This instance.
* @see {@link #ARG_WEEKDAY}
* @see #ARG_WEEKDAY
*/
public DateBuilder setWeekday(int weekday) {
return setIntArgument(TtsSpan.ARG_WEEKDAY, weekday);
Expand All @@ -1187,7 +1187,7 @@ public DateBuilder setWeekday(int weekday) {
* Sets the {@link #ARG_DAY} argument.
* @param day The value to be set for day. See {@link #ARG_DAY}.
* @return This instance.
* @see {@link #ARG_DAY}
* @see #ARG_DAY
*/
public DateBuilder setDay(int day) {
return setIntArgument(TtsSpan.ARG_DAY, day);
Expand All @@ -1197,7 +1197,7 @@ public DateBuilder setDay(int day) {
* Sets the {@link #ARG_MONTH} argument.
* @param month The value to be set for month. See {@link #ARG_MONTH}.
* @return This instance.
* @see {@link #ARG_MONTH}
* @see #ARG_MONTH
*/
public DateBuilder setMonth(int month) {
return setIntArgument(TtsSpan.ARG_MONTH, month);
Expand All @@ -1207,7 +1207,7 @@ public DateBuilder setMonth(int month) {
* Sets the {@link #ARG_YEAR} argument.
* @param year The value to be set for year. See {@link #ARG_YEAR}.
* @return This instance.
* @see {@link #ARG_YEAR}
* @see #ARG_YEAR
*/
public DateBuilder setYear(int year) {
return setIntArgument(TtsSpan.ARG_YEAR, year);
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/view/FrameMetrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public final class FrameMetrics {
/**
* Identifiers for metrics available for each frame.
*
* {@see {@link #getMetric(int)}}
* {@see #getMetric(int)}
* @hide
*/
@IntDef({
Expand Down
Loading

0 comments on commit de2557f

Please sign in to comment.