Home
last modified time | relevance | path

Searched refs:safetySourceData (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceDataTest.kt51 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/
DLockScreenSafetySourceTest.java150 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/
DSafetySourceDataFix.java57 @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()
DDefaultActionOverrideFix.java74 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()
DSafetyEventFix.java59 @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()
DSafetySourceDataRepository.java92 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()
DSafetySourceDataValidator.java77 @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()
DSafetyCenterDataManager.java133 @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()
DSafetyCenterIssueRepository.java225 SafetySourceData safetySourceData = mSafetySourceDataRepository.getSafetySourceData(key); in addSafetySourceIssuesInfo() local
227 if (safetySourceData == null) { in addSafetySourceIssuesInfo()
231 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in addSafetySourceIssuesInfo()
DSafetySourceStateCollectedLogger.java84 @Nullable SafetySourceData safetySourceData, in writeSourceUpdatedAtom() argument
91 safetySourceData, in writeSourceUpdatedAtom()
/packages/apps/Settings/tests/unit/src/com/android/settings/privatespace/
DPrivateSpaceSafetySourceTest.java114 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/
DSafetySourceData.java276 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/
DSafetyCenterManagerWrapperTest.kt64 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/
DSafetyCenterManagerWrapper.kt33 safetySourceData: SafetySourceData?, in setSafetySourceData()
42 safetyCenterManager.setSafetySourceData(safetySourceId, safetySourceData, safetyEvent) in setSafetySourceData()
DHealthConnectSafetySource.kt50 val safetySourceData = in setSafetySourceData() constant
68 context, HEALTH_CONNECT_SOURCE_ID, safetySourceData, safetyEvent) in setSafetySourceData()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DSafetyCenterManagerWrapper.java54 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() argument
67 safetySourceData, in setSafetySourceData()
DLockScreenSafetySource.java110 final SafetySourceData safetySourceData = safetySourceDataBuilder.build(); in setSafetySourceData() local
113 .setSafetySourceData(context, SAFETY_SOURCE_ID, safetySourceData, safetyEvent); in setSafetySourceData()
DBiometricsSafetySource.java213 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/
DSafetyCenterMultiUsersTest.kt517 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/
DPrivateSpaceSafetySource.java88 SafetySourceData safetySourceData = in setSafetySourceData() local
95 safetySourceData, in setSafetySourceData()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterApisWithShellPermissions.kt54 safetySourceData: SafetySourceData?, in SafetyCenterManager()
58 setSafetySourceData(safetySourceId, safetySourceData, safetyEvent) in SafetyCenterManager()
DSafetyCenterTestHelper.kt134 safetySourceData: SafetySourceData?, in setData()
141 safetySourceData, in setData()
DSafetySourceIntentHandler.kt230 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/
DAppDataSharingUpdatesPrivacySource.kt67 val safetySourceData = in rescanAndPushSafetyCenterData() constant
93 safetySourceData, in rescanAndPushSafetyCenterData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DWorkPolicyInfo.kt74 val safetySourceData: SafetySourceData? = createSafetySourceDataForWorkPolicy(context) in rescanAndPushSafetyCenterData() constant
78 safetySourceData, in rescanAndPushSafetyCenterData()

12