/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 19 import static com.android.launcher3.AppInfo.COMPONENT_KEY_COMPARATOR; 20 import static com.android.launcher3.AppInfo.EMPTY_ARRAY; 32 import com.android.launcher3.AppInfo; 59 private static final Consumer<AppInfo> NO_OP_CONSUMER = a -> { }; 65 public final ArrayList<AppInfo> data = new ArrayList<>(DEFAULT_APPLICATIONS_NUMBER); 71 private Consumer<AppInfo> mRemoveListener = NO_OP_CONSUMER; 99 public void add(AppInfo info, LauncherActivityInfo activityInfo) { in add() 131 final AppInfo appInfo = data.get(i); in updatePromiseInstallInfo() 149 AppInfo removed = data.remove(index); in removeApp() 172 add(new AppInfo(context, info, user), info); in addPackage() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfo.java | 31 public class AppInfo implements Comparable<AppInfo>, Parcelable { class 41 private AppInfo(AppInfo.Builder builder) { in AppInfo() method in AppInfo 49 AppInfo(Parcel in) { in AppInfo() method in AppInfo 57 public int compareTo(AppInfo o) { in compareTo() 85 if (!(obj instanceof AppInfo)) { in equals() 89 AppInfo other = (AppInfo) obj; in equals() 97 public AppInfo createFromParcel(Parcel in) { 98 return new AppInfo(in); 101 public AppInfo[] newArray(int size) { 102 return new AppInfo[size]; [all …]
|
D | BatteryDatabaseManager.java | 101 public synchronized List<AppInfo> queryAllAnomalies(long timestampMsAfter, int state) { in queryAllAnomalies() 102 final List<AppInfo> appInfos = new ArrayList<>(); in queryAllAnomalies() 106 final Map<Integer, AppInfo.Builder> mAppInfoBuilders = new ArrayMap<>(); in queryAllAnomalies() 116 final AppInfo.Builder builder = new AppInfo.Builder() in queryAllAnomalies() 146 public synchronized void updateAnomalies(List<AppInfo> appInfos, int state) { in updateAnomalies()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | AppInfo.java | 31 public class AppInfo implements Comparable<AppInfo>, Parcelable { class 41 private AppInfo(AppInfo.Builder builder) { in AppInfo() method in AppInfo 49 AppInfo(Parcel in) { in AppInfo() method in AppInfo 57 public int compareTo(AppInfo o) { in compareTo() 85 if (!(obj instanceof AppInfo)) { in equals() 89 AppInfo other = (AppInfo) obj; in equals() 97 public AppInfo createFromParcel(Parcel in) { 98 return new AppInfo(in); 101 public AppInfo[] newArray(int size) { 102 return new AppInfo[size]; [all …]
|
D | BatteryDatabaseManager.java | 101 public synchronized List<AppInfo> queryAllAnomalies(long timestampMsAfter, int state) { in queryAllAnomalies() 102 final List<AppInfo> appInfos = new ArrayList<>(); in queryAllAnomalies() 106 final Map<Integer, AppInfo.Builder> mAppInfoBuilders = new ArrayMap<>(); in queryAllAnomalies() 116 final AppInfo.Builder builder = new AppInfo.Builder() in queryAllAnomalies() 146 public synchronized void updateAnomalies(List<AppInfo> appInfos, int state) { in updateAnomalies()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDatabaseManagerTest.java | 28 import com.android.settings.fuelgauge.batterytip.AppInfo; 57 private AppInfo mNewAppInfo; 58 private AppInfo mOldAppInfo; 59 private AppInfo mCombinedAppInfo; 68 mNewAppInfo = new AppInfo.Builder() in setUp() 73 mOldAppInfo = new AppInfo.Builder() in setUp() 78 mCombinedAppInfo = new AppInfo.Builder() in setUp() 99 List<AppInfo> totalAppInfos = mBatteryDatabaseManager.queryAllAnomalies(0 /* timeMsAfter */, in allAnomalyFunctions() 104 List<AppInfo> appInfos = mBatteryDatabaseManager.queryAllAnomalies(ONE_DAY_BEFORE, in allAnomalyFunctions() 111 List<AppInfo> appInfos1 = mBatteryDatabaseManager.queryAllAnomalies(0 /* timeMsAfter */, in allAnomalyFunctions() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppInfo.java | 37 public class AppInfo extends ItemInfoWithIcon { class 39 public static AppInfo[] EMPTY_ARRAY = new AppInfo[0]; 40 public static Comparator<AppInfo> COMPONENT_KEY_COMPARATOR = (a, b) -> { 55 public AppInfo() { in AppInfo() method in AppInfo 67 public AppInfo(Context context, LauncherActivityInfo info, UserHandle user) { in AppInfo() method in AppInfo 71 public AppInfo(LauncherActivityInfo info, UserHandle user, boolean quietModeEnabled) { in AppInfo() method in AppInfo 83 public AppInfo(AppInfo info) { in AppInfo() method in AppInfo 134 public AppInfo clone() { in clone() 135 return new AppInfo(this); in clone()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AlphabeticalAppsList.java | 21 import com.android.launcher3.AppInfo; 84 public AppInfo appInfo = null; 88 public static AdapterItem asApp(int pos, String sectionName, AppInfo appInfo, in asApp() 131 private final List<AppInfo> mApps = new ArrayList<>(); 135 private final List<AppInfo> mFilteredApps = new ArrayList<>(); 175 public List<AppInfo> getApps() { in getApps() 242 for (AppInfo app : mAllAppsStore.getApps()) { in onAppsUpdated() 257 TreeMap<String, ArrayList<AppInfo>> sectionMap = new TreeMap<>(new LabelComparator()); in onAppsUpdated() 258 for (AppInfo info : mApps) { in onAppsUpdated() 263 ArrayList<AppInfo> sectionApps = sectionMap.get(sectionName); in onAppsUpdated() [all …]
|
D | AllAppsStore.java | 18 import static com.android.launcher3.AppInfo.COMPONENT_KEY_COMPARATOR; 19 import static com.android.launcher3.AppInfo.EMPTY_ARRAY; 24 import com.android.launcher3.AppInfo; 48 private AppInfo mTempInfo = new AppInfo(); 50 private AppInfo[] mApps = EMPTY_ARRAY; 58 public AppInfo[] getApps() { in getApps() 65 public void setApps(AppInfo[] apps) { in setApps() 70 public AppInfo getApp(ComponentKey key) { in getApp()
|
D | AppInfoComparator.java | 22 import com.android.launcher3.AppInfo; 31 public class AppInfoComparator implements Comparator<AppInfo> { 44 public int compare(AppInfo a, AppInfo b) { in compare()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/gamedriver/ |
D | GameDriverAppPreferenceController.java | 71 private final List<AppInfo> mAppInfos; 119 for (AppInfo appInfo : mAppInfos) { in displayPreference() 177 class AppInfo { class in GameDriverAppPreferenceController 178 AppInfo(PackageManager packageManager, ApplicationInfo applicationInfo) { in AppInfo() method in GameDriverAppPreferenceController.AppInfo 188 private List<AppInfo> getAppInfos(Context context) { in getAppInfos() 193 final List<AppInfo> appInfos = new ArrayList<>(); in getAppInfos() 196 appInfos.add(new AppInfo(packageManager, applicationInfo)); in getAppInfos() 218 private final Comparator<AppInfo> appInfoComparator = new Comparator<AppInfo>() { 219 public final int compare(AppInfo a, AppInfo b) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTipTest.java | 36 import com.android.settings.fuelgauge.batterytip.AppInfo; 65 private List<AppInfo> mUsageAppList; 66 private AppInfo mAppInfo; 67 private AppInfo mUninstallAppInfo; 89 mAppInfo = new AppInfo.Builder() in setUp() 94 mUninstallAppInfo = new AppInfo.Builder() in setUp() 122 final AppInfo app = parcelTip.getRestrictAppList().get(0); in parcelable() 138 mUsageAppList.add(new AppInfo.Builder().build()); in getTitle_moreAppsHandled_showHandledTitle() 158 mUsageAppList.add(new AppInfo.Builder().build()); in getSummary_moreAppsHandled_showHandledSummary() 197 final List<AppInfo> appInfos = new ArrayList<>(); in sanityCheck_appUninstalled_stateInvisible() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/gamedriver/ |
D | GameDriverAppPreferenceController.java | 72 private final List<AppInfo> mAppInfos; 125 for (AppInfo appInfo : mAppInfos) { in displayPreference() 193 class AppInfo { class in GameDriverAppPreferenceController 194 AppInfo(PackageManager packageManager, ApplicationInfo applicationInfo) { in AppInfo() method in GameDriverAppPreferenceController.AppInfo 204 private List<AppInfo> getAppInfos(Context context) { in getAppInfos() 209 final List<AppInfo> appInfos = new ArrayList<>(); in getAppInfos() 212 appInfos.add(new AppInfo(packageManager, applicationInfo)); in getAppInfos() 234 private final Comparator<AppInfo> appInfoComparator = new Comparator<AppInfo>() { 235 public final int compare(AppInfo a, AppInfo b) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | RestrictAppDetectorTest.java | 35 import com.android.settings.fuelgauge.batterytip.AppInfo; 70 private List<AppInfo> mAppInfoList; 71 private AppInfo mAppInfo; 86 mAppInfo = new AppInfo.Builder().setPackageName(PACKAGE_NAME).build(); in setUp() 133 mAppInfoList.add(new AppInfo.Builder() in testDetect_hasAutoHandledAnomaly_tipHandled() 137 doReturn(new ArrayList<AppInfo>()).when(mBatteryDatabaseManager) in testDetect_hasAutoHandledAnomaly_tipHandled() 148 mAppInfoList.add(new AppInfo.Builder() in testDetect_typeNewHasUninstalledAnomaly_removeIt() 162 mAppInfoList.add(new AppInfo.Builder() in testDetect_typeNewHasRestrictedAnomaly_removeIt() 180 mAppInfoList.add(new AppInfo.Builder() in testDetect_typeHandledHasUnRestrictedAnomaly_removeIt() 197 doReturn(new ArrayList<AppInfo>()).when(mBatteryDatabaseManager) in testDetect_noAnomaly_tipInvisible()
|
D | HighUsageDetectorTest.java | 35 import com.android.settings.fuelgauge.batterytip.AppInfo; 72 private AppInfo mHighAppInfo; 73 private AppInfo mLowAppInfo; 106 mHighAppInfo = new AppInfo.Builder() in setUp() 109 mLowAppInfo = new AppInfo.Builder() in setUp() 152 final List<AppInfo> appInfos = highUsageTip.getHighUsageAppList(); in testDetect_containsHighUsageApp_tipVisibleAndSorted()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 44 private AppInfo mAppInfo; 48 mAppInfo = new AppInfo.Builder() in setUp() 63 final AppInfo appInfo = new AppInfo(parcel); in testParcel() 73 final AppInfo appInfo = new AppInfo.Builder() in testCompareTo_hasCorrectOrder() 79 List<AppInfo> appInfos = new ArrayList<>(); in testCompareTo_hasCorrectOrder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/ |
D | HighUsageTip.java | 27 import com.android.car.developeroptions.fuelgauge.batterytip.AppInfo; 39 final List<AppInfo> mHighUsageAppList; 41 public HighUsageTip(long lastFullChargeTimeMs, List<AppInfo> appList) { in HighUsageTip() 52 mHighUsageAppList = in.createTypedArrayList(AppInfo.CREATOR); in HighUsageTip() 87 final AppInfo appInfo = mHighUsageAppList.get(i); in log() 98 public List<AppInfo> getHighUsageAppList() { in getHighUsageAppList() 107 final AppInfo appInfo = mHighUsageAppList.get(i); in toString()
|
D | RestrictAppTip.java | 29 import com.android.car.developeroptions.fuelgauge.batterytip.AppInfo; 39 private List<AppInfo> mRestrictAppList; 41 public RestrictAppTip(@StateType int state, List<AppInfo> restrictApps) { in RestrictAppTip() 47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() 57 mRestrictAppList = in.createTypedArrayList(AppInfo.CREATOR); in RestrictAppTip() 126 final AppInfo appInfo = mRestrictAppList.get(i); in log() 138 public List<AppInfo> getRestrictAppList() { in getRestrictAppList() 160 final AppInfo appInfo = mRestrictAppList.get(i); in toString()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | HighUsageTip.java | 27 import com.android.settings.fuelgauge.batterytip.AppInfo; 39 final List<AppInfo> mHighUsageAppList; 41 public HighUsageTip(long lastFullChargeTimeMs, List<AppInfo> appList) { in HighUsageTip() 52 mHighUsageAppList = in.createTypedArrayList(AppInfo.CREATOR); in HighUsageTip() 87 final AppInfo appInfo = mHighUsageAppList.get(i); in log() 98 public List<AppInfo> getHighUsageAppList() { in getHighUsageAppList() 107 final AppInfo appInfo = mHighUsageAppList.get(i); in toString()
|
D | RestrictAppTip.java | 29 import com.android.settings.fuelgauge.batterytip.AppInfo; 39 private List<AppInfo> mRestrictAppList; 41 public RestrictAppTip(@StateType int state, List<AppInfo> restrictApps) { in RestrictAppTip() 47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() 57 mRestrictAppList = in.createTypedArrayList(AppInfo.CREATOR); in RestrictAppTip() 126 final AppInfo appInfo = mRestrictAppList.get(i); in log() 138 public List<AppInfo> getRestrictAppList() { in getRestrictAppList() 160 final AppInfo appInfo = mRestrictAppList.get(i); in toString()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetails.java | 40 import com.android.settings.fuelgauge.batterytip.AppInfo; 68 List<AppInfo> mAppInfos; 83 List<AppInfo> appInfos) { in startRestrictedAppDetails() 153 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() 189 final AppInfo appInfo; in onBatteryTipHandled() 205 BatteryTipDialogFragment createDialogFragment(AppInfo appInfo, boolean toRestrict) { in createDialogFragment() 215 String getKeyFromAppInfo(AppInfo appInfo) { in getKeyFromAppInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | RestrictedAppDetails.java | 40 import com.android.car.developeroptions.fuelgauge.batterytip.AppInfo; 68 List<AppInfo> mAppInfos; 83 List<AppInfo> appInfos) { in startRestrictedAppDetails() 153 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() 189 final AppInfo appInfo; in onBatteryTipHandled() 205 BatteryTipDialogFragment createDialogFragment(AppInfo appInfo, boolean toRestrict) { in createDialogFragment() 215 String getKeyFromAppInfo(AppInfo appInfo) { in getKeyFromAppInfo()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | RestrictAppDetector.java | 26 import com.android.settings.fuelgauge.batterytip.AppInfo; 70 final List<AppInfo> highUsageApps = BatteryTipUtils.detectAnomalies(mContext, in detect() 77 final List<AppInfo> autoHandledApps = mBatteryDatabaseManager.queryAllAnomalies( in detect() 90 final List<AppInfo> highUsageApps = new ArrayList<>(); in getFakeData() 91 highUsageApps.add(new AppInfo.Builder() in getFakeData()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/ |
D | RestrictAppDetector.java | 26 import com.android.car.developeroptions.fuelgauge.batterytip.AppInfo; 70 final List<AppInfo> highUsageApps = BatteryTipUtils.detectAnomalies(mContext, in detect() 77 final List<AppInfo> autoHandledApps = mBatteryDatabaseManager.queryAllAnomalies( in detect() 90 final List<AppInfo> highUsageApps = new ArrayList<>(); in getFakeData() 91 highUsageApps.add(new AppInfo.Builder() in getFakeData()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | DefaultAppSearchAlgorithm.java | 20 import com.android.launcher3.AppInfo; 32 private final List<AppInfo> mApps; 35 public DefaultAppSearchAlgorithm(List<AppInfo> apps) { in DefaultAppSearchAlgorithm() 66 for (AppInfo info : mApps) { in getTitleMatchResult() 74 public static boolean matches(AppInfo info, String query, StringMatcher matcher) { in matches()
|