Home
last modified time | relevance | path

Searched refs:sipper (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java91 Integer.toString(entry.sipper.uidObj.getUid()));
93 final int userId = UserHandle.getUserId(entry.sipper.getUid());
97 if (entry.sipper.drainType == DrainType.APP) {
198 final BatterySipper sipper = usageList.get(i); in refreshAppListGroup() local
202 sipper.totalPowerMah, totalPower, hiddenPowerMah, dischargeAmount); in refreshAppListGroup()
207 if (shouldHideSipper(sipper)) { in refreshAppListGroup()
210 final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); in refreshAppListGroup()
212 sipper); in refreshAppListGroup()
219 final String key = extractKeyFromSipper(sipper); in refreshAppListGroup()
226 sipper.percent = percentOfTotal; in refreshAppListGroup()
[all …]
DBatteryUtils.java185 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local
186 if (shouldHideSipper(sipper)) { in removeHiddenBatterySippers()
188 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers()
189 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers()
190 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED in removeHiddenBatterySippers()
191 && sipper.drainType != BatterySipper.DrainType.BLUETOOTH in removeHiddenBatterySippers()
192 && sipper.drainType != BatterySipper.DrainType.WIFI in removeHiddenBatterySippers()
193 && sipper.drainType != BatterySipper.DrainType.IDLE in removeHiddenBatterySippers()
194 && !isHiddenSystemModule(sipper)) { in removeHiddenBatterySippers()
197 proportionalSmearPowerMah += sipper.totalPowerMah; in removeHiddenBatterySippers()
[all …]
DBatteryEntry.java124 public final BatterySipper sipper; field in BatteryEntry
137 public BatteryEntry(Context context, Handler handler, UserManager um, BatterySipper sipper) { in BatteryEntry() argument
140 this.sipper = sipper; in BatteryEntry()
141 switch (sipper.drainType) { in BatteryEntry()
172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()
174 if (sipper.mPackages == null || sipper.mPackages.length != 1) { in BatteryEntry()
175 name = sipper.packageWithHighestDrain; in BatteryEntry()
177 defaultPackageName = pm.getPackagesForUid(sipper.uidObj.getUid())[0]; in BatteryEntry()
190 UserInfo info = um.getUserInfo(sipper.userId); in BatteryEntry()
220 if ((name == null || iconId == 0) && this.sipper.uidObj != null) { in BatteryEntry()
[all …]
DPowerUsageFeatureProviderImpl.java46 public boolean isTypeService(BatterySipper sipper) { in isTypeService() argument
51 public boolean isTypeSystem(BatterySipper sipper) { in isTypeSystem() argument
52 final int uid = sipper.uidObj == null ? -1 : sipper.getUid(); in isTypeSystem()
53 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
57 } else if (sipper.mPackages != null) { in isTypeSystem()
58 for (final String packageName : sipper.mPackages) { in isTypeSystem()
DAdvancedPowerUsageDetail.java112 final BatterySipper sipper = entry.sipper; in startBatteryDetailPage() local
113 final BatteryStats.Uid uid = sipper.uidObj; in startBatteryDetailPage()
114 final boolean isTypeApp = sipper.drainType == BatterySipper.DrainType.APP; in startBatteryDetailPage()
117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
121 if (ArrayUtils.isEmpty(sipper.mPackages)) { in startBatteryDetailPage()
130 : sipper.mPackages[0]); in startBatteryDetailPage()
133 args.putInt(EXTRA_UID, sipper.getUid()); in startBatteryDetailPage()
137 args.putInt(EXTRA_POWER_USAGE_AMOUNT, (int) sipper.totalPowerMah); in startBatteryDetailPage()
144 .setUserHandle(new UserHandle(getUserIdToLaunchAdvancePowerUsageDetail(sipper))) in startBatteryDetailPage()
DPowerUsageFeatureProvider.java54 boolean isTypeService(BatterySipper sipper); in isTypeService() argument
59 boolean isTypeSystem(BatterySipper sipper); in isTypeSystem() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java91 Integer.toString(entry.sipper.uidObj.getUid()));
93 final int userId = UserHandle.getUserId(entry.sipper.getUid());
97 if (entry.sipper.drainType == DrainType.APP) {
198 final BatterySipper sipper = usageList.get(i); in refreshAppListGroup() local
202 sipper.totalPowerMah, totalPower, hiddenPowerMah, dischargeAmount); in refreshAppListGroup()
207 if (shouldHideSipper(sipper)) { in refreshAppListGroup()
210 final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); in refreshAppListGroup()
212 sipper); in refreshAppListGroup()
219 final String key = extractKeyFromSipper(sipper); in refreshAppListGroup()
226 sipper.percent = percentOfTotal; in refreshAppListGroup()
[all …]
DBatteryEntry.java124 public final BatterySipper sipper; field in BatteryEntry
137 public BatteryEntry(Context context, Handler handler, UserManager um, BatterySipper sipper) { in BatteryEntry() argument
140 this.sipper = sipper; in BatteryEntry()
141 switch (sipper.drainType) { in BatteryEntry()
172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()
174 if (sipper.mPackages == null || sipper.mPackages.length != 1) { in BatteryEntry()
175 name = sipper.packageWithHighestDrain; in BatteryEntry()
177 defaultPackageName = pm.getPackagesForUid(sipper.uidObj.getUid())[0]; in BatteryEntry()
190 UserInfo info = um.getUserInfo(sipper.userId); in BatteryEntry()
220 if ((name == null || iconId == 0) && this.sipper.uidObj != null) { in BatteryEntry()
[all …]
DBatteryUtils.java180 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local
181 if (shouldHideSipper(sipper)) { in removeHiddenBatterySippers()
183 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers()
184 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers()
185 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED in removeHiddenBatterySippers()
186 && sipper.drainType != BatterySipper.DrainType.BLUETOOTH in removeHiddenBatterySippers()
187 && sipper.drainType != BatterySipper.DrainType.WIFI in removeHiddenBatterySippers()
188 && sipper.drainType != BatterySipper.DrainType.IDLE) { in removeHiddenBatterySippers()
190 proportionalSmearPowerMah += sipper.totalPowerMah; in removeHiddenBatterySippers()
194 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers()
[all …]
DPowerUsageFeatureProviderImpl.java45 public boolean isTypeService(BatterySipper sipper) { in isTypeService() argument
50 public boolean isTypeSystem(BatterySipper sipper) { in isTypeSystem() argument
51 final int uid = sipper.uidObj == null ? -1 : sipper.getUid(); in isTypeSystem()
52 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
56 } else if (sipper.mPackages != null) { in isTypeSystem()
57 for (final String packageName : sipper.mPackages) { in isTypeSystem()
DAdvancedPowerUsageDetail.java112 final BatterySipper sipper = entry.sipper; in startBatteryDetailPage() local
113 final BatteryStats.Uid uid = sipper.uidObj; in startBatteryDetailPage()
114 final boolean isTypeApp = sipper.drainType == BatterySipper.DrainType.APP; in startBatteryDetailPage()
117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
121 if (ArrayUtils.isEmpty(sipper.mPackages)) { in startBatteryDetailPage()
130 : sipper.mPackages[0]); in startBatteryDetailPage()
133 args.putInt(EXTRA_UID, sipper.getUid()); in startBatteryDetailPage()
137 args.putInt(EXTRA_POWER_USAGE_AMOUNT, (int) sipper.totalPowerMah); in startBatteryDetailPage()
144 .setUserHandle(new UserHandle(getUserIdToLaunchAdvancePowerUsageDetail(sipper))) in startBatteryDetailPage()
DPowerUsageFeatureProvider.java53 boolean isTypeService(BatterySipper sipper); in isTypeService() argument
58 boolean isTypeSystem(BatterySipper sipper); in isTypeSystem() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryEntryTest.java86 BatterySipper sipper = in createSipperForApp() local
88 sipper.packageWithHighestDrain = HIGH_DRAIN_PACKAGE; in createSipperForApp()
89 return sipper; in createSipperForApp()
97 BatterySipper sipper = in createSipperForSystem() local
99 sipper.packageWithHighestDrain = HIGH_DRAIN_PACKAGE; in createSipperForSystem()
100 sipper.mPackages = SYSTEM_PACKAGES; in createSipperForSystem()
101 return sipper; in createSipperForSystem()
157 assertThat(entry.extractPackagesFromSipper(entry.sipper)) in extractPackageFromSipper_systemSipper_returnSystemPackage()
165 assertThat(entry.extractPackagesFromSipper(entry.sipper)).isEqualTo(entry.sipper.mPackages); in extractPackageFromSipper_normalSipper_returnDefaultPackage()
DBatteryUtilsTest.java506 final BatterySipper sipper = mock(BatterySipper.class); in createTestSmearBatterySipper() local
507 sipper.drainType = BatterySipper.DrainType.APP; in createTestSmearBatterySipper()
508 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()
509 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper()
515 sipper.uidObj = uid; in createTestSmearBatterySipper()
518 return sipper; in createTestSmearBatterySipper()
532 BatterySipper sipper = mBatteryUtils.findBatterySipperByType(mUsageList, in testFindBatterySipperByType_findTypeScreen() local
535 assertThat(sipper).isSameAs(mScreenBatterySipper); in testFindBatterySipperByType_findTypeScreen()
540 BatterySipper sipper = mBatteryUtils.findBatterySipperByType(mUsageList, in testFindBatterySipperByType_findTypeApp() local
543 assertThat(sipper).isSameAs(mNormalBatterySipper); in testFindBatterySipperByType_findTypeApp()
DAdvancedPowerUsageDetailTest.java370 mBatteryEntry.sipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_defaultPackageNull_chooseFromBatterySipper()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java171 final BatterySipper sipper = usageList.get(i); in findTargetSipper() local
172 if (sipper.getUid() == uid) { in findTargetSipper()
173 return sipper; in findTargetSipper()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppBatteryPreferenceController.java171 final BatterySipper sipper = usageList.get(i); in findTargetSipper() local
172 if (sipper.getUid() == uid) { in findTargetSipper()
173 return sipper; in findTargetSipper()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...