/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | AppDataUsageRepository.kt | 33 import com.android.settingslib.AppItem in <lambda>() 41 private val getPackageName: (AppItem) -> String?, in <lambda>() 45 fun getAppPercent(carrierId: Int?, startTime: Long, endTime: Long): List<Pair<AppItem, Int>> { in <lambda>() 51 fun getAppPercent(carrierId: Int?, buckets: List<Bucket>): List<Pair<AppItem, Int>> { in <lambda>() 52 val items = ArrayList<AppItem>() in <lambda>() 53 val knownItems = SparseArray<AppItem>() in <lambda>() 69 item = AppItem(uid) in <lambda>() 86 private fun filterItems(carrierId: Int?, items: List<AppItem>): List<AppItem> { in <lambda>() 108 knownItems: SparseArray<AppItem>, in <lambda>() 109 items: ArrayList<AppItem>, in <lambda>() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 39 import com.android.settingslib.AppItem; 96 List<AppItem> items = new ArrayList<>(); in onDataLoaded() 100 SparseArray<AppItem> knownItems = new SparseArray<>(); in onDataLoaded() 119 private long aggregateDataUsage(SparseArray<AppItem> knownItems, List<AppItem> items, in aggregateDataUsage() 132 category = AppItem.CATEGORY_APP; in aggregateDataUsage() 138 category = AppItem.CATEGORY_APP; in aggregateDataUsage() 145 category = AppItem.CATEGORY_APP; in aggregateDataUsage() 152 long usersLargest = accumulate(managedKey, knownItems, entry, AppItem.CATEGORY_USER, in aggregateDataUsage() 155 category = AppItem.CATEGORY_APP; in aggregateDataUsage() 165 category = AppItem.CATEGORY_APP; in aggregateDataUsage() [all …]
|
D | AppSpecificDataUsageFragment.java | 33 import com.android.settingslib.AppItem; 54 public static AppSpecificDataUsageFragment getInstance(AppItem appItem, in getInstance() 74 AppItem appItem = (AppItem) getArguments().get(EXTRA_PACKAGE_NAME); in onAttach()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/ |
D | AppItem.java | 26 public class AppItem extends LauncherItem { class 29 public AppItem(String packageName, String className, String displayName, in AppItem() method in AppItem 35 public AppItem(AppMetaData appMetaData) { in AppItem() method in AppItem 42 public AppItem createFromParcel(Parcel in) { 43 return new AppItem(in); 52 protected AppItem(Parcel in) { in AppItem() method in AppItem 70 return areContentsTheSame((AppItem) o); in equals() 81 if (launcherItem instanceof AppItem) { in areContentsTheSame() 82 AppItem appItem = (AppItem) launcherItem; in areContentsTheSame()
|
D | AppGridViewModel.kt | 82 fun getAppList(): Flow<List<AppItem>> { in getAppList() 99 fun saveAppOrder(newPosition: Int, appItem: AppItem) { in saveAppOrder()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/repositories/ |
D | AppGridRepository.kt | 24 import com.android.car.carlauncher.AppItem in <lambda>() 58 fun getAllAppsList(): Flow<List<AppItem>> in <lambda>() 83 suspend fun saveAppOrder(currentAppOrder: List<AppItem>) in <lambda>() 90 fun getMediaAppsList(): Flow<List<AppItem>> in <lambda>() 124 override fun getAllAppsList(): Flow<List<AppItem>> { in getAllAppsList() 174 override suspend fun saveAppOrder(currentAppOrder: List<AppItem>) { in saveAppOrder() 184 override fun getMediaAppsList(): Flow<List<AppItem>> { in getMediaAppsList() 232 private fun AppInfo.toAppItem(isDistractionOptimized: Boolean): AppItem { in toAppItem() 254 return AppItem(metaData) in toAppItem() 275 private fun List<AppItem>.toAppOrderInfoList(): List<AppOrderInfo> { in toAppOrderInfoList()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppDataUsageTest.java | 58 import com.android.settingslib.AppItem; 119 final AppItem appItem = new AppItem(uid); in onCreate_appUid_shouldGetAppLabelFromAppInfo() 151 final AppItem appItem = new AppItem(uid); in onCreate_notAppUid_shouldGetAppLabelFromUidDetailProvider() 170 ReflectionHelpers.setField(mFragment, "mAppItem", mock(AppItem.class)); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 185 final AppItem appItem = new AppItem(123456789); in bindAppHeader_workApp_shouldSetWorkAppUid() 209 final AppItem appItem = new AppItem(123456789); in changePreference_backgroundData_shouldUpdateUI() 227 final AppItem appItem = new AppItem(testUid); in updatePrefs_restrictedByAdmin_shouldDisablePreference()
|
D | AppDataUsagePreferenceTest.java | 31 import com.android.settingslib.AppItem; 49 private AppItem mAppItem; 57 mAppItem = new AppItem(123); in setUp()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 24 import com.android.settingslib.AppItem; 34 private final AppItem mItem; 38 public AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() 90 public AppItem getItem() { in getItem()
|
D | AppDataUsageActivity.java | 24 import com.android.settingslib.AppItem; 59 final AppItem appItem = new AppItem(uid); in onCreate()
|
D | DataUsageListAppsController.kt | 35 import com.android.settingslib.AppItem in <lambda>() 59 ) { appItem: AppItem -> uidDetailProvider.getUidDetail(appItem.key, true).packageName } in <lambda>() 95 fun startAppDataUsage(item: AppItem, endTime: Long) { in <lambda>()
|
D | AppDataUsage.java | 49 import com.android.settingslib.AppItem; 87 private AppItem mAppItem; 106 mAppItem = (args != null) ? (AppItem) args.getParcelable(ARG_APP_ITEM) : null; in onCreate() 126 mAppItem = new AppItem(uid); in onCreate()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/ |
D | AppGridAdapter.java | 34 import com.android.car.carlauncher.AppItem; 213 AppItem item = (AppItem) mLauncherItems.get(adapterIndex); in onBindViewHolder() 294 AppItem selectedApp = (AppItem) mLauncherItems.get(adaptorIndexFrom); in moveAppItem() 349 return new AppItem(/* packageName*/ "", /* className */ "", /* displayName */ "", in getEmptyLauncherItem() 367 void onAppPositionChanged(int newPosition, AppItem appItem); in onAppPositionChanged()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/apporder/ |
D | AppOrderControllerTest.java | 34 import com.android.car.carlauncher.AppItem; 122 (new AppItem("packageName", "className", "displayName", null)) in maybePublishAppList_publishing_customOrder() 141 LauncherItem testItem1 = new AppItem("packageName1", "className1", "displayName1", null); in setAppPosition_postValue() 142 LauncherItem testItem2 = new AppItem("packageName2", "className2", "displayName2", null); in setAppPosition_postValue() 144 LauncherItem testItem3 = new AppItem(packageName3, "className3", "displayName3", null); in setAppPosition_postValue()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | AppDataUsageRepositoryTest.kt | 30 import com.android.settingslib.AppItem 89 assertThat(category).isEqualTo(AppItem.CATEGORY_APP) in getAppPercent_noAppToHide() 95 assertThat(category).isEqualTo(AppItem.CATEGORY_APP) in getAppPercent_noAppToHide() 119 assertThat(category).isEqualTo(AppItem.CATEGORY_APP) in getAppPercent_hasAppToHide()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/apporder/ |
D | AppOrderController.java | 25 import com.android.car.carlauncher.AppItem; 230 if (item instanceof AppItem) { in updateMirroringItem() 232 AppMetaData metaData = ((AppItem) item).getAppMetaData(); in updateMirroringItem() 234 launcherListCopy.add(new AppItem(item.getPackageName(), item.getClassName(), in updateMirroringItem() 247 launcherListCopy.add(new AppItem(item.getPackageName(), item.getClassName(), in updateMirroringItem()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppDataUsagePreferenceController.java | 38 import com.android.settingslib.AppItem; 82 final AppItem app = new AppItem(uid); in onResume()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/ |
D | LauncherViewModelTest.java | 67 LauncherItem launcherItem1 = new AppItem(app1); in setUp() 68 LauncherItem launcherItem2 = new AppItem(app2); in setUp() 69 LauncherItem launcherItem3 = new AppItem(app3); in setUp()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageListAppsControllerTest.kt | 26 import com.android.settingslib.AppItem 57 controller.startAppDataUsage(AppItem(), END_TIME) in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | AppsRowItemData.java | 28 import com.android.documentsui.sidebar.AppItem; 76 public AppData(AppItem item, ActionHandler actionHandler, boolean shouldShowSummary, in AppData()
|
D | AppsRowManager.java | 36 import com.android.documentsui.sidebar.AppItem; 97 mDataList.add(new AppData((AppItem) item, mActionHandler, shouldShowSummary, in updateList()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | AppItem.java | 39 public class AppItem extends Item { class 46 public AppItem(ResolveInfo info, String title, UserId userId, ActionHandler actionHandler) { in AppItem() method in AppItem
|
D | ProfileItem.java | 29 class ProfileItem extends AppItem {
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/battery/ |
D | BatteryOptimizationModeAppListPageProviderTest.kt | 225 ).AppItem() in batteryOptimizationModeAppListModel_archivedApp() 278 ).AppItem() in setItemContent()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/ |
D | AllAppListTest.kt | 242 ).AppItem() in allAppListModel_archivedApp() 287 ).AppItem() in setItemContent()
|