Searched refs:getAppUsageState (Results 1 – 8 of 8) sorted by relevance
73 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(RESTRICTED); in testGetAppUsageState_returnRestricted()82 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(UNRESTRICTED); in testGetAppUsageState_returnUnrestricted()91 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(OPTIMIZED); in testGetAppUsageState_returnOptimized()
79 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isOptimizedStates_prefChecked()
87 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isRestrictedStates_prefChecked()
87 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isUnrestrictedStates_prefChecked()
60 } else if (mBatteryOptimizeUtils.getAppUsageState() == RESTRICTED) { in updateState()
58 } else if (mBatteryOptimizeUtils.getAppUsageState() == UNRESTRICTED) { in updateState()
62 } else if (mBatteryOptimizeUtils.getAppUsageState() == OPTIMIZED) { in updateState()
62 public AppUsageState getAppUsageState() { in getAppUsageState() method in BatteryOptimizeUtils