Home
last modified time | relevance | path

Searched refs:ManageRoleHolderStateLiveData (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
DSpecialAppAccessViewModel.java35 import com.android.permissioncontroller.role.ui.ManageRoleHolderStateLiveData;
57 private final ArrayMap<String, ManageRoleHolderStateLiveData> mManageRoleHolderStateLiveDatas =
93 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.valueAt(i); in observeManageRoleHolderState()
110 private ManageRoleHolderStateLiveData getManageRoleHolderStateLiveData(@NonNull String key, in getManageRoleHolderStateLiveData()
112 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.get(key); in getManageRoleHolderStateLiveData()
114 liveData = new ManageRoleHolderStateLiveData(); in getManageRoleHolderStateLiveData()
115 ManageRoleHolderStateLiveData finalLiveData = liveData; in getManageRoleHolderStateLiveData()
136 ManageRoleHolderStateLiveData liveData = getManageRoleHolderStateLiveData(key, owner, in setSpecialAppAccessAsUser()
138 if (liveData.getValue() != ManageRoleHolderStateLiveData.STATE_IDLE) { in setSpecialAppAccessAsUser()
157 void onManageRoleHolderStateChanged(@NonNull ManageRoleHolderStateLiveData liveData, in onManageRoleHolderStateChanged()
DSpecialAppAccessChildFragment.java39 import com.android.permissioncontroller.role.ui.ManageRoleHolderStateLiveData;
186 private void onManageRoleHolderStateChanged(@NonNull ManageRoleHolderStateLiveData liveData, in onManageRoleHolderStateChanged()
189 case ManageRoleHolderStateLiveData.STATE_SUCCESS: in onManageRoleHolderStateChanged()
197 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppViewModel.java53 private final ManageRoleHolderStateLiveData mManageRoleHolderStateLiveData =
54 new ManageRoleHolderStateLiveData();
73 public ManageRoleHolderStateLiveData getManageRoleHolderStateLiveData() { in getManageRoleHolderStateLiveData()
83 if (mManageRoleHolderStateLiveData.getValue() != ManageRoleHolderStateLiveData.STATE_IDLE) { in setDefaultApp()
97 if (mManageRoleHolderStateLiveData.getValue() != ManageRoleHolderStateLiveData.STATE_IDLE) { in setNoneDefaultApp()
DManageRoleHolderStateLiveData.java34 public class ManageRoleHolderStateLiveData extends LiveData<Integer> { class
36 private static final String LOG_TAG = ManageRoleHolderStateLiveData.class.getSimpleName();
51 public ManageRoleHolderStateLiveData() { in ManageRoleHolderStateLiveData() method in ManageRoleHolderStateLiveData
DDefaultAppChildFragment.java227 ManageRoleHolderStateLiveData liveData = mViewModel.getManageRoleHolderStateLiveData(); in onManageRoleHolderStateChanged()
229 case ManageRoleHolderStateLiveData.STATE_SUCCESS: in onManageRoleHolderStateChanged()
237 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()
DRequestRoleFragment.java323 case ManageRoleHolderStateLiveData.STATE_IDLE: in onManageRoleHolderStateChanged()
324 case ManageRoleHolderStateLiveData.STATE_WORKING: in onManageRoleHolderStateChanged()
327 case ManageRoleHolderStateLiveData.STATE_SUCCESS: { in onManageRoleHolderStateChanged()
328 ManageRoleHolderStateLiveData liveData = in onManageRoleHolderStateChanged()
346 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()
354 == ManageRoleHolderStateLiveData.STATE_IDLE; in updateUi()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/wear/
DWearDefaultAppFragment.kt32 import com.android.permissioncontroller.role.ui.ManageRoleHolderStateLiveData
96 ManageRoleHolderStateLiveData.STATE_SUCCESS -> { in onManageRoleHolderStateChanged()
103 ManageRoleHolderStateLiveData.STATE_FAILURE -> liveData.resetState() in onManageRoleHolderStateChanged()
DWearRequestRoleScreen.kt42 import com.android.permissioncontroller.role.ui.ManageRoleHolderStateLiveData in <lambda>()
53 ManageRoleHolderStateLiveData.STATE_WORKING in <lambda>()
82 manageRoleHolderState.value == ManageRoleHolderStateLiveData.STATE_IDLE, in <lambda>()
DWearRequestRoleFragment.kt36 import com.android.permissioncontroller.role.ui.ManageRoleHolderStateLiveData in <lambda>()
159 ManageRoleHolderStateLiveData.STATE_SUCCESS -> { in <lambda>()
184 ManageRoleHolderStateLiveData.STATE_FAILURE -> finish() in <lambda>()