/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | SpecialAppAccessViewModel.java | 90 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 …]
|
D | SpecialAppAccessChildFragment.java | 172 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()
|
D | MergeRoleLiveData.java | 41 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()
|
D | MergeRoleListLiveData.java | 40 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()
|
D | DefaultAppChildFragment.java | 214 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()
|
D | SpecialAppAccessListViewModel.java | 45 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()
|
D | RequestRoleFragment.java | 322 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/ |
D | PanelSlicesAdapterTest.java | 94 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/ |
D | PackageIntentReceiver.java | 31 PackageIntentReceiver(AppListLiveData liveData, Context context) { in PackageIntentReceiver() argument 32 mLiveData = liveData; in PackageIntentReceiver()
|
/packages/apps/Launcher3/SecondaryDisplayLauncher/src/com/android/launcher3/ |
D | AppListViewModel.java | 107 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/ |
D | LiveDataFunctionsTest.java | 847 private <T> void checkUninitialized(LiveData<T> liveData) { in checkUninitialized() argument 850 liveData.observe(mLifecycleOwner, observer); in checkUninitialized() 853 assertThat(liveData.getValue()).isNull(); in checkUninitialized()
|