/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/ |
D | ParserConfigValidTest.kt | 21 import android.safetycenter.config.SafetySource 51 SafetySource.Builder(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in validConfig_matchesExpected() 57 .setProfile(SafetySource.PROFILE_PRIMARY) in validConfig_matchesExpected() 61 SafetySource.Builder(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in validConfig_matchesExpected() 68 .setProfile(SafetySource.PROFILE_ALL) in validConfig_matchesExpected() 69 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_DISABLED) in validConfig_matchesExpected() 88 SafetySource.Builder(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in validConfig_matchesExpected() 95 .setProfile(SafetySource.PROFILE_ALL) in validConfig_matchesExpected() 96 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_DISABLED) in validConfig_matchesExpected() 115 SafetySource.Builder(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in validConfig_matchesExpected() [all …]
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/config/ |
D | SafetySourceTest.kt | 23 import android.safetycenter.config.SafetySource 41 assertThat(DYNAMIC_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType() 42 assertThat(dynamicAllOptional().type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType() 43 assertThat(DYNAMIC_HIDDEN.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType() 45 .isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType() 46 assertThat(DYNAMIC_DISABLED.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType() 47 assertThat(STATIC_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_STATIC) in getType_returnsType() 48 assertThat(STATIC_ALL_OPTIONAL.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_STATIC) in getType_returnsType() 49 assertThat(ISSUE_ONLY_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY) in getType_returnsType() 51 .isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY) in getType_returnsType() [all …]
|
D | XmlConfigTest.kt | 23 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetySources.java | 20 import android.safetycenter.config.SafetySource; 38 public static boolean isExternal(SafetySource safetySource) { in isExternal() 41 case SafetySource.SAFETY_SOURCE_TYPE_STATIC: in isExternal() 43 case SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC: in isExternal() 44 case SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY: in isExternal() 52 public static boolean supportsManagedProfiles(SafetySource safetySource) { in supportsManagedProfiles() 61 SafetySource safetySource, @ProfileType int profileType) { in supportsProfileType() 69 private static boolean supportsAllProfiles(SafetySource safetySource) { in supportsAllProfiles() 72 case SafetySource.PROFILE_PRIMARY: in supportsAllProfiles() 73 case SafetySource.PROFILE_NONE: in supportsAllProfiles() [all …]
|
D | SafetyCenterConfigReader.java | 29 import android.safetycenter.config.SafetySource; 341 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in extractExternalSafetySources() 343 SafetySource safetySource = safetySources.get(j); in extractExternalSafetySources() 350 safetySource.getType() == SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC in extractExternalSafetySources() 374 List<SafetySource> originalSources = originalGroup.getSafetySources(); in extractLoggableSafetySourcesGroups() 376 SafetySource source = originalSources.get(j); in extractLoggableSafetySourcesGroups() 400 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in extractBroadcasts() 402 SafetySource safetySource = safetySources.get(j); in extractBroadcasts() 453 private final SafetySource mSafetySource; 456 private ExternalSafetySource(SafetySource safetySource, boolean hasEntryInStatelessGroup) { in ExternalSafetySource() [all …]
|
D | SafetySourceIssueInfo.java | 23 import android.safetycenter.config.SafetySource; 38 private final SafetySource mSafetySource; 45 SafetySource safetySource, in SafetySourceIssueInfo() 70 public SafetySource getSafetySource() { in getSafetySource()
|
D | SafetyCenterDataFactory.java | 51 import android.safetycenter.config.SafetySource; 393 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in addSafetyCenterEntryGroup() 396 SafetySource safetySource = safetySources.get(safetySourceIdx); in addSafetyCenterEntryGroup() 558 SafetySource safetySource, in addSafetyCenterEntry() 584 SafetySource safetySource, in toSafetyCenterEntry() 590 case SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY: in toSafetyCenterEntry() 592 case SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC: in toSafetyCenterEntry() 661 case SafetySource.SAFETY_SOURCE_TYPE_STATIC: in toSafetyCenterEntry() 679 SafetySource safetySource, in toDefaultSafetyCenterEntry() 733 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in addSafetyCenterStaticEntryGroup() [all …]
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterTestConfigs.kt | 27 import android.safetycenter.config.SafetySource 28 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC 29 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY 30 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_STATIC 167 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_HIDDEN) 462 SafetySource.Builder(SAFETY_SOURCE_TYPE_DYNAMIC) 465 .setProfile(SafetySource.PROFILE_PRIMARY) 467 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_HIDDEN) 482 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_DISABLED) 507 .setInitialDisplayState(SafetySource.INITIAL_DISPLAY_STATE_HIDDEN) [all …]
|
D | SafetyCenterTestHelper.kt | 29 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_STATIC
|
/packages/modules/Permission/framework-s/java/android/safetycenter/config/ |
D | SafetySourcesGroup.java | 144 List<SafetySource> safetySources = 145 requireNonNull(in.createTypedArrayList(SafetySource.CREATOR)); 166 @NonNull private final List<SafetySource> mSafetySources; 174 @NonNull List<SafetySource> safetySources) { in SafetySourcesGroup() 241 public List<SafetySource> getSafetySources() { in getSafetySources() 302 private final List<SafetySource> mSafetySources = new ArrayList<>(); 404 public Builder addSafetySource(@NonNull SafetySource safetySource) { in addSafetySource() 419 List<SafetySource> safetySources = unmodifiableList(new ArrayList<>(mSafetySources)); in build() 440 if (type != SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY) { in build()
|
D | SafetySource.java | 54 public final class SafetySource implements Parcelable { class 161 public static final Creator<SafetySource> CREATOR = 162 new Creator<SafetySource>() { 164 public SafetySource createFromParcel(Parcel in) { 195 public SafetySource[] newArray(int size) { 196 return new SafetySource[size]; 218 private SafetySource( in SafetySource() method in SafetySource 580 if (!(o instanceof SafetySource)) return false; in equals() 581 SafetySource that = (SafetySource) o; in equals() 721 public Builder(@NonNull SafetySource safetySource) { in Builder() [all …]
|
D | SafetyCenterConfig.java | 167 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in build() 170 SafetySource staticSafetySource = safetySources.get(j); in build()
|
/packages/modules/Permission/service/java/com/android/safetycenter/data/ |
D | SafetySourceDataValidator.java | 26 import android.safetycenter.config.SafetySource; 88 SafetySource safetySource = externalSafetySource.getSafetySource(); in validateRequest() 111 if (safetySource.getType() == SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY in validateRequest() 117 if (safetySource.getType() == SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC in validateRequest() 119 != SafetySource.INITIAL_DISPLAY_STATE_HIDDEN in validateRequest() 191 SafetySource safetySource, String packageName, String safetySourceId) { in validateCallingPackage()
|
D | SafetyCenterIssueRepository.java | 29 import android.safetycenter.config.SafetySource; 204 List<SafetySource> safetySources = safetySourcesGroup.getSafetySources(); in addSafetySourceIssuesInfo() 206 SafetySource safetySource = safetySources.get(i); in addSafetySourceIssuesInfo() 221 SafetySource safetySource, in addSafetySourceIssuesInfo()
|
/packages/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/ |
D | SafetyCenterConfigParser.java | 34 import android.safetycenter.config.SafetySource; 218 type = SafetySource.SAFETY_SOURCE_TYPE_STATIC; in parseSafetySourcesGroup() 221 type = SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC; in parseSafetySourcesGroup() 224 type = SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY; in parseSafetySourcesGroup() 240 private static SafetySource parseSafetySource( in parseSafetySource() 243 SafetySource.Builder builder = new SafetySource.Builder(safetySourceType); in parseSafetySource() 582 return SafetySource.PROFILE_PRIMARY; in parseProfile() 584 return SafetySource.PROFILE_ALL; in parseProfile() 596 return SafetySource.INITIAL_DISPLAY_STATE_ENABLED; in parseInitialDisplayState() 598 return SafetySource.INITIAL_DISPLAY_STATE_DISABLED; in parseInitialDisplayState() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | PrivacySubpageTest.kt | 26 import android.safetycenter.config.SafetySource 90 val firstSource: SafetySource = sourcesGroup.safetySources.first() in privacySubpage_openWithIntentExtra_showsSubpageData() 91 val lastSource: SafetySource = sourcesGroup.safetySources.last() in privacySubpage_openWithIntentExtra_showsSubpageData() 111 val source: SafetySource = sourcesGroup.safetySources.first() in privacySubpage_clickingOnEntry_redirectsToDifferentScreen() 179 val source: SafetySource = sourcesGroup.safetySources.first() in privacySubpage_clickingOnLocationEntry_redirectsToLocationScreen() 200 val source: SafetySource = sourcesGroup.safetySources.first() in settingsSearch_openWithPrivacyIntentExtra_showsPrivacySubpage()
|
D | SafetyCenterSubpagesTest.kt | 24 import android.safetycenter.config.SafetySource 282 val source: SafetySource = sourcesGroup.safetySources.first() in entryListWithSingleSource_clickingOnSubpageEntry_redirectsToDifferentScreen() 367 val source: SafetySource = sourcesGroup.safetySources.first() in entryListWithSingleSource_updateSafetySourceData_displayedDataIsUpdated() 402 val source: SafetySource = sourcesGroup.safetySources.first() in entryListWithSingleSource_updateSafetySourceDataAndRotate_displayedDataIsNotUpdated() 947 val source: SafetySource = sourcesGroup.safetySources.first() in footerSummary_openGenericSubpageHavingFooter_showsExpectedText()
|
/packages/modules/Permission/service/java/com/android/safetycenter/logging/ |
D | SafetyCenterPullAtomCallback.java | 26 import android.safetycenter.config.SafetySource; 144 List<SafetySource> loggableSources = loggableGroups.get(i).getSafetySources(); in writeSafetySourceStateCollectedAtomsLocked() 147 SafetySource loggableSource = loggableSources.get(j); in writeSafetySourceStateCollectedAtomsLocked() 173 SafetySource safetySource, @UserIdInt int userId, @ProfileType int profileType) { in writeSafetySourceStateCollectedAtomLocked()
|
/packages/modules/Permission/framework-s/api/ |
D | system-current.txt | 560 public final class SafetySource implements android.os.Parcelable { 581 …ublic static final android.os.Parcelable.Creator<android.safetycenter.config.SafetySource> CREATOR; 593 public static final class SafetySource.Builder { 594 ctor public SafetySource.Builder(int); 595 ctor public SafetySource.Builder(@NonNull android.safetycenter.config.SafetySource); 596 …method @NonNull public android.safetycenter.config.SafetySource.Builder addPackageCertificateHash(… 597 method @NonNull public android.safetycenter.config.SafetySource build(); 598 …method @NonNull public android.safetycenter.config.SafetySource.Builder setDeduplicationGroup(@Nul… 599 method @NonNull public android.safetycenter.config.SafetySource.Builder setId(@Nullable String); 600 …method @NonNull public android.safetycenter.config.SafetySource.Builder setInitialDisplayState(int… [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/ |
D | SafetyCenterSearchIndexablesProvider.kt | 39 import android.safetycenter.config.SafetySource in <lambda>() 40 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY in <lambda>() 165 safetySource: SafetySource, in <lambda>() 211 if (safetySource.profile == SafetySource.PROFILE_ALL) { in <lambda>() 269 if (safetySource.profile == SafetySource.PROFILE_ALL) { in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/ |
D | SafetyCenterActivity.java | 39 import android.safetycenter.config.SafetySource; 331 for (SafetySource source : group.getSafetySources()) { in getParentGroupId()
|
D | InteractionLogger.kt | 31 import android.safetycenter.config.SafetySource 168 private fun SafetySource.isLoggable(): Boolean = in isLoggable() method
|
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/ |
D | SafetyCenterNotificationSender.java | 32 import android.safetycenter.config.SafetySource; 356 private boolean areNotificationsAllowedForSource(SafetySource safetySource) { in areNotificationsAllowedForSource()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterManagerTest.kt | 60 import android.safetycenter.config.SafetySource in <lambda>() 61 import android.safetycenter.config.SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC in <lambda>() 3825 private fun SafetyCenterConfig?.getDynamicSettingsSources(): List<SafetySource> { in <lambda>()
|