Home
last modified time | relevance | path

Searched refs:safetySourceIssue (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceIssueTest.kt552 val safetySourceIssue = in getId_returnsId() constant
563 assertThat(safetySourceIssue.id).isEqualTo("Issue id") in getId_returnsId()
568 val safetySourceIssue = in getTitle_returnsTitle() constant
579 assertThat(safetySourceIssue.title).isEqualTo("Issue title") in getTitle_returnsTitle()
584 val safetySourceIssue = in getSubtitle_withDefaultBuilder_returnsNull() constant
595 assertThat(safetySourceIssue.subtitle).isNull() in getSubtitle_withDefaultBuilder_returnsNull()
600 val safetySourceIssue = in getSubtitle_whenSetExplicitly_returnsSubtitle() constant
612 assertThat(safetySourceIssue.subtitle).isEqualTo("Issue subtitle") in getSubtitle_whenSetExplicitly_returnsSubtitle()
617 val safetySourceIssue = in getSummary_returnsSummary() constant
628 assertThat(safetySourceIssue.summary).isEqualTo("Issue summary") in getSummary_returnsSummary()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyCenterInFlightIssueActionRepository.java72 @Nullable SafetySourceIssue safetySourceIssue, in unmarkSafetyCenterIssueActionInFlight() argument
85 String issueTypeId = safetySourceIssue == null ? null : safetySourceIssue.getIssueTypeId(); in unmarkSafetyCenterIssueActionInFlight()
95 if (safetySourceIssue == null in unmarkSafetyCenterIssueActionInFlight()
96 || getSafetySourceIssueAction(safetyCenterIssueActionId, safetySourceIssue) in unmarkSafetyCenterIssueActionInFlight()
133 SafetySourceIssue safetySourceIssue) { in getSafetySourceIssueAction() argument
139 safetySourceIssue, safetyCenterIssueActionId.getSafetySourceIssueActionId()); in getSafetySourceIssueAction()
DSafetySourceDataRepository.java228 SafetySourceIssue safetySourceIssue = safetySourceIssues.get(i); in getSafetySourceIssue() local
230 if (safetyCenterIssueKey.getSafetySourceIssueId().equals(safetySourceIssue.getId())) { in getSafetySourceIssue()
231 targetIssue = safetySourceIssue; in getSafetySourceIssue()
250 SafetySourceIssue safetySourceIssue = in getSafetySourceIssueAction() local
253 if (safetySourceIssue == null) { in getSafetySourceIssueAction()
258 safetyCenterIssueActionId, safetySourceIssue); in getSafetySourceIssueAction()
DSafetySourceDataValidator.java154 SafetySourceIssue safetySourceIssue = safetySourceIssues.get(i); in validateRequest() local
155 int issueSeverityLevel = safetySourceIssue.getSeverityLevel(); in validateRequest()
164 int issueCategory = safetySourceIssue.getIssueCategory(); in validateRequest()
DSafetyCenterIssueRepository.java233 SafetySourceIssue safetySourceIssue = safetySourceIssues.get(i); in addSafetySourceIssuesInfo() local
237 safetySourceIssue, safetySource, safetySourcesGroup, userId); in addSafetySourceIssuesInfo()
DSafetyCenterDataManager.java292 @Nullable SafetySourceIssue safetySourceIssue, in unmarkSafetyCenterIssueActionInFlight() argument
296 safetyCenterIssueActionId, safetySourceIssue, result); in unmarkSafetyCenterIssueActionInFlight()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetySourceIssue.java1240 public Builder(@NonNull SafetySourceIssue safetySourceIssue) { in Builder() argument
1245 requireNonNull(safetySourceIssue); in Builder()
1246 mId = safetySourceIssue.mId; in Builder()
1247 mTitle = safetySourceIssue.mTitle; in Builder()
1248 mSummary = safetySourceIssue.mSummary; in Builder()
1249 mSeverityLevel = safetySourceIssue.mSeverityLevel; in Builder()
1250 mIssueTypeId = safetySourceIssue.mIssueTypeId; in Builder()
1251 mActions.addAll(safetySourceIssue.mActions); in Builder()
1252 mSubtitle = safetySourceIssue.mSubtitle; in Builder()
1253 mIssueCategory = safetySourceIssue.mIssueCategory; in Builder()
[all …]
DSafetySourceData.java296 public Builder addIssue(@NonNull SafetySourceIssue safetySourceIssue) { in addIssue() argument
297 mIssues.add(requireNonNull(safetySourceIssue)); in addIssue()
367 SafetySourceIssue safetySourceIssue = issues.get(i); in getIssuesMaxSeverityLevelEnforcingUniqueIds() local
369 String issueId = safetySourceIssue.getId(); in getIssuesMaxSeverityLevelEnforcingUniqueIds()
373 max = Math.max(max, safetySourceIssue.getSeverityLevel()); in getIssuesMaxSeverityLevelEnforcingUniqueIds()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DNotificationListenerCheckInternalTest.kt466 val safetySourceIssue = in createSafetySourceIssue() constant
510 assertThat(safetySourceIssue.id).isEqualTo(expectedId) in createSafetySourceIssue()
511 assertThat(safetySourceIssue.title).isEqualTo(expectedTitle) in createSafetySourceIssue()
512 assertThat(safetySourceIssue.subtitle).isEqualTo(expectedSubtitle) in createSafetySourceIssue()
513 assertThat(safetySourceIssue.summary).isEqualTo(expectedSummary) in createSafetySourceIssue()
514 assertThat(safetySourceIssue.severityLevel).isEqualTo(expectedSeverityLevel) in createSafetySourceIssue()
515 assertThat(safetySourceIssue.issueTypeId).isEqualTo(expectedIssueTypeId) in createSafetySourceIssue()
516 assertThat(safetySourceIssue.onDismissPendingIntent).isEqualTo(expectedDismissPendingIntent) in createSafetySourceIssue()
517 assertThat(safetySourceIssue.actions.size).isEqualTo(2) in createSafetySourceIssue()
518 assertThat(safetySourceIssue.actions).containsExactly(expectedAction2, expectedAction1) in createSafetySourceIssue()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetySourceIssueInfo.java44 SafetySourceIssue safetySourceIssue, in SafetySourceIssueInfo() argument
48 mSafetySourceIssue = safetySourceIssue; in SafetySourceIssueInfo()
54 .setSafetySourceIssueId(safetySourceIssue.getId()) in SafetySourceIssueInfo()
DSafetyCenterDataFactory.java304 SafetySourceIssue safetySourceIssue, in toSafetyCenterIssue() argument
310 .setIssueTypeId(safetySourceIssue.getIssueTypeId()) in toSafetyCenterIssue()
313 List<SafetySourceIssue.Action> safetySourceIssueActions = safetySourceIssue.getActions(); in toSafetyCenterIssue()
326 toSafetyCenterIssueSeverityLevel(safetySourceIssue.getSeverityLevel()); in toSafetyCenterIssue()
330 safetySourceIssue.getTitle(), in toSafetyCenterIssue()
331 safetySourceIssue.getSummary()) in toSafetyCenterIssue()
336 .setSubtitle(safetySourceIssue.getSubtitle()) in toSafetyCenterIssue()
340 TextUtils.isEmpty(safetySourceIssue.getAttributionTitle()) in toSafetyCenterIssue()
343 : safetySourceIssue.getAttributionTitle(); in toSafetyCenterIssue()
1168 private static boolean isTip(SafetySourceIssue safetySourceIssue) { in isTip() argument
[all …]
DSafetyCenterService.java543 SafetySourceIssue safetySourceIssue = in dismissSafetyCenterIssue() local
545 if (safetySourceIssue == null) { in dismissSafetyCenterIssue()
553 safetyCenterIssueKey, safetySourceIssue.getSeverityLevel())) { in dismissSafetyCenterIssue()
561 safetySourceIssue.getOnDismissPendingIntent(); in dismissSafetyCenterIssue()
991 SafetySourceIssue safetySourceIssue = in run() local
997 safetySourceIssue, in run()