Searched refs:isPreOApp (Results 1 – 3 of 3) sorted by relevance
397 final boolean isPreOApp = isPreOApp(packageName); in setForceAppStandby()398 if (isPreOApp) { in setForceAppStandby()512 public boolean isPreOApp(final String packageName) { in isPreOApp() method in BatteryUtils525 public boolean isPreOApp(final String[] packageNames) { in isPreOApp() method in BatteryUtils531 if (isPreOApp(packageName)) { in isPreOApp()552 || (isExcessiveBackgroundAnomaly(anomalyInfo) && !isPreOApp(packageNames)); in shouldHideAnomaly()
424 final boolean isPreOApp = isPreOApp(packageName); in setForceAppStandby()425 if (isPreOApp) { in setForceAppStandby()551 public boolean isPreOApp(final String packageName) { in isPreOApp() method in BatteryUtils564 public boolean isPreOApp(final String[] packageNames) { in isPreOApp() method in BatteryUtils570 if (isPreOApp(packageName)) { in isPreOApp()591 || (isExcessiveBackgroundAnomaly(anomalyInfo) && !isPreOApp(packageNames)); in shouldHideAnomaly()
556 assertThat(mBatteryUtils.isPreOApp(LOW_SDK_PACKAGE)).isTrue(); in testIsPreOApp_SdkLowerThanO_ReturnTrue()561 assertThat(mBatteryUtils.isPreOApp(HIGH_SDK_PACKAGE)).isFalse(); in testIsPreOApp_SdkLargerOrEqualThanO_ReturnFalse()567 mBatteryUtils.isPreOApp(new String[]{HIGH_SDK_PACKAGE, LOW_SDK_PACKAGE})).isTrue(); in testIsPreOApp_containPreOApp_ReturnTrue()572 assertThat(mBatteryUtils.isPreOApp(new String[]{})).isFalse(); in testIsPreOApp_emptyList_ReturnFalse()