Home
last modified time | relevance | path

Searched refs:AppPermissionViewModel (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAppPermissionFragment.java65 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel;
66 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ChangeRequest;
83 implements AppPermissionViewModel.ConfirmDialogShowingFragment {
102 private AppPermissionViewModel mViewModel;
218 checkOnlyOneButtonOverride(AppPermissionViewModel.ButtonType.ALLOW); in onViewCreated()
225 checkOnlyOneButtonOverride(AppPermissionViewModel.ButtonType.ALLOW_ALWAYS); in onViewCreated()
232 checkOnlyOneButtonOverride(AppPermissionViewModel.ButtonType.ALLOW_FOREGROUND); in onViewCreated()
239 checkOnlyOneButtonOverride(AppPermissionViewModel.ButtonType.DENY); in onViewCreated()
280 mViewModel = new ViewModelProvider(this, factory).get(AppPermissionViewModel.class); in onStart()
450 Map<AppPermissionViewModel.ButtonType, AppPermissionViewModel.ButtonState> states) { in setRadioButtonsState()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsActivityTest.kt33 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
69 val viewModel: AppPermissionViewModel = Mockito.mock(AppPermissionViewModel::class.java) in <lambda>()
87 MutableLiveData(AppPermissionViewModel.RevokeAllState.NotStarted) in <lambda>()
90 .thenReturn(MediatorLiveData(AppPermissionViewModel.DisableExerciseRouteDialogEvent())) in <lambda>()
DSettingsManageAppPermissionsFragmentTest.kt46 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
47 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel.DisableExerciseR… in <lambda>()
48 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel.RevokeAllState in <lambda>()
93 @BindValue val viewModel: AppPermissionViewModel = mock() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/v33/
DAdvancedConfirmDialogArgs.kt22 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel
31 val changeRequest: AppPermissionViewModel.ChangeRequest? = null,
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearAppPermissionFragment.kt50 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel in <lambda>()
51 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType in <lambda>()
52 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ChangeRequest in <lambda>()
53 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ConfirmDialogSho… in <lambda>()
149 val viewModel = ViewModelProvider(this, factory).get(AppPermissionViewModel::class.java) in <lambda>()
DWearAppPermissionScreen.kt29 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel in <lambda>()
30 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonState in <lambda>()
31 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType in <lambda>()
45 viewModel: AppPermissionViewModel, in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAppPermissionFragment.java70 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel;
71 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonState;
72 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType;
73 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ChangeRequest;
88 implements AppPermissionViewModel.ConfirmDialogShowingFragment {
94 private @NonNull AppPermissionViewModel mViewModel;
185 mViewModel = new ViewModelProvider(this, factory).get(AppPermissionViewModel.class); in onCreate()
346 …private void setButtonState(RadioButtonPreference button, AppPermissionViewModel.ButtonState state… in setButtonState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/model/
DAppPermissionConfirmDialogViewModel.kt22 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel
54 val changeRequest: AppPermissionViewModel.ChangeRequest,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt59 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
99 val appPermissionViewModel: AppPermissionViewModel = mock(AppPermissionViewModel::class.java)
152 MutableLiveData(AppPermissionViewModel.RevokeAllState.NotStarted) in setup()
235 .thenReturn(MediatorLiveData(AppPermissionViewModel.DisableExerciseRouteDialogEvent())) in manageHealthPermissions_withPackageName_launchesSettingsActivity()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt69 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.ALLOW in <lambda>()
70 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.ALLOW… in <lambda>()
71 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.ALLOW… in <lambda>()
72 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.ASK in <lambda>()
73 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.ASK_O… in <lambda>()
74 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.DENY in <lambda>()
75 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.DENY_… in <lambda>()
76 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.LOCAT… in <lambda>()
77 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType.SELEC… in <lambda>()
109 class AppPermissionViewModel( in <lambda>() class
[all …]
DUnusedAppsViewModel.kt62 private val LOG_TAG = AppPermissionViewModel::class.java.simpleName in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DSettingsActivity.kt30 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
42 private val viewModel: AppPermissionViewModel by viewModels()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DDisableExerciseRoutePermissionDialogTest.kt29 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
49 @BindValue val viewModel: AppPermissionViewModel = mock()
DExerciseRoutesPermissionDialogFragmentTest.kt39 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
63 @BindValue val permissionsViewModel = mock(AppPermissionViewModel::class.java)
DAdditionalAccessFragmentTest.kt49 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
83 @BindValue val permissionsViewModel: AppPermissionViewModel = mock() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAppPermissionFragment.java79 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel;
80 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonState;
81 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ButtonType;
82 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel.ChangeRequest;
105 implements AppPermissionViewModel.ConfirmDialogShowingFragment {
113 private @NonNull AppPermissionViewModel mViewModel;
212 mViewModel = new ViewModelProvider(this, factory).get(AppPermissionViewModel.class); in onCreate()
525 private void setButtonState(CompoundButton button, AppPermissionViewModel.ButtonState state) { in setButtonState()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DDisableExerciseRoutePermissionDialog.kt30 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
52 private val viewModel: AppPermissionViewModel by activityViewModels() in <lambda>()
DExerciseRoutesPermissionDialogFragment.kt37 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
58 private val permissionsViewModel: AppPermissionViewModel by activityViewModels() in <lambda>()
DAdditionalAccessFragment.kt31 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
54 private val permissionsViewModel: AppPermissionViewModel by activityViewModels() in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppFragmentTest.kt42 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel in <lambda>()
43 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel.RevokeAllState.N… in <lambda>()
93 @BindValue val viewModel: AppPermissionViewModel = mock() in <lambda>()
112 .thenReturn(MediatorLiveData(AppPermissionViewModel.DisableExerciseRouteDialogEvent())) in <lambda>()
DAppPermissionViewModelTest.kt27 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
86 private lateinit var appPermissionViewModel: AppPermissionViewModel
117 AppPermissionViewModel( in setup()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DSettingsManageAppPermissionsFragment.kt52 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel.RevokeAllState in <lambda>()
97 private val viewModel: AppPermissionViewModel by activityViewModels() in <lambda>()
DConnectedAppFragment.kt53 import com.android.healthconnect.controller.permissions.app.AppPermissionViewModel.RevokeAllState in <lambda>()
109 private val appPermissionViewModel: AppPermissionViewModel by activityViewModels() in <lambda>()
DAppPermissionViewModel.kt53 class AppPermissionViewModel in <lambda>() class