Home
last modified time | relevance | path

Searched refs:StatusUiData (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DStatusUiDataTest.kt33 import com.android.permissioncontroller.safetycenter.ui.model.StatusUiData
54 StatusUiData(STATUS, hasPendingActions = false).copyForPendingActions(true) in copyForPendingActions_setsCorrectPendingActionsValue()
56 StatusUiData(STATUS, hasPendingActions = true).copyForPendingActions(false) in copyForPendingActions_setsCorrectPendingActionsValue()
64 assertThat(StatusUiData(STATUS).title).isEqualTo(STATUS.title) in getTitle_returnsTitle()
65 assertThat(StatusUiData(ANOTHER_STATUS).title).isEqualTo(ANOTHER_STATUS.title) in getTitle_returnsTitle()
66 assertThat(StatusUiData(SafetyCenterData(STATUS, listOf(), listOf(), listOf())).title) in getTitle_returnsTitle()
72 assertThat(StatusUiData(STATUS).originalSummary).isEqualTo(STATUS.summary) in getOriginalSummary_returnsOriginalSummary()
73 assertThat(StatusUiData(ANOTHER_STATUS).originalSummary).isEqualTo(ANOTHER_STATUS.summary) in getOriginalSummary_returnsOriginalSummary()
75 StatusUiData(SafetyCenterData(STATUS, listOf(), listOf(), listOf())).originalSummary in getOriginalSummary_returnsOriginalSummary()
82 assertThat(StatusUiData(STATUS).severityLevel).isEqualTo(STATUS.severityLevel) in getSeverityLevel_returnsSeverityLevel()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DStatusCardView.kt28 import com.android.permissioncontroller.safetycenter.ui.model.StatusUiData
52 fun showButtons(statusUiData: StatusUiData) { in showButtons()
56 StatusUiData.ButtonToShow.RESCAN -> { in showButtons()
60 StatusUiData.ButtonToShow.REVIEW_SETTINGS -> { in showButtons()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DStatusUiData.kt15 data class StatusUiData( dataClass
30 private val TAG: String = StatusUiData::class.java.simpleName in copyForPendingActions()
DLiveSafetyCenterViewModel.kt49 override val statusUiLiveData: LiveData<StatusUiData> in <lambda>()
50 get() = safetyCenterUiLiveData.map { StatusUiData(it.safetyCenterData) } in <lambda>()
DSafetyCenterViewModel.kt34 abstract val statusUiLiveData: LiveData<StatusUiData>
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyStatusPreference.java41 import com.android.permissioncontroller.safetycenter.ui.model.StatusUiData;
55 @Nullable private StatusUiData mStatus;
338 StatusUiData.Companion.getStatusImageResId( in setSettledStatus()
342 void setData(StatusUiData statusUiData) { in setData()
DSafetyCenterDashboardFragment.java56 import com.android.permissioncontroller.safetycenter.ui.model.StatusUiData;
184 private void updateStatus(StatusUiData statusUiData) { in updateStatus()