Home
last modified time | relevance | path

Searched refs:Action (Results 1 – 25 of 171) sorted by relevance

1234567

/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DSearchActionViewHolder.java46 Action.INVALID,
47 Action.CREATE_NEW_CONTACT,
48 Action.ADD_TO_CONTACT,
49 Action.SEND_SMS,
50 Action.MAKE_VILTE_CALL,
51 Action.MAKE_VOICE_CALL
53 @interface Action { annotation in SearchActionViewHolder
72 private @Action int action;
85 void setAction(@Action int action, int position, String query) { in setAction()
90 case Action.ADD_TO_CONTACT: in setAction()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java59 mActions = new ArrayList<Action>(); in StubBackgroundWorker()
62 ArrayList<Action> mActions;
63 public ArrayList<Action> getRequestsMade() { in getRequestsMade()
68 public void queueBackgroundWork(final List<Action> actions) { in queueBackgroundWork()
84 Action action;
87 public StateTransition(final Action action, final int from, final int to) { in StateTransition()
106 protected void updateState(final Action action, final int expectedState, in updateState()
123 public final Action action;
124 public final Action request;
127 public final Action update;
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailErrorMessage.java50 private final List<Action> actions;
56 public static class Action { class in VoicemailErrorMessage
62 public Action(CharSequence text, View.OnClickListener listener) { in Action() method in VoicemailErrorMessage.Action
66 public Action(CharSequence text, View.OnClickListener listener, boolean raised) { in Action() method in VoicemailErrorMessage.Action
94 public List<Action> getActions() { in getActions()
117 public VoicemailErrorMessage(CharSequence title, CharSequence description, Action... actions) { in VoicemailErrorMessage()
122 CharSequence title, CharSequence description, @Nullable List<Action> actions) { in VoicemailErrorMessage()
129 public static Action createChangeAirplaneModeAction(final Context context) { in createChangeAirplaneModeAction()
130 return new Action( in createChangeAirplaneModeAction()
144 public static Action createSetPinAction(
[all …]
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/utils/
DMockMessageNotificationBuilder.java22 import static androidx.core.app.NotificationCompat.Action.SEMANTIC_ACTION_MARK_AS_READ;
23 import static androidx.core.app.NotificationCompat.Action.SEMANTIC_ACTION_MUTE;
24 import static androidx.core.app.NotificationCompat.Action.SEMANTIC_ACTION_REPLY;
40 import androidx.core.app.NotificationCompat.Action;
90 private Action mReplyAction = null;
91 private Action mMuteAction = null;
92 private Action mMarkAsReadAction = null;
140 mHasReplyWrongSemanticAction ? Action.SEMANTIC_ACTION_NONE in build()
144 mHasReplyWrongSemanticAction ? Action.SEMANTIC_ACTION_NONE in build()
280 public Action getReplyAction() { in getReplyAction()
[all …]
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceIssueTest.kt28 import android.safetycenter.SafetySourceIssue.Action
51 private val action1 = Action.Builder("action_id_1", "Action label 1", pendingIntent1).build()
54 private val action2 = Action.Builder("action_id_2", "Action label 2", pendingIntent2).build()
55 private val action3 = Action.Builder("action_id_3", "Action label 3", pendingIntent1).build()
61 val action = Action.Builder("action_id", "Action label", pendingIntent1).build() in action_getId_returnsId()
68 val action = Action.Builder("action_id", "Action label", pendingIntent1).build() in action_getLabel_returnsLabel()
75 val action = Action.Builder("action_id", "Action label", pendingIntent1).build() in action_willResolve_withDefaultBuilder_returnsFalse()
83 Action.Builder("action_id", "Action label", pendingIntent1).setWillResolve(true).build() in action_willResolve_whenSetExplicitly_returnsWillResolve()
90 val action = Action.Builder("action_id", "Action label", pendingIntent1).build() in action_getPendingIntent_returnsPendingIntent()
97 val action = Action.Builder("action_id", "Action label", pendingIntent1).build() in action_getSuccessMessage_withDefaultBuilder_returnsNull()
[all …]
DSafetyCenterIssueTest.kt46 SafetyCenterIssue.Action.Builder("action_id_1", "an action", pendingIntent1)
52 SafetyCenterIssue.Action.Builder("action_id_2", "another action", pendingIntent2)
276 assertThat(action1).recreatesEqual(SafetyCenterIssue.Action.CREATOR) in action_parcelRoundTrip_recreatesEqual()
277 assertThat(action2).recreatesEqual(SafetyCenterIssue.Action.CREATOR) in action_parcelRoundTrip_recreatesEqual()
286 SafetyCenterIssue.Action.Builder("an_id", "a label", pendingIntent1) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
291 SafetyCenterIssue.Action.Builder("an_id", "a label", pendingIntent1) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
297 SafetyCenterIssue.Action.Builder("an_id", "a label", pendingIntent1) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
301 SafetyCenterIssue.Action.Builder("a_different_id", "a label", pendingIntent1) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
305 SafetyCenterIssue.Action.Builder("an_id", "a different label", pendingIntent1) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
309 SafetyCenterIssue.Action.Builder("an_id", "a label", pendingIntent2) in action_equalsHashCodeToString_usingEqualsHashCodeToStringTester()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java34 public class Action implements Parcelable { class
77 public Action build() { in build()
78 return new Action( in build()
154 protected Action(String key, String title, String description, String resourcePackageName, in Action() method in Action
177 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles) { in createActionsFromArrays()
187 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, in createActionsFromArrays()
196 ArrayList<Action> actions = new ArrayList<Action>(); in createActionsFromArrays()
198 Action.Builder builder = new Action.Builder(); in createActionsFromArrays()
207 Action action = builder.build(); in createActionsFromArrays()
313 public static Parcelable.Creator<Action> CREATOR = new Parcelable.Creator<Action>() {
[all …]
DActionAdapter.java77 public void onActionClicked(Action action); in onActionClicked()
85 public void onActionFocused(Action action); in onActionFocused()
96 public void onActionSelect(Action action); in onActionSelect()
101 public void onActionUnselect(Action action); in onActionUnselect()
114 private final List<Action> mActions;
182 Action action = mActions.get(position); in getView()
237 public void addAction(Action action) { in addAction()
245 public ArrayList<Action> getActions() { in getActions()
249 public void setActions(ArrayList<Action> actions) { in setActions()
277 Action action = (Action) v.getTag(R.id.action_title); in changeFocus()
[all …]
DActionFragment.java35 public static ActionFragment newInstance(ArrayList<Action> actions) { in newInstance()
39 public static ActionFragment newInstance(ArrayList<Action> actions, String name) { in newInstance()
45 public static ActionFragment newInstance(ArrayList<Action> actions, int index) { in newInstance()
51 public static ActionFragment newInstance(ArrayList<Action> actions, String name, int index) { in newInstance()
81 public void onActionClicked(Action action) { in onActionClicked()
86 public void onActionFocused(Action action) { in onActionFocused()
91 public void onActionSelect(Action action) { in onActionSelect()
96 public void onActionUnselect(Action action) { in onActionUnselect()
DBaseActionFragment.java79 public static Bundle buildArgs(ArrayList<Action> actions, String name) { in buildArgs()
86 public static Bundle buildArgs(ArrayList<Action> actions, int index) { in buildArgs()
93 public static Bundle buildArgs(ArrayList<Action> actions, String name, int index) { in buildArgs()
105 ArrayList<Action> actions = savedInstanceState.getParcelableArrayList(EXTRA_ACTIONS); in onCreate()
108 for (Action action : actions) { in onCreate()
164 public void onActionClicked(Action action) { in onActionClicked()
179 public void onActionFocused(Action action) { in onActionFocused()
188 public void onActionSelect(Action action) { in onActionSelect()
197 public void onActionUnselect(Action action) { in onActionUnselect()
233 ArrayList<Action> actions = mFragment.getArguments() in loadActionsFromArgumentsIfNecessary()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java20 import androidx.core.app.NotificationCompat.Action;
189 new Notification.Action.Builder( in initImportanceHighBotton()
192 new Notification.Action.Builder( in initImportanceHighBotton()
195 new Notification.Action.Builder( in initImportanceHighBotton()
316 new Action.Builder(R.drawable.ic_check_box, "read", markAsReadIntent) in initCustomizableMessageButton()
317 .setSemanticAction(Action.SEMANTIC_ACTION_MARK_AS_READ) in initCustomizableMessageButton()
321 new Action.Builder(R.drawable.ic_check_box, "reply", replyIntent) in initCustomizableMessageButton()
322 .setSemanticAction(Action.SEMANTIC_ACTION_REPLY) in initCustomizableMessageButton()
385 new Action.Builder(R.drawable.ic_check_box, "read", markAsReadIntent) in initMessagingStyleButtonForDiffPerson()
386 .setSemanticAction(Action.SEMANTIC_ACTION_MARK_AS_READ) in initMessagingStyleButtonForDiffPerson()
[all …]
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetySourceIssue.java100 List<Action> actions = requireNonNull(in.createTypedArrayList(Action.CREATOR));
126 private final List<Action> mActions;
138 @NonNull List<Action> actions, in SafetySourceIssue()
209 public List<Action> getActions() { in getActions()
330 public static final class Action implements Parcelable { class in SafetySourceIssue
333 public static final Creator<Action> CREATOR =
334 new Creator<Action>() {
336 public Action createFromParcel(Parcel in) {
348 public Action[] newArray(int size) {
349 return new Action[size];
[all …]
DSafetyCenterIssue.java99 .setActions(in.createTypedArrayList(Action.CREATOR))
116 @NonNull private final List<Action> mActions;
126 @NonNull List<Action> actions) { in SafetyCenterIssue()
187 public List<Action> getActions() { in getActions()
269 private List<Action> mActions = new ArrayList<>();
356 public Builder setActions(@NonNull List<Action> actions) { in setActions()
385 public static final class Action implements Parcelable { class in SafetyCenterIssue
388 public static final Creator<Action> CREATOR =
389 new Creator<Action>() {
391 public Action createFromParcel(Parcel in) {
[all …]
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java18 import static android.app.Notification.Action.SEMANTIC_ACTION_MARK_AS_READ;
19 import static android.app.Notification.Action.SEMANTIC_ACTION_REPLY;
36 import androidx.core.app.NotificationCompat.Action;
206 .map(NotificationCompat.Action::getSemanticAction) in hasRequiredAssistantCallbacks()
215 public static List<Action> getAllActions(Notification notification) { in getAllActions()
216 List<Action> actions = new ArrayList<>( in getAllActions()
231 public static NotificationCompat.Action getMarkAsReadAction(Notification notification) { in getMarkAsReadAction()
232 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction()
234 == NotificationCompat.Action.SEMANTIC_ACTION_MARK_AS_READ) { in getMarkAsReadAction()
246 public static NotificationCompat.Action getMuteAction(Notification notification) { in getMuteAction()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java55 protected static void startAction(final Action action) { in startAction()
70 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction()
85 protected static void handleResponseFromBackgroundWorker(final Action action, in handleResponseFromBackgroundWorker()
101 protected static void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker()
195 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent()
247 Action action; in onHandleWork()
252 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
258 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
265 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
281 private void executeAction(final Action action) { in executeAction()
[all …]
DAction.java39 public abstract class Action implements Parcelable { class
49 private final List<Action> mBackgroundActions = new LinkedList<Action>();
76 protected void requestBackgroundWork(final Action backgroundAction) { in requestBackgroundWork()
126 protected Action(final String key) { in Action() method in Action
134 protected Action() { in Action() method in Action
290 public Action(final Parcel in) { in Action() method in Action
293 this.actionParameters = in.readBundle(Action.class.getClassLoader()); in Action()
DActionMonitor.java55 abstract void onActionExecuted(ActionMonitor monitor, final Action action, in onActionExecuted()
71 final Action action, final Object data, final Object result); in onActionSucceeded()
76 abstract void onActionFailed(ActionMonitor monitor, final Action action, in onActionFailed()
89 void onActionStateChanged(Action action, int state); in onActionStateChanged()
241 protected void updateState(final Action action, final int expectedOldState, in updateState()
266 static void setState(final Action action, final int expectedOldState, in setState()
294 private final void complete(final Action action, in complete()
339 static void setCompleteState(final Action action, final int expectedOldState, in setCompleteState()
364 final void executed(final Action action, in executed()
401 static void setExecutedState(final Action action, in setExecutedState()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java29 import com.android.gallery3d.filtershow.category.Action;
36 public class UserPresetsAdapter extends ArrayAdapter<Action>
58 public void add(Action action) { in add()
63 private void deletePreset(Action action) { in deletePreset()
72 private void changePreset(Action action) { in changePreset()
108 Action action = getItem(position); in getView()
144 Action action = (Action) v.getTag(); in onClick()
164 Action action = (Action) editText.getTag(); in updateActionFromEditText()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryView.java40 private Action mAction;
76 if (mAction.getType() == Action.CROP_VIEW) { in isHalfImage()
79 if (mAction.getType() == Action.ADD_ACTION) { in isHalfImage()
102 if (mAction != null && mAction.getType() == Action.ADD_ACTION) { in needsCenterText()
110 if (mAction.getType() == Action.SPACER) { in onDraw()
130 public void setAction(Action action, CategoryAdapter adapter) { in setAction()
136 if (mAction.getType() == Action.ADD_ACTION) { in setAction()
150 if (mAction.getType() == Action.ADD_ACTION) { in onClick()
152 } else if (mAction.getType() != Action.SPACER) { in onClick()
DCategoryAdapter.java31 public class CategoryAdapter extends ArrayAdapter<Action> {
55 Action action = getItem(i); in clear()
70 public void add(Action action) { in add()
97 Action action = getItem(position); in getView()
101 if (action.getType() == Action.SPACER) { in getView()
108 if (action.getType() == Action.ADD_ACTION in getView()
156 Action action = getItem(i); in getTinyPlanet()
168 Action action = getItem(i); in removeTinyPlanet()
179 public void remove(Action action) { in remove()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DActionPresenterSelector.java21 import androidx.leanback.widget.Action;
42 Action action = (Action) item; in getPresenter()
56 Action mAction;
78 Action action = (Action) item; in onBindViewHolder()
101 Action action = (Action) item; in onBindViewHolder()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DActionBatch.java83 public interface Action { interface in ActionBatch
94 public static final class StartDownloadAction implements Action {
160 public static final class InstallAfterDownloadAction implements Action {
205 public static final class EnableAction implements Action {
241 public static final class DisableAction implements Action {
283 public static final class MakeAvailableAction implements Action {
332 public static final class MarkPreInstalledAction implements Action {
376 public static final class UpdateDataAction implements Action {
426 public static final class ForgetAction implements Action {
500 public static final class StartDeleteAction implements Action {
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.kt36 import androidx.core.app.NotificationCompat.Action
74 val actions: MutableList<Action> = ArrayList<Action>(2) in build()
94 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
104 actions.add(Action.Builder(icon2, title2, intent2).build()) in build()
117 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
127 actions.add(Action.Builder(icon2, title2, intent2).build()) in build()
143 actions.add(Action.Builder(icon1, title1, intent1).build()) in build()
230 val actions: MutableList<Action> = ArrayList<Action>(2) in buildHeadsUp()
241 actions.add(Action.Builder(icon1, title1, intent1).build()) in buildHeadsUp()
248 actions.add(Action.Builder(icon2, title2, intent2).build()) in buildHeadsUp()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBar.java48 public static class Action { class in SnackBar
55 private Action(@Nullable Runnable actionRunnable, @Nullable String actionLabel) { in Action() method in SnackBar.Action
68 public static Action createUndoAction(final Runnable undoRunnable) { in createUndoAction()
73 public static Action createRetryAction(final Runnable retryRunnable) { in createRetryAction()
79 public static Action createCustomAction(final Runnable runnable, final String actionLabel) { in createCustomAction()
80 return new Action(runnable, actionLabel); in createCustomAction()
130 private Action mAction;
149 public Builder setAction(final Action action) { in setAction()
196 private final Action mAction;
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DActionMultiMap.java26 public class ActionMultiMap extends HashMap<String, ArrayList<Action>> {
27 public void put(String mimeType, Action info) { in put()
35 public void put(String mimeType, Action info, boolean front) { in put()
37 ArrayList<Action> collectList = get(mimeType); in put()
41 collectList = new ArrayList<Action>(); in put()

1234567