Home
last modified time | relevance | path

Searched refs:SummaryMessage (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DReviewPermissionsViewModel.kt120 return SummaryMessage.ACCESS_ALWAYS.toPermSummary() in <lambda>()
122 return SummaryMessage.ACCESS_ONLY_FOREGROUND.toPermSummary() in <lambda>()
125 return SummaryMessage.ACCESS_NEVER.toPermSummary() in <lambda>()
142 SummaryMessage.REVOKED_NONE.toPermSummary() in <lambda>()
145 SummaryMessage.REVOKED_ALL.toPermSummary() in <lambda>()
148 PermissionSummary(SummaryMessage.REVOKED_COUNT, false, revokedCount) in <lambda>()
159 enum class SummaryMessage { in <lambda>() class in com.android.permissioncontroller.permission.ui.model.ReviewPermissionsViewModel
188 val msg: SummaryMessage, in <lambda>()
202 return SummaryMessage.ENABLED_SYSTEM_FIXED.toPermSummary() in <lambda>()
206 SummaryMessage.DISABLED_BY_ADMIN.toPermSummary() in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/
DReviewPermissionsViewModelTest.kt33 …port com.android.permissioncontroller.permission.ui.model.ReviewPermissionsViewModel.SummaryMessage
111 ReviewPermissionsViewModel.PermissionSummary(SummaryMessage.REVOKED_COUNT, false, 1), in getSummary_individuallyControllerGroup()
127 assertEquals(SummaryMessage.ENABLED_BY_POLICY_FOREGROUND_ONLY.toPermSummary(), summary) in getSummary_foregroundFixedPolicy()
138 SummaryMessage.ENABLED_BY_ADMIN_FOREGROUND_ONLY.toPermSummary(true), in getSummary_foregroundFixedPolicy()
153 assertEquals(SummaryMessage.DISABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_backgroundFixedPolicy_foregroundRequested()
164 SummaryMessage.DISABLED_BY_ADMIN_BACKGROUND_ONLY.toPermSummary(true), in getSummary_backgroundFixedPolicy_foregroundRequested()
179 assertEquals(SummaryMessage.ENABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_backgroundFixedPolicy()
190 SummaryMessage.ENABLED_BY_ADMIN_BACKGROUND_ONLY.toPermSummary(true), in getSummary_backgroundFixedPolicy()
206 assertEquals(SummaryMessage.ENABLED_BY_POLICY_BACKGROUND_ONLY.toPermSummary(), summary) in getSummary_fullyFixedPolicy_hasForegroundGroup()
216 assertEquals(SummaryMessage.ENABLED_BY_ADMIN_FOREGROUND_ONLY.toPermSummary(), summaryAdmin) in getSummary_fullyFixedPolicy_hasForegroundGroup()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionPreference.java42 …ort com.android.permissioncontroller.permission.ui.model.ReviewPermissionsViewModel.SummaryMessage;
272 if (summary.getMsg() == SummaryMessage.NO_SUMMARY) { in updateSummaryForFixedByPolicyPermissionGroup()
304 int getResource(SummaryMessage summary) { in getResource()