Home
last modified time | relevance | path

Searched refs:mCurrentAppList (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/apporder/
DAppOrderControllerTest.java60 private MutableLiveData<List<LauncherItem>> mCurrentAppList; field in AppOrderControllerTest
70 mCurrentAppList = spy(new MutableLiveData<>()); in setUp()
73 mController = spy(new AppOrderController(mMockDataSource, mCurrentAppList, mDefaultOrder, in setUp()
87 verify(mCurrentAppList, never()).postValue(any()); in maybePublishAppList_loadAppListFromPlatform_noPublishing()
100 verify(mCurrentAppList, never()).postValue(any()); in maybePublishAppList_loadAppListFromFile_noPublishing()
113 verify(mCurrentAppList, times(1)).postValue(any()); in maybePublishAppList_publishing_defaultOrder()
135 verify(mCurrentAppList, times(1)).postValue(any()); in maybePublishAppList_publishing_customOrder()
154 when(mCurrentAppList.getValue()).thenReturn(newAppList); in setAppPosition_postValue()
160 verify(mCurrentAppList, times(1)).postValue(any()); in setAppPosition_postValue()
167 verify(mCurrentAppList, times(2)).postValue(any()); in setAppPosition_postValue()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/apporder/
DAppOrderController.java53 private final MutableLiveData<List<LauncherItem>> mCurrentAppList; field in AppOrderController
74 mCurrentAppList = appList; in AppOrderController()
85 return mCurrentAppList; in getAppOrderObservable()
169 mCurrentAppList.postValue(customOrder); in maybePublishAppList()
171 mCurrentAppList.postValue(mDefaultOrder); in maybePublishAppList()
193 List<LauncherItem> currentItems = mCurrentAppList.getValue(); in handleAppListChange()
207 List<LauncherItem> current = mCurrentAppList.getValue(); in setAppPosition()
213 mCurrentAppList.postValue(current); in setAppPosition()
224 List<LauncherItem> launcherList = mCurrentAppList.getValue(); in updateMirroringItem()
262 mCurrentAppList.postValue(launcherListCopy); in updateMirroringItem()