Home
last modified time | relevance | path

Searched refs:SafetyEvent (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyEventTest.kt20 import android.safetycenter.SafetyEvent
21 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_LOCALE_CHANGED
22 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED
23 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
24 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED
25 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED
26 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED
41 val safetyEvent = SafetyEvent.Builder(SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in getType_returnsType()
49 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in getRefreshBroadcastId_returnsRefreshBroadcastId()
59 SafetyEvent.Builder(SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED) in getSafetySourceIssueId_returnsSafetySourceIssueId()
[all …]
DSafetySourceErrorDetailsTest.kt19 import android.safetycenter.SafetyEvent
53 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in equalsHashCodeToString_usingEqualsHashCodeToStringTester()
58 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in equalsHashCodeToString_usingEqualsHashCodeToStringTester()
66 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyEvent.java46 public final class SafetyEvent implements Parcelable { class
97 public static final Creator<SafetyEvent> CREATOR =
98 new Creator<SafetyEvent>() {
100 public SafetyEvent createFromParcel(Parcel in) {
102 return new SafetyEvent.Builder(type)
110 public SafetyEvent[] newArray(int size) {
111 return new SafetyEvent[size];
120 private SafetyEvent( in SafetyEvent() method in SafetyEvent
198 if (!(o instanceof SafetyEvent)) return false; in equals()
199 SafetyEvent that = (SafetyEvent) o; in equals()
[all …]
DSafetySourceErrorDetails.java46 SafetyEvent safetyEvent = in.readTypedObject(SafetyEvent.CREATOR);
56 @NonNull private final SafetyEvent mSafetyEvent;
58 public SafetySourceErrorDetails(@NonNull SafetyEvent safetyEvent) { in SafetySourceErrorDetails()
64 public SafetyEvent getSafetyEvent() { in getSafetyEvent()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DPrivacySourcesUtils.kt26 import android.safetycenter.SafetyEvent
32 fun getSafetyCenterEvent(refreshEvent: RefreshEvent, intent: Intent): SafetyEvent { in getSafetyCenterEvent()
35 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in getSafetyCenterEvent()
37 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in getSafetyCenterEvent()
41 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in getSafetyCenterEvent()
DWorkPolicyInfo.kt26 import android.safetycenter.SafetyEvent
73 val safetyEvent: SafetyEvent = createSafetyEventForWorkPolicy(refreshEvent, intent) in rescanAndPushSafetyCenterData()
137 ): SafetyEvent { in createSafetyEventForWorkPolicy()
144 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in createSafetyEventForWorkPolicy()
149 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in createSafetyEventForWorkPolicy()
152 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in createSafetyEventForWorkPolicy()
DAccessibilitySourceService.kt40 import android.safetycenter.SafetyEvent in <lambda>()
436 safetyEvent: SafetyEvent = sourceStateChanged in sendIssuesToSafetyCenter()
452 safetyEvent: SafetyEvent = sourceStateChanged in sendIssuesToSafetyCenter()
461 private fun sendIssuesToSafetyCenter(safetyEvent: SafetyEvent = sourceStateChanged) { in sendIssuesToSafetyCenter()
631 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build()
776 SafetyEvent.Builder( in onReceive()
777 SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED in onReceive()
781 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED) in onReceive()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DSafetySourceBroadcastReceiver.java22 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED;
23 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED;
29 import android.safetycenter.SafetyEvent;
41 private static final SafetyEvent EVENT_DEVICE_REBOOTED =
42 new SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build();
56 final SafetyEvent safetyEvent = new SafetyEvent.Builder( in onReceive()
74 SafetyEvent safetyEvent) { in refreshSafetySources()
89 private static void refreshAllSafetySources(Context context, SafetyEvent safetyEvent) { in refreshAllSafetySources()
DBiometricsSafetySource.java28 import android.safetycenter.SafetyEvent;
51 public static void setSafetySourceData(Context context, SafetyEvent safetyEvent) { in setSafetySourceData()
191 new SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED) in onBiometricsChanged()
202 SafetyEvent safetyEvent) { in setBiometricSafetySourceData()
DLockScreenSafetySource.java19 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED;
27 import android.safetycenter.SafetyEvent;
55 SafetyEvent safetyEvent) { in setSafetySourceData()
121 new SafetyEvent.Builder(SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build()); in onLockScreenChange()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyEventFix.java19 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED;
20 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED;
23 import android.safetycenter.SafetyEvent;
56 public static SafetyEvent maybeOverrideSafetyEvent( in maybeOverrideSafetyEvent()
60 SafetyEvent safetyEvent, in maybeOverrideSafetyEvent()
98 SafetyEvent replacement = newActionSucceededEvent(successfulAction); in maybeOverrideSafetyEvent()
112 private static SafetyEvent newActionSucceededEvent(SafetyCenterIssueActionId actionId) { in newActionSucceededEvent()
113 return new SafetyEvent.Builder(SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED) in newActionSucceededEvent()
DSafetyCenterDataManager.java27 import android.safetycenter.SafetyEvent;
135 SafetyEvent safetyEvent, in setSafetySourceData()
152 if (safetyEvent.getType() == SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) { in setSafetySourceData()
224 SafetyEvent safetyEvent = safetySourceErrorDetails.getSafetyEvent(); in reportSafetySourceError()
231 if (safetyEvent.getType() == SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) { in reportSafetySourceError()
515 SafetyEvent safetyEvent, in processSafetyEvent()
520 case SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED: in processSafetyEvent()
528 case SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED: in processSafetyEvent()
529 case SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED: in processSafetyEvent()
551 boolean success = type == SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED; in processSafetyEvent()
[all …]
DSafetySourceStateCollectedLogger.java22 import android.safetycenter.SafetyEvent;
88 SafetyEvent safetyEvent) { in writeSourceUpdatedAtom()
105 @Nullable SafetyEvent safetyEvent, in logSafetySourceStateCollected()
DSafetySourceDataRepository.java29 import android.safetycenter.SafetyEvent;
166 SafetyEvent safetyEvent = safetySourceErrorDetails.getSafetyEvent(); in reportSafetySourceError()
172 if (safetyEventType == SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED in reportSafetySourceError()
173 || safetyEventType == SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED) { in reportSafetySourceError()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/v34/
DAppDataSharingUpdatesPrivacySource.kt27 import android.safetycenter.SafetyEvent
28 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED
29 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
30 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED
101 ): SafetyEvent { in createSafetyEventForDataSharingUpdates()
108 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in createSafetyEventForDataSharingUpdates()
113 SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in createSafetyEventForDataSharingUpdates()
116 SafetyEvent.Builder(SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in createSafetyEventForDataSharingUpdates()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DWorkPolicyInfoTest.kt26 import android.safetycenter.SafetyEvent
155 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in safetyCenterEnabledChanged_safetyCenterEnabled()
180 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in safetyCenterEnabledChanged_safetyCenterEnabled_hasWorkPolicyFalse()
225 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in rescanAndPushSafetyCenterData_eventRebooted_deviceOwner()
270 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in rescanAndPushSafetyCenterData_eventRefresh_deviceOwner()
306 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in rescanAndPushSafetyCenterData_eventUnknown_profileOwner()
326 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in rescanAndPushSafetyCenterData_hasWorkPolicyFalse()
DNotificationListenerPrivacySourceTest.kt32 import android.safetycenter.SafetyEvent
202 any(SafetyEvent::class.java) in safetyCenterEnabledChanged_doesNotUpdateSafetyCenterData()
225 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in rescanAndPushSafetyCenterData_eventDeviceRebooted_updateSafetyCenterData()
250 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in rescanAndPushSafetyCenterData_updatesSafetyCenterEventRefresh()
268 SafetyEvent.Builder(SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build() in rescanAndPushSafetyCenterData_updatesSafetyCenterEventUnknown()
DAppDataSharingUpdatesPrivacySourceTest.kt33 import android.safetycenter.SafetyEvent
34 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED
35 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
147 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in rescanAndPushSafetyCenterData_bothFeaturesEnabled_setsDataWithStatus()
169 val expectedSafetyEvent = SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build() in rescanAndPushSafetyCenterData_safetyLabelChangeNotificationsDisabled_setsNullData()
188 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in rescanAndPushSafetyCenterData_bothFeaturesDisabled_setsNullData()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceIntentHandler.kt31 import android.safetycenter.SafetyEvent
32 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
33 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED
34 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED
154 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in createRefreshEvent()
195 SafetyEvent.Builder(SAFETY_EVENT_TYPE_RESOLVING_ACTION_SUCCEEDED) in createResolveActionSuccessEvent()
201 SafetyEvent.Builder(SAFETY_EVENT_TYPE_RESOLVING_ACTION_FAILED) in createResolveActionSuccessEvent()
221 safetyEventForResponse: (Response) -> SafetyEvent in processRequest()
277 val overrideSafetyEvent: SafetyEvent?
298 override val overrideSafetyEvent: SafetyEvent? = null
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/
DSafetySourceBroadcastReceiver.kt29 import android.safetycenter.SafetyEvent
30 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED
31 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
65 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in onReceive()
99 safetyEvent: SafetyEvent in refreshSafetySources()
108 context, SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build()) in refreshAllSafetySources()
DSafetyCenterManagerWrapper.kt21 import android.safetycenter.SafetyEvent
34 safetyEvent: SafetyEvent in setSafetySourceData()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DSafetySourceBroadcastReceiverTest.java22 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED;
23 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED;
35 import android.safetycenter.SafetyEvent;
174 ArgumentCaptor<SafetyEvent> captor = ArgumentCaptor.forClass(SafetyEvent.class); in onReceive_onRefresh_setsRefreshEvent()
180 new SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in onReceive_onRefresh_setsRefreshEvent()
275 ArgumentCaptor<SafetyEvent> captor = ArgumentCaptor.forClass(SafetyEvent.class); in onReceive_onBootCompleted_setsBootCompleteEvent()
279 SafetyEvent bootEvent = new SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build(); in onReceive_onBootCompleted_setsBootCompleteEvent()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/safetycenter/
DSafetyCenterManagerWrapperTest.kt21 import android.safetycenter.SafetyEvent
22 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED
75 SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED) in setSafetySourceData_callsSafetyCenterManager()
DHealthConnectSafetySourceTest.kt24 import android.safetycenter.SafetyEvent
25 import android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED
113 SafetyEvent.Builder(SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build()
/packages/apps/Settings/tests/unit/src/com/android/settings/privatespace/
DPrivateSpaceSafetySourceTest.java20 import static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_DEVICE_REBOOTED;
37 import android.safetycenter.SafetyEvent;
57 private static final SafetyEvent EVENT_TYPE_DEVICE_REBOOTED =
58 new SafetyEvent.Builder(SAFETY_EVENT_TYPE_DEVICE_REBOOTED).build();

12