Home
last modified time | relevance | path

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

12345678

/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;
72 public static String getActionStr(Action action) { in getActionStr()
75 case Action.Type.TOUCH: in getActionStr()
76 str += getFieldName(action.touch, Action.Touch.class); in getActionStr()
77 if (action.touch == Action.Touch.SWIPE || action.touch == Action.Touch.FLING) { in getActionStr()
78 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr()
81 case Action.Type.COMMAND: in getActionStr()
82 str += getFieldName(action.command, Action.Command.class); in getActionStr()
84 default: return getFieldName(action.type, Action.Type.class); in getActionStr()
86 if (action.touch == Action.Touch.SWIPE || action.touch == Action.Touch.FLING || in getActionStr()
[all …]
DUserEventDispatcher.java50 import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
139 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logAppLaunch()
163 if (action == Action.Touch.SWIPE || action == Action.Touch.FLING) { in logTaskLaunchOrDismiss()
187 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logNotificationLaunch()
214 if (command == Action.Command.STOP) { in logActionCommand()
279 if (action == Action.Touch.DRAGDROP) { in logActionOnControl()
286 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Type.TOUCH), in logActionTapOutside()
293 LauncherEvent event = newLauncherEvent(newAction(Action.Type.TIP), in logActionBounceTip()
372 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.LONGPRESS), in logDeepShortcutsOpen()
381 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.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 …]
DActionServiceSystemTest.java54 final Action action, final Object data, final Object result) { in onActionSucceeded()
65 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed()
77 public void onActionExecuted(final ActionMonitor monitor, final Action action, in onActionExecuted()
116 final Action request = mWorker.getRequestsMade().get(0); in testChatActionSucceeds()
164 final Action request = mWorker.getRequestsMade().get(0); in testChatActionFails()
191 new TestChatAction(Action.generateUniqueActionKey(null), parameter); in testChatActionNoMonitor()
205 Action request = mWorker.getRequestsMade().get(0); in testChatActionNoMonitor()
249 final Action request = mWorker.getRequestsMade().get(0); in testChatActionUnregisterListener()
314 public static class TestChatAction extends Action implements Parcelable {
379 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/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/caruirecyclerview/
DCarUiListItemActivity.java66 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
71 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
78 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
82 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
87 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
93 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
99 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
105 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData()
114 item = new CarUiContentListItem(CarUiContentListItem.Action.CHECK_BOX); in generateDummyData()
123 item = new CarUiContentListItem(CarUiContentListItem.Action.CHECK_BOX); in generateDummyData()
[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/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiContentListItem.java74 public enum Action { enum in CarUiContentListItem
104 private Action mAction;
115 public CarUiContentListItem(Action action) { in CarUiContentListItem()
238 if (mAction == Action.CHECK_BOX || mAction == Action.SWITCH in setChecked()
239 || mAction == Action.RADIO_BUTTON) { in setChecked()
267 public Action getAction() { in getAction()
276 if (mAction != Action.ICON) { in getSupplementalIcon()
300 if (mAction != Action.ICON) { in setSupplementalIcon()
/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/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;
196 .map(NotificationCompat.Action::getSemanticAction) in hasRequiredAssistantCallbacks()
205 public static List<NotificationCompat.Action> getAllActions(Notification notification) { in getAllActions()
206 List<NotificationCompat.Action> actions = new ArrayList<>(); in getAllActions()
219 public static NotificationCompat.Action getMarkAsReadAction(Notification notification) { in getMarkAsReadAction()
220 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction()
222 == NotificationCompat.Action.SEMANTIC_ACTION_MARK_AS_READ) { in getMarkAsReadAction()
234 private static NotificationCompat.Action getReplyAction(Notification notification) { in getReplyAction()
235 for (NotificationCompat.Action action : getAllActions(notification)) { in getReplyAction()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java73 import com.android.gallery3d.filtershow.category.Action;
171 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/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 …]
DTimerNotificationBuilder.java50 import static androidx.core.app.NotificationCompat.Action;
74 final List<Action> actions = new ArrayList<>(2); in build()
94 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
104 actions.add(new Action.Builder(icon2, title2, intent2).build()); in build()
118 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
128 actions.add(new Action.Builder(icon2, title2, intent2).build()); in build()
144 actions.add(new Action.Builder(icon1, title1, intent1).build()); in build()
172 for (Action action : actions) { in build()
232 final List<Action> actions = new ArrayList<>(2); in buildHeadsUp()
243 actions.add(new Action.Builder(icon1, title1, intent1).build()); in buildHeadsUp()
[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 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()

12345678