Home
last modified time | relevance | path

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

/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessViewModel.java54 private final ArrayMap<String, ManageRoleHolderStateLiveData> mManageRoleHolderStateLiveDatas =
90 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.valueAt(i); in observeManageRoleHolderState()
107 private ManageRoleHolderStateLiveData getManageRoleHolderStateLiveData(@NonNull String key, in getManageRoleHolderStateLiveData()
109 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.get(key); in getManageRoleHolderStateLiveData()
111 liveData = new ManageRoleHolderStateLiveData(); in getManageRoleHolderStateLiveData()
112 ManageRoleHolderStateLiveData finalLiveData = liveData; in getManageRoleHolderStateLiveData()
133 ManageRoleHolderStateLiveData liveData = getManageRoleHolderStateLiveData(key, owner, in setSpecialAppAccessAsUser()
135 if (liveData.getValue() != ManageRoleHolderStateLiveData.STATE_IDLE) { in setSpecialAppAccessAsUser()
154 void onManageRoleHolderStateChanged(@NonNull ManageRoleHolderStateLiveData liveData, in onManageRoleHolderStateChanged()
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
DRequestRoleFragment.java317 case ManageRoleHolderStateLiveData.STATE_IDLE: in onManageRoleHolderStateChanged()
318 case ManageRoleHolderStateLiveData.STATE_WORKING: in onManageRoleHolderStateChanged()
321 case ManageRoleHolderStateLiveData.STATE_SUCCESS: { in onManageRoleHolderStateChanged()
322 ManageRoleHolderStateLiveData liveData = in onManageRoleHolderStateChanged()
340 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()
348 == ManageRoleHolderStateLiveData.STATE_IDLE; in updateUi()
DSpecialAppAccessChildFragment.java172 private void onManageRoleHolderStateChanged(@NonNull ManageRoleHolderStateLiveData liveData, in onManageRoleHolderStateChanged()
175 case ManageRoleHolderStateLiveData.STATE_SUCCESS: in onManageRoleHolderStateChanged()
183 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()
DDefaultAppChildFragment.java214 ManageRoleHolderStateLiveData liveData = mViewModel.getManageRoleHolderStateLiveData(); in onManageRoleHolderStateChanged()
216 case ManageRoleHolderStateLiveData.STATE_SUCCESS: in onManageRoleHolderStateChanged()
224 case ManageRoleHolderStateLiveData.STATE_FAILURE: in onManageRoleHolderStateChanged()