/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetySourceIssueTest.kt | 28 import android.safetycenter.SafetySourceIssue 29 import android.safetycenter.SafetySourceIssue.Action 30 import android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails 31 import android.safetycenter.SafetySourceIssue.ISSUE_CATEGORY_ACCOUNT 32 import android.safetycenter.SafetySourceIssue.ISSUE_CATEGORY_DEVICE 33 import android.safetycenter.SafetySourceIssue.ISSUE_CATEGORY_GENERAL 34 import android.safetycenter.SafetySourceIssue.Notification 553 SafetySourceIssue.Builder( in getId_returnsId() 569 SafetySourceIssue.Builder( in getTitle_returnsTitle() 585 SafetySourceIssue.Builder( in getSubtitle_withDefaultBuilder_returnsNull() [all …]
|
/packages/modules/Permission/service/java/com/android/safetycenter/data/ |
D | DefaultActionOverrideFix.java | 25 import android.safetycenter.SafetySourceIssue; 98 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in applyFix() 129 private SafetySourceIssue maybeOverrideActionsWithDefaultIntent( in maybeOverrideActionsWithDefaultIntent() 130 SafetySourceIssue issue, List<String> actionsToOverride, PendingIntent defaultIntent) { in maybeOverrideActionsWithDefaultIntent() 131 SafetySourceIssue.Builder overriddenIssue = in maybeOverrideActionsWithDefaultIntent() 134 List<SafetySourceIssue.Action> actions = issue.getActions(); in maybeOverrideActionsWithDefaultIntent() 151 private static SafetySourceIssue.Notification maybeOverrideNotification( in maybeOverrideNotification() 152 @Nullable SafetySourceIssue.Notification notification, in maybeOverrideNotification() 159 SafetySourceIssue.Notification.Builder overriddenNotification = in maybeOverrideNotification() 160 new SafetySourceIssue.Notification.Builder(notification).clearActions(); in maybeOverrideNotification() [all …]
|
D | SafetySourceDataOverrides.java | 21 import android.safetycenter.SafetySourceIssue; 51 static SafetySourceIssue.Builder copyIssueToBuilderWithoutActions(SafetySourceIssue issue) { in copyIssueToBuilderWithoutActions() 53 return new SafetySourceIssue.Builder(issue).clearActions(); in copyIssueToBuilderWithoutActions() 57 return new SafetySourceIssue.Builder( in copyIssueToBuilderWithoutActions() 72 static SafetySourceIssue.Action overrideActionPendingIntent( in overrideActionPendingIntent() 73 SafetySourceIssue.Action action, PendingIntent pendingIntent) { in overrideActionPendingIntent() 75 return new SafetySourceIssue.Action.Builder( in overrideActionPendingIntent()
|
D | AndroidLockScreenFix.java | 26 import android.safetycenter.SafetySourceIssue; 91 List<SafetySourceIssue> issues = data.getIssues(); in applyFix() 128 private static SafetySourceIssue overrideTiramisuIssue( in overrideTiramisuIssue() 129 Context context, SafetySourceIssue issue) { in overrideTiramisuIssue() 130 SafetySourceIssue.Builder overriddenIssue = in overrideTiramisuIssue() 133 List<SafetySourceIssue.Action> actions = issue.getActions(); in overrideTiramisuIssue() 135 SafetySourceIssue.Action action = actions.get(i); in overrideTiramisuIssue() 142 private static SafetySourceIssue.Action overrideTiramisuIssueAction( in overrideTiramisuIssueAction() 143 Context context, SafetySourceIssue.Action action) { in overrideTiramisuIssueAction()
|
D | SafetySourceDataRepository.java | 32 import android.safetycenter.SafetySourceIssue; 216 SafetySourceIssue getSafetySourceIssue(SafetyCenterIssueKey safetyCenterIssueKey) { in getSafetySourceIssue() 224 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in getSafetySourceIssue() 226 SafetySourceIssue targetIssue = null; in getSafetySourceIssue() 228 SafetySourceIssue safetySourceIssue = safetySourceIssues.get(i); in getSafetySourceIssue() 248 SafetySourceIssue.Action getSafetySourceIssueAction( in getSafetySourceIssueAction() 250 SafetySourceIssue safetySourceIssue = in getSafetySourceIssueAction()
|
D | SafetyCenterInFlightIssueActionRepository.java | 24 import android.safetycenter.SafetySourceIssue; 72 @Nullable SafetySourceIssue safetySourceIssue, in unmarkSafetyCenterIssueActionInFlight() 131 SafetySourceIssue.Action getSafetySourceIssueAction( in getSafetySourceIssueAction() 133 SafetySourceIssue safetySourceIssue) { in getSafetySourceIssueAction()
|
D | SafetySourceStateCollectedLogger.java | 24 import android.safetycenter.SafetySourceIssue; 108 List<SafetySourceIssue> sourceIssues = in logSafetySourceStateCollected() 123 SafetySourceIssue issue = sourceIssues.get(i); in logSafetySourceStateCollected() 147 private boolean isIssueDismissed(SafetySourceIssue issue, SafetySourceKey sourceKey) { in isIssueDismissed()
|
D | SafetySourceDataValidator.java | 24 import android.safetycenter.SafetySourceIssue; 151 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in validateRequest() 154 SafetySourceIssue safetySourceIssue = safetySourceIssues.get(i); in validateRequest()
|
D | SafetyEventFix.java | 25 import android.safetycenter.SafetySourceIssue; 104 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in getSourceIssueIds()
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetySourceIssues.java | 19 import android.safetycenter.SafetySourceIssue; 43 public static SafetySourceIssue.Action findAction(SafetySourceIssue issue, String actionId) { in findAction() 44 SafetySourceIssue.Action action = null; in findAction() 55 private static SafetySourceIssue.Action findAction( in findAction() 56 List<SafetySourceIssue.Action> actions, String actionId) { in findAction() 58 SafetySourceIssue.Action action = actions.get(i); in findAction() 73 public static boolean isPrimaryAction(SafetySourceIssue issue, String actionId) { in isPrimaryAction() 82 private static boolean matchesFirst(List<SafetySourceIssue.Action> actions, String actionId) { in matchesFirst()
|
D | SafetySourceIssueInfo.java | 22 import android.safetycenter.SafetySourceIssue; 37 private final SafetySourceIssue mSafetySourceIssue; 44 SafetySourceIssue safetySourceIssue, in SafetySourceIssueInfo() 65 public SafetySourceIssue getSafetySourceIssue() { in getSafetySourceIssue()
|
D | SafetyCenterDataFactory.java | 48 import android.safetycenter.SafetySourceIssue; 304 SafetySourceIssue safetySourceIssue, in toSafetyCenterIssue() 313 List<SafetySourceIssue.Action> safetySourceIssueActions = safetySourceIssue.getActions(); in toSafetyCenterIssue() 317 SafetySourceIssue.Action safetySourceIssueAction = safetySourceIssueActions.get(i); in toSafetyCenterIssue() 351 SafetySourceIssue.Action safetySourceIssueAction, in toSafetyCenterIssueAction() 371 SafetySourceIssue.Action.ConfirmationDialogDetails detailsFrom = in toSafetyCenterIssueAction() 1111 case SafetySourceIssue.ISSUE_CATEGORY_DEVICE: in getStatusTitleFromIssueCategories() 1113 case SafetySourceIssue.ISSUE_CATEGORY_ACCOUNT: in getStatusTitleFromIssueCategories() 1115 case SafetySourceIssue.ISSUE_CATEGORY_GENERAL: in getStatusTitleFromIssueCategories() 1117 case SafetySourceIssue.ISSUE_CATEGORY_DATA: in getStatusTitleFromIssueCategories() [all …]
|
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/ |
D | SafetyCenterNotificationSender.java | 31 import android.safetycenter.SafetySourceIssue; 106 private final ArrayMap<SafetyCenterIssueKey, SafetySourceIssue> mNotifiedIssues = 174 SafetySourceIssue notifiedIssue = mNotifiedIssues.get(issueKey); in notifyActionSuccess() 180 SafetySourceIssue.Action successfulAction = in notifyActionSuccess() 234 ArrayMap<SafetyCenterIssueKey, SafetySourceIssue> issuesToNotify = in updateNotifications() 243 SafetySourceIssue issue = issuesToNotify.valueAt(i); in updateNotifications() 281 SafetySourceIssue issue = mNotifiedIssues.valueAt(i); in dump() 288 private ArrayMap<SafetyCenterIssueKey, SafetySourceIssue> getIssuesToNotify( in getIssuesToNotify() 290 ArrayMap<SafetyCenterIssueKey, SafetySourceIssue> result = new ArrayMap<>(); in getIssuesToNotify() 297 SafetySourceIssue issue = issueInfo.getSafetySourceIssue(); in getIssuesToNotify() [all …]
|
D | SafetyCenterNotificationFactory.java | 37 import android.safetycenter.SafetySourceIssue; 84 SafetySourceIssue issue, in newNotificationForSuccessfulAction() 85 SafetySourceIssue.Action action, in newNotificationForSuccessfulAction() 130 SafetySourceIssue issue, in newNotificationForIssue() 139 List<SafetySourceIssue.Action> issueActions = issue.getActions(); in newNotificationForIssue() 142 SafetySourceIssue.Notification customNotification = issue.getCustomNotification(); in newNotificationForIssue() 268 SafetyCenterIssueKey issueKey, SafetySourceIssue.Action issueAction) { in toNotificationAction() 276 SafetyCenterIssueKey issueKey, SafetySourceIssue.Action issueAction) { in getPendingIntentForAction() 285 SafetyCenterIssueKey issueKey, SafetySourceIssue.Action issueAction) { in getReceiverPendingIntentForResolvingAction() 301 SafetySourceIssue.Action issueAction) { in getDirectPendingIntentForNonResolvingAction()
|
D | SafetyCenterNotificationChannels.java | 26 import android.safetycenter.SafetySourceIssue; 94 String getCreatedChannelId(NotificationManager notificationManager, SafetySourceIssue issue) { in getCreatedChannelId() 154 private String getChannelIdForIssue(SafetySourceIssue issue) { in getChannelIdForIssue()
|
D | SafetyCenterNotificationReceiver.java | 24 import android.safetycenter.SafetySourceIssue; 206 SafetySourceIssue dismissedIssue; in onNotificationDismissed() 235 SafetySourceIssue issue; in logNotificationActionClicked()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetySourceTestData.kt | 31 import android.safetycenter.SafetySourceIssue 32 import android.safetycenter.SafetySourceIssue.Action 33 import android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails 116 SafetySourceIssue.Builder(id, title, summary, SEVERITY_LEVEL_INFORMATION, ISSUE_TYPE_ID) in createTestActivityRedirectPendingIntent() 131 SafetySourceIssue.Builder( in createTestActivityRedirectPendingIntent() 344 SafetySourceIssue.Builder( in createTestActivityRedirectPendingIntent() 379 val recommendationIssueWithActionConfirmation: SafetySourceIssue in recommendationIssueWithDeduplicationId() 389 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_ACCOUNT) in recommendationIssueWithDeduplicationId() 398 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DEVICE) in recommendationIssueWithDeduplicationId() 507 val criticalResolvingActionWithConfirmation: SafetySourceIssue.Action in recommendationIssueWithDeduplicationId() [all …]
|
D | UiTestHelper.kt | 23 import android.safetycenter.SafetySourceIssue 130 fun waitSourceIssueDisplayed(sourceIssue: SafetySourceIssue) { in waitSourceIssueDisplayed() 140 fun waitSourceIssueNotDisplayed(sourceIssue: SafetySourceIssue) { in waitSourceIssueNotDisplayed() 148 fun waitCollapsedIssuesDisplayed(vararg sourceIssues: SafetySourceIssue) { in waitCollapsedIssuesDisplayed() 155 fun waitExpandedIssuesDisplayed(vararg sourceIssues: SafetySourceIssue) { in waitExpandedIssuesDisplayed()
|
/packages/apps/Settings/src/com/android/settings/safetycenter/ |
D | LockScreenSafetySource.java | 29 import android.safetycenter.SafetySourceIssue; 147 private static SafetySourceIssue createNoScreenLockIssue( in createNoScreenLockIssue() 149 final SafetySourceIssue.Action action = in createNoScreenLockIssue() 150 new SafetySourceIssue.Action.Builder( in createNoScreenLockIssue() 156 final SafetySourceIssue.Notification customNotification = in createNoScreenLockIssue() 157 new SafetySourceIssue.Notification.Builder( in createNoScreenLockIssue() 161 return new SafetySourceIssue.Builder( in createNoScreenLockIssue() 167 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DEVICE) in createNoScreenLockIssue() 169 .setIssueActionability(SafetySourceIssue.ISSUE_ACTIONABILITY_MANUAL) in createNoScreenLockIssue() 171 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_DELAYED) in createNoScreenLockIssue()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/ |
D | SafetySourceData.java | 163 List<SafetySourceIssue> issues = 164 requireNonNull(in.createTypedArrayList(SafetySourceIssue.CREATOR)); 185 @NonNull private final List<SafetySourceIssue> mIssues; 190 @NonNull List<SafetySourceIssue> issues, in SafetySourceData() 205 public List<SafetySourceIssue> getIssues() { in getIssues() 266 @NonNull private final List<SafetySourceIssue> mIssues = new ArrayList<>(); 296 public Builder addIssue(@NonNull SafetySourceIssue safetySourceIssue) { in addIssue() 345 List<SafetySourceIssue> issues = unmodifiableList(new ArrayList<>(mIssues)); in build() 363 @NonNull List<SafetySourceIssue> issues) { in getIssuesMaxSeverityLevelEnforcingUniqueIds() 367 SafetySourceIssue safetySourceIssue = issues.get(i); in getIssuesMaxSeverityLevelEnforcingUniqueIds()
|
D | SafetySourceIssue.java | 64 public final class SafetySourceIssue implements Parcelable { class 212 public static final Creator<SafetySourceIssue> CREATOR = 213 new Creator<SafetySourceIssue>() { 215 public SafetySourceIssue createFromParcel(Parcel in) { 246 public SafetySourceIssue[] newArray(int size) { 247 return new SafetySourceIssue[size]; 266 private SafetySourceIssue( in SafetySourceIssue() method in SafetySourceIssue 546 if (!(o instanceof SafetySourceIssue)) return false; in equals() 547 SafetySourceIssue that = (SafetySourceIssue) o; in equals() 659 @NonNull List<SafetySourceIssue.Action> actions, @NonNull String message) { in enforceUniqueActionIds() [all …]
|
/packages/modules/Permission/framework-s/api/ |
D | system-current.txt | 382 method @NonNull public java.util.List<android.safetycenter.SafetySourceIssue> getIssues(); 395 …id.safetycenter.SafetySourceData.Builder addIssue(@NonNull android.safetycenter.SafetySourceIssue); 411 public final class SafetySourceIssue implements android.os.Parcelable { 413 … method @NonNull public java.util.List<android.safetycenter.SafetySourceIssue.Action> getActions(); 415 …method @Nullable public android.safetycenter.SafetySourceIssue.Notification getCustomNotification(… 428 … public static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue> CREATOR; 444 public static final class SafetySourceIssue.Action implements android.os.Parcelable { 446 …method @Nullable public android.safetycenter.SafetySourceIssue.Action.ConfirmationDialogDetails ge… 453 …lic static final android.os.Parcelable.Creator<android.safetycenter.SafetySourceIssue.Action> CREA… 456 public static final class SafetySourceIssue.Action.Builder { [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterNotificationTest.kt | 30 import android.safetycenter.SafetySourceIssue 158 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_NEVER) in setSafetySourceData_withNotificationBehaviorNever_noNotification() 178 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_DELAYED) in setSafetySourceData_withNotificationBehaviorDelay_noImmediateNotification() 195 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_DELAYED) in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() 200 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_NEVER) in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() 245 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_DELAYED) in setSafetySourceData_withNotificationBehaviorDelayOfZero_sendsNotificationImmediately() 273 SafetySourceIssue.NOTIFICATION_BEHAVIOR_IMMEDIATELY in setSafetySourceData_withNotificationBehaviorImmediately_sendsNotification() 321 SafetySourceIssue.Action.Builder("action1", "Action 1", intent1).build() in setSafetySourceData_issueWithTwoActions_notificationWithTwoActions() 324 SafetySourceIssue.Action.Builder("action2", "Action 2", intent2).build() in setSafetySourceData_issueWithTwoActions_notificationWithTwoActions() 362 SafetySourceIssue.NOTIFICATION_BEHAVIOR_IMMEDIATELY in setSafetySourceData_withNotificationsAllowedForSourceByConfig_sendsNotification() [all …]
|
D | SafetyCenterManagerTest.kt | 58 import android.safetycenter.SafetySourceIssue in <lambda>() 1372 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DATA) in <lambda>() 1397 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DATA) in <lambda>() 1422 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_PASSWORDS) in <lambda>() 1447 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_PASSWORDS) in <lambda>() 1472 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_PERSONAL_SAFETY) in <lambda>() 1497 .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_PERSONAL_SAFETY) in <lambda>() 1522 .setIssueActionability(SafetySourceIssue.ISSUE_ACTIONABILITY_TIP) in <lambda>() 1542 .setIssueActionability(SafetySourceIssue.ISSUE_ACTIONABILITY_TIP) in <lambda>() 1546 .setIssueActionability(SafetySourceIssue.ISSUE_ACTIONABILITY_MANUAL) in <lambda>() [all …]
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetyCenterNotificationLoggingHelperTests.kt | 21 import android.safetycenter.SafetySourceIssue 94 .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_IMMEDIATELY) in newTestDataWithNotifiableIssue()
|