/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 216 assertThat(apps.get(0).extraInfo).isNotNull(); in testLoadAllExtraInfo_noEvents() 219 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_noEvents() 220 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents() 243 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg() 244 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg() 245 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg() 246 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentWeekly).isEqualTo(0); in testLoadAllExtraInfo_multipleEventsAgg() 247 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blocked).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 248 assertThat(((NotificationsSentState) apps.get(0).extraInfo).systemApp).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 249 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blockable).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() [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 | 59 return info.extraInfo != null 60 && (Integer) info.extraInfo != SmsManager.PREMIUM_SMS_CONSENT_UNKNOWN; 73 if (smsState != (Integer) entry.extraInfo) { 159 setValue(String.valueOf(entry.extraInfo)); in PremiumSmsPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | AppStateChangeWifiStateBridgeTest.java | 58 mEntry.extraInfo = null; in testFilterApp_extraInfoNull_returnFalse() 65 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredTrue_returnTrue() 72 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredFalse_returnFalse() 82 mEntry.extraInfo = mState; in testFilterApp_networkSettingsGranted_returnFalse() 88 mEntry.extraInfo = mock(DataUsageState.class); in testFilterApp_filterWrongTypeExtraInfo_returnFalse()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateManageExternalStorageBridge.java | 48 app.extraInfo = getManageExternalStoragePermState(pkg, uid); in updateExtraInfo() 56 if (app.extraInfo instanceof PermissionState) { in loadAllExtraInfo() 57 ((PermissionState) app.extraInfo).appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in loadAllExtraInfo() 93 return info.extraInfo != null;
|
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.isAllowlisted(app.info.packageName) in loadAllExtraInfo() 53 app.extraInfo = mBackend.isAllowlisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo() 64 return info.extraInfo == Boolean.TRUE;
|
D | AppStateMediaManagementAppsBridge.java | 49 app.extraInfo = createPermissionState(pkg, uid); in updateExtraInfo() 59 if (appEntry.extraInfo instanceof PermissionState) { in loadAllExtraInfo() 87 return info.extraInfo != null;
|
D | AppStateSmsPremBridge.java | 51 app.extraInfo = getState(pkg); in updateExtraInfo() 83 return info.extraInfo instanceof SmsState && ((SmsState) info.extraInfo).smsState
|
D | AppStateNotificationBridge.java | 94 entry.extraInfo = stats; in loadAllExtraInfo() 104 entry.extraInfo = stats; in updateExtraInfo() 214 if (entry == null || entry.extraInfo == null) { in getNotificationsSentState() 217 if (entry.extraInfo instanceof NotificationsSentState) { in getNotificationsSentState() 218 return (NotificationsSentState) entry.extraInfo; in getNotificationsSentState()
|
D | AppStateAlarmsAndRemindersBridge.java | 87 app.extraInfo = createPermissionState(pkg, uid); in updateExtraInfo() 107 if (info.extraInfo instanceof AlarmsAndRemindersState) { 108 final AlarmsAndRemindersState state = (AlarmsAndRemindersState) info.extraInfo;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | AppStateChangeWifiStateBridge.java | 54 app.extraInfo = getWifiSettingsInfo(pkg, uid); in updateExtraInfo() 87 if (info == null || info.extraInfo == null 88 || !(info.extraInfo instanceof WifiSettingsState)) { 91 WifiSettingsState wifiSettingsState = (WifiSettingsState) info.extraInfo;
|
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()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | SuffixTableExtraInfoTest.java | 41 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_emptyBlock() local 42 assertEquals(0, extraInfo.getEntryCount()); in create_emptyBlock() 73 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_nonEmptyBlock() local 74 assertEquals(3, extraInfo.getEntryCount()); in create_nonEmptyBlock()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DrawOverlayDetails.java | 166 if (entry.extraInfo instanceof OverlayState) { in getSummary() 167 state = (OverlayState) entry.extraInfo; in getSummary() 168 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 169 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()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | AlarmsAndReminders.java | 77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference() 102 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary() 103 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
|
D | WriteSettings.java | 77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference() 102 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary() 103 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
|
D | AppUsageAccess.java | 73 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference() 90 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary() 91 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
|
D | SystemAlertWindow.java | 82 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference() 107 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary() 108 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
|