Merge "docs: fixing errors found with lint check" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-10-09 20:04:29 +00:00
committed by Android (Google) Code Review
10 changed files with 23 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ public class AccountAuthenticatorActivity extends Activity {
} }
/** /**
* Retreives the AccountAuthenticatorResponse from either the intent of the icicle, if the * Retrieves the AccountAuthenticatorResponse from either the intent of the icicle, if the
* icicle is non-zero. * icicle is non-zero.
* @param icicle the save instance data of this Activity, may be null * @param icicle the save instance data of this Activity, may be null
*/ */

View File

@@ -76,7 +76,7 @@ public abstract class Keyframe implements Cloneable {
* @param fraction The time, expressed as a value between 0 and 1, representing the fraction * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
* of time elapsed of the overall animation duration. * of time elapsed of the overall animation duration.
* @param value The value that the object will animate to as the animation time approaches * @param value The value that the object will animate to as the animation time approaches
* the time in this keyframe, and the the value animated from as the time passes the time in * the time in this keyframe, and the value animated from as the time passes the time in
* this keyframe. * this keyframe.
*/ */
public static Keyframe ofInt(float fraction, int value) { public static Keyframe ofInt(float fraction, int value) {
@@ -108,7 +108,7 @@ public abstract class Keyframe implements Cloneable {
* @param fraction The time, expressed as a value between 0 and 1, representing the fraction * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
* of time elapsed of the overall animation duration. * of time elapsed of the overall animation duration.
* @param value The value that the object will animate to as the animation time approaches * @param value The value that the object will animate to as the animation time approaches
* the time in this keyframe, and the the value animated from as the time passes the time in * the time in this keyframe, and the value animated from as the time passes the time in
* this keyframe. * this keyframe.
*/ */
public static Keyframe ofFloat(float fraction, float value) { public static Keyframe ofFloat(float fraction, float value) {
@@ -140,7 +140,7 @@ public abstract class Keyframe implements Cloneable {
* @param fraction The time, expressed as a value between 0 and 1, representing the fraction * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
* of time elapsed of the overall animation duration. * of time elapsed of the overall animation duration.
* @param value The value that the object will animate to as the animation time approaches * @param value The value that the object will animate to as the animation time approaches
* the time in this keyframe, and the the value animated from as the time passes the time in * the time in this keyframe, and the value animated from as the time passes the time in
* this keyframe. * this keyframe.
*/ */
public static Keyframe ofObject(float fraction, Object value) { public static Keyframe ofObject(float fraction, Object value) {

View File

@@ -2901,7 +2901,7 @@ public class Activity extends ContextThemeWrapper
/** /**
* Use with {@link #setDefaultKeyMode} to specify that unhandled keystrokes * Use with {@link #setDefaultKeyMode} to specify that unhandled keystrokes
* will start an application-defined search. (If the application or activity does not * will start an application-defined search. (If the application or activity does not
* actually define a search, the the keys will be ignored.) * actually define a search, the keys will be ignored.)
* *
* <p>See {@link android.app.SearchManager android.app.SearchManager} for more details. * <p>See {@link android.app.SearchManager android.app.SearchManager} for more details.
* *
@@ -3201,7 +3201,7 @@ public class Activity extends ContextThemeWrapper
* interacted with the device in some way while your activity is running. * interacted with the device in some way while your activity is running.
* This callback and {@link #onUserLeaveHint} are intended to help * This callback and {@link #onUserLeaveHint} are intended to help
* activities manage status bar notifications intelligently; specifically, * activities manage status bar notifications intelligently; specifically,
* for helping activities determine the proper time to cancel a notfication. * for helping activities determine the proper time to cancel a notification.
* *
* <p>All calls to your activity's {@link #onUserLeaveHint} callback will * <p>All calls to your activity's {@link #onUserLeaveHint} callback will
* be accompanied by calls to {@link #onUserInteraction}. This * be accompanied by calls to {@link #onUserInteraction}. This
@@ -7828,7 +7828,7 @@ public class Activity extends ContextThemeWrapper
} }
/** /**
* Specifies whether an {@link Activity} should be shown on top of the the lock screen whenever * Specifies whether an {@link Activity} should be shown on top of the lock screen whenever
* the lockscreen is up and the activity is resumed. Normally an activity will be transitioned * the lockscreen is up and the activity is resumed. Normally an activity will be transitioned
* to the stopped state if it is started while the lockscreen is up, but with this flag set the * to the stopped state if it is started while the lockscreen is up, but with this flag set the
* activity will remain in the resumed state visible on-top of the lock screen. This value can * activity will remain in the resumed state visible on-top of the lock screen. This value can

View File

@@ -1474,7 +1474,7 @@ public class ActivityOptions {
} }
/** /**
* Ask the the system track that time the user spends in the app being launched, and * Ask the system track that time the user spends in the app being launched, and
* report it back once done. The report will be sent to the given receiver, with * report it back once done. The report will be sent to the given receiver, with
* the extras {@link #EXTRA_USAGE_TIME_REPORT} and {@link #EXTRA_USAGE_TIME_REPORT_PACKAGES} * the extras {@link #EXTRA_USAGE_TIME_REPORT} and {@link #EXTRA_USAGE_TIME_REPORT_PACKAGES}
* filled in. * filled in.

View File

@@ -2247,7 +2247,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
} }
/** /**
* Sets whether the the exit transition and enter transition overlap or not. * Sets whether the exit transition and enter transition overlap or not.
* When true, the enter transition will start as soon as possible. When false, the * When true, the enter transition will start as soon as possible. When false, the
* enter transition will wait until the exit transition completes before starting. * enter transition will wait until the exit transition completes before starting.
* *
@@ -2260,7 +2260,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
} }
/** /**
* Returns whether the the exit transition and enter transition overlap or not. * Returns whether the exit transition and enter transition overlap or not.
* When true, the enter transition will start as soon as possible. When false, the * When true, the enter transition will start as soon as possible. When false, the
* enter transition will wait until the exit transition completes before starting. * enter transition will wait until the exit transition completes before starting.
* *
@@ -2274,7 +2274,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
} }
/** /**
* Sets whether the the return transition and reenter transition overlap or not. * Sets whether the return transition and reenter transition overlap or not.
* When true, the reenter transition will start as soon as possible. When false, the * When true, the reenter transition will start as soon as possible. When false, the
* reenter transition will wait until the return transition completes before starting. * reenter transition will wait until the return transition completes before starting.
* *
@@ -2287,7 +2287,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
} }
/** /**
* Returns whether the the return transition and reenter transition overlap or not. * Returns whether the return transition and reenter transition overlap or not.
* When true, the reenter transition will start as soon as possible. When false, the * When true, the reenter transition will start as soon as possible. When false, the
* reenter transition will wait until the return transition completes before starting. * reenter transition will wait until the return transition completes before starting.
* *

View File

@@ -33,7 +33,6 @@ import android.os.IBinder;
import android.os.RemoteException; import android.os.RemoteException;
import android.os.ServiceManager; import android.os.ServiceManager;
import android.os.ServiceManager.ServiceNotFoundException; import android.os.ServiceManager.ServiceNotFoundException;
import android.os.UserHandle;
import android.provider.Settings; import android.provider.Settings;
import android.service.persistentdata.IPersistentDataBlockService; import android.service.persistentdata.IPersistentDataBlockService;
import android.util.Log; import android.util.Log;
@@ -557,7 +556,7 @@ public class KeyguardManager {
* This will, if the keyguard is secure, bring up the unlock screen of * This will, if the keyguard is secure, bring up the unlock screen of
* the keyguard. * the keyguard.
* *
* @param callback Let's you know whether the operation was succesful and * @param callback Lets you know whether the operation was successful and
* it is safe to launch anything that would normally be considered safe * it is safe to launch anything that would normally be considered safe
* once the user has gotten past the keyguard. * once the user has gotten past the keyguard.
*/ */

View File

@@ -6183,7 +6183,7 @@ public class Notification implements Parcelable
public abstract boolean areNotificationsVisiblyDifferent(Style other); public abstract boolean areNotificationsVisiblyDifferent(Style other);
/** /**
* @return the the text that should be displayed in the statusBar when heads-upped. * @return the text that should be displayed in the statusBar when heads-upped.
* If {@code null} is returned, the default implementation will be used. * If {@code null} is returned, the default implementation will be used.
* *
* @hide * @hide
@@ -6670,7 +6670,7 @@ public class Notification implements Parcelable
} }
/** /**
* @return the the text that should be displayed in the statusBar when heads upped. * @return the text that should be displayed in the statusBar when heads upped.
* If {@code null} is returned, the default implementation will be used. * If {@code null} is returned, the default implementation will be used.
* *
* @hide * @hide
@@ -7326,7 +7326,7 @@ public class Notification implements Parcelable
} }
/** /**
* Get the the Uri pointing to the content of the message. Can be null, in which case * Get the Uri pointing to the content of the message. Can be null, in which case
* {@see #getText()} is used. * {@see #getText()} is used.
*/ */
public Uri getDataUri() { public Uri getDataUri() {

View File

@@ -168,7 +168,7 @@ public class SearchManager
* Intent extra data key: Use this key with Intent.ACTION_SEARCH and * Intent extra data key: Use this key with Intent.ACTION_SEARCH and
* {@link android.content.Intent#getStringExtra content.Intent.getStringExtra()} * {@link android.content.Intent#getStringExtra content.Intent.getStringExtra()}
* to obtain the action message that was defined for a particular search action key and/or * to obtain the action message that was defined for a particular search action key and/or
* suggestion. It will be null if the search was launched by typing "enter", touched the the * suggestion. It will be null if the search was launched by typing "enter", touching the
* "GO" button, or other means not involving any action key. * "GO" button, or other means not involving any action key.
*/ */
public final static String ACTION_MSG = "action_msg"; public final static String ACTION_MSG = "action_msg";
@@ -403,7 +403,7 @@ public class SearchManager
* Column name for suggestions cursor. <i>Optional.</i> If your content is rentable, you * Column name for suggestions cursor. <i>Optional.</i> If your content is rentable, you
* should provide this column to specify the displayable string representation of the rental * should provide this column to specify the displayable string representation of the rental
* price of your content including the currency and the amount. If it's free, you should * price of your content including the currency and the amount. If it's free, you should
* provide localized string to specify that it's free. This column can be ommitted if the * provide localized string to specify that it's free. This column can be omitted if the
* content is not applicable to rent. * content is not applicable to rent.
*/ */
public final static String SUGGEST_COLUMN_RENTAL_PRICE = "suggest_rental_price"; public final static String SUGGEST_COLUMN_RENTAL_PRICE = "suggest_rental_price";
@@ -575,7 +575,7 @@ public class SearchManager
* *
* @param initialQuery A search string can be pre-entered here, but this * @param initialQuery A search string can be pre-entered here, but this
* is typically null or empty. * is typically null or empty.
* @param selectInitialQuery If true, the intial query will be preselected, which means that * @param selectInitialQuery If true, the initial query will be preselected, which means that
* any further typing will replace it. This is useful for cases where an entire pre-formed * any further typing will replace it. This is useful for cases where an entire pre-formed
* query is being inserted. If false, the selection point will be placed at the end of the * query is being inserted. If false, the selection point will be placed at the end of the
* inserted query. This is useful when the inserted query is text that the user entered, * inserted query. This is useful when the inserted query is text that the user entered,

View File

@@ -3289,7 +3289,7 @@ public class DevicePolicyManager {
* restrictions on the parent profile. * restrictions on the parent profile.
* *
* @param admin The name of the admin component to check, or {@code null} to aggregate * @param admin The name of the admin component to check, or {@code null} to aggregate
* accross all participating admins. * across all participating admins.
* @return The timeout in milliseconds or 0 if not configured for the provided admin. * @return The timeout in milliseconds or 0 if not configured for the provided admin.
*/ */
public long getRequiredStrongAuthTimeout(@Nullable ComponentName admin) { public long getRequiredStrongAuthTimeout(@Nullable ComponentName admin) {

View File

@@ -1002,7 +1002,7 @@ public class AssistStructure implements Parcelable {
} }
/** /**
* Gets the the type of value that can be used to autofill the view contents. * Gets the type of value that can be used to autofill the view contents.
* *
* <p>It's only relevant when the {@link AssistStructure} is used for autofill purposes. * <p>It's only relevant when the {@link AssistStructure} is used for autofill purposes.
* *
@@ -1028,7 +1028,7 @@ public class AssistStructure implements Parcelable {
} }
/** /**
* Gets the the value of this view. * Gets the value of this view.
* *
* <p>It's only relevant when the {@link AssistStructure} is used for autofill purposes, * <p>It's only relevant when the {@link AssistStructure} is used for autofill purposes,
* not for assist purposes. * not for assist purposes.
@@ -1350,7 +1350,7 @@ public class AssistStructure implements Parcelable {
} }
/** /**
* Returns the the list of locales associated with this view. * Returns the list of locales associated with this view.
*/ */
@Nullable public LocaleList getLocaleList() { @Nullable public LocaleList getLocaleList() {
return mLocaleList; return mLocaleList;