Searched refs:getUsageSource (Results 1 – 3 of 3) sorted by relevance
486 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()
443 final int usageSource = getUsageSource(context, usageStatsManager); in getEffectivePackageName()490 private static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() method in ConvertUtils492 sUsageSource = DatabaseUtils.getUsageSource(context, usageStatsManager); in getUsageSource()
825 static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() method in DatabaseUtils834 usageSource = usageStatsManager.getUsageSource(); in getUsageSource()