Home
last modified time | relevance | path

Searched refs:SafetyCenterIssue (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterIssueTest.kt24 import android.safetycenter.SafetyCenterIssue
25 import android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails
54 SafetyCenterIssue.Action.Builder("action_id_1", "an action", pendingIntent1)
60 SafetyCenterIssue.Action.Builder("action_id_2", "another action", pendingIntent2)
66 SafetyCenterIssue.Builder("issue_id", "Everything's good", "Please acknowledge this")
68 .setSeverityLevel(SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK)
75 SafetyCenterIssue.Builder("issue_id", "Everything's good", "Please acknowledge this")
76 .setSeverityLevel(SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK)
81 assertThat(SafetyCenterIssue.Builder(issue1).setId("an id").build().id).isEqualTo("an id") in getId_returnsId()
82 assertThat(SafetyCenterIssue.Builder(issue1).setId("another id").build().id) in getId_returnsId()
[all …]
DSafetyCenterDataTest.kt28 import android.safetycenter.SafetyCenterIssue
66 SafetyCenterIssue.Builder("iSsUe_iD_oNe", "An issue title", "An issue summary")
67 .setSeverityLevel(SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK)
70 SafetyCenterIssue.Builder("iSsUe_iD_tWo", "Another issue title", "Another issue summary")
71 .setSeverityLevel(SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION)
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DMoreIssuesCardAnimator.kt22 import android.safetycenter.SafetyCenterIssue
78 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK -> in selectIconAnimationResId()
80 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK -> in selectIconAnimationResId()
82 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION -> in selectIconAnimationResId()
84 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING -> in selectIconAnimationResId()
88 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION -> in selectIconAnimationResId()
90 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK -> in selectIconAnimationResId()
92 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION -> in selectIconAnimationResId()
94 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING -> in selectIconAnimationResId()
98 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING -> in selectIconAnimationResId()
[all …]
DCollapsableIssuesCardHelper.kt24 import android.safetycenter.SafetyCenterIssue in <lambda>()
25 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK in <lambda>()
102 issues: List<SafetyCenterIssue>?, in <lambda>()
103 dismissedIssues: List<SafetyCenterIssue>?, in <lambda>()
197 private fun List<SafetyCenterIssue>?.mapToIssueCardPreferences( in <lambda>()
204 position: List<SafetyCenterIssue>.(index: Int) -> PositionInCardList in <lambda>()
206 this?.mapIndexed { index: Int, issue: SafetyCenterIssue -> in <lambda>()
224 val issues: List<SafetyCenterIssue>, in <lambda>()
228 issues: List<SafetyCenterIssue>? in <lambda>()
237 val focusedIssue: SafetyCenterIssue? = in <lambda>()
[all …]
DIssueCardPreference.java30 import android.safetycenter.SafetyCenterIssue;
72 private final SafetyCenterIssue mIssue;
82 SafetyCenterIssue issue, in IssueCardPreference()
179 SafetyCenterIssue.Action action = mIssue.getActions().get(i); in configureButtonList()
227 for (SafetyCenterIssue.Action action : mIssue.getActions()) { in maybeStartResolutionAnimation()
294 private static ConfirmDismissalDialogFragment newInstance(SafetyCenterIssue issue) { in newInstance()
308 SafetyCenterIssue issue = in onCreateDialog()
310 requireArguments().getParcelable(ISSUE_KEY, SafetyCenterIssue.class)); in onCreateDialog()
343 SafetyCenterIssue issue, in newInstance()
344 SafetyCenterIssue.Action action, in newInstance()
[all …]
DInteractionLogger.kt27 import android.safetycenter.SafetyCenterIssue
63 fun recordIssueViewed(issue: SafetyCenterIssue, isDismissed: Boolean) { in recordIssueViewed()
76 fun recordForIssue(action: Action, issue: SafetyCenterIssue, isDismissed: Boolean) { in recordForIssue()
360 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK -> OK in fromIssueSeverityLevel()
361 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION -> RECOMMENDATION in fromIssueSeverityLevel()
362 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING -> CRITICAL_WARNING in fromIssueSeverityLevel()
DIssueCardAnimator.kt24 import android.safetycenter.SafetyCenterIssue
45 action: SafetyCenterIssue.Action in transitionToIssueResolvedThenMarkComplete()
DSafetyCenterDashboardFragment.java38 import android.safetycenter.SafetyCenterIssue;
221 Context context, List<SafetyCenterIssue> issues, Map<String, String> resolvedIssues) { in updateIssues()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterData.java71 List<SafetyCenterIssue> issues =
72 in.createTypedArrayList(SafetyCenterIssue.CREATOR);
79 List<SafetyCenterIssue> dismissedIssues =
80 in.createTypedArrayList(SafetyCenterIssue.CREATOR);
112 @NonNull private final List<SafetyCenterIssue> mIssues;
115 @NonNull private final List<SafetyCenterIssue> mDismissedIssues;
121 @NonNull List<SafetyCenterIssue> issues, in SafetyCenterData()
134 @NonNull List<SafetyCenterIssue> issues, in SafetyCenterData()
137 @NonNull List<SafetyCenterIssue> dismissedIssues, in SafetyCenterData()
155 public List<SafetyCenterIssue> getIssues() { in getIssues()
[all …]
DSafetyCenterIssue.java61 public final class SafetyCenterIssue implements Parcelable { class
90 public static final Creator<SafetyCenterIssue> CREATOR =
91 new Creator<SafetyCenterIssue>() {
93 public SafetyCenterIssue createFromParcel(Parcel in) {
98 SafetyCenterIssue.Builder builder =
114 public SafetyCenterIssue[] newArray(int size) {
115 return new SafetyCenterIssue[size];
130 private SafetyCenterIssue( in SafetyCenterIssue() method in SafetyCenterIssue
248 if (!(o instanceof SafetyCenterIssue)) return false; in equals()
249 SafetyCenterIssue that = (SafetyCenterIssue) o; in equals()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterUiData.kt24 import android.safetycenter.SafetyCenterIssue
25 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK
37 fun getMatchingIssue(issueKey: SafetyCenterIssueKey): SafetyCenterIssue? { in getMatchingIssue()
56 fun getMatchingIssues(groupId: String): List<SafetyCenterIssue> = in getMatchingIssues()
64 fun getMatchingDismissedIssues(groupId: String): List<SafetyCenterIssue> = in getMatchingIssues()
70 issues: List<SafetyCenterIssue> in getMatchingIssues()
71 ): List<SafetyCenterIssue> { in getMatchingIssues()
DSafetyCenterViewModel.kt24 import android.safetycenter.SafetyCenterIssue
39 abstract fun dismissIssue(issue: SafetyCenterIssue)
48 issue: SafetyCenterIssue,
49 action: SafetyCenterIssue.Action,
DLiveSafetyCenterViewModel.kt27 import android.safetycenter.SafetyCenterIssue in <lambda>()
70 override fun dismissIssue(issue: SafetyCenterIssue) { in <lambda>()
75 issue: SafetyCenterIssue, in <lambda>()
76 action: SafetyCenterIssue.Action, in <lambda>()
303 private val SafetyCenterData.allResolvableIssues: Sequence<SafetyCenterIssue>
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestData.kt35 import android.safetycenter.SafetyCenterIssue
36 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING
37 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK
38 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION
296 SafetyCenterIssue.Builder( in safetyCenterStatusOneAlert()
305 SafetyCenterIssue.Action.Builder( in safetyCenterStatusOneAlert()
337 SafetyCenterIssue.Builder( in safetyCenterIssueRecommendation()
345 SafetyCenterIssue.Action.Builder( in safetyCenterIssueRecommendation()
358 SafetyCenterIssue.Action.ConfirmationDialogDetails( in safetyCenterIssueRecommendation()
389 SafetyCenterIssue.Builder( in safetyCenterIssueCritical()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DSafetyCenterUiDataTest.kt24 import android.safetycenter.SafetyCenterIssue
25 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING
26 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK
27 import android.safetycenter.SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION
258 issues: List<SafetyCenterIssue> = listOf(), in createSafetyCenterData()
260 dismissedIssues: List<SafetyCenterIssue> = listOf(), in createSafetyCenterData()
287 SafetyCenterIssue.Builder(issueId, "issue title", "issue summary") in createSafetyCenterEntryGroup()
DStatusUiDataTest.kt22 import android.safetycenter.SafetyCenterIssue
271 val ISSUE = SafetyCenterIssue.Builder("iSsUe_Id", "issue title", "issue summary").build()
/packages/modules/Permission/framework-s/api/
Dsystem-current.txt69 …er.SafetyCenterStatus, @NonNull java.util.List<android.safetycenter.SafetyCenterIssue>, @NonNull j…
71 …method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue> getDismissedIssues();
74 method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue> getIssues();
84 …center.SafetyCenterData.Builder addDismissedIssue(@NonNull android.safetycenter.SafetyCenterIssue);
86 …id.safetycenter.SafetyCenterData.Builder addIssue(@NonNull android.safetycenter.SafetyCenterIssue);
187 public final class SafetyCenterIssue implements android.os.Parcelable {
189 … method @NonNull public java.util.List<android.safetycenter.SafetyCenterIssue.Action> getActions();
200 … public static final android.os.Parcelable.Creator<android.safetycenter.SafetyCenterIssue> CREATOR;
206 public static final class SafetyCenterIssue.Action implements android.os.Parcelable {
208 …method @Nullable public android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails ge…
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterDataFactory.java42 import android.safetycenter.SafetyCenterIssue;
43 import android.safetycenter.SafetyCenterIssue.Action.ConfirmationDialogDetails;
194 List<SafetyCenterIssue> safetyCenterIssues = new ArrayList<>(); in assembleSafetyCenterData()
195 List<SafetyCenterIssue> safetyCenterDismissedIssues = new ArrayList<>(); in assembleSafetyCenterData()
203 SafetyCenterIssue safetyCenterIssue = in assembleSafetyCenterData()
303 private SafetyCenterIssue toSafetyCenterIssue( in toSafetyCenterIssue()
314 List<SafetyCenterIssue.Action> safetyCenterIssueActions = in toSafetyCenterIssue()
327 SafetyCenterIssue.Builder safetyCenterIssueBuilder = in toSafetyCenterIssue()
328 new SafetyCenterIssue.Builder( in toSafetyCenterIssue()
335 > SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK) in toSafetyCenterIssue()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSafetyCenterUtils.kt27 import android.safetycenter.SafetyCenterIssue
106 ): List<SafetyCenterIssue> { in getSafetyCenterIssues()
109 val issues = ArrayList<SafetyCenterIssue>() in getSafetyCenterIssues()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DMoreIssuesHeaderView.kt11 import android.safetycenter.SafetyCenterIssue in <lambda>()
145 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_OK -> R.drawable.ic_safety_info in <lambda>()
146 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_RECOMMENDATION -> in <lambda>()
148 SafetyCenterIssue.ISSUE_SEVERITY_LEVEL_CRITICAL_WARNING -> R.drawable.ic_safety_warn in <lambda>()
/packages/modules/Permission/SafetyCenter/InternalData/java/com/android/safetycenter/internaldata/
DSafetyCenterBundles.java25 import android.safetycenter.SafetyCenterIssue;
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterNotificationTest.kt25 import android.safetycenter.SafetyCenterIssue
1303 val SafetyCenterData.inFlightActions: List<SafetyCenterIssue.Action>
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/
DSafetyCenterMultiUsersTest.kt36 import android.safetycenter.SafetyCenterIssue
130 private val primaryProfileOnlyIssues: List<SafetyCenterIssue>