/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | RefreshReasons.java | 47 static void validate(@RefreshReason int refreshReason) { in validate() argument 48 switch (refreshReason) { in validate() 58 throw new IllegalArgumentException("Unexpected refresh reason: " + refreshReason); in validate() 64 static int toRefreshRequestType(@RefreshReason int refreshReason) { in toRefreshRequestType() argument 65 switch (refreshReason) { in toRefreshRequestType() 76 Log.w(TAG, "Unexpected refresh reason: " + refreshReason); in toRefreshRequestType() 84 static boolean isBackgroundRefresh(@RefreshReason int refreshReason) { in isBackgroundRefresh() argument 85 switch (refreshReason) { in isBackgroundRefresh() 96 Log.w(TAG, "Unexpected refresh reason: " + refreshReason); in isBackgroundRefresh()
|
D | SafetyCenterBroadcastDispatcher.java | 99 @RefreshReason int refreshReason, in sendRefreshSafetySources() 107 refreshReason, userProfileGroup); in sendRefreshSafetySources() 117 refreshReason, in sendRefreshSafetySources() 134 @RefreshReason int refreshReason, in sendRefreshSafetySourcesBroadcast() argument 140 Set<String> deniedSourceIds = getRefreshDeniedSourceIds(refreshReason); in sendRefreshSafetySourcesBroadcast() 142 getUserIdsToSourceIds(broadcast, userProfileGroup, refreshReason); in sendRefreshSafetySourcesBroadcast() 162 Intent intent = createRefreshIntent(refreshReason, packageName, sourceIds, broadcastId); in sendRefreshSafetySourcesBroadcast() 283 @RefreshReason int refreshReason, in createRefreshIntent() 288 int requestType = RefreshReasons.toRefreshRequestType(refreshReason); in createRefreshIntent() 295 boolean isUserInitiated = !RefreshReasons.isBackgroundRefresh(refreshReason); in createRefreshIntent() [all …]
|
D | SafetyCenterRefreshTracker.java | 75 @RefreshReason int refreshReason, UserProfileGroup userProfileGroup) { in reportRefreshInProgress() 84 + refreshReason in reportRefreshInProgress() 91 refreshReason, in reportRefreshInProgress() 169 int refreshReason = refreshInProgress.getReason(); in reportSourceRefreshCompleted() local 170 int requestType = RefreshReasons.toRefreshRequestType(refreshReason); in reportSourceRefreshCompleted() 180 refreshReason, in reportSourceRefreshCompleted() 195 refreshReason, in reportSourceRefreshCompleted() 267 int refreshReason = clearedRefresh.getReason(); in timeoutRefresh() local 268 int requestType = RefreshReasons.toRefreshRequestType(refreshReason); in timeoutRefresh() 275 + refreshReason in timeoutRefresh() [all …]
|
D | SafetyCenterService.java | 409 public void refreshSafetySources(@RefreshReason int refreshReason, @UserIdInt int userId) { in refreshSafetySources() argument 410 RefreshReasons.validate(refreshReason); in refreshSafetySources() 418 startRefreshingSafetySourcesLocked(refreshReason, userId); in refreshSafetySources() 425 @RefreshReason int refreshReason, in refreshSpecificSafetySources() 429 RefreshReasons.validate(refreshReason); in refreshSpecificSafetySources() 438 startRefreshingSafetySourcesLocked(refreshReason, userId, safetySourceIds); in refreshSpecificSafetySources() 937 @RefreshReason int refreshReason, in RefreshTimeout() argument 940 mRefreshReason = refreshReason; in RefreshTimeout() 1230 @RefreshReason int refreshReason, @UserIdInt int userId) { in startRefreshingSafetySourcesLocked() 1232 refreshReason, in startRefreshingSafetySourcesLocked() [all …]
|
D | SafetyCenterFlags.java | 364 static Duration getRefreshSourcesTimeout(@RefreshReason int refreshReason) { in getRefreshSourcesTimeout() argument 366 Long timeout = getLongValueFromStringMapping(refreshSourcesTimeouts, refreshReason); in getRefreshSourcesTimeout()
|
/packages/modules/Permission/service/java/com/android/safetycenter/data/ |
D | SafetySourceStateCollectedLogger.java | 85 @Nullable @SafetyCenterManager.RefreshReason Integer refreshReason, in writeSourceUpdatedAtom() argument 92 refreshReason, in writeSourceUpdatedAtom() 102 @Nullable @SafetyCenterManager.RefreshReason Integer refreshReason, in logSafetySourceStateCollected() argument 142 refreshReason, in logSafetySourceStateCollected() local
|
D | SafetyCenterDataManager.java | 151 Integer refreshReason = null; in setSafetySourceData() local 153 refreshReason = mSafetyCenterRefreshTracker.getRefreshReason(); in setSafetySourceData() 174 refreshReason, in setSafetySourceData() 230 Integer refreshReason = null; in reportSafetySourceError() local 232 refreshReason = mSafetyCenterRefreshTracker.getRefreshReason(); in reportSafetySourceError() 253 refreshReason, in reportSafetySourceError()
|
/packages/modules/Permission/service/java/com/android/safetycenter/logging/ |
D | SafetyCenterStatsdLogger.java | 180 @Nullable @SafetyCenterManager.RefreshReason Integer refreshReason, in writeSafetySourceStateCollected() argument 201 refreshReason != null ? refreshReason : UNSET_REFRESH_REASON, in writeSafetySourceStateCollected() 218 long refreshReason, in writeSourceRefreshSystemEvent() argument 231 refreshReason, in writeSourceRefreshSystemEvent() 243 long refreshReason, in writeWholeRefreshSystemEvent() argument 256 refreshReason, in writeWholeRefreshSystemEvent()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterApisWithShellPermissions.kt | 87 refreshReason: Int, in SafetyCenterManager() 92 refreshSafetySources(refreshReason, safetySourceIds) in SafetyCenterManager() 94 refreshSafetySources(refreshReason) in SafetyCenterManager()
|
D | SafetySourceReceiver.kt | 166 refreshReason: Int, in SafetyCenterManager() 171 refreshSafetySourcesWithPermission(refreshReason, safetySourceIds) in SafetyCenterManager() 176 refreshReason: Int, in SafetyCenterManager() 179 refreshSafetySourcesWithPermission(refreshReason, safetySourceIds) in SafetyCenterManager()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/ |
D | ISafetyCenterManager.aidl | 74 void refreshSafetySources(int refreshReason, int userId); in refreshSafetySources() argument 80 … void refreshSpecificSafetySources(int refreshReason, int userId, in List<String> safetySourceIds); in refreshSpecificSafetySources() argument
|
D | SafetyCenterManager.java | 443 public void refreshSafetySources(@RefreshReason int refreshReason) { in refreshSafetySources() argument 445 mService.refreshSafetySources(refreshReason, mContext.getUser().getIdentifier()); in refreshSafetySources() 471 @RefreshReason int refreshReason, @NonNull List<String> safetySourceIds) { in refreshSafetySources() 481 refreshReason, mContext.getUser().getIdentifier(), safetySourceIds); in refreshSafetySources()
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetySourceStateCollectedLoggingHelperTests.kt | 143 refreshReason = SafetyCenterManager.REFRESH_REASON_RESCAN_BUTTON_CLICK in refreshAllSources_reasonButtonClick_oneSuccessOneErrorOneTimeout() 161 refreshReason: Int = SafetyCenterManager.REFRESH_REASON_PAGE_OPEN in simulateRefresh() 182 safetyCenterManager.refreshSafetySourcesWithReceiverPermissionAndWait(refreshReason) in simulateRefresh()
|
/packages/modules/Permission/tests/hostside/safetycenter/src/android/safetycenter/hostside/ |
D | SafetyCenterSystemEventReportedLoggingHostTest.kt | 121 .that(systemEventAtoms.count { it.refreshReason == REFRESH_REASON_PAGE_OPEN }) in refreshAllSources_anyResult_atomsIncludeRefreshReason() 139 .that(systemEventAtoms.count { it.refreshReason == REFRESH_REASON_BUTTON_CLICK }) in refreshAllSources_differentRefreshReason_atomsIncludeCorrectRefreshReason()
|