/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 44 private AppInfo mAppInfo; field in AppInfoTest 48 mAppInfo = new AppInfo.Builder() in setUp() 60 mAppInfo.writeToParcel(parcel, mAppInfo.describeContents()); in testParcel() 81 appInfos.add(mAppInfo); in testCompareTo_hasCorrectOrder() 89 assertThat(mAppInfo.packageName).isEqualTo(PACKAGE_NAME); in testBuilder() 90 assertThat(mAppInfo.anomalyTypes).containsExactly(TYPE_WAKELOCK, TYPE_WAKEUP); in testBuilder() 91 assertThat(mAppInfo.screenOnTimeMs).isEqualTo(SCREEN_TIME_MS); in testBuilder() 92 assertThat(mAppInfo.uid).isEqualTo(UID); in testBuilder()
|
D | BatteryTipDialogFragmentTest.java | 71 private AppInfo mAppInfo; field in BatteryTipDialogFragmentTest 82 mAppInfo = new AppInfo.Builder() in setUp() 86 highUsageTips.add(mAppInfo); in setUp() 90 restrictApps.add(mAppInfo); in setUp() 93 restrictApps.add(mAppInfo); in setUp() 97 mUnrestrictAppTip = new UnrestrictAppTip(BatteryTip.StateType.NEW, mAppInfo); in setUp() 167 appInfos.add(mAppInfo); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetailsTest.java | 89 private AppInfo mAppInfo; field in RestrictedAppDetailsTest 99 mAppInfo = new AppInfo.Builder() in setUp() 112 mRestrictedAppDetails.mAppInfos.add(mAppInfo); in setUp() 120 mCheckBoxPreference.setKey(mRestrictedAppDetails.getKeyFromAppInfo(mAppInfo)); in setUp() 162 assertThat(appInfos).containsExactly(mAppInfo); in startRestrictedAppDetails_startWithCorrectData() 168 mAppInfo, true); in createDialogFragment_toRestrict_createRestrictDialog() 181 mAppInfo, false); in createDialogFragment_toUnrestrict_createUnrestrictDialog() 194 mAppInfo); in onBatteryTipHandled_restrict_setChecked() 205 mAppInfo); in onBatteryTipHandled_unrestrict_setUnchecked()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | UnrestrictAppTip.java | 32 private AppInfo mAppInfo; field in UnrestrictAppTip 36 mAppInfo = appInfo; in UnrestrictAppTip() 42 mAppInfo = in.readParcelable(getClass().getClassLoader()); in UnrestrictAppTip() 63 return mAppInfo.packageName; in getPackageName() 77 return mAppInfo; in getUnrestrictAppInfo() 83 dest.writeParcelable(mAppInfo, flags); in writeToParcel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/ |
D | UnrestrictAppTip.java | 32 private AppInfo mAppInfo; field in UnrestrictAppTip 36 mAppInfo = appInfo; in UnrestrictAppTip() 42 mAppInfo = in.readParcelable(getClass().getClassLoader()); in UnrestrictAppTip() 63 return mAppInfo.packageName; in getPackageName() 77 return mAppInfo; in getUnrestrictAppInfo() 83 dest.writeParcelable(mAppInfo, flags); in writeToParcel()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 107 private ApplicationInfo mAppInfo; field in AppButtonsPreferenceControllerTest 145 mAppEntry.info = mAppInfo; in setUp() 146 mAppInfo.packageName = PACKAGE_NAME; in setUp() 147 mAppInfo.flags = 0; in setUp() 149 mPackageInfo.applicationInfo = mAppInfo; in setUp() 237 mAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in updateUninstallButton_isSystemApp_handleAsDisableableButton() 268 mAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in updateUninstallButton_isDeviceAdminApp_setButtonDisable() 307 mAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in updateUninstallButton_isHomeAppAndBundled_setButtonDisable() 317 mAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in updateUninstallButton_isSystemRro_setButtonDisable() 319 when(mAppInfo.isResourceOverlay()).thenReturn(true); in updateUninstallButton_isSystemRro_setButtonDisable() [all …]
|
D | AppInstallerInfoPreferenceControllerTest.java | 60 private ApplicationInfo mAppInfo; field in AppInstallerInfoPreferenceControllerTest 78 .thenReturn(mAppInfo); in setUp() 103 when(mAppInfo.loadLabel(mPackageManager)).thenReturn("Label1"); in getAvailabilityStatus_hasAppLabel_shouldReturnAvailable() 115 packageInfo.applicationInfo = mAppInfo; in updateState_shouldSetSummary() 126 packageInfo.applicationInfo = mAppInfo; in updateState_noAppStoreLink_shouldDisablePreference() 138 packageInfo.applicationInfo = mAppInfo; in updateState_hasAppStoreLink_shouldSetPreferenceIntent()
|
D | InstantAppDomainsPreferenceControllerTest.java | 56 private ApplicationInfo mAppInfo; field in InstantAppDomainsPreferenceControllerTest 71 packageInfo.applicationInfo = mAppInfo; in setUp()
|
D | InstantAppButtonsPreferenceControllerTest.java | 75 private ApplicationInfo mAppInfo; field in InstantAppButtonsPreferenceControllerTest 95 packageInfo.applicationInfo = mAppInfo; in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | WebViewAppPreferenceControllerTest.java | 54 private DefaultAppInfo mAppInfo; field in WebViewAppPreferenceControllerTest 65 doReturn(mAppInfo).when(mController).getDefaultAppInfo(); in setup() 73 when(mAppInfo.loadLabel()).thenReturn("SomeRandomAppLabel!!!"); in updateState_hasAppLabel_shouldSetAppLabelAndIcon() 82 when(mAppInfo.loadLabel()).thenReturn(null); in updateState_noAppLabel_shouldSetAppDefaultLabelAndNullIcon()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
D | DefaultAppPreferenceControllerTest.java | 66 when(mController.mAppInfo.loadLabel()).thenReturn(TEST_APP_NAME); in updateState_hasDefaultApp_shouldUpdateAppName() 94 private DefaultAppInfo mAppInfo; field in DefaultAppPreferenceControllerTest.TestPreferenceController 98 mAppInfo = mock(DefaultAppInfo.class); in TestPreferenceController() 113 return mAppInfo; in getDefaultAppInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | RestrictAppDetectorTest.java | 71 private AppInfo mAppInfo; field in RestrictAppDetectorTest 86 mAppInfo = new AppInfo.Builder().setPackageName(PACKAGE_NAME).build(); in setUp() 87 mAppInfoList.add(mAppInfo); in setUp() 156 assertThat(restrictAppTip.getRestrictAppList()).containsExactly(mAppInfo); in testDetect_typeNewHasUninstalledAnomaly_removeIt() 173 assertThat(restrictAppTip.getRestrictAppList()).containsExactly(mAppInfo); in testDetect_typeNewHasRestrictedAnomaly_removeIt()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTipTest.java | 66 private AppInfo mAppInfo; field in RestrictAppTipTest 89 mAppInfo = new AppInfo.Builder() in setUp() 99 mUsageAppList.add(mAppInfo); in setUp() 192 assertThat(mInvisibleBatteryTip.getRestrictAppList()).containsExactly(mAppInfo); in update_newHandledAnomalyComes_containHandledAnomaly() 209 appInfos.add(mAppInfo); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | UserAppInfo.java | 33 public UserAppInfo(UserInfo mUserInfo, ApplicationInfo mAppInfo) { in UserAppInfo() argument 35 this.appInfo = mAppInfo; in UserAppInfo()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | UserAppInfo.java | 33 public UserAppInfo(UserInfo mUserInfo, ApplicationInfo mAppInfo) { in UserAppInfo() argument 35 this.appInfo = mAppInfo; in UserAppInfo()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 66 private ApplicationInfo mAppInfo; field in NotificationEntryTest 105 .thenReturn(mAppInfo); in setUp() 106 mAppInfo.targetSdkVersion = Build.VERSION_CODES.P; in setUp()
|