Home
last modified time | relevance | path

Searched refs:AppOrderInfo (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/
DAppOrderProtoDataSourceImplTest.kt21 import com.android.car.carlauncher.datasources.AppOrderDataSource.AppOrderInfo in <lambda>()
52 val flows = mutableListOf<List<AppOrderInfo>>() in <lambda>()
62 assertEquals(emptyList<AppOrderInfo>(), flows[0]) in <lambda>()
83 AppOrderInfo( in <lambda>()
95 val flows = mutableListOf<List<AppOrderInfo>>() in <lambda>()
111 val newAppInfo1 = AppOrderInfo("PackageName1", "ClassName1", "DisplayName1") in <lambda>()
112 val newAppInfo2 = AppOrderInfo("PackageName2", "ClassName2", "DisplayName2") in <lambda>()
126 val savedOrderFlows = mutableListOf<List<AppOrderInfo>>() in <lambda>()
127 val savedOrderComparatorFlows = mutableListOf<Comparator<AppOrderInfo>>() in <lambda>()
149 assertEquals(emptyList<AppOrderInfo>(), savedOrderFlows[0]) in <lambda>()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/
DAppOrderDataSource.kt22 import com.android.car.carlauncher.datasources.AppOrderDataSource.AppOrderInfo in <lambda>()
50 suspend fun saveAppOrder(appOrderInfoList: List<AppOrderInfo>) in <lambda>()
58 fun getSavedAppOrder(): Flow<List<AppOrderInfo>> in <lambda>()
66 fun getSavedAppOrderComparator(): Flow<Comparator<AppOrderInfo>> in <lambda>()
75 data class AppOrderInfo(val packageName: String, val className: String, val displayName: String) in <lambda>() class
91 private val appOrderFlow = MutableStateFlow(emptyList<AppOrderInfo>())
101 override suspend fun saveAppOrder(appOrderInfoList: List<AppOrderInfo>) { in saveAppOrder()
134 override fun getSavedAppOrder(): Flow<List<AppOrderInfo>> = flow { in getSavedAppOrder()
142 .map { AppOrderInfo(it.packageName, it.className, it.displayName) } in getSavedAppOrder()
158 override fun getSavedAppOrderComparator(): Flow<Comparator<AppOrderInfo>> { in getSavedAppOrderComparator()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/repositories/
DAppGridRepository.kt27 import com.android.car.carlauncher.datasources.AppOrderDataSource.AppOrderInfo in <lambda>()
229 AppOrderInfo(componentName.packageName, componentName.className, displayName.toString())
275 private fun List<AppItem>.toAppOrderInfoList(): List<AppOrderInfo> { in toAppOrderInfoList()
276 return map { AppOrderInfo(it.packageName, it.className, it.displayName.toString()) } in toAppOrderInfoList()