From 2ef4cf8fdef3f26ac42d949229b3e66119eb0142 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 8 Feb 2024 18:17:03 +0000 Subject: Add API flag checks in test ag/25918135 missed keeping some tests under the API check. Also, correcting some documentation and using the codename until the release when the correct sdk version would be available. Bug: 286539356 Test: manual Test: atest ParserConfigValidTest Change-Id: I8a9175131eb364b9eee7947ca8be65882ad57db6 --- .../java/android/safetycenter/config/SafetySource.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'framework-s/java') diff --git a/framework-s/java/android/safetycenter/config/SafetySource.java b/framework-s/java/android/safetycenter/config/SafetySource.java index 5502ca950..ff0c66e24 100644 --- a/framework-s/java/android/safetycenter/config/SafetySource.java +++ b/framework-s/java/android/safetycenter/config/SafetySource.java @@ -808,18 +808,18 @@ public final class SafetySource implements Parcelable { } /** - * Sets the resource id of the title for work of this safety source. + * Sets the resource id of the title for private profile of this safety source. * *

The id must refer to a string resource that is either accessible from any resource * context or that is accessible from the same resource context that was used to load the * Safety Center configuration. The id defaults to {@link Resources#ID_NULL} when a title - * for work is not provided. + * for private profile is not provided. * - *

The title for work is required if the profile property of the source is set to {@link - * SafetySource#PROFILE_ALL} and either the source is of type static or the source is a - * source of type dynamic that is not hidden and that does not provide search terms. The - * title for work is prohibited for sources of type issue-only and if the profile property - * of the source is not set to {@link SafetySource#PROFILE_ALL}. + *

The title for private profile is required if the profile property of the source is set + * to {@link SafetySource#PROFILE_ALL} and either the source is of type static or the source + * is a source of type dynamic that is not hidden and that does not provide search terms. + * The title for private profile is prohibited for sources of type issue-only and if the + * profile property of the source is not set to {@link SafetySource#PROFILE_ALL}. */ @FlaggedApi(Flags.FLAG_PRIVATE_PROFILE_TITLE_API) @RequiresApi(VANILLA_ICE_CREAM) -- cgit v1.2.3-59-g8ed1b