Home
last modified time | relevance | path

Searched refs:PermissionUsagesUiState (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/viewmodel/v31/
DPermissionUsageViewModel.kt68 private val permissionUsagesUiStateFlow: StateFlow<PermissionUsagesUiState> by lazy { in <lambda>()
78 PermissionUsagesUiState.Loading in <lambda>()
86 fun getPermissionUsagesUiDataFlow(): Flow<PermissionUsagesUiState> { in <lambda>()
105 ): PermissionUsagesUiState { in <lambda>()
121 return PermissionUsagesUiState.Success( in <lambda>()
135 fun updateShowSystem(showSystem: Boolean): PermissionUsagesUiState { in <lambda>()
140 fun updateShow7Days(show7Days: Boolean): PermissionUsagesUiState { in <lambda>()
164 sealed class PermissionUsagesUiState { class
165 data object Loading : PermissionUsagesUiState()
169 ) : PermissionUsagesUiState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/model/
DWearPermissionUsageViewModel.kt23 import com.android.permissioncontroller.permission.ui.viewmodel.v31.PermissionUsagesUiState
26 permissionUsagesUiState: PermissionUsagesUiState?,
37 fun updatePermissionUsagesUiStateLiveData(newUiData: PermissionUsagesUiState?) { in updatePermissionUsagesUiStateLiveData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearPermissionUsageScreen.kt34 import com.android.permissioncontroller.permission.ui.viewmodel.v31.PermissionUsagesUiState in <lambda>()
53 val isDataLoaded = permissionUsagesUiData.value is PermissionUsagesUiState.Success in <lambda>()
56 val uiState = permissionUsagesUiData.value as PermissionUsagesUiState.Success in <lambda>()
70 val uiState = permissionUsagesUiData.value as PermissionUsagesUiState.Success in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/
DPermissionUsageViewModelTest.kt33 import com.android.permissioncontroller.permission.ui.viewmodel.v31.PermissionUsagesUiState
122 as PermissionUsagesUiState.Success in <lambda>()
158 as PermissionUsagesUiState.Success in <lambda>()
190 permissionUsageViewModel.updateShowSystem(true) as PermissionUsagesUiState.Success in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DPermissionUsageFragment.java48 import com.android.permissioncontroller.permission.ui.viewmodel.v31.PermissionUsagesUiState;
292 private void updateAllUI(PermissionUsagesUiState uiData) { in updateAllUI()
294 if (getActivity() == null || uiData instanceof PermissionUsagesUiState.Loading) { in updateAllUI()
298 PermissionUsagesUiState.Success permissionUsagesUiData = in updateAllUI()
299 (PermissionUsagesUiState.Success) uiData; in updateAllUI()