Home
last modified time | relevance | path

Searched refs:severityLevel (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyStatusAnimationSequencer.kt43 fun onUpdateReceived(isRefreshInProgress: Boolean, severityLevel: Int): Action? { in onUpdateReceived()
49 currentlyVisibleSeverityLevel = severityLevel in onUpdateReceived()
59 queuedIconChangeAnimationSeverityLevel != severityLevel in onUpdateReceived()
61 currentlyVisibleSeverityLevel != severityLevel || isDifferentSeverityQueued in onUpdateReceived()
64 queuedIconChangeAnimationSeverityLevel = severityLevel in onUpdateReceived()
91 fun onContinueScanningAnimationEnd(isRefreshInProgress: Boolean, severityLevel: Int): Action? { in onContinueScanningAnimationEnd()
93 if (currentlyVisibleSeverityLevel != severityLevel) { in onContinueScanningAnimationEnd()
97 currentlyVisibleSeverityLevel = severityLevel in onContinueScanningAnimationEnd()
110 fun onFinishScanAnimationEnd(isRefreshing: Boolean, severityLevel: Int): Action { in onFinishScanAnimationEnd()
112 currentlyVisibleSeverityLevel = severityLevel in onFinishScanAnimationEnd()
[all …]
DSeverityIconPicker.kt31 severityLevel: Int, in selectIconResIdOrNull()
37 return selectIconResId(id, severityLevel, severityUnspecifiedIconType) in selectIconResIdOrNull()
41 fun selectIconResId(id: String, severityLevel: Int, severityUnspecifiedIconType: Int): Int { in selectIconResId()
46 when (severityLevel) { in selectIconResId()
58 String.format("Unexpected SafetyCenterEntry.EntrySeverityLevel: %s", severityLevel) in selectIconResId()
DStatusAnimationResolver.kt31 fun getScanningStartAnimation(severityLevel: Int): Int { in getScanningStartAnimation()
32 return when (severityLevel) { in getScanningStartAnimation()
40 Log.w(LOG_TAG, String.format("Unexpected severity level: %s", severityLevel)) in getScanningStartAnimation()
47 fun getScanningAnimation(severityLevel: Int): Int { in getScanningAnimation()
48 return when (severityLevel) { in getScanningAnimation()
56 Log.w(LOG_TAG, String.format("Unexpected severity level: %s", severityLevel)) in getScanningAnimation()
DSafetyHomepageEntryPreference.kt47 entryGroup.severityLevel,
70 entryGroup.severityLevel == preference.entryGroup.severityLevel &&
DInteractionLogger.kt80 LogSeverityLevel.fromIssueSeverityLevel(issue.severityLevel), in recordForIssue()
98 LogSeverityLevel.fromEntrySeverityLevel(entry.severityLevel), in recordForEntry()
110 severityLevel: LogSeverityLevel = LogSeverityLevel.UNKNOWN, in writeAtom()
132 severityLevel.statsLogValue, in writeAtom()
DMoreIssuesCardPreference.kt51 newMoreIssuesCardData.severityLevel in onBindViewHolder()
95 val severityLevel: Int, constant in MoreIssuesCardData
DCollapsableIssuesCardHelper.kt283 return if (issueList.isEmpty() || issueList[0].severityLevel <= issue.severityLevel) { in <lambda>()
417 return firstHiddenIssue?.severityLevel ?: ISSUE_SEVERITY_LEVEL_OK in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DStatusUiData.kt31 fun getStatusImageResId(severityLevel: Int) = in copyForPendingActions()
32 when (severityLevel) { in copyForPendingActions()
40 Log.w(TAG, "Unexpected OverallSeverityLevel: $severityLevel") in copyForPendingActions()
48 val severityLevel: Int by status::severityLevel constant in com.android.permissioncontroller.safetycenter.ui.model.StatusUiData
51 get() = getStatusImageResId(severityLevel)
81 when (severityLevel) { in shouldShowRescanButton()
97 severityLevel == OVERALL_SEVERITY_LEVEL_OK ||
98 severityLevel == OVERALL_SEVERITY_LEVEL_UNKNOWN -> ButtonToShow.RESCAN
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DStatusUiDataTest.kt82 assertThat(StatusUiData(STATUS).severityLevel).isEqualTo(STATUS.severityLevel) in getSeverityLevel_returnsSeverityLevel()
83 assertThat(StatusUiData(ANOTHER_STATUS).severityLevel) in getSeverityLevel_returnsSeverityLevel()
84 .isEqualTo(ANOTHER_STATUS.severityLevel) in getSeverityLevel_returnsSeverityLevel()
86 StatusUiData(SafetyCenterData(STATUS, listOf(), listOf(), listOf())).severityLevel in getSeverityLevel_returnsSeverityLevel()
88 .isEqualTo(STATUS.severityLevel) in getSeverityLevel_returnsSeverityLevel()
276 fun statusForSeverity(severityLevel: Int) =
277 SafetyCenterStatus.Builder(STATUS).setSeverityLevel(severityLevel).build()
279 fun uiDataForSeverity(severityLevel: Int) = StatusUiData(statusForSeverity(severityLevel))
DSafetyCenterUiDataTest.kt221 severityLevel = ISSUE_SEVERITY_LEVEL_OK in getMatchingDismissedIssues_doesntReturnGreenIssues()
227 severityLevel = ISSUE_SEVERITY_LEVEL_RECOMMENDATION in getMatchingDismissedIssues_doesntReturnGreenIssues()
233 severityLevel = ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING in getMatchingDismissedIssues_doesntReturnGreenIssues()
285 severityLevel: Int = ISSUE_SEVERITY_LEVEL_RECOMMENDATION in createSafetyCenterEntryGroup()
288 .setSeverityLevel(severityLevel) in createSafetyCenterEntryGroup()
/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/
DSafetyCenterActivityTest.kt144 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysCollapsedGroupsOfMultipleSource()
153 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysCollapsedGroupsOfMultipleSource()
162 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysCollapsedGroupsOfMultipleSource()
171 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysCollapsedGroupsOfMultipleSource()
180 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysCollapsedGroupsOfMultipleSource()
215 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysPrioritizedGroupSummary()
224 severityLevel = SEVERITY_LEVEL_RECOMMENDATION, in launchActivity_displaysPrioritizedGroupSummary()
233 severityLevel = SEVERITY_LEVEL_INFORMATION, in launchActivity_displaysPrioritizedGroupSummary()
242 severityLevel = SEVERITY_LEVEL_RECOMMENDATION, in launchActivity_displaysPrioritizedGroupSummary()
251 severityLevel = SEVERITY_LEVEL_CRITICAL_WARNING, in launchActivity_displaysPrioritizedGroupSummary()
[all …]
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterManagerTest.kt2626 severityLevel = SEVERITY_LEVEL_UNSPECIFIED, in <lambda>()
2633 severityLevel = SEVERITY_LEVEL_INFORMATION, in <lambda>()
2640 severityLevel = SEVERITY_LEVEL_INFORMATION, in <lambda>()
2648 severityLevel = SEVERITY_LEVEL_RECOMMENDATION, in <lambda>()
2655 severityLevel = SEVERITY_LEVEL_CRITICAL_WARNING, in <lambda>()
2662 severityLevel = SEVERITY_LEVEL_CRITICAL_WARNING, in <lambda>()
2672 assertThat(group.severityLevel).isEqualTo(ENTRY_SEVERITY_LEVEL_CRITICAL_WARNING) in <lambda>()
2685 severityLevel = SEVERITY_LEVEL_UNSPECIFIED, in <lambda>()
2692 severityLevel = SEVERITY_LEVEL_INFORMATION, in <lambda>()
2699 severityLevel = SEVERITY_LEVEL_INFORMATION, in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DMoreIssuesHeaderView.kt61 updateStatusIcon(previousData?.severityLevel, nextData.severityLevel) in <lambda>()
87 fun showStaticHeader(title: String, severityLevel: Int) { in <lambda>()
89 updateStatusIcon(previousSeverityLevel = null, severityLevel) in <lambda>()
143 private fun selectIconResId(severityLevel: Int): Int { in <lambda>()
144 return when (severityLevel) { in <lambda>()
150 Log.e(TAG, "Unexpected SafetyCenterIssue.IssueSeverityLevel: $severityLevel") in <lambda>()
DSafetyEntryCommonViewsManager.kt42 severityLevel: Int, in showDetails()
49 SeverityIconPicker.selectIconResId(id, severityLevel, severityUnspecifiedIconType) in showDetails()
53 (severityLevel == ENTRY_SEVERITY_LEVEL_UNSPECIFIED && in showDetails()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetySourceStatus.java60 int severityLevel = in.readInt();
61 return new Builder(title, summary, severityLevel)
84 @SafetySourceData.SeverityLevel int severityLevel, in SafetySourceStatus() argument
90 this.mSeverityLevel = severityLevel; in SafetySourceStatus()
341 @SafetySourceData.SeverityLevel int severityLevel) { in Builder() argument
344 this.mSeverityLevel = validateSeverityLevel(severityLevel); in Builder()
DSafetyCenterStatus.java146 @OverallSeverityLevel int severityLevel, in SafetyCenterStatus() argument
150 mSeverityLevel = severityLevel; in SafetyCenterStatus()
267 public Builder setSeverityLevel(@OverallSeverityLevel int severityLevel) { in setSeverityLevel() argument
268 mSeverityLevel = validateOverallSeverityLevel(severityLevel); in setSeverityLevel()
DSafetyCenterEntryGroup.java79 @SafetyCenterEntry.EntrySeverityLevel int severityLevel, in SafetyCenterEntryGroup() argument
85 mSeverityLevel = severityLevel; in SafetyCenterEntryGroup()
245 public Builder setSeverityLevel(@SafetyCenterEntry.EntrySeverityLevel int severityLevel) { in setSeverityLevel() argument
246 mSeverityLevel = validateEntrySeverityLevel(severityLevel); in setSeverityLevel()
DSafetyCenterEntry.java167 @EntrySeverityLevel int severityLevel, in SafetyCenterEntry() argument
175 mSeverityLevel = severityLevel; in SafetyCenterEntry()
368 public Builder setSeverityLevel(@EntrySeverityLevel int severityLevel) { in setSeverityLevel() argument
369 mSeverityLevel = validateEntrySeverityLevel(severityLevel); in setSeverityLevel()
/packages/modules/Permission/service/java/com/android/safetycenter/logging/
DSafetyCenterStatsdLogger.java160 @SafetyCenterStatus.OverallSeverityLevel int severityLevel, in createSafetyStateEvent()
165 toSafetyStateOverallSeverityLevel(severityLevel), in createSafetyStateEvent()
450 @SafetyCenterStatus.OverallSeverityLevel int severityLevel) { in toSafetyStateOverallSeverityLevel()
451 switch (severityLevel) { in toSafetyStateOverallSeverityLevel()
461 Log.w(TAG, "Unexpected SafetyCenterStatus.OverallSeverityLevel: " + severityLevel); in toSafetyStateOverallSeverityLevel()
485 @SafetySourceData.SeverityLevel int severityLevel) { in toInteractionReportedSeverityLevel()
486 switch (severityLevel) { in toInteractionReportedSeverityLevel()
496 Log.w(TAG, "Unexpected SafetySourceData.SeverityLevel: " + severityLevel); in toInteractionReportedSeverityLevel()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterStatusTest.kt67 .severityLevel in getSeverityLevel_returnsSeverityLevel()
75 .severityLevel in getSeverityLevel_returnsSeverityLevel()
86 .severityLevel in getSeverityLevel_defaultUnknown()
DSafetySourceDataTest.kt481 private fun createStatus(severityLevel: Int, id: Int = 0) = in createStatus()
482 SafetySourceStatus.Builder("Status title $id", "Status summary $id", severityLevel) in createStatus()
493 private fun createIssue(severityLevel: Int, id: Int = 0) = in createStatus()
498 severityLevel, in createStatus()
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationFactory.java233 private Icon getNotificationIcon(@SafetySourceData.SeverityLevel int severityLevel) { in getNotificationIcon() argument
235 if (severityLevel == SafetySourceData.SEVERITY_LEVEL_CRITICAL_WARNING) { in getNotificationIcon()
249 private Integer getNotificationColor(@SafetySourceData.SeverityLevel int severityLevel) { in getNotificationColor() argument
251 if (severityLevel == SafetySourceData.SEVERITY_LEVEL_CRITICAL_WARNING) { in getNotificationColor()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterFlags.java387 @SafetySourceData.SeverityLevel int severityLevel) { in getResurfaceIssueMaxCount()
389 Long maxCount = getLongValueFromStringMapping(maxCountsConfigString, severityLevel); in getResurfaceIssueMaxCount()
412 @SafetySourceData.SeverityLevel int severityLevel) { in getResurfaceIssueDelay()
414 Long delayMillis = getLongValueFromStringMapping(delaysConfigString, severityLevel); in getResurfaceIssueDelay()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetySourceStateCollectedLogger.java132 Integer severityLevel = maxSeverityLevel > Integer.MIN_VALUE ? maxSeverityLevel : null; in logSafetySourceStateCollected() local
136 severityLevel, in logSafetySourceStateCollected() local
/packages/apps/Settings/src/com/android/settings/safetycenter/
DLockScreenSafetySource.java86 final int severityLevel = in setSafetySourceData() local
100 severityLevel) in setSafetySourceData()

12