Searched refs:APP_DEFAULT_PACKAGE_NAME (Results 1 – 1 of 1) sorted by relevance
52 private static final String APP_DEFAULT_PACKAGE_NAME = "com.android.test"; field in BatteryEntryTest73 .thenReturn(new String[] {APP_DEFAULT_PACKAGE_NAME}); in stubPackageManagerToReturnAppPackageAndName()76 when(mockPackageManager.getApplicationInfo(APP_DEFAULT_PACKAGE_NAME, 0 /* no flags */)) in stubPackageManagerToReturnAppPackageAndName()108 assertThat(entry.defaultPackageName).isEqualTo(APP_DEFAULT_PACKAGE_NAME); in batteryEntryForApp_shouldSetDefaultPackageNameAndLabel()115 when(mockPackageManager.getApplicationInfo(APP_DEFAULT_PACKAGE_NAME, 0 /* no flags */)) in batteryEntryForApp_shouldSetLabelAsPackageName_whenPackageCannotBeFound()120 assertThat(entry.getLabel()).isEqualTo(APP_DEFAULT_PACKAGE_NAME); in batteryEntryForApp_shouldSetLabelAsPackageName_whenPackageCannotBeFound()135 .thenReturn(new String[] {APP_DEFAULT_PACKAGE_NAME, "package2", "package3"}); in batteryEntryForApp_shouldSetHighestDrainPackage_whenMultiplePackagesFoundForUid()