Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DLockScreenSafetySourceTest.java151 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenScreenLockIsEnabled_setData() local
152 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenScreenLockIsEnabled_setData()
182 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo() local
183 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo()
203 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setStatusLevelRec() local
204 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setStatusLevelRec()
224 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsSec_setStatusLevelUnsp() local
225 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsSec_setStatusLevelUnsp()
245 SafetySourceData safetySourceData = captor.getValue(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsNotSec_setStatusLevelUnsp() local
246 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsNotSec_setStatusLevelUnsp()
[all …]
DBiometricsSafetySourceTest.java600 SafetySourceData safetySourceData = captor.getValue(); in assertSafetySourceDisabledDataSet() local
601 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in assertSafetySourceDisabledDataSet()
619 SafetySourceData safetySourceData = captor.getValue(); in assertSafetySourceEnabledDataSet() local
620 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in assertSafetySourceEnabledDataSet()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceDataTest.kt49 val safetySourceData = in getStatus_withDefaultBuilder_returnsNull() constant
52 assertThat(safetySourceData.status).isNull() in getStatus_withDefaultBuilder_returnsNull()
58 val safetySourceData = SafetySourceData.Builder().setStatus(status).build() in getStatus_whenSetExplicitly_returnsStatus() constant
60 assertThat(safetySourceData.status).isEqualTo(status) in getStatus_whenSetExplicitly_returnsStatus()
65 val safetySourceData = in getIssues_withDefaultBuilder_returnsEmptyList() constant
68 assertThat(safetySourceData.issues).isEmpty() in getIssues_withDefaultBuilder_returnsEmptyList()
75 val safetySourceData = in getIssues_whenSetExplicitly_returnsIssues() constant
78 assertThat(safetySourceData.issues).containsExactly(firstIssue, secondIssue).inOrder() in getIssues_whenSetExplicitly_returnsIssues()
85 val safetySourceData = in clearIssues_removesAllIssues() constant
93 assertThat(safetySourceData.issues).isEmpty() in clearIssues_removesAllIssues()
[all …]
DSafetyCenterManagerTest.kt224 CTS_SOURCE_ID, safetySourceData = null, EVENT_SOURCE_STATE_CHANGED) in setSafetySourceData_null_clearsValue()
478 CTS_SOURCE_ID, safetySourceData = null, EVENT_SOURCE_STATE_CHANGED) in addOnSafetyCenterDataChangedListener_listenerCalledWhenSafetySourceDataCleared()
494 CTS_SOURCE_ID, safetySourceData = null, EVENT_SOURCE_STATE_CHANGED) in addOnSafetyCenterDataChangedListener_listenerNotCalledWhenSafetySourceDataStaysNull()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterDataTracker.java91 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() argument
101 if (Objects.equals(safetySourceData, existingSafetySourceData)) { in setSafetySourceData()
105 mSafetySourceDataForKey.put(key, safetySourceData); in setSafetySourceData()
275 SafetySourceData safetySourceData = mSafetySourceDataForKey.get(key); in addSafetyCenterIssues() local
276 if (safetySourceData == null) { in addSafetyCenterIssues()
280 List<SafetySourceIssue> safetySourceIssues = safetySourceData.getIssues(); in addSafetyCenterIssues()
519 @Nullable SafetySourceData safetySourceData) { in getSafetySourceStatus()
520 if (safetySourceData == null) { in getSafetySourceStatus()
524 return safetySourceData.getStatus(); in getSafetySourceStatus()
DSafetyCenterService.java123 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() argument
145 safetySourceId, safetySourceData, packageName, userId); in setSafetySourceData()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DSafetyCenterManagerWrapper.java52 SafetySourceData safetySourceData, in setSafetySourceData() argument
65 safetySourceData, in setSafetySourceData()
DLockScreenSafetySource.java93 final SafetySourceData safetySourceData = safetySourceDataBuilder.build(); in setSafetySourceData() local
98 safetySourceData, in setSafetySourceData()
DBiometricsSafetySource.java138 final SafetySourceData safetySourceData = in setBiometricSafetySourceData() local
142 context, SAFETY_SOURCE_ID, safetySourceData, safetyEvent); in setBiometricSafetySourceData()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/testing/
DSafetyCenterApisWithShellPermissions.kt51 safetySourceData: SafetySourceData?, in SafetyCenterManager()
55 { setSafetySourceData(safetySourceId, safetySourceData, safetyEvent) }, in SafetyCenterManager()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterManager.java350 @Nullable SafetySourceData safetySourceData, in setSafetySourceData() argument
358 safetySourceData, in setSafetySourceData()
DISafetyCenterManager.aidl49 in SafetySourceData safetySourceData, in setSafetySourceData() argument