Home
last modified time | relevance | path

Searched refs:safetyCenterData (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DSafetyCenterUiDataTest.kt45 val safetyCenterData = in getMatchingGroup_validMatchingGroup_returnsExpectedEntryGroup() constant
48 val result = SafetyCenterUiData(safetyCenterData).getMatchingGroup(MATCHING_GROUP_ID) in getMatchingGroup_validMatchingGroup_returnsExpectedEntryGroup()
56 val safetyCenterData = createSafetyCenterData(entryGroups = listOf(nonMatchingGroup)) in getMatchingGroup_noMatchingGroup_returnsNull() constant
58 val result = SafetyCenterUiData(safetyCenterData).getMatchingGroup(MATCHING_GROUP_ID) in getMatchingGroup_noMatchingGroup_returnsNull()
67 val safetyCenterData = in getMatchingIssues_defaultMatchingIssue_noExtras_returnsListOfIssues() constant
70 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_defaultMatchingIssue_noExtras_returnsListOfIssues()
79 val safetyCenterData = in getMatchingIssues_defaultMatchingIssue_unrelatedExtras_returnsListOfIssues() constant
93 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_defaultMatchingIssue_unrelatedExtras_returnsListOfIssues()
102 val safetyCenterData = in getMatchingIssues_mappingMatchingIssue_returnsListOfIssues() constant
116 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_mappingMatchingIssue_returnsListOfIssues()
[all …]
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterDataTest.kt169 val safetyCenterData = SafetyCenterData.Builder(status1).build() in getStatus_withDefaultBuilder_returnsStatus() constant
171 assertThat(safetyCenterData.status).isEqualTo(status1) in getStatus_withDefaultBuilder_returnsStatus()
177 val safetyCenterData = SafetyCenterData.Builder(status1).build() in getIssues_withDefaultBuilder_returnsEmptyList() constant
179 assertThat(safetyCenterData.issues).isEmpty() in getIssues_withDefaultBuilder_returnsEmptyList()
185 val safetyCenterData = in getIssues_whenSetExplicitly_returnsIssues() constant
188 assertThat(safetyCenterData.issues).containsExactly(issue1, issue2).inOrder() in getIssues_whenSetExplicitly_returnsIssues()
194 val safetyCenterData = SafetyCenterData.Builder(status1).build() in getEntriesOrGroups_withDefaultBuilder_returnsEmptyList() constant
196 assertThat(safetyCenterData.entriesOrGroups).isEmpty() in getEntriesOrGroups_withDefaultBuilder_returnsEmptyList()
202 val safetyCenterData = in getEntriesOrGroups_whenSetExplicitly_returnsEntriesOrGroups() constant
208 assertThat(safetyCenterData.entriesOrGroups) in getEntriesOrGroups_whenSetExplicitly_returnsEntriesOrGroups()
[all …]
DSafetyCenterManagerTest.kt1575 assertFailsWith(SecurityException::class) { safetyCenterManager.safetyCenterData } in getSafetyCenterData_withoutPermission_throwsSecurityException()
1663 override fun onSafetyCenterDataChanged(safetyCenterData: SafetyCenterData) { in addOnSafetyCenterDataChangedListener_oneShot_doesntDeadlock()
1665 listener.onSafetyCenterDataChanged(safetyCenterData) in addOnSafetyCenterDataChangedListener_oneShot_doesntDeadlock()
2001 override fun onSafetyCenterDataChanged(safetyCenterData: SafetyCenterData) {} in executeSafetyCenterIssueAction_errorWithDispatchingOnDefaultErrorListener()
DSafetyCenterUnsupportedTest.kt251 assertFailsWith(SecurityException::class) { safetyCenterManager.safetyCenterData } in getSafetyCenterData_withoutPermission_throwsSecurityException()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterListeners.java62 IOnSafetyCenterDataChangedListener listener, SafetyCenterData safetyCenterData) { in deliverDataForListener() argument
64 listener.onSafetyCenterDataChanged(safetyCenterData); in deliverDataForListener()
208 SafetyCenterData safetyCenterData = in deliverUpdateForUser() local
214 deliverDataForListener(listenerWrapper, safetyCenterData); in deliverUpdateForUser()
233 SafetyCenterData safetyCenterData = in assembleSafetyCenterDataIfAbsent() local
235 safetyCenterDataCache.put(packageName, safetyCenterData); in assembleSafetyCenterDataIfAbsent()
236 return safetyCenterData; in assembleSafetyCenterDataIfAbsent()
279 public void onSafetyCenterDataChanged(SafetyCenterData safetyCenterData) in onSafetyCenterDataChanged() argument
281 if (safetyCenterData.equals(mLastSafetyCenterData.getAndSet(safetyCenterData))) { in onSafetyCenterDataChanged()
284 mDelegate.onSafetyCenterDataChanged(safetyCenterData); in onSafetyCenterDataChanged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterUiData.kt33 val safetyCenterData: SafetyCenterData, constant in com.android.permissioncontroller.safetycenter.ui.model.SafetyCenterUiData
38 return safetyCenterData.issues.find { in getMatchingIssue()
46 val entryOrGroups: List<SafetyCenterEntryOrGroup> = safetyCenterData.entriesOrGroups in getMatchingGroup()
57 selectMatchingIssuesForGroup(groupId, safetyCenterData.issues) in getMatchingIssues()
65 selectMatchingIssuesForGroup(groupId, safetyCenterData.visibleDismissedIssues()) in getMatchingIssues()
72 val issuesToGroups = safetyCenterData.extras.getBundle(ISSUES_TO_GROUPS_BUNDLE_KEY) in getMatchingIssues()
DStatusUiData.kt22 safetyCenterData: SafetyCenterData
23 ) : this(safetyCenterData.status, hasIssues = safetyCenterData.issues.size > 0)
DLiveSafetyCenterViewModel.kt50 get() = safetyCenterUiLiveData.map { StatusUiData(it.safetyCenterData) } in <lambda>()
68 SafetyCenterUiData(safetyCenterManager.safetyCenterData) in <lambda>()
254 private fun isCurrentlyScanning(): Boolean = value?.safetyCenterData?.isScanning() ?: false in <lambda>()
263 val currentData = value?.safetyCenterData in <lambda>()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestListener.kt64 var safetyCenterData = dataChannel.receive() in <lambda>() variable
65 while (!matching(safetyCenterData)) { in <lambda>()
66 safetyCenterData = dataChannel.receive() in <lambda>()
68 safetyCenterData in <lambda>()
DSafetyCenterApisWithShellPermissions.kt111 callWithShellPermissionIdentity(MANAGE_SAFETY_CENTER) { safetyCenterData } in SafetyCenterManager()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterData.java383 public Builder(@NonNull SafetyCenterData safetyCenterData) { in Builder() argument
388 requireNonNull(safetyCenterData); in Builder()
389 mStatus = safetyCenterData.mStatus; in Builder()
390 mIssues.addAll(safetyCenterData.mIssues); in Builder()
391 mEntriesOrGroups.addAll(safetyCenterData.mEntriesOrGroups); in Builder()
392 mStaticEntryGroups.addAll(safetyCenterData.mStaticEntryGroups); in Builder()
393 mDismissedIssues.addAll(safetyCenterData.mDismissedIssues); in Builder()
394 mExtras = safetyCenterData.mExtras.deepCopy(); in Builder()
DSafetyCenterManager.java674 public void onSafetyCenterDataChanged(@NonNull SafetyCenterData safetyCenterData) { in onSafetyCenterDataChanged() argument
675 requireNonNull(safetyCenterData, "safetyCenterData cannot be null"); in onSafetyCenterDataChanged()
688 mOriginalListener.onSafetyCenterDataChanged(safetyCenterData); in onSafetyCenterDataChanged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt284 val safetyCenterData = safetyCenterManager.safetyCenterData in <lambda>() constant
285 safetyCenterData.entriesOrGroups.forEach { entryOrGroup -> in <lambda>()
295 safetyCenterData.staticEntryGroups in <lambda>()
299 val entryId = SafetyCenterBundles.getStaticEntryId(safetyCenterData, staticEntry) in <lambda>()
323 get() = safetyCenterData.entriesOrGroups.asSequence() in <lambda>()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSafetyCenterUtils.kt111 val safetyCenterData = safetyCenterManager!!.safetyCenterData in getSafetyCenterIssues() constant
112 issues.addAll(safetyCenterData.issues) in getSafetyCenterIssues()
/packages/modules/Permission/SafetyCenter/InternalData/java/com/android/safetycenter/internaldata/
DSafetyCenterBundles.java65 SafetyCenterData safetyCenterData, SafetyCenterStaticEntry safetyCenterStaticEntry) { in getStaticEntryId() argument
70 safetyCenterData.getExtras().getBundle(STATIC_ENTRIES_TO_IDS_BUNDLE_KEY); in getStaticEntryId()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterManagerTest.kt3106 val safetyCenterData = safetyCenterManager.getSafetyCenterDataWithPermission() in <lambda>() constant
3123 assertThat(safetyCenterData).isEqualTo(expectedSafetyCenterData) in <lambda>()