Home
last modified time | relevance | path

Searched refs:issue (Results 1 – 25 of 80) sorted by relevance

1234

/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/
DSafetyCenterSubpagesTest.kt438 val issue = sourceData.issues[0] in issueCard_withMultipleGroups_onlyRelevantSubpageHasIssueCard() constant
447 waitSourceIssueDisplayed(issue) in issueCard_withMultipleGroups_onlyRelevantSubpageHasIssueCard()
451 waitSourceIssueNotDisplayed(issue) in issueCard_withMultipleGroups_onlyRelevantSubpageHasIssueCard()
455 waitSourceIssueDisplayed(issue) in issueCard_withMultipleGroups_onlyRelevantSubpageHasIssueCard()
486 val issue = sourceData.issues[0] in issueCard_resolveIssueOnSubpage_issueDismisses() constant
487 val action = issue.actions[0] in issueCard_resolveIssueOnSubpage_issueDismisses()
497 waitSourceIssueDisplayed(issue) in issueCard_resolveIssueOnSubpage_issueDismisses()
502 waitSourceIssueNotDisplayed(issue) in issueCard_resolveIssueOnSubpage_issueDismisses()
513 val issue = sourceData.issues[0] in issueCard_confirmDismissalOnSubpage_dismissesIssue() constant
517 waitSourceIssueDisplayed(issue) in issueCard_confirmDismissalOnSubpage_dismissesIssue()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetySourceDataOverrides.java51 static SafetySourceIssue.Builder copyIssueToBuilderWithoutActions(SafetySourceIssue issue) { in copyIssueToBuilderWithoutActions() argument
53 return new SafetySourceIssue.Builder(issue).clearActions(); in copyIssueToBuilderWithoutActions()
58 issue.getId(), in copyIssueToBuilderWithoutActions()
59 issue.getTitle(), in copyIssueToBuilderWithoutActions()
60 issue.getSummary(), in copyIssueToBuilderWithoutActions()
61 issue.getSeverityLevel(), in copyIssueToBuilderWithoutActions()
62 issue.getIssueTypeId()) in copyIssueToBuilderWithoutActions()
63 .setIssueCategory(issue.getIssueCategory()) in copyIssueToBuilderWithoutActions()
64 .setSubtitle(issue.getSubtitle()) in copyIssueToBuilderWithoutActions()
65 .setOnDismissPendingIntent(issue.getOnDismissPendingIntent()); in copyIssueToBuilderWithoutActions()
DSafetySourceStateCollectedLogger.java123 SafetySourceIssue issue = sourceIssues.get(i); in logSafetySourceStateCollected() local
124 if (isIssueDismissed(issue, sourceKey)) { in logSafetySourceStateCollected()
128 maxSeverityLevel = Math.max(maxSeverityLevel, issue.getSeverityLevel()); in logSafetySourceStateCollected()
147 private boolean isIssueDismissed(SafetySourceIssue issue, SafetySourceKey sourceKey) { in isIssueDismissed() argument
151 .setSafetySourceIssueId(issue.getId()) in isIssueDismissed()
154 return mIssueDismissalRepository.isIssueDismissed(issueKey, issue.getSeverityLevel()); in isIssueDismissed()
DDefaultActionOverrideFix.java130 SafetySourceIssue issue, List<String> actionsToOverride, PendingIntent defaultIntent) { in maybeOverrideActionsWithDefaultIntent() argument
132 SafetySourceDataOverrides.copyIssueToBuilderWithoutActions(issue); in maybeOverrideActionsWithDefaultIntent()
134 List<SafetySourceIssue.Action> actions = issue.getActions(); in maybeOverrideActionsWithDefaultIntent()
143 issue.getCustomNotification(), actionsToOverride, defaultIntent)); in maybeOverrideActionsWithDefaultIntent()
DAndroidLockScreenFix.java129 Context context, SafetySourceIssue issue) { in overrideTiramisuIssue() argument
131 SafetySourceDataOverrides.copyIssueToBuilderWithoutActions(issue); in overrideTiramisuIssue()
133 List<SafetySourceIssue.Action> actions = issue.getActions(); in overrideTiramisuIssue()
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationSender.java243 SafetySourceIssue issue = issuesToNotify.valueAt(i); in updateNotifications() local
245 boolean unchanged = issue.equals(mNotifiedIssues.get(issueKey)); in updateNotifications()
251 boolean wasPosted = postNotificationForIssue(notificationManager, issue, issueKey); in updateNotifications()
281 SafetySourceIssue issue = mNotifiedIssues.valueAt(i); in dump() local
282 fout.println("\t[" + i + "] " + toUserFriendlyString(key) + " -> " + issue); in dump()
297 SafetySourceIssue issue = issueInfo.getSafetySourceIssue(); in getIssuesToNotify() local
304 issueKey, issue.getSeverityLevel())) { in getIssuesToNotify()
310 int behavior = getBehavior(issue, issueKey); in getIssuesToNotify()
312 result.put(issueKey, issue); in getIssuesToNotify()
315 result.put(issueKey, issue); in getIssuesToNotify()
[all …]
DSafetyCenterNotificationFactory.java84 SafetySourceIssue issue, in newNotificationForSuccessfulAction() argument
91 String channelId = mNotificationChannels.getCreatedChannelId(notificationManager, issue); in newNotificationForSuccessfulAction()
130 SafetySourceIssue issue, in newNotificationForIssue() argument
132 String channelId = mNotificationChannels.getCreatedChannelId(notificationManager, issue); in newNotificationForIssue()
137 CharSequence title = issue.getTitle(); in newNotificationForIssue()
138 CharSequence text = issue.getSummary(); in newNotificationForIssue()
139 List<SafetySourceIssue.Action> issueActions = issue.getActions(); in newNotificationForIssue()
142 SafetySourceIssue.Notification customNotification = issue.getCustomNotification(); in newNotificationForIssue()
157 .setSmallIcon(getNotificationIcon(issue.getSeverityLevel())) in newNotificationForIssue()
167 Integer color = getNotificationColor(issue.getSeverityLevel()); in newNotificationForIssue()
[all …]
DSafetyCenterNotificationChannels.java94 String getCreatedChannelId(NotificationManager notificationManager, SafetySourceIssue issue) { in getCreatedChannelId() argument
101 return getChannelIdForIssue(issue); in getCreatedChannelId()
154 private String getChannelIdForIssue(SafetySourceIssue issue) { in getChannelIdForIssue() argument
155 int issueSeverityLevel = issue.getSeverityLevel(); in getChannelIdForIssue()
164 Log.w(TAG, "SafetySourceData.SeverityLevel is unspecified for issue: " + issue); in getChannelIdForIssue()
173 + issue); in getChannelIdForIssue()
DSafetyCenterNotificationReceiver.java235 SafetySourceIssue issue; in logNotificationActionClicked() local
237 issue = mSafetyCenterDataManager.getSafetySourceIssue(issueKey); in logNotificationActionClicked()
239 if (issue != null) { in logNotificationActionClicked()
243 issue.getIssueTypeId(), in logNotificationActionClicked()
244 issue.getSeverityLevel(), in logNotificationActionClicked()
246 issue, issueActionId.getSafetySourceIssueActionId())); in logNotificationActionClicked()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetySourceIssues.java43 public static SafetySourceIssue.Action findAction(SafetySourceIssue issue, String actionId) { in findAction() argument
45 if (SdkLevel.isAtLeastU() && issue.getCustomNotification() != null) { in findAction()
46 action = findAction(issue.getCustomNotification().getActions(), actionId); in findAction()
49 action = findAction(issue.getActions(), actionId); in findAction()
73 public static boolean isPrimaryAction(SafetySourceIssue issue, String actionId) { in isPrimaryAction() argument
76 && issue.getCustomNotification() != null in isPrimaryAction()
77 && matchesFirst(issue.getCustomNotification().getActions(), actionId); in isPrimaryAction()
78 boolean isPrimaryIssueAction = matchesFirst(issue.getActions(), actionId); in isPrimaryAction()
/packages/modules/Permission/SafetyCenter/InternalData/proto/
Dsafety_center_internal_data.proto34 // Key that has a 1 to 1 mapping with a safety source issue.
36 // The ID of the type of the safety source issue.
38 // A task ID to launch the issue's actions in, if applicable.
42 // Key that has a 1 to 1 mapping with a safety source issue.
44 // The ID of the safety source that the issue originated from.
46 // The ID of the safety source issue that the issue originated from.
48 // The user ID associated with this issue.
52 // An id for issue actions provided by the Safety Center.
55 // The ID of the safety source issue action that the action originated from.
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DLiveSafetyCenterViewModel.kt70 override fun dismissIssue(issue: SafetyCenterIssue) { in <lambda>()
71 safetyCenterManager.dismissSafetyCenterIssue(issue.id) in <lambda>()
75 issue: SafetyCenterIssue, in <lambda>()
82 SafetyCenterIds.issueIdFromString(issue.id) in <lambda>()
88 issue.id in <lambda>()
245 return issuesPendingResolution.filterNot { issue -> nextIssueIds.contains(issue.key) } in <lambda>() method
287 .map { issue -> in SafetyCenterData() method
288 issue.actions in SafetyCenterData()
292 .map { issue.id to it.id } in SafetyCenterData()
DSafetyCenterViewModel.kt39 abstract fun dismissIssue(issue: SafetyCenterIssue)
48 issue: SafetyCenterIssue,
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DCollapsableIssuesCardHelper.kt206 this?.mapIndexed { index: Int, issue: SafetyCenterIssue -> in <lambda>() method
207 val resolvedActionId: ActionId? = resolvedIssues[issue.id] in <lambda>()
208 val resolvedTaskId = getLaunchTaskIdForIssue(issue, launchTaskId) in <lambda>()
213 issue, in <lambda>()
258 issues.forEachIndexed { index, issue -> in <lambda>() method
259 val issueKey = SafetyCenterIds.issueIdFromString(issue.id).safetyCenterIssueKey in <lambda>()
263 return issue in <lambda>()
280 issue: SafetyCenterIssue, in <lambda>()
283 return if (issueList.isEmpty() || issueList[0].severityLevel <= issue.severityLevel) { in <lambda>()
456 private fun getLaunchTaskIdForIssue(issue: SafetyCenterIssue, taskId: Int): Int? { in <lambda>()
[all …]
DIssueCardPreference.java82 SafetyCenterIssue issue, in IssueCardPreference() argument
92 mIssue = requireNonNull(issue); in IssueCardPreference()
294 private static ConfirmDismissalDialogFragment newInstance(SafetyCenterIssue issue) { in newInstance() argument
298 args.putParcelable(ISSUE_KEY, issue); in newInstance()
308 SafetyCenterIssue issue = in onCreateDialog() local
317 safetyCenterViewModel.dismissIssue(issue); in onCreateDialog()
322 issue, in onCreateDialog()
343 SafetyCenterIssue issue, in newInstance() argument
351 args.putParcelable(ISSUE_KEY, issue); in newInstance()
369 SafetyCenterIssue issue = in onCreateDialog() local
[all …]
DInteractionLogger.kt63 fun recordIssueViewed(issue: SafetyCenterIssue, isDismissed: Boolean) { in recordIssueViewed()
64 if (viewedIssueIds.contains(issue.id)) { in recordIssueViewed()
68 recordForIssue(Action.SAFETY_ISSUE_VIEWED, issue, isDismissed) in recordIssueViewed()
69 viewedIssueIds.add(issue.id) in recordIssueViewed()
76 fun recordForIssue(action: Action, issue: SafetyCenterIssue, isDismissed: Boolean) { in recordForIssue()
77 val decodedId = SafetyCenterIds.issueIdFromString(issue.id) in recordForIssue()
80 LogSeverityLevel.fromIssueSeverityLevel(issue.severityLevel), in recordForIssue()
/packages/modules/AdServices/adservices/linter/java/android/adservices/lint/prod/
DRoomDatabaseMigrationDetector.kt56 issue = ISSUE_ERROR, in <lambda>()
103 issue = ISSUE_ERROR, in <lambda>()
126 issue = ISSUE_ERROR, in <lambda>()
137 issue = ISSUE_WARNING, in <lambda>()
154 issue = ISSUE_ERROR, in <lambda>()
168 issue = ISSUE_ERROR, in <lambda>()
187 issue = ISSUE_ERROR, in <lambda>()
196 issue = ISSUE_ERROR, in <lambda>()
221 issue = ISSUE_ERROR, in <lambda>()
DBackCompatAndroidProcessDetector.kt50 for (issue: Int in issues) { in <lambda>() method
54 … "AdExtServicesManifest.xml is missing an `android:process=\".adservices\" at line " + issue) in <lambda>()
DBackCompatNewFileDetector.kt34 issue = ISSUE, in visitConstructor()
53 issue = ISSUE, in visitMethodCall()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterIssue.java353 public Builder(@NonNull SafetyCenterIssue issue) { in Builder() argument
354 mId = issue.mId; in Builder()
355 mTitle = issue.mTitle; in Builder()
356 mSubtitle = issue.mSubtitle; in Builder()
357 mSummary = issue.mSummary; in Builder()
358 mSeverityLevel = issue.mSeverityLevel; in Builder()
359 mDismissible = issue.mDismissible; in Builder()
360 mShouldConfirmDismissal = issue.mShouldConfirmDismissal; in Builder()
361 mActions = new ArrayList<>(issue.mActions); in Builder()
362 mAttributionTitle = issue.mAttributionTitle; in Builder()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DLockScreenSafetySourceTest.java309 SafetySourceIssue issue = safetySourceData.getIssues().get(0); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue() local
310 assertThat(issue.getId()).isEqualTo(LockScreenSafetySource.NO_SCREEN_LOCK_ISSUE_ID); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
311 assertThat(issue.getTitle().toString()) in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
315 assertThat(issue.getSummary().toString()) in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
319 assertThat(issue.getSeverityLevel()) in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
321 assertThat(issue.getIssueTypeId()) in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
323 assertThat(issue.getIssueCategory()).isEqualTo(SafetySourceIssue.ISSUE_CATEGORY_DEVICE); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
324 assertThat(issue.getActions()).hasSize(1); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
325 SafetySourceIssue.Action action = issue.getActions().get(0); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterIssueTest.kt232 val issue = SafetyCenterIssue.Builder(issue1).setGroupId("group_id").build() in getGroupId_withNonNullValue_returnsGroupId() constant
234 assertThat(issue.groupId).isEqualTo("group_id") in getGroupId_withNonNullValue_returnsGroupId()
240 val issue = in getGroupId_withNullValue_returnsNull() constant
244 assertThat(issue.groupId).isNull() in getGroupId_withNullValue_returnsNull()
250 val issue = in getGroupId_withVersionLessThanU_throws() constant
254 assertFails { issue.groupId } in getGroupId_withVersionLessThanU_throws()
260 val issue = SafetyCenterIssue.Builder(issue1).setGroupId(null).build() in setGroupId_withNullValue_returnsNull() constant
262 assertThat(issue.groupId).isNull() in setGroupId_withNullValue_returnsNull()
/packages/services/Telecomm/flags/
Dtelecom_callaudioroutestatemachine_flags.aconfig8 description: "Fix supported routes wrongly include bluetooth issue."
40 description: "Fix audio route transition issue on call disconnection when bt audio connected."
/packages/modules/Bluetooth/tools/lint/checks/src/com/android/bluetooth/lint/
DGuardedLogLineDetector.kt148 issue = ISSUE, in createUastHandler()
155 issue = WARNING, in createUastHandler()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DSafetyCenterUiDataTest.kt266 for (issue in issues) { in createSafetyCenterData() constant
267 builder.addIssue(issue) in createSafetyCenterData()

1234