/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetySourceStatusTest.kt | 56 val iconAction = IconAction(ICON_TYPE_INFO, pendingIntent1) in iconAction_getIconType_returnsIconType() constant 58 assertThat(iconAction.iconType).isEqualTo(ICON_TYPE_INFO) in iconAction_getIconType_returnsIconType() 63 val iconAction = IconAction(ICON_TYPE_GEAR, pendingIntent1) in iconAction_getPendingIntent_returnsPendingIntent() constant 65 assertThat(iconAction.pendingIntent).isEqualTo(pendingIntent1) in iconAction_getPendingIntent_returnsPendingIntent() 84 val iconAction = IconAction(ICON_TYPE_GEAR, pendingIntent1) in iconAction_describeContents_returns0() constant 86 assertThat(iconAction.describeContents()).isEqualTo(0) in iconAction_describeContents_returns0() 91 val iconAction = IconAction(ICON_TYPE_GEAR, pendingIntent1) in iconAction_parcelRoundTrip_recreatesEqual() constant 93 assertThat(iconAction).recreatesEqual(IconAction.CREATOR) in iconAction_parcelRoundTrip_recreatesEqual() 160 assertThat(safetySourceStatus.iconAction).isNull() in getIconAction_withDefaultBuilder_returnsNull() 170 assertThat(safetySourceStatus.iconAction).isEqualTo(iconAction1) in getIconAction_whenSetExplicitly_returnsIconAction()
|
D | SafetyCenterEntryTest.kt | 162 assertThat(SafetyCenterEntry.Builder(entry1).setIconAction(iconAction1).build().iconAction) in getIconAction_returnsIconAction() 164 assertThat(SafetyCenterEntry.Builder(entry1).setIconAction(iconAction2).build().iconAction) in getIconAction_returnsIconAction() 166 assertThat(SafetyCenterEntry.Builder(entry1).setIconAction(null).build().iconAction) in getIconAction_returnsIconAction()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/ |
D | SafetySubpageEntryPreference.kt | 65 if (entry.iconAction != null) { in setupIconActionButton() 68 if (entry.iconAction!!.type == ICON_ACTION_TYPE_GEAR) { in setupIconActionButton() 118 val iconAction = entry.iconAction in onBindViewHolder() constant 119 if (iconAction == null) { in onBindViewHolder() 125 PendingIntentSender.send(iconAction.pendingIntent, launchTaskId) in onBindViewHolder() 141 override fun shouldHideSecondTarget(): Boolean = entry.iconAction == null in shouldHideSecondTarget()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/ |
D | SafetyEntryView.kt | 128 val iconAction = entry.iconAction in setupIconActionButton() constant 129 if (iconAction != null) { in setupIconActionButton() 134 if (iconAction.type == ICON_ACTION_TYPE_GEAR) { in setupIconActionButton() 144 sendIconActionIntent(iconAction, launchTaskId, entry) in setupIconActionButton() 160 iconAction: SafetyCenterEntry.IconAction, in sendIconActionIntent() 165 PendingIntentSender.send(iconAction.pendingIntent, launchTaskId) in sendIconActionIntent()
|
/packages/modules/Permission/service/java/com/android/safetycenter/data/ |
D | AndroidLockScreenFix.java | 111 SafetySourceStatus.IconAction iconAction = status.getIconAction(); in overrideTiramisuSafetySourceStatus() local 112 if (iconAction != null) { in overrideTiramisuSafetySourceStatus() 121 Context context, SafetySourceStatus.IconAction iconAction) { in overrideTiramisuIconAction() argument 123 iconAction.getIconType(), in overrideTiramisuIconAction() 125 context, iconAction.getPendingIntent(), /* isIconAction= */ true)); in overrideTiramisuIconAction()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/ |
D | SafetySourceStatus.java | 86 @Nullable IconAction iconAction, in SafetySourceStatus() argument 92 this.mIconAction = iconAction; in SafetySourceStatus() 385 public Builder setIconAction(@Nullable IconAction iconAction) { in setIconAction() argument 386 this.mIconAction = iconAction; in setIconAction()
|
D | SafetyCenterEntry.java | 171 @Nullable IconAction iconAction) { in SafetyCenterEntry() argument 179 mIconAction = iconAction; in SafetyCenterEntry() 401 public Builder setIconAction(@Nullable IconAction iconAction) { in setIconAction() argument 402 mIconAction = iconAction; in setIconAction()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | LockScreenSafetySourceTest.java | 457 final IconAction iconAction = captor.getValue().getStatus().getIconAction(); in setSafetySourceData_whenShouldShowGearMenu_setGearMenuActionIcon() local 459 assertThat(iconAction.getIconType()).isEqualTo(IconAction.ICON_TYPE_GEAR); in setSafetySourceData_whenShouldShowGearMenu_setGearMenuActionIcon() 460 assertThat(iconAction.getPendingIntent().getIntent().getAction()) in setSafetySourceData_whenShouldShowGearMenu_setGearMenuActionIcon() 462 assertThat(iconAction.getPendingIntent().getIntent().getStringExtra(EXTRA_DESTINATION)) in setSafetySourceData_whenShouldShowGearMenu_setGearMenuActionIcon()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetySourceDataFixesTest.kt | 65 val iconActionPendingIntent = lockScreenEntry.iconAction!!.pendingIntent in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace() 88 val iconActionPendingIntent = lockScreenEntry.iconAction!!.pendingIntent in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces()
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterDataFactory.java | 652 SafetySourceStatus.IconAction iconAction = safetySourceStatus.getIconAction(); in toSafetyCenterEntry() local 653 if (iconAction == null) { in toSafetyCenterEntry() 658 toSafetyCenterEntryIconActionType(iconAction.getIconType()), in toSafetyCenterEntry() 659 iconAction.getPendingIntent())) in toSafetyCenterEntry()
|