Merge "DO NOT MERGE - Backported some Autofill Javadoc improvements from master." into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-12-07 23:07:40 +00:00
committed by Android (Google) Code Review
2 changed files with 15 additions and 5 deletions

View File

@@ -439,6 +439,19 @@ import com.android.internal.os.SomeArgs;
*
* save(username, password);
*
* <a name="Privacy"></a>
* <h3>Privacy</h3>
*
* <p>The {@link #onFillRequest(FillRequest, CancellationSignal, FillCallback)} method is called
* without the user content. The Android system strips some properties of the
* {@link android.app.assist.AssistStructure.ViewNode view nodes} passed to this call, but not all
* of them. For example, the data provided in the {@link android.view.ViewStructure.HtmlInfo}
* objects set by {@link android.webkit.WebView} is never stripped out.
*
* <p>Because this data could contain PII (Personally Identifiable Information, such as username or
* email address), the service should only use it locally (i.e., in the app's process) for
* heuristics purposes, but it should not be sent to external servers.
*
* </pre>
*/
public abstract class AutofillService extends Service {

View File

@@ -128,11 +128,8 @@ public final class FillRequest implements Parcelable {
/**
* Gets the extra client state returned from the last {@link
* AutofillService#onFillRequest(FillRequest, android.os.CancellationSignal, FillCallback)
* fill request}, so the service can use it for state management.
*
* <p>Once a {@link AutofillService#onSaveRequest(SaveRequest, SaveCallback)
* save request} is made, the client state is cleared.
* AutofillService#onFillRequest(FillRequest, CancellationSignal, FillCallback)}
* fill request}.
*
* @return The client state.
*/