/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 214 assertThat(apps.get(0).extraInfo).isNull(); in testLoadAllExtraInfo_noEvents() 237 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg() 238 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg() 239 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg() 240 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentWeekly).isEqualTo(0); in testLoadAllExtraInfo_multipleEventsAgg() 241 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blocked).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 242 assertThat(((NotificationsSentState) apps.get(0).extraInfo).systemApp).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 243 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blockable).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 272 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); in testLoadAllExtraInfo_multiplePkgs() 273 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(7); in testLoadAllExtraInfo_multiplePkgs() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridgeTest.java | 103 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_appInstalledSameDayNeverUsed_isInvalid() 105 assertThat(app.extraInfo).isNotNull(); in test_appInstalledSameDayNeverUsed_isInvalid() 117 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 119 assertThat(app.extraInfo).isNotNull(); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 131 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unusedApp_isValid() 133 assertThat(app.extraInfo).isNotNull(); in test_unusedApp_isValid() 145 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_unusedApp_isValid() 147 assertThat(app.extraInfo).isNotNull(); in test_noThresholdFilter_unusedApp_isValid() 160 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unknownLastUse_isFilteredOut() 162 assertThat(app.extraInfo).isNotNull(); in test_unknownLastUse_isFilteredOut() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 105 assertThat(entry.extraInfo).isNull(); in androidPackagesIgnored() 118 assertThat(entry.extraInfo).isNull(); in selfPackageIgnored() 134 assertThat(entry.extraInfo).isNull(); in packagesNotRequestingPermissionIgnored() 149 assertThat(entry.extraInfo).isNull(); in unavailablePackageIgnored() 159 assertThat(entry.extraInfo).isNull(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 163 assertThat(entry.extraInfo).isNotNull(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 164 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 174 assertThat(entry.extraInfo).isNull(); in loadsAppOpsExtraInfo_modeDefault_isPermissible() 178 assertThat(entry.extraInfo).isNotNull(); in loadsAppOpsExtraInfo_modeDefault_isPermissible() 179 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeDefault_isPermissible() [all …]
|
D | AppOpsPreferenceControllerTest.java | 275 appEntry.extraInfo = null; in appFilter_removesNullExtraInfoEntries() 285 AppStateAppOpsBridge.PermissionState extraInfo = mock( in createAppEntry() local 287 when(extraInfo.isPermissible()).thenReturn(isOpPermissible); in createAppEntry() 292 appEntry.extraInfo = extraInfo; in createAppEntry()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridge.java | 76 entry.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in loadAllExtraInfo() 86 app.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in updateExtraInfo() 137 private static boolean isExtraInfoValid(Object extraInfo, long unusedDaysThreshold) { in isExtraInfoValid() argument 138 if (extraInfo == null || !(extraInfo instanceof UsageStatsState)) { in isExtraInfoValid() 142 UsageStatsState state = (UsageStatsState) extraInfo; in isExtraInfoValid() 167 return isExtraInfoValid(info.extraInfo, MIN_DELETION_THRESHOLD) 193 return isExtraInfoValid(info.extraInfo, mUnusedDaysThreshold)
|
D | AppsAsyncLoader.java | 131 PackageInfo extraInfo = in loadApps() local 151 if (mFilter.filterApp(extraInfo) && !isDefaultLauncher(mPackageManager, extraInfo)) { in loadApps() 152 stats.add(extraInfo); in loadApps() 357 private static boolean isExtraInfoValid(Object extraInfo, long unusedDaysThreshold) { in isExtraInfoValid() argument 358 if (extraInfo == null || !(extraInfo instanceof PackageInfo)) { in isExtraInfoValid() 362 PackageInfo state = (PackageInfo) extraInfo; in isExtraInfoValid()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | AppOpsPreferenceController.java | 58 return info.extraInfo != null; 70 PermissionState extraInfo = (PermissionState) entry.extraInfo; 72 if (allowOp != extraInfo.isPermissible()) { 213 PermissionState extraInfo = (PermissionState) entry.extraInfo; in AppOpPreference() local 214 setChecked(extraInfo.isPermissible()); in AppOpPreference()
|
D | PremiumSmsAccessPreferenceController.java | 62 return info.extraInfo != null 63 && (Integer) info.extraInfo != SmsUsageMonitor.PREMIUM_SMS_PERMISSION_UNKNOWN; 76 if (smsState != (Integer) entry.extraInfo) { 168 setValue(String.valueOf(entry.extraInfo)); in PremiumSmsPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | AppStateChangeWifiStateBridgeTest.java | 57 mEntry.extraInfo = null; in testFilterApp_extraInfoNull_returnFalse() 64 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredTrue_returnTrue() 71 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredFalse_returnFalse() 81 mEntry.extraInfo = mState; in testFilterApp_networkSettingsGranted_returnFalse()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateInstallAppsBridge.java | 55 app.extraInfo = createInstallAppsStateFor(packageName, uid); in updateExtraInfo() 138 if (info.extraInfo == null || !(info.extraInfo instanceof InstallAppsState)) { 141 InstallAppsState state = (InstallAppsState) info.extraInfo;
|
D | AppStatePowerBridge.java | 46 app.extraInfo = mBackend.isWhitelisted(app.info.packageName) in loadAllExtraInfo() 53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo() 64 return info.extraInfo == Boolean.TRUE;
|
D | AppStateNotificationBridge.java | 89 entry.extraInfo = stats; in loadAllExtraInfo() 99 entry.extraInfo = stats; in updateExtraInfo() 207 if (entry == null || entry.extraInfo == null) { in getNotificationsSentState() 210 if (entry.extraInfo instanceof NotificationsSentState) { in getNotificationsSentState() 211 return (NotificationsSentState) entry.extraInfo; in getNotificationsSentState()
|
D | AppStateSmsPremBridge.java | 54 app.extraInfo = getState(pkg); in updateExtraInfo() 93 return info.extraInfo instanceof SmsState && ((SmsState) info.extraInfo).smsState
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateInstallAppsBridge.java | 55 app.extraInfo = createInstallAppsStateFor(packageName, uid); in updateExtraInfo() 138 if (info.extraInfo == null || !(info.extraInfo instanceof InstallAppsState)) { 141 InstallAppsState state = (InstallAppsState) info.extraInfo;
|
D | AppStatePowerBridge.java | 46 app.extraInfo = mBackend.isWhitelisted(app.info.packageName) in loadAllExtraInfo() 53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo() 64 return info.extraInfo == Boolean.TRUE;
|
D | AppStateNotificationBridge.java | 89 entry.extraInfo = stats; in loadAllExtraInfo() 99 entry.extraInfo = stats; in updateExtraInfo() 209 if (entry == null || entry.extraInfo == null) { in getNotificationsSentState() 212 if (entry.extraInfo instanceof NotificationsSentState) { in getNotificationsSentState() 213 return (NotificationsSentState) entry.extraInfo; in getNotificationsSentState()
|
D | AppStateSmsPremBridge.java | 54 app.extraInfo = getState(pkg); in updateExtraInfo() 93 return info.extraInfo instanceof SmsState && ((SmsState) info.extraInfo).smsState
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | ChangeWifiStateDetails.java | 119 if (entry.extraInfo instanceof WifiSettingsState) { in getSummary() 120 state = (WifiSettingsState) entry.extraInfo; in getSummary() 121 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 122 state = new WifiSettingsState((PermissionState) entry.extraInfo); in getSummary()
|
D | AppStateChangeWifiStateBridge.java | 53 app.extraInfo = getWifiSettingsInfo(pkg, uid); in updateExtraInfo() 86 if (info == null || info.extraInfo == null) { 89 WifiSettingsState wifiSettingsState = (WifiSettingsState) info.extraInfo;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | ChangeWifiStateDetails.java | 119 if (entry.extraInfo instanceof WifiSettingsState) { in getSummary() 120 state = (WifiSettingsState) entry.extraInfo; in getSummary() 121 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 122 state = new WifiSettingsState((PermissionState) entry.extraInfo); in getSummary()
|
D | AppStateChangeWifiStateBridge.java | 53 app.extraInfo = getWifiSettingsInfo(pkg, uid); in updateExtraInfo() 86 if (info == null || info.extraInfo == null) { 89 WifiSettingsState wifiSettingsState = (WifiSettingsState) info.extraInfo;
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | WriteSettingsDetails.java | 147 if (entry.extraInfo instanceof WriteSettingsState) { in getSummary() 148 state = (WriteSettingsState) entry.extraInfo; in getSummary() 149 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 150 state = new WriteSettingsState((PermissionState) entry.extraInfo); in getSummary()
|
D | DrawOverlayDetails.java | 162 if (entry.extraInfo instanceof OverlayState) { in getSummary() 163 state = (OverlayState) entry.extraInfo; in getSummary() 164 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 165 state = new OverlayState((PermissionState) entry.extraInfo); in getSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | DrawOverlayDetails.java | 162 if (entry.extraInfo instanceof OverlayState) { in getSummary() 163 state = (OverlayState) entry.extraInfo; in getSummary() 164 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 165 state = new OverlayState((PermissionState) entry.extraInfo); in getSummary()
|
D | WriteSettingsDetails.java | 147 if (entry.extraInfo instanceof WriteSettingsState) { in getSummary() 148 state = (WriteSettingsState) entry.extraInfo; in getSummary() 149 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 150 state = new WriteSettingsState((PermissionState) entry.extraInfo); in getSummary()
|