Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 1256) sorted by relevance

12345678910>>...51

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java17 package com.android.messaging.datamodel.action;
55 protected static void startAction(final Action action) { in startAction() argument
58 actionBundle.putParcelable(BUNDLE_ACTION, action); in startAction()
60 action.markStart(); in startAction()
70 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction() argument
74 actionBundle.putParcelable(BUNDLE_ACTION, action); in scheduleAction()
85 protected static void handleResponseFromBackgroundWorker(final Action action, in handleResponseFromBackgroundWorker() argument
90 actionBundle.putParcelable(BUNDLE_ACTION, action); in handleResponseFromBackgroundWorker()
101 protected static void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker() argument
106 actionBundle.putParcelable(BUNDLE_ACTION, action); in handleFailureFromBackgroundWorker()
[all …]
DActionMonitor.java17 package com.android.messaging.datamodel.action;
55 abstract void onActionExecuted(ActionMonitor monitor, final Action action, in onActionExecuted() argument
71 final Action action, final Object data, final Object result); in onActionSucceeded() argument
76 abstract void onActionFailed(ActionMonitor monitor, final Action action, in onActionFailed() argument
89 void onActionStateChanged(Action action, int state); in onActionStateChanged() argument
241 protected void updateState(final Action action, final int expectedOldState, in updateState() argument
256 listener.onActionStateChanged(action, newState); in updateState()
266 static void setState(final Action action, final int expectedOldState, in setState() argument
271 = ActionMonitor.lookupActionMonitor(action.actionKey); in setState()
274 monitor.updateState(action, expectedOldState, newState); in setState()
[all …]
DBackgroundWorkerService.java17 package com.android.messaging.datamodel.action;
60 for (final Action action : actions) { in queueBackgroundWork()
61 startServiceWithAction(action, 0); in queueBackgroundWork()
80 private static void startServiceWithAction(final Action action, in startServiceWithAction() argument
83 intent.putExtra(EXTRA_ACTION, action); in startServiceWithAction()
115 final Action action = intent.getParcelableExtra(EXTRA_ACTION); in onHandleWork() local
117 doBackgroundWork(action, attempt); in onHandleWork()
130 private void doBackgroundWork(final Action action, final int attempt) { in doBackgroundWork() argument
131 action.markBackgroundWorkStarting(); in doBackgroundWork()
135 TAG, action.getClass().getSimpleName() + "#doBackgroundWork"); in doBackgroundWork()
[all …]
DActionService.java17 package com.android.messaging.datamodel.action;
28 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent() argument
29 return ActionServiceImpl.makeStartActionPendingIntent(context, action, requestCode, in makeStartActionPendingIntent()
36 public void startAction(final Action action) { in startAction() argument
37 ActionServiceImpl.startAction(action); in startAction()
43 public void scheduleAction(final Action action, final int code, in scheduleAction() argument
45 ActionServiceImpl.scheduleAction(action, code, delayMs); in scheduleAction()
52 final Action action, final Bundle response) { in handleResponseFromBackgroundWorker() argument
53 ActionServiceImpl.handleResponseFromBackgroundWorker(action, response); in handleResponseFromBackgroundWorker()
59 protected void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker() argument
[all …]
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
DStatsLogWriter.java48 public void action(Context context, int action, Pair<Integer, Object>... taggedData) { in action() argument
49 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
50 action, in action()
57 public void action(Context context, int action, int value) { in action() argument
58 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
59 action, in action()
66 public void action(Context context, int action, boolean value) { in action() method in StatsLogWriter
67 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
68 action, in action()
75 public void action(Context context, int action, String pkg) { in action() argument
[all …]
DSettingsIntelligenceLogWriter.java65 action(attribution /* from pageId */, in visible()
74 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in hidden()
82 public void action(Context context, int action, Pair<Integer, Object>... taggedData) { in action() method in SettingsIntelligenceLogWriter
83 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
84 action, in action()
91 public void action(Context context, int action, int value) { in action() method in SettingsIntelligenceLogWriter
92 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
93 action, in action()
100 public void action(Context context, int action, boolean value) { in action() method in SettingsIntelligenceLogWriter
101 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java201 if (mState.action == ACTION_CREATE) { in setupLayout()
205 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout()
206 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout()
224 if (mState.action == ACTION_GET_CONTENT in setupLayout()
225 || mState.action == ACTION_OPEN in setupLayout()
226 || mState.action == ACTION_CREATE in setupLayout()
227 || mState.action == ACTION_OPEN_TREE in setupLayout()
228 || mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout()
230 /* includeApps= */ mState.action == ACTION_GET_CONTENT, in setupLayout()
242 final String action = intent.getAction(); in includeState() local
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DActionAdapter.java77 public void onActionClicked(Action action); in onActionClicked() argument
85 public void onActionFocused(Action action); in onActionFocused() argument
96 public void onActionSelect(Action action); in onActionSelect() argument
101 public void onActionUnselect(Action action); in onActionUnselect() argument
182 Action action = mActions.get(position); in getView() local
185 description.setText(action.getDescription()); in getView()
187 TextUtils.isEmpty(action.getDescription()) ? View.GONE : View.VISIBLE); in getView()
188 title.setText(action.getTitle()); in getView()
190 checkmarkView.setVisibility(action.isChecked() ? View.VISIBLE : View.INVISIBLE); in getView()
193 setIndicator(indicatorView, action); in getView()
[all …]
DBaseActionFragment.java108 for (Action action : actions) { in onCreate()
109 mAdapter.addAction(action); in onCreate()
164 public void onActionClicked(Action action) { in onActionClicked() argument
166 if (!action.isEnabled() || action.infoOnly()) { in onActionClicked()
171 mListener.onActionClicked(action); in onActionClicked()
174 listener.onActionClicked(action); in onActionClicked()
179 public void onActionFocused(Action action) { in onActionFocused() argument
183 listener.onActionFocused(action); in onActionFocused()
188 public void onActionSelect(Action action) { in onActionSelect() argument
192 listener.onActionSelect(action); in onActionSelect()
[all …]
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/utils/
DMockMessageNotificationBuilder.java286 Action action = mock(Action.class); in getMockReplyAction() local
287 when(action.actionIntent).thenReturn(mPendingIntent); in getMockReplyAction()
288 when(action.title).thenReturn(TITLE_REPLY); in getMockReplyAction()
289 when(action.icon).thenReturn(iconCompat.getResId()); in getMockReplyAction()
290 when(action.getActionIntent()).thenReturn(mPendingIntent); in getMockReplyAction()
291 when(action.getAllowGeneratedReplies()).thenReturn(true); in getMockReplyAction()
292 when(action.getDataOnlyRemoteInputs()).thenReturn(null); in getMockReplyAction()
293 when(action.getExtras()).thenReturn(new Bundle()); in getMockReplyAction()
294 when(action.getRemoteInputs()).thenReturn(new RemoteInput[]{new RemoteInput.Builder( in getMockReplyAction()
296 when(action.getSemanticAction()).thenReturn(semanticAction); in getMockReplyAction()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java58 public void add(Action action) { in add() argument
59 super.add(action); in add()
60 action.setAdapter(this); in add()
63 private void deletePreset(Action action) { in deletePreset() argument
64 FilterRepresentation rep = action.getRepresentation(); in deletePreset()
68 remove(action); in deletePreset()
72 private void changePreset(Action action) { in changePreset() argument
73 FilterRepresentation rep = action.getRepresentation(); in changePreset()
74 rep.setName(action.getName()); in changePreset()
108 Action action = getItem(position); in getView() local
[all …]
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java232 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction()
233 if (action.getSemanticAction() in getMarkAsReadAction()
235 return action; in getMarkAsReadAction()
247 for (NotificationCompat.Action action : getAllActions(notification)) { in getMuteAction()
248 if (action.getSemanticAction() == Action.SEMANTIC_ACTION_MUTE) { in getMuteAction()
249 return action; in getMuteAction()
261 for (NotificationCompat.Action action : getAllActions(notification)) { in getReplyAction()
262 if (action.getSemanticAction() in getReplyAction()
264 return action; in getReplyAction()
278 .filter(action -> action.getSemanticAction() == SEMANTIC_ACTION_REPLY) in replyCallbackHasRemoteInput()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryAdapter.java55 Action action = getItem(i); in clear() local
56 action.clearBitmap(); in clear()
70 public void add(Action action) { in add() argument
71 super.add(action); in add()
72 action.setAdapter(this); in add()
97 Action action = getItem(position); in getView() local
98 view.setAction(action, this); 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() local
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomBroadcastIntentProcessor.java117 String action = intent.getAction(); in processIntent() local
119 if (ACTION_SEND_SMS_FROM_NOTIFICATION.equals(action) || in processIntent()
120 ACTION_CALL_BACK_FROM_NOTIFICATION.equals(action) || in processIntent()
121 ACTION_CLEAR_MISSED_CALLS.equals(action)) { in processIntent()
122 Log.v(this, "Action received: %s.", action); in processIntent()
132 if (ACTION_SEND_SMS_FROM_NOTIFICATION.equals(action)) { in processIntent()
139 } else if (ACTION_CALL_BACK_FROM_NOTIFICATION.equals(action)) { in processIntent()
146 } else if (ACTION_CLEAR_MISSED_CALLS.equals(action)) { in processIntent()
149 } else if(ACTION_DISCONNECTED_SEND_SMS_FROM_NOTIFICATION.equals(action) || in processIntent()
150 ACTION_DISCONNECTED_CALL_BACK_FROM_NOTIFICATION.equals(action)) { in processIntent()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DBottomActionBar.java243 BottomAction action) { in bindBottomSheetContentWithAction() argument
244 mContentViewMap.put(action, bottomSheetContent); in bindBottomSheetContentWithAction()
246 setActionClickListener(action, actionView -> { in bindBottomSheetContentWithAction()
248 updateContentViewFor(action); in bindBottomSheetContentWithAction()
377 for (BottomAction action : actions) { in showActions()
378 mActionMap.get(action).setVisibility(VISIBLE); in showActions()
388 for (BottomAction action : actions) { in hideActions()
389 mActionMap.get(action).setVisibility(GONE); in hideActions()
391 if (isExpandable(action) && mSelectedAction == action) { in hideActions()
405 mActionMap.keySet().forEach(action -> { in showActionsOnly()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java58 String action = intent.getAction(); in resolveIntent() local
60 Log.i(TAG, "Called with action: " + action); in resolveIntent()
62 if (UiIntentActions.LIST_DEFAULT.equals(action) ) { in resolveIntent()
64 } else if (UiIntentActions.LIST_ALL_CONTACTS_ACTION.equals(action)) { in resolveIntent()
66 } else if (UiIntentActions.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) { in resolveIntent()
68 } else if (UiIntentActions.LIST_STARRED_ACTION.equals(action)) { in resolveIntent()
70 } else if (UiIntentActions.LIST_FREQUENT_ACTION.equals(action)) { in resolveIntent()
72 } else if (UiIntentActions.LIST_STREQUENT_ACTION.equals(action)) { in resolveIntent()
74 } else if (UiIntentActions.LIST_GROUP_ACTION.equals(action)) { in resolveIntent()
77 } else if (UiIntentActions.ACTION_SELECT_ITEMS.equals(action)) { in resolveIntent()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/events/
DEvents.kt38 fun sendAlarmEvent(@StringRes action: Int, @StringRes label: Int) { in sendAlarmEvent()
39 sendEvent(R.string.category_alarm, action, label) in sendAlarmEvent()
49 fun sendClockEvent(@StringRes action: Int, @StringRes label: Int) { in sendClockEvent()
50 sendEvent(R.string.category_clock, action, label) in sendClockEvent()
60 fun sendTimerEvent(@StringRes action: Int, @StringRes label: Int) { in sendTimerEvent()
61 sendEvent(R.string.category_timer, action, label) in sendTimerEvent()
71 fun sendStopwatchEvent(@StringRes action: Int, @StringRes label: Int) { in sendStopwatchEvent()
72 sendEvent(R.string.category_stopwatch, action, label) in sendStopwatchEvent()
82 fun sendScreensaverEvent(@StringRes action: Int, @StringRes label: Int) { in sendScreensaverEvent()
83 sendEvent(R.string.category_screensaver, action, label) in sendScreensaverEvent()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java17 package com.android.messaging.datamodel.action;
84 Action action; field in ActionTestHelpers.StubChatActionMonitor.StateTransition
87 public StateTransition(final Action action, final int from, final int to) { in StateTransition() argument
88 this.action = action; in StateTransition()
106 protected void updateState(final Action action, final int expectedState, in updateState() argument
108 mTransitions.add(new StateTransition(action, mState, state)); in updateState()
109 super.updateState(action, expectedState, state); in updateState()
123 public final Action action; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog
129 public StubActionServiceCallLog(final Action action, in StubActionServiceCallLog() argument
134 this.action = action; in StubActionServiceCallLog()
[all …]
DActionServiceSystemTest.java17 package com.android.messaging.datamodel.action;
34 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
35 import com.android.messaging.datamodel.action.ActionMonitor.ActionExecutedListener;
36 import com.android.messaging.datamodel.action.ActionTestHelpers.ResultTracker;
37 import com.android.messaging.datamodel.action.ActionTestHelpers.StubBackgroundWorker;
38 import com.android.messaging.datamodel.action.ActionTestHelpers.StubLoader;
54 final Action action, final Object data, final Object result) { in onActionSucceeded() argument
55 final TestChatAction test = (TestChatAction) action; in onActionSucceeded()
65 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed() argument
67 final TestChatAction test = (TestChatAction) action; in onActionFailed()
[all …]
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java78 final String action = intent.getAction(); in onReceive() local
79 switch (action) { in onReceive()
81 increaseCounter(context, action); in onReceive()
84 increaseCounter(context, action); in onReceive()
95 Log.e(TAG, "received unexpected action: " + action); in onReceive()
104 private void increaseCounter(Context context, String action) { in increaseCounter() argument
107 final int value = prefs.getInt(action, 0) + 1; in increaseCounter()
108 Log.d(TAG, "increaseCounter('" + action + "'): setting '" + mName + "' to " + value); in increaseCounter()
109 prefs.edit().putInt(action, value).apply(); in increaseCounter()
112 static int getCounter(Context context, String action, String receiverName) { in getCounter() argument
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupGuidedStepFragment.java123 public boolean performAccessibilityAction(View host, int action, Bundle args) { in onResume()
124 if (action == AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS in onResume()
132 return super.performAccessibilityAction(host, action, args); in onResume()
162 public void onGuidedActionClicked(GuidedAction action) {
163 if (!action.isFocusable()) {
168 SetupActionHelper.onActionClick(this, getActionCategory(), (int) action.getId());
182 GuidedAction action) {
183 if (!mAccessibilityMode || findActionPositionById(action.getId()) == 0) {
189 public boolean performAccessibilityAction(View host, int action, Bundle args) {
190 if ((action == AccessibilityNodeInfo.ACTION_FOCUS
[all …]
/packages/modules/SdkExtensions/gen_sdk/
Dgen_sdk_test.sh33 …diff golden_binary <(gen_sdk --action print_binary --database testdata/test_extensions_db.textpb |…
40 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER
41 gen_sdk --action new_sdk --sdk 2 --modules MEDIA,IPSEC
42 gen_sdk --action new_sdk --sdk 3 --modules MEDIA_PROVIDER
43 gen_sdk --action new_sdk --sdk 4 --modules SDK_EXTENSIONS,IPSEC
54 if gen_sdk --action validate; then
60 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER
61 if gen_sdk --action new_sdk --sdk 1 --modules SDK_EXTENSIONS; then
68 if gen_sdk --action validate --database testdata/dupe_req.textpb; then
73 if gen_sdk --action validate --database testdata/backward_req.textpb; then
[all …]
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DClickBlockingView.java62 final int action = ev.getActionMasked(); in onTouchEvent() local
63 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
69 if (action == MotionEvent.ACTION_DOWN && !handled) { in onTouchEvent()
74 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { in onTouchEvent()
88 final int action = ev.getActionMasked(); in onHoverEvent() local
89 if (action == MotionEvent.ACTION_HOVER_ENTER) { in onHoverEvent()
95 if (action == MotionEvent.ACTION_HOVER_ENTER && !handled) { in onHoverEvent()
100 if (action == MotionEvent.ACTION_HOVER_EXIT || action == MotionEvent.ACTION_CANCEL) { in onHoverEvent()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/baselayout/
DClickBlockingView.java62 final int action = ev.getActionMasked(); in onTouchEvent() local
63 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
69 if (action == MotionEvent.ACTION_DOWN && !handled) { in onTouchEvent()
74 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { in onTouchEvent()
88 final int action = ev.getActionMasked(); in onHoverEvent() local
89 if (action == MotionEvent.ACTION_HOVER_ENTER) { in onHoverEvent()
95 if (action == MotionEvent.ACTION_HOVER_ENTER && !handled) { in onHoverEvent()
100 if (action == MotionEvent.ACTION_HOVER_EXIT || action == MotionEvent.ACTION_CANCEL) { in onHoverEvent()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTouchEventGenerator.java87 int action; in put() local
89 action = MotionEvent.ACTION_DOWN; in put()
91 action = MotionEvent.ACTION_POINTER_DOWN; in put()
93 action |= id << MotionEvent.ACTION_POINTER_INDEX_SHIFT; in put()
95 generateEvent(action, ms); in put()
158 int action; in lift() local
160 action = MotionEvent.ACTION_UP; in lift()
162 action = MotionEvent.ACTION_POINTER_UP; in lift()
164 action |= id << MotionEvent.ACTION_POINTER_INDEX_SHIFT; in lift()
166 generateEvent(action, ms); in lift()
[all …]

12345678910>>...51