diff options
| author | Nikita Dubrovsky <dubrovsky@google.com> | 2021-01-31 16:50:29 -0800 |
|---|---|---|
| committer | Nikita Dubrovsky <dubrovsky@google.com> | 2021-03-24 13:46:34 -0700 |
| commit | 0cdc94520147d0c563d139fc81241df84ca26f43 (patch) | |
| tree | ca79eec4d3a5e19964c2b68f58e89ca31c48713d /core/java/android | |
| parent | 3ca8fa18f963a32b6e30b030df729ca4750d6ce8 (diff) | |
Update some autofill var names for clarity
Renamed "componentName" to "clientActivity" and "uid" to "clientUid" to
avoid ambiguity.
Bug: 178978545
Test: Presubmit
Change-Id: I66246168bd71f577b9494e91b3a5df086c491cb1
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/autofill/AutofillManager.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/java/android/view/autofill/AutofillManager.java b/core/java/android/view/autofill/AutofillManager.java index b0b9d244f0d8..a169cb0f98fa 100644 --- a/core/java/android/view/autofill/AutofillManager.java +++ b/core/java/android/view/autofill/AutofillManager.java @@ -1921,20 +1921,20 @@ public final class AutofillManager { if (client == null) return; // NOTE: getClient() already logged it.. final SyncResultReceiver receiver = new SyncResultReceiver(SYNC_CALLS_TIMEOUT_MS); - final ComponentName componentName = client.autofillClientGetComponentName(); + final ComponentName clientActivity = client.autofillClientGetComponentName(); if (!mEnabledForAugmentedAutofillOnly && mOptions != null - && mOptions.isAutofillDisabledLocked(componentName)) { + && mOptions.isAutofillDisabledLocked(clientActivity)) { if (mOptions.isAugmentedAutofillEnabled(mContext)) { if (sDebug) { - Log.d(TAG, "startSession(" + componentName + "): disabled by service but " - + "whitelisted for augmented autofill"); + Log.d(TAG, "startSession(" + clientActivity + "): disabled by service but " + + "allowlisted for augmented autofill"); flags |= FLAG_ADD_CLIENT_ENABLED_FOR_AUGMENTED_AUTOFILL_ONLY; } } else { if (sDebug) { - Log.d(TAG, "startSession(" + componentName + "): ignored because " - + "disabled by service and not whitelisted for augmented autofill"); + Log.d(TAG, "startSession(" + clientActivity + "): ignored because " + + "disabled by service and not allowlisted for augmented autofill"); } setSessionFinished(AutofillManager.STATE_DISABLED_BY_SERVICE, null); client.autofillClientResetableStateAvailable(); @@ -1951,7 +1951,7 @@ public final class AutofillManager { mService.startSession(client.autofillClientGetActivityToken(), mServiceClient.asBinder(), id, bounds, value, mContext.getUserId(), - mCallback != null, flags, componentName, + mCallback != null, flags, clientActivity, isCompatibilityModeEnabledLocked(), receiver); mSessionId = receiver.getIntResult(); if (mSessionId != NO_SESSION) { @@ -1959,7 +1959,7 @@ public final class AutofillManager { } final int extraFlags = receiver.getOptionalExtraIntResult(0); if ((extraFlags & RECEIVER_FLAG_SESSION_FOR_AUGMENTED_AUTOFILL_ONLY) != 0) { - if (sDebug) Log.d(TAG, "startSession(" + componentName + "): for augmented only"); + if (sDebug) Log.d(TAG, "startSession(" + clientActivity + "): for augmented only"); mForAugmentedAutofillOnly = true; } client.autofillClientResetableStateAvailable(); |
