/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetySourceDataTest.kt | 51 val safetySourceData = in getStatus_withDefaultBuilder_returnsNull() constant 54 assertThat(safetySourceData.status).isNull() in getStatus_withDefaultBuilder_returnsNull() 60 val safetySourceData = SafetySourceData.Builder().setStatus(status).build() in getStatus_whenSetExplicitly_returnsStatus() constant 62 assertThat(safetySourceData.status).isEqualTo(status) in getStatus_whenSetExplicitly_returnsStatus() 67 val safetySourceData = in getIssues_withDefaultBuilder_returnsEmptyList() constant 70 assertThat(safetySourceData.issues).isEmpty() in getIssues_withDefaultBuilder_returnsEmptyList() 77 val safetySourceData = in getIssues_whenSetExplicitly_returnsIssues() constant 80 assertThat(safetySourceData.issues).containsExactly(firstIssue, secondIssue).inOrder() in getIssues_whenSetExplicitly_returnsIssues() 101 val safetySourceData = in getExtras_withDefaultBuilder_returnsEmptyBundle() constant 104 assertThat(safetySourceData.extras.keySet()).isEmpty() in getExtras_withDefaultBuilder_returnsEmptyBundle() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | LockScreenSafetySourceTest.java | 150 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenScreenLockIsEnabled_setData() local 151 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenScreenLockIsEnabled_setData() 187 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo() local 188 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo() 212 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setStatusLevelRec() local 213 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setStatusLevelRec() 237 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsSec_setStatusLevelUnsp() local 238 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsSec_setStatusLevelUnsp() 262 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsNotSec_setStatusLevelUnsp() local 263 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsNotSec_setStatusLevelUnsp() [all …]
|
/packages/modules/Permission/service/java/com/android/safetycenter/data/ |
D | SafetySourceDataFix.java | 57 @Nullable SafetySourceData safetySourceData, in maybeOverrideSafetySourceData() argument 60 if (safetySourceData == null) { in maybeOverrideSafetySourceData() 65 safetySourceData = AndroidLockScreenFix.applyFix(mContext, safetySourceData); in maybeOverrideSafetySourceData() 69 safetySourceData = in maybeOverrideSafetySourceData() 71 sourceId, safetySourceData, packageName, userId); in maybeOverrideSafetySourceData() 74 return safetySourceData; in maybeOverrideSafetySourceData()
|
D | DefaultActionOverrideFix.java | 74 SafetySourceData safetySourceData, in applyFix() argument 77 if (safetySourceData.getIssues().isEmpty()) { in applyFix() 78 return safetySourceData; in applyFix() 85 return safetySourceData; in applyFix() 93 return safetySourceData; in applyFix() 97 SafetySourceDataOverrides.copyDataToBuilderWithoutIssues(safetySourceData); in applyFix() 98 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in applyFix()
|
D | SafetyEventFix.java | 59 @Nullable SafetySourceData safetySourceData, in maybeOverrideSafetyEvent() argument 62 if (safetySourceData == null in maybeOverrideSafetyEvent() 76 ArraySet<String> presentSourceIssueIds = getSourceIssueIds(safetySourceData); in maybeOverrideSafetyEvent() 103 private static ArraySet<String> getSourceIssueIds(SafetySourceData safetySourceData) { in getSourceIssueIds() argument 104 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in getSourceIssueIds()
|
D | SafetySourceDataRepository.java | 92 SafetySourceKey safetySourceKey, @Nullable SafetySourceData safetySourceData) { in setSafetySourceData() argument 94 !Objects.equals(safetySourceData, mSafetySourceData.get(safetySourceKey)); in setSafetySourceData() 98 setSafetySourceDataInternal(safetySourceKey, safetySourceData); in setSafetySourceData() 147 SafetySourceKey safetySourceKey, @Nullable SafetySourceData safetySourceData) { in sourceHasData() argument 153 return Objects.equals(safetySourceData, mSafetySourceData.get(safetySourceKey)); in sourceHasData() 220 SafetySourceData safetySourceData = mSafetySourceData.get(key); in getSafetySourceIssue() local 221 if (safetySourceData == null) { in getSafetySourceIssue() 224 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in getSafetySourceIssue()
|
D | SafetySourceDataValidator.java | 77 @Nullable SafetySourceData safetySourceData, in validateRequest() 103 boolean retrievingOrClearingData = safetySourceData == null; in validateRequest() 109 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in validateRequest() 151 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in validateRequest()
|
D | SafetyCenterDataManager.java | 133 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() 139 safetySourceData, in setSafetySourceData() 159 !mSafetySourceDataRepository.sourceHasData(safetySourceKey, safetySourceData); in setSafetySourceData() 164 mSafetySourceDataRepository.setSafetySourceData(safetySourceKey, safetySourceData); in setSafetySourceData() 173 safetySourceData, in setSafetySourceData()
|
D | SafetyCenterIssueRepository.java | 225 SafetySourceData safetySourceData = mSafetySourceDataRepository.getSafetySourceData(key); in addSafetySourceIssuesInfo() local 227 if (safetySourceData == null) { in addSafetySourceIssuesInfo() 231 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in addSafetySourceIssuesInfo()
|
D | SafetySourceStateCollectedLogger.java | 84 @Nullable SafetySourceData safetySourceData, in writeSourceUpdatedAtom() argument 91 safetySourceData, in writeSourceUpdatedAtom()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/privatespace/ |
D | PrivateSpaceSafetySourceTest.java | 114 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenFeatureDisabled_setsNullData() local 115 assertThat(safetySourceData).isNull(); in setSafetySourceData_whenFeatureDisabled_setsNullData() 130 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_setsEnabled() local 131 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_setsEnabled() 147 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_setsPsAuthenticatorIntent() local 148 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_setsPsAuthenticatorIntent()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/ |
D | SafetySourceData.java | 276 public Builder(@NonNull SafetySourceData safetySourceData) { in Builder() argument 281 requireNonNull(safetySourceData); in Builder() 282 mIssues.addAll(safetySourceData.mIssues); in Builder() 283 mStatus = safetySourceData.mStatus; in Builder() 284 mExtras = safetySourceData.mExtras.deepCopy(); in Builder()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/safetycenter/ |
D | SafetyCenterManagerWrapperTest.kt | 64 val safetySourceData = in setSafetySourceData_callsSafetyCenterManager() constant 80 mockContext, HEALTH_CONNECT_SOURCE_ID, safetySourceData, safetyEvent) in setSafetySourceData_callsSafetyCenterManager() 83 .setSafetySourceData(HEALTH_CONNECT_SOURCE_ID, safetySourceData, safetyEvent) in setSafetySourceData_callsSafetyCenterManager()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/ |
D | SafetyCenterManagerWrapper.kt | 33 safetySourceData: SafetySourceData?, in setSafetySourceData() 42 safetyCenterManager.setSafetySourceData(safetySourceId, safetySourceData, safetyEvent) in setSafetySourceData()
|
D | HealthConnectSafetySource.kt | 50 val safetySourceData = in setSafetySourceData() constant 68 context, HEALTH_CONNECT_SOURCE_ID, safetySourceData, safetyEvent) in setSafetySourceData()
|
/packages/apps/Settings/src/com/android/settings/safetycenter/ |
D | SafetyCenterManagerWrapper.java | 54 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() argument 67 safetySourceData, in setSafetySourceData()
|
D | LockScreenSafetySource.java | 110 final SafetySourceData safetySourceData = safetySourceDataBuilder.build(); in setSafetySourceData() local 113 .setSafetySourceData(context, SAFETY_SOURCE_ID, safetySourceData, safetyEvent); in setSafetySourceData()
|
D | BiometricsSafetySource.java | 213 final SafetySourceData safetySourceData = in setBiometricSafetySourceData() local 217 .setSafetySourceData(context, SAFETY_SOURCE_ID, safetySourceData, safetyEvent); in setBiometricSafetySourceData()
|
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/ |
D | SafetyCenterMultiUsersTest.kt | 517 val safetySourceData = in getSafetySourceData_withoutAppInstalledForWorkProfile_shouldReturnNull() constant 522 assertThat(safetySourceData).isNull() in getSafetySourceData_withoutAppInstalledForWorkProfile_shouldReturnNull() 538 val safetySourceData = in getSafetySourceData_withRemovedProfile_shouldReturnNull() constant 543 assertThat(safetySourceData).isNull() in getSafetySourceData_withRemovedProfile_shouldReturnNull() 559 val safetySourceData = in getSafetySourceData_withProfileInQuietMode_shouldReturnData() constant 564 assertThat(safetySourceData).isEqualTo(dataForWork) in getSafetySourceData_withProfileInQuietMode_shouldReturnData() 1384 val safetySourceData = in setSafetySourceData_withoutAppInstalledForWorkProfile_shouldNoOp() constant 1388 assertThat(safetySourceData).isNull() in setSafetySourceData_withoutAppInstalledForWorkProfile_shouldNoOp() 1405 val safetySourceData = in setSafetySourceData_withRemovedProfile_shouldNoOp() constant 1409 assertThat(safetySourceData).isNull() in setSafetySourceData_withRemovedProfile_shouldNoOp() [all …]
|
/packages/apps/Settings/src/com/android/settings/privatespace/ |
D | PrivateSpaceSafetySource.java | 88 SafetySourceData safetySourceData = in setSafetySourceData() local 95 safetySourceData, in setSafetySourceData()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterApisWithShellPermissions.kt | 54 safetySourceData: SafetySourceData?, in SafetyCenterManager() 58 setSafetySourceData(safetySourceId, safetySourceData, safetyEvent) in SafetyCenterManager()
|
D | SafetyCenterTestHelper.kt | 134 safetySourceData: SafetySourceData?, in setData() 141 safetySourceData, in setData()
|
D | SafetySourceIntentHandler.kt | 230 setSafetySourceData(request.sourceId, response.safetySourceData, safetyEvent) in processRequest() 296 val safetySourceData: SafetySourceData, constant in com.android.safetycenter.testing.SafetySourceIntentHandler.Response.SetData
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/v34/ |
D | AppDataSharingUpdatesPrivacySource.kt | 67 val safetySourceData = in rescanAndPushSafetyCenterData() constant 93 safetySourceData, in rescanAndPushSafetyCenterData()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/ |
D | WorkPolicyInfo.kt | 74 val safetySourceData: SafetySourceData? = createSafetySourceDataForWorkPolicy(context) in rescanAndPushSafetyCenterData() constant 78 safetySourceData, in rescanAndPushSafetyCenterData()
|