Home
last modified time | relevance | path

Searched refs:AppItem (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppDataUsageRepository.kt33 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/
DAppDataUsagePreferenceController.java39 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 …]
DAppSpecificDataUsageFragment.java33 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/
DAppItem.java26 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()
DAppGridViewModel.kt82 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/
DAppGridRepository.kt24 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/
DAppDataUsageTest.java58 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()
DAppDataUsagePreferenceTest.java31 import com.android.settingslib.AppItem;
49 private AppItem mAppItem;
57 mAppItem = new AppItem(123); in setUp()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java24 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()
DAppDataUsageActivity.java24 import com.android.settingslib.AppItem;
59 final AppItem appItem = new AppItem(uid); in onCreate()
DDataUsageListAppsController.kt35 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>()
DAppDataUsage.java49 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/
DAppGridAdapter.java34 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/
DAppOrderControllerTest.java34 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/
DAppDataUsageRepositoryTest.kt30 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/
DAppOrderController.java25 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/
DAppDataUsagePreferenceController.java38 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/
DLauncherViewModelTest.java67 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/
DDataUsageListAppsControllerTest.kt26 import com.android.settingslib.AppItem
57 controller.startAppDataUsage(AppItem(), END_TIME) in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAppsRowItemData.java28 import com.android.documentsui.sidebar.AppItem;
76 public AppData(AppItem item, ActionHandler actionHandler, boolean shouldShowSummary, in AppData()
DAppsRowManager.java36 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/
DAppItem.java39 public class AppItem extends Item { class
46 public AppItem(ResolveInfo info, String title, UserId userId, ActionHandler actionHandler) { in AppItem() method in AppItem
DProfileItem.java29 class ProfileItem extends AppItem {
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/battery/
DBatteryOptimizationModeAppListPageProviderTest.kt225 ).AppItem() in batteryOptimizationModeAppListModel_archivedApp()
278 ).AppItem() in setItemContent()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/
DAllAppListTest.kt242 ).AppItem() in allAppListModel_archivedApp()
287 ).AppItem() in setItemContent()

12