Home
last modified time | relevance | path

Searched refs:getUsageSource (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDatabaseUtilsTest.java486 assertThat(DatabaseUtils.getUsageSource(mContext, mUsageStatsManager)) in getUsageSource_hasData()
492 when(mUsageStatsManager.getUsageSource()).thenReturn(USAGE_SOURCE_TASK_ROOT_ACTIVITY); in getUsageSource_notHasData_writeLoadedData()
494 assertThat(DatabaseUtils.getUsageSource(mContext, mUsageStatsManager)) in getUsageSource_notHasData_writeLoadedData()
506 when(mUsageStatsManager.getUsageSource()).thenThrow(new RemoteException()); in getUsageSource_throwException_writeDefaultData()
508 assertThat(DatabaseUtils.getUsageSource(mContext, mUsageStatsManager)) in getUsageSource_throwException_writeDefaultData()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java443 final int usageSource = getUsageSource(context, usageStatsManager); in getEffectivePackageName()
490 private static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() method in ConvertUtils
492 sUsageSource = DatabaseUtils.getUsageSource(context, usageStatsManager); in getUsageSource()
DDatabaseUtils.java825 static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() method in DatabaseUtils
834 usageSource = usageStatsManager.getUsageSource(); in getUsageSource()