/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 212 assertThat(apps.get(0).extraInfo).isNotNull(); in testLoadAllExtraInfo_noEvents() 215 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_noEvents() 216 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents() 239 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg() 240 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg() 241 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg() 242 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentWeekly).isEqualTo(0); in testLoadAllExtraInfo_multipleEventsAgg() 243 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blocked).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 244 assertThat(((NotificationsSentState) apps.get(0).extraInfo).blockable).isTrue(); in testLoadAllExtraInfo_multipleEventsAgg() 273 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); 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/unit/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 119 assertThat(entry.extraInfo).isNull(); in androidPackagesIgnored() 131 assertThat(entry.extraInfo).isNull(); in selfPackageIgnored() 146 assertThat(entry.extraInfo).isNull(); in packagesNotRequestingPermissionIgnored() 160 assertThat(entry.extraInfo).isNull(); in additionalAppOpPermissionPackagesIncluded() 171 assertThat(entry.extraInfo).isNotNull(); in additionalAppOpPermissionPackagesIncluded() 185 assertThat(entry.extraInfo).isNull(); in unavailablePackageIgnored() 194 assertThat(entry.extraInfo).isNull(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 198 assertThat(entry.extraInfo).isNotNull(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 199 assertThat(((AppStateAppOpsBridge.PermissionState) entry.extraInfo).isPermissible()) in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 209 assertThat(entry.extraInfo).isNull(); in loadsAppOpsExtraInfo_modeDefault_isPermissible() [all …]
|
/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/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/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()) { 221 PermissionState extraInfo = (PermissionState) entry.extraInfo; in AppOpPreference() local 222 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) { 166 setValue(String.valueOf(entry.extraInfo)); in PremiumSmsPreference()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateTurnScreenOnBridge.java | 50 app.extraInfo = getPermissionInfo(pkg, uid); in updateExtraInfo() 58 if (app.extraInfo instanceof PermissionState) { in loadAllExtraInfo() 59 ((PermissionState) app.extraInfo).appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in loadAllExtraInfo() 83 return info.extraInfo != null;
|
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 | AppStateClonedAppsBridge.java | 81 app.extraInfo = Boolean.TRUE; in updateExtraInfo() 83 app.extraInfo = Boolean.FALSE; in updateExtraInfo() 95 if (entry.extraInfo == null) { 99 return (Boolean) entry.extraInfo;
|
D | AppStateAppBatteryUsageBridge.java | 79 app.extraInfo = getAppBatteryUsageState(pkg, uid); in updateExtraInfo() 124 if (entry == null || entry.extraInfo == null) { in getAppBatteryUsageDetailsMode() 128 return entry.extraInfo instanceof AppBatteryUsageDetails in getAppBatteryUsageDetailsMode() 129 ? ((AppBatteryUsageDetails) entry.extraInfo).mMode in getAppBatteryUsageDetailsMode()
|
D | AppStateLocaleBridge.java | 57 app.extraInfo = AppLocaleUtil.canDisplayLocaleUi(appInfoByProfiles.mContextAsUser, in updateExtraInfo() 68 app.extraInfo = AppLocaleUtil.canDisplayLocaleUi(appInfoByProfiles.mContextAsUser, in loadAllExtraInfo() 82 if (entry.extraInfo == null) { 86 return entry.extraInfo == Boolean.TRUE;
|
D | AppStateInstallAppsBridge.java | 56 app.extraInfo = createInstallAppsStateFor(packageName, uid); in updateExtraInfo() 140 if (info.extraInfo == null || !(info.extraInfo instanceof InstallAppsState)) { 143 InstallAppsState state = (InstallAppsState) info.extraInfo;
|
D | AppStatePowerBridge.java | 46 app.extraInfo = mBackend.isAllowlisted(app.info.packageName, app.info.uid) in loadAllExtraInfo() 53 app.extraInfo = mBackend.isAllowlisted(pkg, uid) ? 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
|
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/ |
D | LoadSdkException.java | 38 public LoadSdkException(@NonNull Throwable cause, @NonNull Bundle extraInfo) { in LoadSdkException() argument 39 this(SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR, cause.getMessage(), cause, extraInfo); in LoadSdkException() 90 @NonNull Bundle extraInfo) { in LoadSdkException() argument 93 mExtraInformation = extraInfo; in LoadSdkException()
|
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/ |
D | SuffixTableExtraInfoTest.java | 44 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_emptyBlock() local 45 assertEquals(0, extraInfo.getEntryCount()); in create_emptyBlock() 75 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_nonEmptyBlock() local 76 assertEquals(3, extraInfo.getEntryCount()); in create_nonEmptyBlock()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | ChangeNfcTagAppsStateDetails.java | 96 if (mAppEntry.extraInfo instanceof NfcTagAppState) { in refreshUi() 97 state = (NfcTagAppState) mAppEntry.extraInfo; in refreshUi() 109 if (entry.extraInfo instanceof NfcTagAppState) { in getSummary() 110 state = (NfcTagAppState) entry.extraInfo; in getSummary()
|
D | AppStateNfcTagAppsBridge.java | 93 app.extraInfo = new NfcTagAppState(/* exist */ true, /* allowed */ map.get(pkg)); in updateExtraInfo() 95 app.extraInfo = new NfcTagAppState(/* exist */ false, /* allowed */ false); in updateExtraInfo() 128 if (entry.extraInfo == null) { 132 NfcTagAppState state = (NfcTagAppState) entry.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/tzs2storage/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 | WriteSettingsDetails.java | 121 if (entry.extraInfo instanceof WriteSettingsState) { in getSummary() 122 state = (WriteSettingsState) entry.extraInfo; in getSummary() 123 } else if (entry.extraInfo instanceof PermissionState) { in getSummary() 124 state = new WriteSettingsState((PermissionState) entry.extraInfo); in getSummary()
|