1// Signature format: 2.0
2package android.app.ecm {
3
4  @FlaggedApi("android.permission.flags.enhanced_confirmation_mode_apis_enabled") public final class EnhancedConfirmationManager {
5    method @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public void clearRestriction(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
6    method @NonNull public android.content.Intent createRestrictedSettingDialogIntent(@NonNull String, @NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
7    method @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public boolean isClearRestrictionAllowed(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
8    method @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public boolean isRestricted(@NonNull String, @NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
9    method @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public void setClearRestrictionAllowed(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException;
10    field public static final String ACTION_SHOW_ECM_RESTRICTED_SETTING_DIALOG = "android.app.ecm.action.SHOW_ECM_RESTRICTED_SETTING_DIALOG";
11  }
12
13}
14
15package android.app.role {
16
17  public interface OnRoleHoldersChangedListener {
18    method public void onRoleHoldersChanged(@NonNull String, @NonNull android.os.UserHandle);
19  }
20
21  @Deprecated public abstract class RoleControllerService extends android.app.Service {
22    ctor @Deprecated public RoleControllerService();
23    method @Deprecated @WorkerThread public abstract boolean onAddRoleHolder(@NonNull String, @NonNull String, int);
24    method @Deprecated @Nullable public final android.os.IBinder onBind(@Nullable android.content.Intent);
25    method @Deprecated @WorkerThread public abstract boolean onClearRoleHolders(@NonNull String, int);
26    method @Deprecated @FlaggedApi("android.permission.flags.system_server_role_controller_enabled") @NonNull public java.util.List<java.lang.String> onGetLegacyFallbackDisabledRoles();
27    method @Deprecated @WorkerThread public abstract boolean onGrantDefaultRoles();
28    method @Deprecated public abstract boolean onIsApplicationQualifiedForRole(@NonNull String, @NonNull String);
29    method @Deprecated public boolean onIsApplicationVisibleForRole(@NonNull String, @NonNull String);
30    method @Deprecated public abstract boolean onIsRoleVisible(@NonNull String);
31    method @Deprecated @WorkerThread public abstract boolean onRemoveRoleHolder(@NonNull String, @NonNull String, int);
32    field @Deprecated public static final String SERVICE_INTERFACE = "android.app.role.RoleControllerService";
33  }
34
35  public final class RoleManager {
36    method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void addOnRoleHoldersChangedListenerAsUser(@NonNull java.util.concurrent.Executor, @NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
37    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void addRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
38    method @Deprecated @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean addRoleHolderFromController(@NonNull String, @NonNull String);
39    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void clearRoleHoldersAsUser(@NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
40    method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_DEFAULT_APPLICATIONS) public String getDefaultApplication(@NonNull String);
41    method @Deprecated @NonNull @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public java.util.List<java.lang.String> getHeldRolesFromController(@NonNull String);
42    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List<java.lang.String> getRoleHolders(@NonNull String);
43    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public java.util.List<java.lang.String> getRoleHoldersAsUser(@NonNull String, @NonNull android.os.UserHandle);
44    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void isApplicationVisibleForRole(@NonNull String, @NonNull String, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
45    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public boolean isBypassingRoleQualification();
46    method @FlaggedApi("android.permission.flags.system_server_role_controller_enabled") @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public boolean isRoleFallbackEnabled(@NonNull String);
47    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void isRoleVisible(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
48    method @RequiresPermission(android.Manifest.permission.OBSERVE_ROLE_HOLDERS) public void removeOnRoleHoldersChangedListenerAsUser(@NonNull android.app.role.OnRoleHoldersChangedListener, @NonNull android.os.UserHandle);
49    method @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void removeRoleHolderAsUser(@NonNull String, @NonNull String, int, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
50    method @Deprecated @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public boolean removeRoleHolderFromController(@NonNull String, @NonNull String);
51    method @RequiresPermission(android.Manifest.permission.BYPASS_ROLE_QUALIFICATION) public void setBypassingRoleQualification(boolean);
52    method @RequiresPermission(android.Manifest.permission.MANAGE_DEFAULT_APPLICATIONS) public void setDefaultApplication(@NonNull String, @Nullable String, int, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>);
53    method @FlaggedApi("android.permission.flags.system_server_role_controller_enabled") @RequiresPermission(android.Manifest.permission.MANAGE_ROLE_HOLDERS) public void setRoleFallbackEnabled(@NonNull String, boolean);
54    method @Deprecated @RequiresPermission("com.android.permissioncontroller.permission.MANAGE_ROLES_FROM_CONTROLLER") public void setRoleNamesFromController(@NonNull java.util.List<java.lang.String>);
55    field public static final int MANAGE_HOLDERS_FLAG_DONT_KILL_APP = 1; // 0x1
56    field public static final String ROLE_DEVICE_POLICY_MANAGEMENT = "android.app.role.DEVICE_POLICY_MANAGEMENT";
57    field public static final String ROLE_FINANCED_DEVICE_KIOSK = "android.app.role.FINANCED_DEVICE_KIOSK";
58    field public static final String ROLE_SYSTEM_ACTIVITY_RECOGNIZER = "android.app.role.SYSTEM_ACTIVITY_RECOGNIZER";
59    field public static final String ROLE_SYSTEM_CALL_STREAMING = "android.app.role.SYSTEM_CALL_STREAMING";
60    field public static final String ROLE_SYSTEM_SUPERVISION = "android.app.role.SYSTEM_SUPERVISION";
61    field public static final String ROLE_SYSTEM_WELLBEING = "android.app.role.SYSTEM_WELLBEING";
62  }
63
64}
65
66package android.safetycenter {
67
68  public final class SafetyCenterData implements android.os.Parcelable {
69    ctor public SafetyCenterData(@NonNull android.safetycenter.SafetyCenterStatus, @NonNull java.util.List<android.safetycenter.SafetyCenterIssue>, @NonNull java.util.List<android.safetycenter.SafetyCenterEntryOrGroup>, @NonNull java.util.List<android.safetycenter.SafetyCenterStaticEntryGroup>);
70    method public int describeContents();
71    method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue> getDismissedIssues();
72    method @NonNull public java.util.List<android.safetycenter.SafetyCenterEntryOrGroup> getEntriesOrGroups();
73    method @NonNull public android.os.Bundle getExtras();
74    method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue> getIssues();
75    method @NonNull public java.util.List<android.safetycenter.SafetyCenterStaticEntryGroup> getStaticEntryGroups();
76    method @NonNull public android.safetycenter.SafetyCenterStatus getStatus();
77    method public void writeToParcel(@NonNull android.os.Parcel, int);
78    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterData> CREATOR;
79  }
80
81  public static final class SafetyCenterData.Builder {
82    ctor public SafetyCenterData.Builder(@NonNull android.safetycenter.SafetyCenterStatus);
83    ctor public SafetyCenterData.Builder(@NonNull android.safetycenter.SafetyCenterData);
84    method @NonNull public android.safetycenter.SafetyCenterData.Builder addDismissedIssue(@NonNull android.safetycenter.SafetyCenterIssue);
85    method @NonNull public android.safetycenter.SafetyCenterData.Builder addEntryOrGroup(@NonNull android.safetycenter.SafetyCenterEntryOrGroup);
86    method @NonNull public android.safetycenter.SafetyCenterData.Builder addIssue(@NonNull android.safetycenter.SafetyCenterIssue);
87    method @NonNull public android.safetycenter.SafetyCenterData.Builder addStaticEntryGroup(@NonNull android.safetycenter.SafetyCenterStaticEntryGroup);
88    method @NonNull public android.safetycenter.SafetyCenterData build();
89    method @NonNull public android.safetycenter.SafetyCenterData.Builder clearDismissedIssues();
90    method @NonNull public android.safetycenter.SafetyCenterData.Builder clearEntriesOrGroups();
91    method @NonNull public android.safetycenter.SafetyCenterData.Builder clearExtras();
92    method @NonNull public android.safetycenter.SafetyCenterData.Builder clearIssues();
93    method @NonNull public android.safetycenter.SafetyCenterData.Builder clearStaticEntryGroups();
94    method @NonNull public android.safetycenter.SafetyCenterData.Builder setExtras(@NonNull android.os.Bundle);
95  }
96
97  public final class SafetyCenterEntry implements android.os.Parcelable {
98    method public int describeContents();
99    method @Nullable public android.safetycenter.SafetyCenterEntry.IconAction getIconAction();
100    method @NonNull public String getId();
101    method @Nullable public android.app.PendingIntent getPendingIntent();
102    method public int getSeverityLevel();
103    method public int getSeverityUnspecifiedIconType();
104    method @Nullable public CharSequence getSummary();
105    method @NonNull public CharSequence getTitle();
106    method public boolean isEnabled();
107    method public void writeToParcel(@NonNull android.os.Parcel, int);
108    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterEntry> CREATOR;
109    field public static final int ENTRY_SEVERITY_LEVEL_CRITICAL_WARNING = 3400; // 0xd48
110    field public static final int ENTRY_SEVERITY_LEVEL_OK = 3200; // 0xc80
111    field public static final int ENTRY_SEVERITY_LEVEL_RECOMMENDATION = 3300; // 0xce4
112    field public static final int ENTRY_SEVERITY_LEVEL_UNKNOWN = 3000; // 0xbb8
113    field public static final int ENTRY_SEVERITY_LEVEL_UNSPECIFIED = 3100; // 0xc1c
114    field public static final int SEVERITY_UNSPECIFIED_ICON_TYPE_NO_ICON = 0; // 0x0
115    field public static final int SEVERITY_UNSPECIFIED_ICON_TYPE_NO_RECOMMENDATION = 2; // 0x2
116    field public static final int SEVERITY_UNSPECIFIED_ICON_TYPE_PRIVACY = 1; // 0x1
117  }
118
119  public static final class SafetyCenterEntry.Builder {
120    ctor public SafetyCenterEntry.Builder(@NonNull String, @NonNull CharSequence);
121    ctor public SafetyCenterEntry.Builder(@NonNull android.safetycenter.SafetyCenterEntry);
122    method @NonNull public android.safetycenter.SafetyCenterEntry build();
123    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setEnabled(boolean);
124    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setIconAction(@Nullable android.safetycenter.SafetyCenterEntry.IconAction);
125    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setIconAction(int, @NonNull android.app.PendingIntent);
126    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setId(@NonNull String);
127    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setPendingIntent(@Nullable android.app.PendingIntent);
128    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setSeverityLevel(int);
129    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setSeverityUnspecifiedIconType(int);
130    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setSummary(@Nullable CharSequence);
131    method @NonNull public android.safetycenter.SafetyCenterEntry.Builder setTitle(@NonNull CharSequence);
132  }
133
134  public static final class SafetyCenterEntry.IconAction implements android.os.Parcelable {
135    ctor public SafetyCenterEntry.IconAction(int, @NonNull android.app.PendingIntent);
136    method public int describeContents();
137    method @NonNull public android.app.PendingIntent getPendingIntent();
138    method public int getType();
139    method public void writeToParcel(@NonNull android.os.Parcel, int);
140    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterEntry.IconAction> CREATOR;
141    field public static final int ICON_ACTION_TYPE_GEAR = 30100; // 0x7594
142    field public static final int ICON_ACTION_TYPE_INFO = 30200; // 0x75f8
143  }
144
145  public final class SafetyCenterEntryGroup implements android.os.Parcelable {
146    method public int describeContents();
147    method @NonNull public java.util.List<android.safetycenter.SafetyCenterEntry> getEntries();
148    method @NonNull public String getId();
149    method public int getSeverityLevel();
150    method public int getSeverityUnspecifiedIconType();
151    method @Nullable public CharSequence getSummary();
152    method @NonNull public CharSequence getTitle();
153    method public void writeToParcel(@NonNull android.os.Parcel, int);
154    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterEntryGroup> CREATOR;
155  }
156
157  public static final class SafetyCenterEntryGroup.Builder {
158    ctor public SafetyCenterEntryGroup.Builder(@NonNull String, @NonNull CharSequence);
159    ctor public SafetyCenterEntryGroup.Builder(@NonNull android.safetycenter.SafetyCenterEntryGroup);
160    method @NonNull public android.safetycenter.SafetyCenterEntryGroup build();
161    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setEntries(@NonNull java.util.List<android.safetycenter.SafetyCenterEntry>);
162    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setId(@NonNull String);
163    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setSeverityLevel(int);
164    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setSeverityUnspecifiedIconType(int);
165    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setSummary(@Nullable CharSequence);
166    method @NonNull public android.safetycenter.SafetyCenterEntryGroup.Builder setTitle(@NonNull CharSequence);
167  }
168
169  public final class SafetyCenterEntryOrGroup implements android.os.Parcelable {
170    ctor public SafetyCenterEntryOrGroup(@NonNull android.safetycenter.SafetyCenterEntry);
171    ctor public SafetyCenterEntryOrGroup(@NonNull android.safetycenter.SafetyCenterEntryGroup);
172    method public int describeContents();
173    method @Nullable public android.safetycenter.SafetyCenterEntry getEntry();
174    method @Nullable public android.safetycenter.SafetyCenterEntryGroup getEntryGroup();
175    method public void writeToParcel(@NonNull android.os.Parcel, int);
176    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterEntryOrGroup> CREATOR;
177  }
178
179  public final class SafetyCenterErrorDetails implements android.os.Parcelable {
180    ctor public SafetyCenterErrorDetails(@NonNull CharSequence);
181    method public int describeContents();
182    method @NonNull public CharSequence getErrorMessage();
183    method public void writeToParcel(@NonNull android.os.Parcel, int);
184    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterErrorDetails> CREATOR;
185  }
186
187  public final class SafetyCenterIssue implements android.os.Parcelable {
188    method public int describeContents();
189    method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue.Action> getActions();
190    method @Nullable public CharSequence getAttributionTitle();
191    method @Nullable public String getGroupId();
192    method @NonNull public String getId();
193    method public int getSeverityLevel();
194    method @Nullable public CharSequence getSubtitle();
195    method @NonNull public CharSequence getSummary();
196    method @NonNull public CharSequence getTitle();
197    method public boolean isDismissible();
198    method public boolean shouldConfirmDismissal();
199    method public void writeToParcel(@NonNull android.os.Parcel, int);
200    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterIssue> CREATOR;
201    field public static final int ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING = 2300; // 0x8fc
202    field public static final int ISSUE_SEVERITY_LEVEL_OK = 2100; // 0x834
203    field public static final int ISSUE_SEVERITY_LEVEL_RECOMMENDATION = 2200; // 0x898
204  }
205
206  public static final class SafetyCenterIssue.Action implements android.os.Parcelable {
207    method public int describeContents();
208    method @Nullable public android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails getConfirmationDialogDetails();
209    method @NonNull public String getId();
210    method @NonNull public CharSequence getLabel();
211    method @NonNull public android.app.PendingIntent getPendingIntent();
212    method @Nullable public CharSequence getSuccessMessage();
213    method public boolean isInFlight();
214    method public boolean willResolve();
215    method public void writeToParcel(@NonNull android.os.Parcel, int);
216    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterIssue.Action> CREATOR;
217  }
218
219  public static final class SafetyCenterIssue.Action.Builder {
220    ctor public SafetyCenterIssue.Action.Builder(@NonNull String, @NonNull CharSequence, @NonNull android.app.PendingIntent);
221    ctor public SafetyCenterIssue.Action.Builder(@NonNull android.safetycenter.SafetyCenterIssue.Action);
222    method @NonNull public android.safetycenter.SafetyCenterIssue.Action build();
223    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setConfirmationDialogDetails(@Nullable android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails);
224    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setId(@NonNull String);
225    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setIsInFlight(boolean);
226    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setLabel(@NonNull CharSequence);
227    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setPendingIntent(@NonNull android.app.PendingIntent);
228    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setSuccessMessage(@Nullable CharSequence);
229    method @NonNull public android.safetycenter.SafetyCenterIssue.Action.Builder setWillResolve(boolean);
230  }
231
232  public static final class SafetyCenterIssue.Action.ConfirmationDialogDetails implements android.os.Parcelable {
233    ctor public SafetyCenterIssue.Action.ConfirmationDialogDetails(@NonNull CharSequence, @NonNull CharSequence, @NonNull CharSequence, @NonNull CharSequence);
234    method public int describeContents();
235    method @NonNull public CharSequence getAcceptButtonText();
236    method @NonNull public CharSequence getDenyButtonText();
237    method @NonNull public CharSequence getText();
238    method @NonNull public CharSequence getTitle();
239    method public void writeToParcel(@NonNull android.os.Parcel, int);
240    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails> CREATOR;
241  }
242
243  public static final class SafetyCenterIssue.Builder {
244    ctor public SafetyCenterIssue.Builder(@NonNull String, @NonNull CharSequence, @NonNull CharSequence);
245    ctor public SafetyCenterIssue.Builder(@NonNull android.safetycenter.SafetyCenterIssue);
246    method @NonNull public android.safetycenter.SafetyCenterIssue build();
247    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setActions(@NonNull java.util.List<android.safetycenter.SafetyCenterIssue.Action>);
248    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setAttributionTitle(@Nullable CharSequence);
249    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setDismissible(boolean);
250    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setGroupId(@Nullable String);
251    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setId(@NonNull String);
252    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setSeverityLevel(int);
253    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setShouldConfirmDismissal(boolean);
254    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setSubtitle(@Nullable CharSequence);
255    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setSummary(@NonNull CharSequence);
256    method @NonNull public android.safetycenter.SafetyCenterIssue.Builder setTitle(@NonNull CharSequence);
257  }
258
259  public final class SafetyCenterManager {
260    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void addOnSafetyCenterDataChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.safetycenter.SafetyCenterManager.OnSafetyCenterDataChangedListener);
261    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void clearAllSafetySourceDataForTests();
262    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void clearSafetyCenterConfigForTests();
263    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void dismissSafetyCenterIssue(@NonNull String);
264    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void executeSafetyCenterIssueAction(@NonNull String, @NonNull String);
265    method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public android.safetycenter.config.SafetyCenterConfig getSafetyCenterConfig();
266    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public android.safetycenter.SafetyCenterData getSafetyCenterData();
267    method @Nullable @RequiresPermission(android.Manifest.permission.SEND_SAFETY_CENTER_UPDATE) public android.safetycenter.SafetySourceData getSafetySourceData(@NonNull String);
268    method @RequiresPermission(anyOf={android.Manifest.permission.READ_SAFETY_CENTER_STATUS, android.Manifest.permission.SEND_SAFETY_CENTER_UPDATE}) public boolean isSafetyCenterEnabled();
269    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void refreshSafetySources(int);
270    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void refreshSafetySources(int, @NonNull java.util.List<java.lang.String>);
271    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void removeOnSafetyCenterDataChangedListener(@NonNull android.safetycenter.SafetyCenterManager.OnSafetyCenterDataChangedListener);
272    method @RequiresPermission(android.Manifest.permission.SEND_SAFETY_CENTER_UPDATE) public void reportSafetySourceError(@NonNull String, @NonNull android.safetycenter.SafetySourceErrorDetails);
273    method @RequiresPermission(android.Manifest.permission.MANAGE_SAFETY_CENTER) public void setSafetyCenterConfigForTests(@NonNull android.safetycenter.config.SafetyCenterConfig);
274    method @RequiresPermission(android.Manifest.permission.SEND_SAFETY_CENTER_UPDATE) public void setSafetySourceData(@NonNull String, @Nullable android.safetycenter.SafetySourceData, @NonNull android.safetycenter.SafetyEvent);
275    field public static final String ACTION_REFRESH_SAFETY_SOURCES = "android.safetycenter.action.REFRESH_SAFETY_SOURCES";
276    field public static final String ACTION_SAFETY_CENTER_ENABLED_CHANGED = "android.safetycenter.action.SAFETY_CENTER_ENABLED_CHANGED";
277    field public static final int EXTRA_REFRESH_REQUEST_TYPE_FETCH_FRESH_DATA = 0; // 0x0
278    field public static final int EXTRA_REFRESH_REQUEST_TYPE_GET_DATA = 1; // 0x1
279    field public static final String EXTRA_REFRESH_SAFETY_SOURCES_BROADCAST_ID = "android.safetycenter.extra.REFRESH_SAFETY_SOURCES_BROADCAST_ID";
280    field public static final String EXTRA_REFRESH_SAFETY_SOURCES_REQUEST_TYPE = "android.safetycenter.extra.REFRESH_SAFETY_SOURCES_REQUEST_TYPE";
281    field public static final String EXTRA_REFRESH_SAFETY_SOURCE_IDS = "android.safetycenter.extra.REFRESH_SAFETY_SOURCE_IDS";
282    field public static final String EXTRA_SAFETY_SOURCES_GROUP_ID = "android.safetycenter.extra.SAFETY_SOURCES_GROUP_ID";
283    field public static final String EXTRA_SAFETY_SOURCE_ID = "android.safetycenter.extra.SAFETY_SOURCE_ID";
284    field public static final String EXTRA_SAFETY_SOURCE_ISSUE_ID = "android.safetycenter.extra.SAFETY_SOURCE_ISSUE_ID";
285    field public static final String EXTRA_SAFETY_SOURCE_USER_HANDLE = "android.safetycenter.extra.SAFETY_SOURCE_USER_HANDLE";
286    field public static final int REFRESH_REASON_DEVICE_LOCALE_CHANGE = 400; // 0x190
287    field public static final int REFRESH_REASON_DEVICE_REBOOT = 300; // 0x12c
288    field public static final int REFRESH_REASON_OTHER = 600; // 0x258
289    field public static final int REFRESH_REASON_PAGE_OPEN = 100; // 0x64
290    field public static final int REFRESH_REASON_PERIODIC = 700; // 0x2bc
291    field public static final int REFRESH_REASON_RESCAN_BUTTON_CLICK = 200; // 0xc8
292    field public static final int REFRESH_REASON_SAFETY_CENTER_ENABLED = 500; // 0x1f4
293  }
294
295  public static interface SafetyCenterManager.OnSafetyCenterDataChangedListener {
296    method public default void onError(@NonNull android.safetycenter.SafetyCenterErrorDetails);
297    method public void onSafetyCenterDataChanged(@NonNull android.safetycenter.SafetyCenterData);
298  }
299
300  public final class SafetyCenterStaticEntry implements android.os.Parcelable {
301    method public int describeContents();
302    method @Nullable public android.app.PendingIntent getPendingIntent();
303    method @Nullable public CharSequence getSummary();
304    method @NonNull public CharSequence getTitle();
305    method public void writeToParcel(@NonNull android.os.Parcel, int);
306    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterStaticEntry> CREATOR;
307  }
308
309  public static final class SafetyCenterStaticEntry.Builder {
310    ctor public SafetyCenterStaticEntry.Builder(@NonNull CharSequence);
311    ctor public SafetyCenterStaticEntry.Builder(@NonNull android.safetycenter.SafetyCenterStaticEntry);
312    method @NonNull public android.safetycenter.SafetyCenterStaticEntry build();
313    method @NonNull public android.safetycenter.SafetyCenterStaticEntry.Builder setPendingIntent(@Nullable android.app.PendingIntent);
314    method @NonNull public android.safetycenter.SafetyCenterStaticEntry.Builder setSummary(@Nullable CharSequence);
315    method @NonNull public android.safetycenter.SafetyCenterStaticEntry.Builder setTitle(@NonNull CharSequence);
316  }
317
318  public final class SafetyCenterStaticEntryGroup implements android.os.Parcelable {
319    ctor public SafetyCenterStaticEntryGroup(@NonNull CharSequence, @NonNull java.util.List<android.safetycenter.SafetyCenterStaticEntry>);
320    method public int describeContents();
321    method @NonNull public java.util.List<android.safetycenter.SafetyCenterStaticEntry> getStaticEntries();
322    method @NonNull public CharSequence getTitle();
323    method public void writeToParcel(@NonNull android.os.Parcel, int);
324    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterStaticEntryGroup> CREATOR;
325  }
326
327  public final class SafetyCenterStatus implements android.os.Parcelable {
328    method public int describeContents();
329    method public int getRefreshStatus();
330    method public int getSeverityLevel();
331    method @NonNull public CharSequence getSummary();
332    method @NonNull public CharSequence getTitle();
333    method public void writeToParcel(@NonNull android.os.Parcel, int);
334    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterStatus> CREATOR;
335    field public static final int OVERALL_SEVERITY_LEVEL_CRITICAL_WARNING = 1300; // 0x514
336    field public static final int OVERALL_SEVERITY_LEVEL_OK = 1100; // 0x44c
337    field public static final int OVERALL_SEVERITY_LEVEL_RECOMMENDATION = 1200; // 0x4b0
338    field public static final int OVERALL_SEVERITY_LEVEL_UNKNOWN = 1000; // 0x3e8
339    field public static final int REFRESH_STATUS_DATA_FETCH_IN_PROGRESS = 10100; // 0x2774
340    field public static final int REFRESH_STATUS_FULL_RESCAN_IN_PROGRESS = 10200; // 0x27d8
341    field public static final int REFRESH_STATUS_NONE = 0; // 0x0
342  }
343
344  public static final class SafetyCenterStatus.Builder {
345    ctor public SafetyCenterStatus.Builder(@NonNull CharSequence, @NonNull CharSequence);
346    ctor public SafetyCenterStatus.Builder(@NonNull android.safetycenter.SafetyCenterStatus);
347    method @NonNull public android.safetycenter.SafetyCenterStatus build();
348    method @NonNull public android.safetycenter.SafetyCenterStatus.Builder setRefreshStatus(int);
349    method @NonNull public android.safetycenter.SafetyCenterStatus.Builder setSeverityLevel(int);
350    method @NonNull public android.safetycenter.SafetyCenterStatus.Builder setSummary(@NonNull CharSequence);
351    method @NonNull public android.safetycenter.SafetyCenterStatus.Builder setTitle(@NonNull CharSequence);
352  }
353
354  public final class SafetyEvent implements android.os.Parcelable {
355    method public int describeContents();
356    method @Nullable public String getRefreshBroadcastId();
357    method @Nullable public String getSafetySourceIssueActionId();
358    method @Nullable public String getSafetySourceIssueId();
359    method public int getType();
360    method public void writeToParcel(@NonNull android.os.Parcel, int);
361    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetyEvent> CREATOR;
362    field public static final int SAFETY_EVENT_TYPE_DEVICE_LOCALE_CHANGED = 500; // 0x1f4
363    field public static final int SAFETY_EVENT_TYPE_DEVICE_REBOOTED = 600; // 0x258
364    field public static final int SAFETY_EVENT_TYPE_REFRESH_REQUESTED = 200; // 0xc8
365    field public static final int SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED = 400; // 0x190
366    field public static final int SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED = 300; // 0x12c
367    field public static final int SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED = 100; // 0x64
368  }
369
370  public static final class SafetyEvent.Builder {
371    ctor public SafetyEvent.Builder(int);
372    ctor public SafetyEvent.Builder(@NonNull android.safetycenter.SafetyEvent);
373    method @NonNull public android.safetycenter.SafetyEvent build();
374    method @NonNull public android.safetycenter.SafetyEvent.Builder setRefreshBroadcastId(@Nullable String);
375    method @NonNull public android.safetycenter.SafetyEvent.Builder setSafetySourceIssueActionId(@Nullable String);
376    method @NonNull public android.safetycenter.SafetyEvent.Builder setSafetySourceIssueId(@Nullable String);
377  }
378
379  public final class SafetySourceData implements android.os.Parcelable {
380    method public int describeContents();
381    method @NonNull public android.os.Bundle getExtras();
382    method @NonNull public java.util.List<android.safetycenter.SafetySourceIssue> getIssues();
383    method @Nullable public android.safetycenter.SafetySourceStatus getStatus();
384    method public void writeToParcel(@NonNull android.os.Parcel, int);
385    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceData> CREATOR;
386    field public static final int SEVERITY_LEVEL_CRITICAL_WARNING = 400; // 0x190
387    field public static final int SEVERITY_LEVEL_INFORMATION = 200; // 0xc8
388    field public static final int SEVERITY_LEVEL_RECOMMENDATION = 300; // 0x12c
389    field public static final int SEVERITY_LEVEL_UNSPECIFIED = 100; // 0x64
390  }
391
392  public static final class SafetySourceData.Builder {
393    ctor public SafetySourceData.Builder();
394    ctor public SafetySourceData.Builder(@NonNull android.safetycenter.SafetySourceData);
395    method @NonNull public android.safetycenter.SafetySourceData.Builder addIssue(@NonNull android.safetycenter.SafetySourceIssue);
396    method @NonNull public android.safetycenter.SafetySourceData build();
397    method @NonNull public android.safetycenter.SafetySourceData.Builder clearExtras();
398    method @NonNull public android.safetycenter.SafetySourceData.Builder clearIssues();
399    method @NonNull public android.safetycenter.SafetySourceData.Builder setExtras(@NonNull android.os.Bundle);
400    method @NonNull public android.safetycenter.SafetySourceData.Builder setStatus(@Nullable android.safetycenter.SafetySourceStatus);
401  }
402
403  public final class SafetySourceErrorDetails implements android.os.Parcelable {
404    ctor public SafetySourceErrorDetails(@NonNull android.safetycenter.SafetyEvent);
405    method public int describeContents();
406    method @NonNull public android.safetycenter.SafetyEvent getSafetyEvent();
407    method public void writeToParcel(@NonNull android.os.Parcel, int);
408    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceErrorDetails> CREATOR;
409  }
410
411  public final class SafetySourceIssue implements android.os.Parcelable {
412    method public int describeContents();
413    method @NonNull public java.util.List<android.safetycenter.SafetySourceIssue.Action> getActions();
414    method @Nullable public CharSequence getAttributionTitle();
415    method @Nullable public android.safetycenter.SafetySourceIssue.Notification getCustomNotification();
416    method @Nullable public String getDeduplicationId();
417    method @NonNull public String getId();
418    method public int getIssueActionability();
419    method public int getIssueCategory();
420    method @NonNull public String getIssueTypeId();
421    method public int getNotificationBehavior();
422    method @Nullable public android.app.PendingIntent getOnDismissPendingIntent();
423    method public int getSeverityLevel();
424    method @Nullable public CharSequence getSubtitle();
425    method @NonNull public CharSequence getSummary();
426    method @NonNull public CharSequence getTitle();
427    method public void writeToParcel(@NonNull android.os.Parcel, int);
428    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue> CREATOR;
429    field public static final int ISSUE_ACTIONABILITY_AUTOMATIC = 200; // 0xc8
430    field public static final int ISSUE_ACTIONABILITY_MANUAL = 0; // 0x0
431    field public static final int ISSUE_ACTIONABILITY_TIP = 100; // 0x64
432    field public static final int ISSUE_CATEGORY_ACCOUNT = 200; // 0xc8
433    field public static final int ISSUE_CATEGORY_DATA = 400; // 0x190
434    field public static final int ISSUE_CATEGORY_DEVICE = 100; // 0x64
435    field public static final int ISSUE_CATEGORY_GENERAL = 300; // 0x12c
436    field public static final int ISSUE_CATEGORY_PASSWORDS = 500; // 0x1f4
437    field public static final int ISSUE_CATEGORY_PERSONAL_SAFETY = 600; // 0x258
438    field public static final int NOTIFICATION_BEHAVIOR_DELAYED = 200; // 0xc8
439    field public static final int NOTIFICATION_BEHAVIOR_IMMEDIATELY = 300; // 0x12c
440    field public static final int NOTIFICATION_BEHAVIOR_NEVER = 100; // 0x64
441    field public static final int NOTIFICATION_BEHAVIOR_UNSPECIFIED = 0; // 0x0
442  }
443
444  public static final class SafetySourceIssue.Action implements android.os.Parcelable {
445    method public int describeContents();
446    method @Nullable public android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails getConfirmationDialogDetails();
447    method @NonNull public String getId();
448    method @NonNull public CharSequence getLabel();
449    method @NonNull public android.app.PendingIntent getPendingIntent();
450    method @Nullable public CharSequence getSuccessMessage();
451    method public boolean willResolve();
452    method public void writeToParcel(@NonNull android.os.Parcel, int);
453    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue.Action> CREATOR;
454  }
455
456  public static final class SafetySourceIssue.Action.Builder {
457    ctor public SafetySourceIssue.Action.Builder(@NonNull String, @NonNull CharSequence, @NonNull android.app.PendingIntent);
458    ctor public SafetySourceIssue.Action.Builder(@NonNull android.safetycenter.SafetySourceIssue.Action);
459    method @NonNull public android.safetycenter.SafetySourceIssue.Action build();
460    method @NonNull public android.safetycenter.SafetySourceIssue.Action.Builder setConfirmationDialogDetails(@Nullable android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails);
461    method @NonNull public android.safetycenter.SafetySourceIssue.Action.Builder setSuccessMessage(@Nullable CharSequence);
462    method @NonNull public android.safetycenter.SafetySourceIssue.Action.Builder setWillResolve(boolean);
463  }
464
465  public static final class SafetySourceIssue.Action.ConfirmationDialogDetails implements android.os.Parcelable {
466    ctor public SafetySourceIssue.Action.ConfirmationDialogDetails(@NonNull CharSequence, @NonNull CharSequence, @NonNull CharSequence, @NonNull CharSequence);
467    method public int describeContents();
468    method @NonNull public CharSequence getAcceptButtonText();
469    method @NonNull public CharSequence getDenyButtonText();
470    method @NonNull public CharSequence getText();
471    method @NonNull public CharSequence getTitle();
472    method public void writeToParcel(@NonNull android.os.Parcel, int);
473    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails> CREATOR;
474  }
475
476  public static final class SafetySourceIssue.Builder {
477    ctor public SafetySourceIssue.Builder(@NonNull String, @NonNull CharSequence, @NonNull CharSequence, int, @NonNull String);
478    ctor public SafetySourceIssue.Builder(@NonNull android.safetycenter.SafetySourceIssue);
479    method @NonNull public android.safetycenter.SafetySourceIssue.Builder addAction(@NonNull android.safetycenter.SafetySourceIssue.Action);
480    method @NonNull public android.safetycenter.SafetySourceIssue build();
481    method @NonNull public android.safetycenter.SafetySourceIssue.Builder clearActions();
482    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setAttributionTitle(@Nullable CharSequence);
483    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setCustomNotification(@Nullable android.safetycenter.SafetySourceIssue.Notification);
484    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setDeduplicationId(@Nullable String);
485    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setIssueActionability(int);
486    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setIssueCategory(int);
487    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setNotificationBehavior(int);
488    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setOnDismissPendingIntent(@Nullable android.app.PendingIntent);
489    method @NonNull public android.safetycenter.SafetySourceIssue.Builder setSubtitle(@Nullable CharSequence);
490  }
491
492  public static final class SafetySourceIssue.Notification implements android.os.Parcelable {
493    method public int describeContents();
494    method @NonNull public java.util.List<android.safetycenter.SafetySourceIssue.Action> getActions();
495    method @NonNull public CharSequence getText();
496    method @NonNull public CharSequence getTitle();
497    method public void writeToParcel(@NonNull android.os.Parcel, int);
498    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue.Notification> CREATOR;
499  }
500
501  public static final class SafetySourceIssue.Notification.Builder {
502    ctor public SafetySourceIssue.Notification.Builder(@NonNull CharSequence, @NonNull CharSequence);
503    ctor public SafetySourceIssue.Notification.Builder(@NonNull android.safetycenter.SafetySourceIssue.Notification);
504    method @NonNull public android.safetycenter.SafetySourceIssue.Notification.Builder addAction(@NonNull android.safetycenter.SafetySourceIssue.Action);
505    method @NonNull public android.safetycenter.SafetySourceIssue.Notification.Builder addActions(@NonNull java.util.List<android.safetycenter.SafetySourceIssue.Action>);
506    method @NonNull public android.safetycenter.SafetySourceIssue.Notification build();
507    method @NonNull public android.safetycenter.SafetySourceIssue.Notification.Builder clearActions();
508  }
509
510  public final class SafetySourceStatus implements android.os.Parcelable {
511    method public int describeContents();
512    method @Nullable public android.safetycenter.SafetySourceStatus.IconAction getIconAction();
513    method @Nullable public android.app.PendingIntent getPendingIntent();
514    method public int getSeverityLevel();
515    method @NonNull public CharSequence getSummary();
516    method @NonNull public CharSequence getTitle();
517    method public boolean isEnabled();
518    method public void writeToParcel(@NonNull android.os.Parcel, int);
519    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceStatus> CREATOR;
520  }
521
522  public static final class SafetySourceStatus.Builder {
523    ctor public SafetySourceStatus.Builder(@NonNull CharSequence, @NonNull CharSequence, int);
524    ctor public SafetySourceStatus.Builder(@NonNull android.safetycenter.SafetySourceStatus);
525    method @NonNull public android.safetycenter.SafetySourceStatus build();
526    method @NonNull public android.safetycenter.SafetySourceStatus.Builder setEnabled(boolean);
527    method @NonNull public android.safetycenter.SafetySourceStatus.Builder setIconAction(@Nullable android.safetycenter.SafetySourceStatus.IconAction);
528    method @NonNull public android.safetycenter.SafetySourceStatus.Builder setPendingIntent(@Nullable android.app.PendingIntent);
529  }
530
531  public static final class SafetySourceStatus.IconAction implements android.os.Parcelable {
532    ctor public SafetySourceStatus.IconAction(int, @NonNull android.app.PendingIntent);
533    method public int describeContents();
534    method public int getIconType();
535    method @NonNull public android.app.PendingIntent getPendingIntent();
536    method public void writeToParcel(@NonNull android.os.Parcel, int);
537    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceStatus.IconAction> CREATOR;
538    field public static final int ICON_TYPE_GEAR = 100; // 0x64
539    field public static final int ICON_TYPE_INFO = 200; // 0xc8
540  }
541
542}
543
544package android.safetycenter.config {
545
546  public final class SafetyCenterConfig implements android.os.Parcelable {
547    method public int describeContents();
548    method @NonNull public java.util.List<android.safetycenter.config.SafetySourcesGroup> getSafetySourcesGroups();
549    method public void writeToParcel(@NonNull android.os.Parcel, int);
550    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.config.SafetyCenterConfig> CREATOR;
551  }
552
553  public static final class SafetyCenterConfig.Builder {
554    ctor public SafetyCenterConfig.Builder();
555    ctor public SafetyCenterConfig.Builder(@NonNull android.safetycenter.config.SafetyCenterConfig);
556    method @NonNull public android.safetycenter.config.SafetyCenterConfig.Builder addSafetySourcesGroup(@NonNull android.safetycenter.config.SafetySourcesGroup);
557    method @NonNull public android.safetycenter.config.SafetyCenterConfig build();
558  }
559
560  public final class SafetySource implements android.os.Parcelable {
561    method public boolean areNotificationsAllowed();
562    method public int describeContents();
563    method @Nullable public String getDeduplicationGroup();
564    method @NonNull public String getId();
565    method public int getInitialDisplayState();
566    method @Nullable public String getIntentAction();
567    method public int getMaxSeverityLevel();
568    method @Nullable public String getOptionalPackageName();
569    method @NonNull public java.util.Set<java.lang.String> getPackageCertificateHashes();
570    method @NonNull public String getPackageName();
571    method public int getProfile();
572    method @StringRes public int getSearchTermsResId();
573    method @StringRes public int getSummaryResId();
574    method @FlaggedApi("com.android.permission.flags.private_profile_title_api") @StringRes public int getTitleForPrivateProfileResId();
575    method @StringRes public int getTitleForWorkResId();
576    method @StringRes public int getTitleResId();
577    method public int getType();
578    method public boolean isLoggingAllowed();
579    method public boolean isRefreshOnPageOpenAllowed();
580    method public void writeToParcel(@NonNull android.os.Parcel, int);
581    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.config.SafetySource> CREATOR;
582    field public static final int INITIAL_DISPLAY_STATE_DISABLED = 1; // 0x1
583    field public static final int INITIAL_DISPLAY_STATE_ENABLED = 0; // 0x0
584    field public static final int INITIAL_DISPLAY_STATE_HIDDEN = 2; // 0x2
585    field public static final int PROFILE_ALL = 2; // 0x2
586    field public static final int PROFILE_NONE = 0; // 0x0
587    field public static final int PROFILE_PRIMARY = 1; // 0x1
588    field public static final int SAFETY_SOURCE_TYPE_DYNAMIC = 2; // 0x2
589    field public static final int SAFETY_SOURCE_TYPE_ISSUE_ONLY = 3; // 0x3
590    field public static final int SAFETY_SOURCE_TYPE_STATIC = 1; // 0x1
591  }
592
593  public static final class SafetySource.Builder {
594    ctor public SafetySource.Builder(int);
595    ctor public SafetySource.Builder(@NonNull android.safetycenter.config.SafetySource);
596    method @NonNull public android.safetycenter.config.SafetySource.Builder addPackageCertificateHash(@NonNull String);
597    method @NonNull public android.safetycenter.config.SafetySource build();
598    method @NonNull public android.safetycenter.config.SafetySource.Builder setDeduplicationGroup(@Nullable String);
599    method @NonNull public android.safetycenter.config.SafetySource.Builder setId(@Nullable String);
600    method @NonNull public android.safetycenter.config.SafetySource.Builder setInitialDisplayState(int);
601    method @NonNull public android.safetycenter.config.SafetySource.Builder setIntentAction(@Nullable String);
602    method @NonNull public android.safetycenter.config.SafetySource.Builder setLoggingAllowed(boolean);
603    method @NonNull public android.safetycenter.config.SafetySource.Builder setMaxSeverityLevel(int);
604    method @NonNull public android.safetycenter.config.SafetySource.Builder setNotificationsAllowed(boolean);
605    method @NonNull public android.safetycenter.config.SafetySource.Builder setPackageName(@Nullable String);
606    method @NonNull public android.safetycenter.config.SafetySource.Builder setProfile(int);
607    method @NonNull public android.safetycenter.config.SafetySource.Builder setRefreshOnPageOpenAllowed(boolean);
608    method @NonNull public android.safetycenter.config.SafetySource.Builder setSearchTermsResId(@StringRes int);
609    method @NonNull public android.safetycenter.config.SafetySource.Builder setSummaryResId(@StringRes int);
610    method @FlaggedApi("com.android.permission.flags.private_profile_title_api") @NonNull public android.safetycenter.config.SafetySource.Builder setTitleForPrivateProfileResId(@StringRes int);
611    method @NonNull public android.safetycenter.config.SafetySource.Builder setTitleForWorkResId(@StringRes int);
612    method @NonNull public android.safetycenter.config.SafetySource.Builder setTitleResId(@StringRes int);
613  }
614
615  public final class SafetySourcesGroup implements android.os.Parcelable {
616    method public int describeContents();
617    method @NonNull public String getId();
618    method @NonNull public java.util.List<android.safetycenter.config.SafetySource> getSafetySources();
619    method public int getStatelessIconType();
620    method @StringRes public int getSummaryResId();
621    method @StringRes public int getTitleResId();
622    method public int getType();
623    method public void writeToParcel(@NonNull android.os.Parcel, int);
624    field @NonNull public static final android.os.Parcelable.Creator<android.safetycenter.config.SafetySourcesGroup> CREATOR;
625    field @Deprecated public static final int SAFETY_SOURCES_GROUP_TYPE_COLLAPSIBLE = 0; // 0x0
626    field public static final int SAFETY_SOURCES_GROUP_TYPE_HIDDEN = 2; // 0x2
627    field @Deprecated public static final int SAFETY_SOURCES_GROUP_TYPE_RIGID = 1; // 0x1
628    field public static final int SAFETY_SOURCES_GROUP_TYPE_STATEFUL = 0; // 0x0
629    field public static final int SAFETY_SOURCES_GROUP_TYPE_STATELESS = 1; // 0x1
630    field public static final int STATELESS_ICON_TYPE_NONE = 0; // 0x0
631    field public static final int STATELESS_ICON_TYPE_PRIVACY = 1; // 0x1
632  }
633
634  public static final class SafetySourcesGroup.Builder {
635    ctor public SafetySourcesGroup.Builder();
636    ctor public SafetySourcesGroup.Builder(@NonNull android.safetycenter.config.SafetySourcesGroup);
637    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder addSafetySource(@NonNull android.safetycenter.config.SafetySource);
638    method @NonNull public android.safetycenter.config.SafetySourcesGroup build();
639    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder setId(@Nullable String);
640    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder setStatelessIconType(int);
641    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder setSummaryResId(@StringRes int);
642    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder setTitleResId(@StringRes int);
643    method @NonNull public android.safetycenter.config.SafetySourcesGroup.Builder setType(int);
644  }
645
646}
647
648package android.safetylabel {
649
650  public final class SafetyLabelConstants {
651    field public static final String PERMISSION_RATIONALE_ENABLED = "permission_rationale_enabled";
652    field public static final String SAFETY_LABEL_CHANGE_NOTIFICATIONS_ENABLED = "safety_label_change_notifications_enabled";
653  }
654
655}
656
657