Searched refs:AppRecordWithSize (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/src/com/android/settings/spa/app/storage/ |
D | StorageAppList.kt | 63 val filter: (AppRecordWithSize) -> Boolean 84 appList: @Composable AppListInput<AppRecordWithSize>.() -> Unit = { AppList() } in StorageAppListPage() 100 data class AppRecordWithSize( dataClass 111 ) : AppListModel<AppRecordWithSize> { 114 AppRecordWithSize(it, it.calculateSizeBytes(context) ?: 0L) in transform() 120 recordListFlow: Flow<List<AppRecordWithSize>> in filter() 121 ): Flow<List<AppRecordWithSize>> = recordListFlow.filterItem { type.filter(it) } in filter() 124 override fun getSummary(option: Int, record: AppRecordWithSize): () -> String { in getSummary() 130 override fun AppListItemModel<AppRecordWithSize>.AppItem() { in AppItem() 134 override fun getComparator(option: Int) = compareByDescending<AppEntry<AppRecordWithSize>> { in <lambda>()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/storage/ |
D | StorageAppListTest.kt | 64 AppRecordWithSize(APP, 1L), in <lambda>() 65 AppRecordWithSize(APP2, 1L), in <lambda>() 66 AppRecordWithSize(GAME, 1L) in <lambda>() 83 AppRecordWithSize(APP, 1L), in <lambda>() 84 AppRecordWithSize(APP2, 1L), in <lambda>() 85 AppRecordWithSize(GAME, 1L) in <lambda>() 99 AppRecordWithSize(app = APP, size = 1L), in getComparator_sortsByDescendingSize() 104 AppRecordWithSize(app = APP2, size = 3L), in getComparator_sortsByDescendingSize() 109 AppRecordWithSize(app = APP3, size = 3L), in getComparator_sortsByDescendingSize()
|
/packages/apps/Settings/src/com/android/settings/spa/app/ |
D | AllAppList.kt | 71 appList: @Composable AppListInput<AppRecordWithSize>.() -> Unit = { AppList() }, in AllAppListPage() 84 data class AppRecordWithSize( class 93 ) : AppListModel<AppRecordWithSize> { 95 override fun getSpinnerOptions(recordList: List<AppRecordWithSize>): List<SpinnerOption> { in getSpinnerOptions() 111 appListFlow.mapItem(::AppRecordWithSize) in transform() 116 recordListFlow: Flow<List<AppRecordWithSize>>, in transform() 117 ): Flow<List<AppRecordWithSize>> = recordListFlow.filterItem( in transform() 126 private val isDisabled: (AppRecordWithSize) -> Boolean = 129 private val isInstant: (AppRecordWithSize) -> Boolean = { it.app.isInstantApp } in <lambda>() 132 override fun getSummary(option: Int, record: AppRecordWithSize): () -> String { in getSummary() [all …]
|
/packages/apps/Settings/src/com/android/settings/spa/app/battery/ |
D | BatteryOptimizationModeAppListPageProvider.kt | 31 import com.android.settings.spa.app.AppRecordWithSize 78 appList: @Composable AppListInput<AppRecordWithSize>.() -> Unit = { AppList() }, in BatteryOptimizationModeAppList() 89 ) : AppListModel<AppRecordWithSize> { 91 override fun getSpinnerOptions(recordList: List<AppRecordWithSize>): List<SpinnerOption> = in getSpinnerOptions() 100 appListFlow.mapItem(::AppRecordWithSize) in transform() 105 recordListFlow: Flow<List<AppRecordWithSize>>, in transform() 106 ): Flow<List<AppRecordWithSize>> { in transform() 124 override fun getSummary(option: Int, record: AppRecordWithSize): () -> String = { in <lambda>() 140 override fun AppListItemModel<AppRecordWithSize>.AppItem() { in AppItem()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/ |
D | AllAppListTest.kt | 151 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_regular() 163 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_emptyStorage() 181 listModel.getSummary(option = 0, record = AppRecordWithSize(app = disabledApp)) in listModelGetSummary_disabled() 199 listModel.getSummary(option = 0, record = AppRecordWithSize(app = disabledApp)) in listModelGetSummary_emptyStorageAndDisabled() 216 listModel.getSummary(option = 0, record = AppRecordWithSize(app = notInstalledApp)) in listModelGetSummary_notInstalled() 239 record = AppRecordWithSize(app = app), in allAppListModel_archivedApp() 261 listModel.getSummary(option = 0, record = AppRecordWithSize(app = archivedApp)) in allAppListModel_getSummaryWhenArchived() 267 private fun getAppListInput(): AppListInput<AppRecordWithSize> { in getAppListInput() 268 lateinit var input: AppListInput<AppRecordWithSize> in getAppListInput() 284 record = AppRecordWithSize(app = APP), in setItemContent()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/battery/ |
D | BatteryOptimizationModeAppListPageProviderTest.kt | 165 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_regular() 183 listModel.getSummary(option = 0, record = AppRecordWithSize(app = disabledApp)) in listModelGetSummary_disabled() 200 listModel.getSummary(option = 0, record = AppRecordWithSize(app = notInstalledApp)) in listModelGetSummary_notInstalled() 222 record = AppRecordWithSize(app = app), in batteryOptimizationModeAppListModel_archivedApp() 244 listModel.getSummary(option = 0, record = AppRecordWithSize(app = archivedApp)) in batteryOptimizationModeAppListModel_NoStorageSummary() 258 private fun getAppListInput(): AppListInput<AppRecordWithSize> { in getAppListInput() 259 lateinit var input: AppListInput<AppRecordWithSize> in getAppListInput() 275 record = AppRecordWithSize(app = APP), in setItemContent()
|