Home
last modified time | relevance | path

Searched refs:taskRootPackageName (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DAppUsageEventEntity.java53 public final String taskRootPackageName; field in AppUsageEventEntity
62 final String taskRootPackageName) { in AppUsageEventEntity() argument
69 this.taskRootPackageName = taskRootPackageName; in AppUsageEventEntity()
106 taskRootPackageName)); in toString()
196 public Builder setTaskRootPackageName(final String taskRootPackageName) { in setTaskRootPackageName() argument
197 this.mTaskRootPackageName = taskRootPackageName; in setTaskRootPackageName()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DAppUsageEventEntityTest.java36 final String taskRootPackageName = "com.android.settings2"; in testBuilder_returnsExpectedResult() local
46 .setTaskRootPackageName(taskRootPackageName) in testBuilder_returnsExpectedResult()
56 assertThat(entity.taskRootPackageName).isEqualTo(taskRootPackageName); in testBuilder_returnsExpectedResult()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java260 final String taskRootPackageName = getTaskRootPackageName(event); in convertToAppUsageEvent() local
261 if (taskRootPackageName != null) { in convertToAppUsageEvent()
262 appUsageEventBuilder.setTaskRootPackageName(taskRootPackageName); in convertToAppUsageEvent()
267 context, usageStatsManager, packageName, taskRootPackageName); in convertToAppUsageEvent()
442 final String taskRootPackageName) { in getEffectivePackageName() argument
446 return !TextUtils.isEmpty(taskRootPackageName) ? taskRootPackageName : packageName; in getEffectivePackageName()
473 String taskRootPackageName = event.getTaskRootPackageName(); in getTaskRootPackageName() local
474 if (taskRootPackageName == null) { in getTaskRootPackageName()
483 return taskRootPackageName; in getTaskRootPackageName()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java655 final String taskRootPackageName = "com.android.settings2"; in getEffectivePackageName_currentActivity_returnPackageName() local
659 mContext, mUsageStatsManager, packageName, taskRootPackageName)) in getEffectivePackageName_currentActivity_returnPackageName()
666 final String taskRootPackageName = "com.android.settings2"; in getEffectivePackageName_emptyUsageSource_returnPackageName() local
670 mContext, mUsageStatsManager, packageName, taskRootPackageName)) in getEffectivePackageName_emptyUsageSource_returnPackageName()
678 final String taskRootPackageName = "com.android.settings2"; in getEffectivePackageName_rootActivity_returnTaskRootPackageName() local
682 mContext, mUsageStatsManager, packageName, taskRootPackageName)) in getEffectivePackageName_rootActivity_returnTaskRootPackageName()
683 .isEqualTo(taskRootPackageName); in getEffectivePackageName_rootActivity_returnTaskRootPackageName()
DBatteryUsageContentProviderTest.java378 assertThat(entities.get(0).taskRootPackageName).isEqualTo("com.android.settings2"); in insert_appUsageEvent_returnsExpectedResult()