Searched refs:toPermSummary (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | ReviewPermissionsViewModel.kt | 120 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>() 178 fun toPermSummary(): PermissionSummary { in <lambda>() method 182 fun toPermSummary(isEnterprise: Boolean): PermissionSummary { in <lambda>() method 202 return SummaryMessage.ENABLED_SYSTEM_FIXED.toPermSummary() in <lambda>() 206 SummaryMessage.DISABLED_BY_ADMIN.toPermSummary() in <lambda>() 209 SummaryMessage.ENFORCED_BY_POLICY.toPermSummary() in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/ |
D | ReviewPermissionsViewModelTest.kt | 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() 230 assertEquals(SummaryMessage.ENFORCED_BY_POLICY.toPermSummary(), summary) in getSummary_fullyFixedPolicy_hasBackgroundGroup() 240 assertEquals(SummaryMessage.ENABLED_BY_ADMIN.toPermSummary(), summaryAdmin) in getSummary_fullyFixedPolicy_hasBackgroundGroup() [all …]
|