Searched refs:sipper (Results 1 – 20 of 20) sorted by relevance
91 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() local202 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 …]
185 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local186 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 …]
124 public final BatterySipper sipper; field in BatteryEntry137 public BatteryEntry(Context context, Handler handler, UserManager um, BatterySipper sipper) { in BatteryEntry() argument140 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 …]
46 public boolean isTypeService(BatterySipper sipper) { in isTypeService() argument51 public boolean isTypeSystem(BatterySipper sipper) { in isTypeSystem() argument52 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()
112 final BatterySipper sipper = entry.sipper; in startBatteryDetailPage() local113 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()
54 boolean isTypeService(BatterySipper sipper); in isTypeService() argument59 boolean isTypeSystem(BatterySipper sipper); in isTypeSystem() argument
180 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local181 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 …]
45 public boolean isTypeService(BatterySipper sipper) { in isTypeService() argument50 public boolean isTypeSystem(BatterySipper sipper) { in isTypeSystem() argument51 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()
53 boolean isTypeService(BatterySipper sipper); in isTypeService() argument58 boolean isTypeSystem(BatterySipper sipper); in isTypeSystem() argument
86 BatterySipper sipper = in createSipperForApp() local88 sipper.packageWithHighestDrain = HIGH_DRAIN_PACKAGE; in createSipperForApp()89 return sipper; in createSipperForApp()97 BatterySipper sipper = in createSipperForSystem() local99 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()
506 final BatterySipper sipper = mock(BatterySipper.class); in createTestSmearBatterySipper() local507 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() local535 assertThat(sipper).isSameAs(mScreenBatterySipper); in testFindBatterySipperByType_findTypeScreen()540 BatterySipper sipper = mBatteryUtils.findBatterySipperByType(mUsageList, in testFindBatterySipperByType_findTypeApp() local543 assertThat(sipper).isSameAs(mNormalBatterySipper); in testFindBatterySipperByType_findTypeApp()
370 mBatteryEntry.sipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_defaultPackageNull_chooseFromBatterySipper()
171 final BatterySipper sipper = usageList.get(i); in findTargetSipper() local172 if (sipper.getUid() == uid) { in findTargetSipper()173 return sipper; in findTargetSipper()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...