Home
last modified time | relevance | path

Searched refs:modelClass (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/testutils/
DShadowAndroidViewModelFactory.java40 public static <T extends ViewModel> void add(Class<T> modelClass, T viewModel) { in add() argument
41 VIEW_MODEL_MAP.put(modelClass, viewModel); in add()
48 public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { in create() argument
49 return (T) VIEW_MODEL_MAP.get(modelClass); in create()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningViewModel.java50 public <T extends ViewModel> T create(Class<T> modelClass) { in create() argument
51 if (!ProvisioningViewModel.class.isAssignableFrom(modelClass)) { in create()
53 + "PreProvisioningViewModel: " + modelClass); in create()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsViewModel.java102 public <T extends ViewModel> T create(Class<T> modelClass) { in create() argument
103 if (!TermsViewModel.class.isAssignableFrom(modelClass)) { in create()
105 + "TermsViewModel: " + modelClass); in create()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningViewModel.java199 public <T extends ViewModel> T create(Class<T> modelClass) { in create() argument
200 if (!PreProvisioningViewModel.class.isAssignableFrom(modelClass)) { in create()
202 + "PreProvisioningViewModel: " + modelClass); in create()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleViewModel.java55 public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { in create() argument
DDefaultAppViewModel.java127 public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { in create() argument
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAllAppPermissionsViewModel.kt88 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
DManageCustomPermissionsViewModel.kt64 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
DUnusedAppsViewModel.kt231 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
DAppPermissionGroupsViewModel.kt237 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
DAppPermissionViewModel.kt821 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
DGrantPermissionsViewModel.kt1187 override fun <T : ViewModel> create(modelClass: Class<T>): T { in create()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
DSpecialAppAccessViewModel.java179 public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { in create() argument