From 12be21dc215e2e1feddd59f376ef72748047322c Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 17 Jan 2020 11:11:30 +0000 Subject: [PATCH] Fix some @link tags in @ChangeId docs. We now have javadoc based docs generated from these comments now. Ensure the links can be resolved. Bug: 144927670 Test: Test: m -j offline-sdk-docs Change-Id: Ie9827ad02ad91ab7f01226a3a741c94fa46de730 --- .../notification/NotificationManagerService.java | 5 +++-- .../devicepolicy/DevicePolicyManagerService.java | 10 +++++----- .../android/telephony/PreciseDataConnectionState.java | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 1d493647304ff..5c25c96164cb6 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -372,8 +372,9 @@ public class NotificationManagerService extends SystemService { /** * Apps that post custom toasts in the background will have those blocked. Apps can - * still post toasts created with {@link Toast#makeText(Context, CharSequence, int)} and its - * variants while in the background. + * still post toasts created with + * {@link android.widget.Toast#makeText(Context, CharSequence, int)} and its variants while + * in the background. * * TODO(b/144152069): Add @EnabledAfter(Q) to target R+ after assessing impact on dogfood */ diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index 7fdb4c49e8821..1772d0d4be193 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -522,11 +522,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { /** * For admin apps targeting R+, throw when the app sets password requirement * that is not taken into account at given quality. For example when quality is set - * to {@link DevicePolicyManager#PASSWORD_QUALITY_UNSPECIFIED}, it doesn't make sense to - * require certain password length. If the intent is to require a password of certain length - * having at least NUMERIC quality, the admin should first call - * {@link #setPasswordQuality(ComponentName, int, boolean)} and only then call - * {@link #setPasswordMinimumLength(ComponentName, int, boolean)}. + * to {@link android.app.admin.DevicePolicyManager#PASSWORD_QUALITY_UNSPECIFIED}, it doesn't + * make sense to require certain password length. If the intent is to require a password of + * certain length having at least NUMERIC quality, the admin should first call + * {@link android.app.admin.DevicePolicyManager#setPasswordQuality} and only then call + * {@link android.app.admin.DevicePolicyManager#setPasswordMinimumLength}. * *

Conversely when an admin app targeting R+ lowers password quality, those * requirements that stop making sense are reset to default values. diff --git a/telephony/java/android/telephony/PreciseDataConnectionState.java b/telephony/java/android/telephony/PreciseDataConnectionState.java index 0cfb8c56320a2..094b8b0d16310 100644 --- a/telephony/java/android/telephony/PreciseDataConnectionState.java +++ b/telephony/java/android/telephony/PreciseDataConnectionState.java @@ -135,7 +135,7 @@ public final class PreciseDataConnectionState implements Parcelable { } /** - * To check the SDK version for {@link PreciseDataConnectionState#getDataConnectionState}. + * To check the SDK version for {@code PreciseDataConnectionState#getDataConnectionState}. */ @ChangeId @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)