Home
last modified time | relevance | path

Searched refs:Action (Results 1 – 25 of 169) 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/Launcher3/src/com/android/launcher3/logging/
DLoggerUtils.java29 import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
71 public static String getActionStr(Action action) { in getActionStr()
74 case Action.Type.TOUCH: in getActionStr()
75 str += getFieldName(action.touch, Action.Touch.class); in getActionStr()
76 if (action.touch == Action.Touch.SWIPE || action.touch == Action.Touch.FLING) { in getActionStr()
77 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr()
80 case Action.Type.COMMAND: in getActionStr()
81 str += getFieldName(action.command, Action.Command.class); in getActionStr()
83 default: return getFieldName(action.type, Action.Type.class); in getActionStr()
85 if (action.touch == Action.Touch.SWIPE || action.touch == Action.Touch.FLING || in getActionStr()
[all …]
DUserEventDispatcher.java47 import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
128 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logAppLaunch()
148 if (action == Action.Touch.SWIPE || action == Action.Touch.FLING) { in logTaskLaunchOrDismiss()
172 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logNotificationLaunch()
191 if (command == Action.Command.STOP) { in logActionCommand()
256 if (action == Action.Touch.DRAGDROP) { in logActionOnControl()
263 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Type.TOUCH), in logActionTapOutside()
270 LauncherEvent event = newLauncherEvent(newAction(Action.Type.TIP), in logActionBounceTip()
333 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.LONGPRESS), in logDeepShortcutsOpen()
342 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.DRAGDROP), in logDragNDrop()
[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/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java61 mActions = new ArrayList<Action>(); in StubBackgroundWorker()
64 ArrayList<Action> mActions;
65 public ArrayList<Action> getRequestsMade() { in getRequestsMade()
70 public void queueBackgroundWork(final List<Action> actions) { in queueBackgroundWork()
86 Action action;
89 public StateTransition(final Action action, final int from, final int to) { in StateTransition()
108 protected void updateState(final Action action, final int expectedState, in updateState()
125 public final Action action;
126 public final Action request;
129 public final Action update;
[all …]
DActionServiceSystemTest.java55 final Action action, final Object data, final Object result) { in onActionSucceeded()
66 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed()
78 public void onActionExecuted(final ActionMonitor monitor, final Action action, in onActionExecuted()
117 final Action request = mWorker.getRequestsMade().get(0); in testChatActionSucceeds()
165 final Action request = mWorker.getRequestsMade().get(0); in testChatActionFails()
192 new TestChatAction(Action.generateUniqueActionKey(null), parameter); in testChatActionNoMonitor()
206 Action request = mWorker.getRequestsMade().get(0); in testChatActionNoMonitor()
250 final Action request = mWorker.getRequestsMade().get(0); in testChatActionUnregisterListener()
316 public static class TestChatAction extends Action implements Parcelable {
381 public static class TestChatActionOther extends Action implements Parcelable {
[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 …]
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()
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()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java56 protected static void startAction(final Action action) { in startAction()
71 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction()
86 protected static void handleResponseFromBackgroundWorker(final Action action, in handleResponseFromBackgroundWorker()
102 protected static void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker()
197 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent()
252 Action action; in onHandleWork()
257 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
263 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
270 action = (Action) actionBundle.getParcelable(BUNDLE_ACTION); in onHandleWork()
286 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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java19 import androidx.core.app.NotificationCompat.Action;
176 new Notification.Action.Builder( in initImportanceHighBotton()
179 new Notification.Action.Builder( in initImportanceHighBotton()
182 new Notification.Action.Builder( in initImportanceHighBotton()
295 new Action.Builder(R.drawable.ic_check_box, "read", markAsReadIntent) in initMessagingStyleButton()
296 .setSemanticAction(Action.SEMANTIC_ACTION_MARK_AS_READ) in initMessagingStyleButton()
300 new Action.Builder(R.drawable.ic_check_box, "reply", replyIntent) in initMessagingStyleButton()
301 .setSemanticAction(Action.SEMANTIC_ACTION_REPLY) in initMessagingStyleButton()
330 new Action.Builder(R.drawable.ic_check_box, "read", markAsReadIntent) in initTestMessagesButton()
331 .setSemanticAction(Action.SEMANTIC_ACTION_MARK_AS_READ) in initTestMessagesButton()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.java44 import static androidx.core.app.NotificationCompat.Action;
68 final List<Action> actions = new ArrayList<>(2); in build()
88 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
98 actions.add(new Action.Builder(icon2, title2, intent2).build()); in build()
112 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
122 actions.add(new Action.Builder(icon2, title2, intent2).build()); in build()
138 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
165 for (Action action : actions) { in build()
224 final List<Action> actions = new ArrayList<>(2); in buildHeadsUp()
235 actions.add(new Action.Builder(icon1, title1, intent1).build()); in buildHeadsUp()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java73 import com.android.gallery3d.filtershow.category.Action;
173 private ArrayList<Action> mActions = new ArrayList<Action>();
397 public void registerAction(Action action) { in registerAction()
406 Action action = mActions.get(i); in loadActions()
416 new Action(this, originalRep, Action.FULL_VIEW)); in updateVersions()
421 new Action(this, currentRep, Action.FULL_VIEW)); in updateVersions()
423 mCategoryVersionsAdapter.add(new Action(this, Action.SPACER)); in updateVersions()
427 new Action(this, rep, Action.FULL_VIEW, true)); in updateVersions()
441 public void removeVersion(Action action) { in removeVersion()
446 public void removeLook(Action action) { in removeLook()
[all …]
/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/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 android.support.v17.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/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/Car/libs/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;
195 .map(NotificationCompat.Action::getSemanticAction) in hasRequiredAssistantCallbacks()
204 public static List<NotificationCompat.Action> getAllActions(Notification notification) { in getAllActions()
205 List<NotificationCompat.Action> actions = new ArrayList<>(); in getAllActions()
218 public static NotificationCompat.Action getMarkAsReadAction(Notification notification) { in getMarkAsReadAction()
219 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction()
221 == NotificationCompat.Action.SEMANTIC_ACTION_MARK_AS_READ) { in getMarkAsReadAction()
236 .map(Notification.Action::getRemoteInputs) in replyCallbackHasRemoteInput()
248 .noneMatch(NotificationCompat.Action::getShowsUserInterface); in assistantCallbacksShowNoUi()
/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()
/packages/modules/ExtServices/src/android/ext/services/notification/
DSmartActionsHelper.java120 ArrayList<Notification.Action> actions = new ArrayList<>(); in suggest()
125 Notification.Action notificationAction; in suggest()
156 private Notification.Action createNotificationActionWithoutRemoteAction( in createNotificationActionWithoutRemoteAction()
165 private Notification.Action createCopyCodeAction(ConversationAction conversationAction) { in createCopyCodeAction()
215 Pair<RemoteInput, Notification.Action> freeformRemoteInputAndAction = in suggestionsMightBeUsedInNotification()
221 Notification.Action actionWithFreeformRemoteInput = freeformRemoteInputAndAction.second; in suggestionsMightBeUsedInNotification()
344 void onActionClicked(String key, Notification.Action action, in onActionClicked()
365 private Notification.Action createNotificationActionFromRemoteAction( in createNotificationActionFromRemoteAction()
373 return new Notification.Action.Builder( in createNotificationActionFromRemoteAction()
484 public final ArrayList<Notification.Action> actions;
[all …]

1234567