Searched refs:isPreOApp (Results 1 – 2 of 2) sorted by relevance
331 final boolean isPreOApp = isPreOApp(packageName); in setForceAppStandby()332 if (isPreOApp) { in setForceAppStandby()443 public boolean isPreOApp(final String packageName) { in isPreOApp() method in BatteryUtils456 public boolean isPreOApp(final String[] packageNames) { in isPreOApp() method in BatteryUtils462 if (isPreOApp(packageName)) { in isPreOApp()483 || (isExcessiveBackgroundAnomaly(anomalyInfo) && !isPreOApp(packageNames)); in shouldHideAnomaly()
322 assertThat(mBatteryUtils.isPreOApp(LOW_SDK_PACKAGE)).isTrue(); in testIsPreOApp_SdkLowerThanO_ReturnTrue()327 assertThat(mBatteryUtils.isPreOApp(HIGH_SDK_PACKAGE)).isFalse(); in testIsPreOApp_SdkLargerOrEqualThanO_ReturnFalse()333 mBatteryUtils.isPreOApp(new String[]{HIGH_SDK_PACKAGE, LOW_SDK_PACKAGE})).isTrue(); in testIsPreOApp_containPreOApp_ReturnTrue()338 assertThat(mBatteryUtils.isPreOApp(new String[]{})).isFalse(); in testIsPreOApp_emptyList_ReturnFalse()