Home
last modified time | relevance | path

Searched refs:extraInfo (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java212 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/
DAppStateUsageStatsBridgeTest.java103 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/
DAppStateAppOpsBridgeTest.java119 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/
DAppStateUsageStatsBridge.java76 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)
DAppsAsyncLoader.java131 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/
DAppStateChangeWifiStateBridgeTest.java58 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/
DAppOpsPreferenceController.java58 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()
DPremiumSmsAccessPreferenceController.java59 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/
DAppStateTurnScreenOnBridge.java50 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;
DAppStateManageExternalStorageBridge.java48 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;
DAppStateClonedAppsBridge.java81 app.extraInfo = Boolean.TRUE; in updateExtraInfo()
83 app.extraInfo = Boolean.FALSE; in updateExtraInfo()
95 if (entry.extraInfo == null) {
99 return (Boolean) entry.extraInfo;
DAppStateAppBatteryUsageBridge.java79 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()
DAppStateLocaleBridge.java57 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;
DAppStateInstallAppsBridge.java56 app.extraInfo = createInstallAppsStateFor(packageName, uid); in updateExtraInfo()
140 if (info.extraInfo == null || !(info.extraInfo instanceof InstallAppsState)) {
143 InstallAppsState state = (InstallAppsState) info.extraInfo;
DAppStatePowerBridge.java46 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;
DAppStateMediaManagementAppsBridge.java49 app.extraInfo = createPermissionState(pkg, uid); in updateExtraInfo()
59 if (appEntry.extraInfo instanceof PermissionState) { in loadAllExtraInfo()
87 return info.extraInfo != null;
DAppStateSmsPremBridge.java51 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/
DLoadSdkException.java38 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/
DSuffixTableExtraInfoTest.java44 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/
DChangeNfcTagAppsStateDetails.java96 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()
DAppStateNfcTagAppsBridge.java93 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/
DAppStateChangeWifiStateBridge.java54 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;
DChangeWifiStateDetails.java119 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/
DSuffixTableExtraInfoTest.java41 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/
DWriteSettingsDetails.java121 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()

1234