Home
last modified time | relevance | path

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

12345678910>>...23

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java17 package com.android.messaging.datamodel.action;
50 protected static void startAction(final Action action) { in startAction() argument
53 actionBundle.putParcelable(BUNDLE_ACTION, action); in startAction()
55 action.markStart(); in startAction()
65 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction() argument
69 actionBundle.putParcelable(BUNDLE_ACTION, action); in scheduleAction()
80 protected static void handleResponseFromBackgroundWorker(final Action action, in handleResponseFromBackgroundWorker() argument
85 actionBundle.putParcelable(BUNDLE_ACTION, action); in handleResponseFromBackgroundWorker()
96 protected static void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker() argument
101 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;
59 for (final Action action : actions) { in queueBackgroundWork()
60 startServiceWithAction(action, 0); in queueBackgroundWork()
79 private static void startServiceWithAction(final Action action, in startServiceWithAction() argument
82 intent.putExtra(EXTRA_ACTION, action); in startServiceWithAction()
121 final Action action = intent.getParcelableExtra(EXTRA_ACTION); in onHandleIntent() local
123 doBackgroundWork(action, attempt); in onHandleIntent()
138 private void doBackgroundWork(final Action action, final int attempt) { in doBackgroundWork() argument
139 action.markBackgroundWorkStarting(); in doBackgroundWork()
143 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 …]
DUpdateDestinationBlockedAction.java16 package com.android.messaging.datamodel.action;
31 abstract void onUpdateDestinationBlockedAction(final UpdateDestinationBlockedAction action, in onUpdateDestinationBlockedAction() argument
50 final Action action, in onActionDone() argument
54 (UpdateDestinationBlockedAction) action, in onActionDone()
56 action.actionParameters.getBoolean(KEY_BLOCKED), in onActionDone()
57 action.actionParameters.getString(KEY_DESTINATION)); in onActionDone()
62 final Action action, in onActionSucceeded() argument
65 onActionDone(true, monitor, action, data, result); in onActionSucceeded()
70 final Action action, in onActionFailed() argument
73 onActionDone(false, monitor, action, data, result); in onActionFailed()
[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/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DActionAdapter.java83 public void onActionClicked(Action action); in onActionClicked() argument
91 public void onActionFocused(Action action); in onActionFocused() argument
102 public void onActionSelect(Action action); in onActionSelect() argument
107 public void onActionUnselect(Action action); in onActionUnselect() argument
188 Action action = mActions.get(position); in getView() local
191 description.setText(action.getDescription()); in getView()
193 TextUtils.isEmpty(action.getDescription()) ? View.GONE : View.VISIBLE); in getView()
194 title.setText(action.getTitle()); in getView()
196 checkmarkView.setVisibility(action.isChecked() ? View.VISIBLE : View.INVISIBLE); in getView()
199 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/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/apps/DeskClock/src/com/android/deskclock/events/
DEvents.java44 public static void sendAlarmEvent(@StringRes int action, @StringRes int label) { in sendAlarmEvent() argument
45 sendEvent(R.string.category_alarm, action, label); in sendAlarmEvent()
54 public static void sendClockEvent(@StringRes int action, @StringRes int label) { in sendClockEvent() argument
55 sendEvent(R.string.category_clock, action, label); in sendClockEvent()
64 public static void sendTimerEvent(@StringRes int action, @StringRes int label) { in sendTimerEvent() argument
65 sendEvent(R.string.category_timer, action, label); in sendTimerEvent()
74 public static void sendStopwatchEvent(@StringRes int action, @StringRes int label) { in sendStopwatchEvent() argument
75 sendEvent(R.string.category_stopwatch, action, label); in sendStopwatchEvent()
87 public static void sendEvent(@StringRes int category, @StringRes int action, in sendEvent() argument
90 eventTracker.sendEvent(category, action, label); in sendEvent()
[all …]
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DOmtpVvmSyncService.java97 public static Intent getSyncIntent(Context context, String action, in getSyncIntent() argument
99 return getSyncIntent(context, action, phoneAccount, null, firstAttempt); in getSyncIntent()
102 public static Intent getSyncIntent(Context context, String action, in getSyncIntent() argument
119 serviceIntent.setAction(action); in getSyncIntent()
175 String action = intent.getAction(); in onHandleIntent() local
177 LocalLogHelper.log(TAG, "Sync requested: " + action + in onHandleIntent()
183 Log.v(TAG, "Sync requested: " + action + " - for account: " + phoneAccount); in onHandleIntent()
184 setupAndSendRequest(phoneAccount, voicemail, action, isManualSync); in onHandleIntent()
186 Log.v(TAG, "Sync requested: " + action + " - for all accounts"); in onHandleIntent()
191 setupAndSendRequest(source, null, action, isManualSync); in onHandleIntent()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java17 package com.android.messaging.datamodel.action;
86 Action action; field in ActionTestHelpers.StubChatActionMonitor.StateTransition
89 public StateTransition(final Action action, final int from, final int to) { in StateTransition() argument
90 this.action = action; in StateTransition()
108 protected void updateState(final Action action, final int expectedState, in updateState() argument
110 mTransitions.add(new StateTransition(action, mState, state)); in updateState()
111 super.updateState(action, expectedState, state); in updateState()
125 public final Action action; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog
131 public StubActionServiceCallLog(final Action action, in StubActionServiceCallLog() argument
136 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.StubConnectivityUtil;
39 import com.android.messaging.datamodel.action.ActionTestHelpers.StubLoader;
55 final Action action, final Object data, final Object result) { in onActionSucceeded() argument
56 final TestChatAction test = (TestChatAction) action; in onActionSucceeded()
66 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed() argument
[all …]
DActionServiceTest.java17 package com.android.messaging.datamodel.action;
34 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
35 import com.android.messaging.datamodel.action.ActionMonitor.ActionStateChangedListener;
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.StubConnectivityUtil;
39 import com.android.messaging.datamodel.action.ActionTestHelpers.StubLoader;
50 public void onActionStateChanged(final Action action, final int state) { in onActionStateChanged() argument
56 final Action action, final Object data, final Object result) { in onActionSucceeded() argument
57 final TestChatAction test = (TestChatAction) action; in onActionSucceeded()
[all …]
DGetOrCreateConversationActionTest.java17 package com.android.messaging.datamodel.action;
33 import com.android.messaging.datamodel.action.ActionTestHelpers.StubActionService;
34 import com.android.messaging.datamodel.action.ActionTestHelpers.StubActionService.StubActionService…
35 import com.android.messaging.datamodel.action.GetOrCreateConversationAction.GetOrCreateConversation…
36 import com.android.messaging.datamodel.action.GetOrCreateConversationAction.GetOrCreateConversation…
80 assertTrue("Action not GetOrCreateConversationAction", calls.get(0).action instanceof in testGetOrCreateConversation()
83 GetOrCreateConversationAction action = (GetOrCreateConversationAction) in testGetOrCreateConversation() local
84 calls.get(0).action; in testGetOrCreateConversation()
86 Object result = action.executeAction(); in testGetOrCreateConversation()
99 assertTrue("Action not GetOrCreateConversationAction", calls.get(1).action instanceof in testGetOrCreateConversation()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java54 String action = intent.getAction(); in resolveIntent() local
56 Log.i(TAG, "Called with action: " + action); in resolveIntent()
58 if (UiIntentActions.LIST_DEFAULT.equals(action) ) { in resolveIntent()
60 } else if (UiIntentActions.LIST_ALL_CONTACTS_ACTION.equals(action)) { in resolveIntent()
62 } else if (UiIntentActions.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) { in resolveIntent()
64 } else if (UiIntentActions.LIST_STARRED_ACTION.equals(action)) { in resolveIntent()
66 } else if (UiIntentActions.LIST_FREQUENT_ACTION.equals(action)) { in resolveIntent()
68 } else if (UiIntentActions.LIST_STREQUENT_ACTION.equals(action)) { in resolveIntent()
70 } else if (UiIntentActions.LIST_GROUP_ACTION.equals(action)) { in resolveIntent()
73 } else if (Intent.ACTION_PICK.equals(action)) { in resolveIntent()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleDeskClockApiCalls.java90 final String action = intent.getAction(); in onCreate() local
91 LogUtils.i("HandleDeskClockApiCalls " + action); in onCreate()
93 switch (action) { in onCreate()
119 final String action = intent.getAction(); in handleStopwatchIntent() local
124 if (ACTION_SHOW_STOPWATCH.equals(action)) { in handleStopwatchIntent()
129 switch (action) { in handleStopwatchIntent()
161 throw new IllegalArgumentException("unknown stopwatch action: " + action); in handleStopwatchIntent()
179 final String action = intent.getAction(); in handleTimerIntent() local
186 if (ACTION_SHOW_TIMERS.equals(action)) { in handleTimerIntent()
216 switch (action) { in handleTimerIntent()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/
DNotificationActionIntentService.java71 private static void logNotificationAction(String intentAction, NotificationAction action) { in logNotificationAction() argument
77 eventLabel = action.getFolder().getTypeDescription(); in logNotificationAction()
92 final String action = intent.getAction(); in onHandleIntent() local
117 LogUtils.i(LOG_TAG, "Handling %s", action); in onHandleIntent()
119 logNotificationAction(action, notificationAction); in onHandleIntent()
132 if (ACTION_UNDO.equals(action)) { in onHandleIntent()
135 } else if (ACTION_ARCHIVE_REMOVE_LABEL.equals(action) || ACTION_DELETE.equals(action)) { in onHandleIntent()
141 if (ACTION_UNDO_TIMEOUT.equals(action) || ACTION_DESTRUCT.equals(action)) { in onHandleIntent()
145 } else if (ACTION_MARK_READ.equals(action)) { in onHandleIntent()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DNotificationBroadcastReceiver.java51 final String action = intent.getAction(); in onReceive() local
52 Log.i(this, "Broadcast from Notification: " + action); in onReceive()
55 if (action.equals(ACTION_ANSWER_VIDEO_INCOMING_CALL)) { in onReceive()
58 } else if (action.equals(ACTION_ANSWER_VOICE_INCOMING_CALL)) { in onReceive()
61 } else if (action.equals(ACTION_DECLINE_INCOMING_CALL)) { in onReceive()
63 } else if (action.equals(ACTION_HANG_UP_ONGOING_CALL)) { in onReceive()
65 } else if (action.equals(ACTION_ACCEPT_VIDEO_UPGRADE_REQUEST)) { in onReceive()
69 } else if (action.equals(ACTION_DECLINE_VIDEO_UPGRADE_REQUEST)) { in onReceive()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java55 String action = intent.getAction(); in onReceiveWithPrivilege() local
57 if (TelephonyIntents.ACTION_SERVICE_STATE_CHANGED.equals(action)) { in onReceiveWithPrivilege()
58 if (DBG) log("Intent: " + action); in onReceiveWithPrivilege()
73 } else if (TelephonyIntents.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED.equals(action) || in onReceiveWithPrivilege()
74 CELLBROADCAST_START_CONFIG_ACTION.equals(action)) { in onReceiveWithPrivilege()
82 Log.e(TAG, "Not system user. Ignored the intent " + action); in onReceiveWithPrivilege()
84 } else if (Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION.equals(action) || in onReceiveWithPrivilege()
85 Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION.equals(action)) { in onReceiveWithPrivilege()
94 loge("ignoring unprivileged action received " + action); in onReceiveWithPrivilege()
97 .equals(action)) { in onReceiveWithPrivilege()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipBroadcastReceiver.java42 String action = intent.getAction(); in onReceive() local
45 if (VERBOSE) log("SipBroadcastReceiver only run in system user, ignore " + action); in onReceive()
50 if (VERBOSE) log("SIP VOIP not supported: " + action); in onReceive()
55 if (action.equals(Intent.ACTION_BOOT_COMPLETED)) { in onReceive()
57 } else if (action.equals(SipManager.ACTION_SIP_INCOMING_CALL)) { in onReceive()
59 } else if (action.equals(SipManager.ACTION_SIP_SERVICE_UP) || in onReceive()
60 action.equals(SipManager.ACTION_SIP_CALL_OPTION_CHANGED)) { in onReceive()
62 } else if (action.equals(SipManager.ACTION_SIP_REMOVE_PHONE)) { in onReceive()
67 if (VERBOSE) log("onReceive, action not processed: " + action); in onReceive()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryPackInstallBroadcastReceiver.java64 final String action = intent.getAction(); in onReceive() local
68 if (action.equals(Intent.ACTION_PACKAGE_ADDED)) { in onReceive()
70 Log.e(TAG, "Called with intent " + action + " but we don't know the service: this " in onReceive()
99 } else if (action.equals(Intent.ACTION_PACKAGE_REMOVED) in onReceive()
102 Log.e(TAG, "Called with intent " + action + " but we don't know the service: this " in onReceive()
116 } else if (action.equals(DictionaryPackConstants.NEW_DICTIONARY_INTENT_ACTION)) { in onReceive()
118 Log.e(TAG, "Called with intent " + action + " but we don't know the service: this " in onReceive()
123 } else if (action.equals(DictionaryPackConstants.UNKNOWN_DICTIONARY_PROVIDER_CLIENT)) { in onReceive()
128 Log.e(TAG, "Called with intent " + action + " but we have a reference to the " in onReceive()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java72 public static void runOnMain(Runnable action) { in runOnMain() argument
73 runOnLooper(Looper.getMainLooper(), action); in runOnMain() local
81 public static void runOnLooper(Looper looper, Runnable action) { in runOnLooper() argument
82 new Handler(looper).post(action); in runOnLooper()
92 public static void runOnMainSync(Runnable action) { in runOnMainSync() argument
93 runOnLooperSync(Looper.getMainLooper(), action); in runOnMainSync() local
103 public static void runOnLooperSync(Looper looper, Runnable action) { in runOnLooperSync() argument
106 action.run(); in runOnLooperSync()
109 SyncRunnable sr = new SyncRunnable(action); in runOnLooperSync()
/packages/apps/TV/src/com/android/tv/menu/
DOptionsRowAdapter.java41 final MenuAction action = (MenuAction) view.getTag();
45 int resId = action.getActionNameResId();
51 executeAction(action.getType());
101 protected void setAction(int position, MenuAction action) { in setAction() argument
102 mActionList.set(position, action); in setAction()
110 protected void addAction(int position, MenuAction action) { in addAction() argument
111 mActionList.add(position, action); in addAction()
143 protected void setOptionChangedListener(final MenuAction action) { in setOptionChangedListener() argument
145 om.setOptionChangedListener(action.getType(), new OptionChangedListener() { in setOptionChangedListener()
/packages/apps/Settings/src/com/android/settings/widget/
DExploreByTouchHelper.java437 private boolean performAction(int virtualViewId, int action, Bundle arguments) { in performAction() argument
440 return performActionForHost(action, arguments); in performAction()
442 return performActionForChild(virtualViewId, action, arguments); in performAction()
446 private boolean performActionForHost(int action, Bundle arguments) { in performActionForHost() argument
447 return mView.performAccessibilityAction(action, arguments); in performActionForHost()
450 private boolean performActionForChild(int virtualViewId, int action, Bundle arguments) { in performActionForChild() argument
451 switch (action) { in performActionForChild()
454 return manageFocusForChild(virtualViewId, action, arguments); in performActionForChild()
456 return onPerformActionForVirtualView(virtualViewId, action, arguments); in performActionForChild()
460 private boolean manageFocusForChild(int virtualViewId, int action, Bundle arguments) { in manageFocusForChild() argument
[all …]

12345678910>>...23