Home
last modified time | relevance | path

Searched refs:liveData (Results 1 – 11 of 11) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessViewModel.java90 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.valueAt(i); in observeManageRoleHolderState() local
92 liveData.observe(owner, state -> observer.onManageRoleHolderStateChanged(liveData, in observeManageRoleHolderState()
109 ManageRoleHolderStateLiveData liveData = mManageRoleHolderStateLiveDatas.get(key); in getManageRoleHolderStateLiveData() local
110 if (liveData == null) { in getManageRoleHolderStateLiveData()
111 liveData = new ManageRoleHolderStateLiveData(); in getManageRoleHolderStateLiveData()
112 ManageRoleHolderStateLiveData finalLiveData = liveData; in getManageRoleHolderStateLiveData()
113 liveData.observe(owner, state -> observer.onManageRoleHolderStateChanged(finalLiveData, in getManageRoleHolderStateLiveData()
115 mManageRoleHolderStateLiveDatas.put(key, liveData); in getManageRoleHolderStateLiveData()
117 return liveData; in getManageRoleHolderStateLiveData()
133 ManageRoleHolderStateLiveData liveData = getManageRoleHolderStateLiveData(key, owner, in setSpecialAppAccessAsUser() local
[all …]
DSpecialAppAccessChildFragment.java172 private void onManageRoleHolderStateChanged(@NonNull ManageRoleHolderStateLiveData liveData, in onManageRoleHolderStateChanged() argument
176 String packageName = liveData.getLastPackageName(); in onManageRoleHolderStateChanged()
177 if (packageName != null && liveData.isLastAdd()) { in onManageRoleHolderStateChanged()
178 mRole.onHolderSelectedAsUser(packageName, liveData.getLastUser(), in onManageRoleHolderStateChanged()
181 liveData.resetState(); in onManageRoleHolderStateChanged()
184 liveData.resetState(); in onManageRoleHolderStateChanged()
DMergeRoleLiveData.java41 RoleLiveData liveData = mLiveDatas[i]; in MergeRoleLiveData() local
43 addSource(liveData, roleItems -> onRoleChanged()); in MergeRoleLiveData()
51 RoleLiveData liveData = mLiveDatas[i]; in onRoleChanged() local
53 List<Pair<ApplicationInfo, Boolean>> qualifyingApplications = liveData.getValue(); in onRoleChanged()
DMergeRoleListLiveData.java40 RoleListLiveData liveData = mLiveDatas[i]; in MergeRoleListLiveData() local
42 addSource(liveData, roleItems -> onRoleListChanged()); in MergeRoleListLiveData()
50 RoleListLiveData liveData = mLiveDatas[liveDatasIndex]; in onRoleListChanged() local
52 List<RoleItem> roleItems = liveData.getValue(); in onRoleListChanged()
DDefaultAppChildFragment.java214 ManageRoleHolderStateLiveData liveData = mViewModel.getManageRoleHolderStateLiveData(); in onManageRoleHolderStateChanged() local
217 String packageName = liveData.getLastPackageName(); in onManageRoleHolderStateChanged()
219 mRole.onHolderSelectedAsUser(packageName, liveData.getLastUser(), in onManageRoleHolderStateChanged()
222 liveData.resetState(); in onManageRoleHolderStateChanged()
225 liveData.resetState(); in onManageRoleHolderStateChanged()
DSpecialAppAccessListViewModel.java45 RoleListLiveData liveData = new RoleListLiveData(false, user, application); in SpecialAppAccessListViewModel() local
49 mLiveData = Transformations.map(liveData, sortFunction); in SpecialAppAccessListViewModel()
52 mLiveData = Transformations.map(new MergeRoleListLiveData(liveData, workLiveData), in SpecialAppAccessListViewModel()
DRequestRoleFragment.java322 ManageRoleHolderStateLiveData liveData = in onManageRoleHolderStateChanged() local
324 String packageName = liveData.getLastPackageName(); in onManageRoleHolderStateChanged()
326 mRole.onHolderSelectedAsUser(packageName, liveData.getLastUser(), in onManageRoleHolderStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DPanelSlicesAdapterTest.java94 final LiveData<Slice> liveData = mock(LiveData.class); in addTestLiveData() local
95 when(liveData.getValue()).thenReturn(slice); in addTestLiveData()
96 mData.add(liveData); in addTestLiveData()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DPackageIntentReceiver.java31 PackageIntentReceiver(AppListLiveData liveData, Context context) { in PackageIntentReceiver() argument
32 mLiveData = liveData; in PackageIntentReceiver()
/packages/apps/Launcher3/SecondaryDisplayLauncher/src/com/android/launcher3/
DAppListViewModel.java107 public PackageIntentReceiver(AppListLiveData liveData, Context context) { in PackageIntentReceiver() argument
108 mLiveData = liveData; in PackageIntentReceiver()
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java847 private <T> void checkUninitialized(LiveData<T> liveData) { in checkUninitialized() argument
850 liveData.observe(mLifecycleOwner, observer); in checkUninitialized()
853 assertThat(liveData.getValue()).isNull(); in checkUninitialized()