Home
last modified time | relevance | path

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

12345678910>>...22

/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 …]
/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/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DOmtpVvmSyncService.java76 public static Intent getSyncIntent(Context context, String action, in getSyncIntent() argument
93 serviceIntent.setAction(action); in getSyncIntent()
145 String action = intent.getAction(); in onHandleIntent() local
149 LocalLogHelper.log(TAG, "Sync requested: " + action + in onHandleIntent()
153 Log.v(TAG, "Sync requested: " + action + " - for account: " + phoneAccount); in onHandleIntent()
154 setupAndSendRequest(phoneAccount, action); in onHandleIntent()
156 Log.v(TAG, "Sync requested: " + action + " - for all accounts"); in onHandleIntent()
161 setupAndSendRequest(source, action); in onHandleIntent()
166 private void setupAndSendRequest(PhoneAccountHandle phoneAccount, String action) { in setupAndSendRequest() argument
172 if (SYNC_FULL_SYNC.equals(action)) { in setupAndSendRequest()
[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/
DDialogActionAdapter.java170 public void init(Action action) { in init() argument
171 mAction = action; in init()
180 description.setText(action.getDescription()); in init()
182 TextUtils.isEmpty(action.getDescription()) ? View.GONE : View.VISIBLE); in init()
183 title.setText(action.getTitle()); in init()
185 checkmarkView.setVisibility(action.isChecked() ? View.VISIBLE : View.INVISIBLE); in init()
190 if (setIndicator(indicatorView, action)) { in init()
200 chevronView.setVisibility(action.hasNext() ? View.VISIBLE : View.INVISIBLE); in init()
203 if (action.hasMultilineDescription()) { in init()
220 private boolean setIndicator(final ImageView indicatorView, Action action) { in setIndicator() argument
[all …]
DDialogFragment.java255 View action = inflater.inflate(R.layout.lb_dialog_action_list, container, false); in onCreateView() local
256 ((ViewGroup) actionContainer).addView(action); in onCreateView()
257 setActionView(action); in onCreateView()
258 v.setTag(R.id.action_fragment, action); in onCreateView()
480 private void setActionView(View action) { in setActionView() argument
483 public void onActionClicked(Action action) { in setActionView()
485 if (!action.isEnabled() || action.infoOnly()) { in setActionView()
495 mListener.onActionClicked(action); in setActionView()
498 listener.onActionClicked(action); in setActionView()
503 public void onActionFocused(Action action) { in setActionView()
[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/TvSettings/Settings/src/com/android/tv/settings/system/
DDeveloperOptionsActivity.java579 public void onActionClicked(Layout.Action action) { in onActionClicked() argument
580 switch (action.getId() & ACTION_BASE_MASK) { in onActionClicked()
582 onGeneralActionClicked(action); in onActionClicked()
585 onDebuggingActionClicked(action); in onActionClicked()
588 onDebugAppActionClicked(action); in onActionClicked()
591 onInputActionClicked(action); in onActionClicked()
594 onDrawingActionClicked(action); in onActionClicked()
597 onWindowAnimationScaleActionClicked(action); in onActionClicked()
600 onTransitionAnimationScaleActionClicked(action); in onActionClicked()
603 onAnimatorDurationActionClicked(action); in onActionClicked()
[all …]
DCaptionSetupActivity.java297 for (Action action : mActions) { in refreshActionList()
298 action.setChecked(action.getKey().equals(mTextSize)); in refreshActionList()
303 for (Action action : mActions) { in refreshActionList()
304 action.setChecked(action.getKey().equals(mStyle)); in refreshActionList()
325 for (Action action : mActions) { in refreshActionList()
326 action.setChecked(action.getKey().equals(mLanguage)); in refreshActionList()
331 for (Action action : mActions) { in refreshActionList()
332 action.setChecked(action.getKey().equals(mFontFamily)); in refreshActionList()
340 for (Action action : mActions) { in refreshActionList()
341 action.setChecked(action.getKey().equals(mTextOpacity)); in refreshActionList()
[all …]
DInputsActivity.java192 final int action, final Bundle data, final boolean checked) { in getOnOffLayout() argument
202 .add(new Action.Builder(mRes, action) in getOnOffLayout()
207 .add(new Action.Builder(mRes, action) in getOnOffLayout()
337 public void onActionClicked(Action action) {
338 switch (action.getId()) {
340 handleEditLabel(action);
344 displayCustomLabelActivity(action.getData());
348 handleHide(action);
354 handleCecOption(action);
360 private void handleEditLabel(Action action) {
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DUserAppRestrictionsDialogFragment.java127 String action = intent.getAction();
133 if ((Intent.ACTION_PACKAGE_ADDED.equals(action) && matchingAction.isChecked()) || (
134 Intent.ACTION_PACKAGE_REMOVED.equals(action)
204 public void onActionClicked(Action action) { in onActionClicked() argument
205 String packageName = action.getIntent().getStringExtra(EXTRA_PACKAGE_NAME); in onActionClicked()
206 if (ACTION_CONFIGURE.equals(action.getKey())) { in onActionClicked()
207 boolean isAllowed = action.getIntent().getBooleanExtra(EXTRA_IS_ALLOWED, false); in onActionClicked()
208 boolean canBeEnabledDisabled = action.getIntent().getBooleanExtra( in onActionClicked()
210 String controllingActivity = action.getIntent().getStringExtra(EXTRA_CONTROLLING_APP); in onActionClicked()
229 boolean canSeeRestrictedAccounts = action.getIntent().getBooleanExtra( in onActionClicked()
[all …]
DAppRestrictionsManager.java120 public void onActionClicked(Action action) { in onActionClicked() argument
121 String restrictionEntryKey = action.getIntent().getStringExtra(EXTRA_RESTRICTION_KEY); in onActionClicked()
125 if (ACTION_CUSTOM_CONFIGURATION.equals(action.getKey())) { in onActionClicked()
126 mFragment.startActivityForResult(action.getIntent(), 1); in onActionClicked()
127 } else if (ACTION_CHANGE_RESTRICTION.equals(action.getKey())) { in onActionClicked()
136 .intent(action.getIntent()) in onActionClicked()
143 .intent(action.getIntent()) in onActionClicked()
160 Intent intent = new Intent(action.getIntent()); in onActionClicked()
183 Intent intent = new Intent(action.getIntent()); in onActionClicked()
211 } else if (ACTION_TRUE.equals(action.getKey())) { in onActionClicked()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleDeskClockApiCalls.java92 final String action = intent.getAction(); in onCreate() local
93 switch (action) { in onCreate()
99 handleStopwatchIntent(action); in onCreate()
106 handleTimerIntent(action); in onCreate()
111 handleClockIntent(action); in onCreate()
119 private void handleStopwatchIntent(String action) { in handleStopwatchIntent() argument
122 .setAction(action) in handleStopwatchIntent()
125 LogUtils.i("HandleDeskClockApiCalls " + action); in handleStopwatchIntent()
127 if (action.equals(ACTION_SHOW_STOPWATCH)) { in handleStopwatchIntent()
139 if (ACTION_START_STOPWATCH.equals(action)) { in handleStopwatchIntent()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
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 …]
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 …]
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 …]
/packages/apps/Browser/src/com/android/browser/
DIntentHandler.java95 final String action = intent.getAction(); in onNewIntent() local
97 if (Intent.ACTION_MAIN.equals(action) || in onNewIntent()
102 if (BrowserActivity.ACTION_SHOW_BOOKMARKS.equals(action)) { in onNewIntent()
110 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
111 || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action) in onNewIntent()
112 || Intent.ACTION_SEARCH.equals(action) in onNewIntent()
113 || MediaStore.INTENT_ACTION_MEDIA_SEARCH.equals(action) in onNewIntent()
114 || Intent.ACTION_WEB_SEARCH.equals(action)) { in onNewIntent()
138 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
148 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java417 final Uri messageUri, final int action) { in createActionIntent() argument
421 updateActionIntent(account, messageUri, action, intent); in createActionIntent()
427 static Intent updateActionIntent(Account account, Uri messageUri, int action, Intent intent) { in updateActionIntent() argument
429 intent.putExtra(EXTRA_ACTION, action); in updateActionIntent()
464 private static void launch(Context context, Account account, Message message, int action, in launch() argument
470 intent.putExtra(EXTRA_ACTION, action); in launch()
472 if (action == EDIT_DRAFT) { in launch()
493 if (action == COMPOSE) { in launch()
539 int action; in finishCreate() local
543 action = savedState.getInt(EXTRA_ACTION, COMPOSE); in finishCreate()
[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/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/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java195 private void addQueuedAction(int action) { in addQueuedAction() argument
196 addQueuedAction(action, 0); in addQueuedAction()
199 private void addQueuedAction(int action, Object data) { in addQueuedAction() argument
200 mQueuedActions.add(new Pair<Integer, Object>(action, data)); in addQueuedAction()
203 private void addQueuedAction(int action, int data) { in addQueuedAction() argument
204 mQueuedActions.add(new Pair<Integer, Object>(action, data)); in addQueuedAction()
906 int action; in acceptCall() local
936 action = HeadsetClientHalConstants.CALL_ACTION_ATA; in acceptCall()
939 action = HeadsetClientHalConstants.CALL_ACTION_CHLD_1; in acceptCall()
952 action = HeadsetClientHalConstants.CALL_ACTION_ATA; in acceptCall()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp505 tNFA_EE_ACTION& action = eventData->action; in nfaEeCallback() local
506 if (action.trigger == NFC_EE_TRIG_SELECT) in nfaEeCallback()
507 …OGD ("%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=select (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
508 else if (action.trigger == NFC_EE_TRIG_APP_INIT) in nfaEeCallback()
510 tNFC_APP_INIT& app_init = action.param.app_init; in nfaEeCallback()
512 action.ee_handle, action.trigger, app_init.len_aid, app_init.len_data); in nfaEeCallback()
514 else if (action.trigger == NFC_EE_TRIG_RF_PROTOCOL) in nfaEeCallback()
515 …"%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=rf protocol (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
516 else if (action.trigger == NFC_EE_TRIG_RF_TECHNOLOGY) in nfaEeCallback()
517 …GD ("%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=rf tech (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
[all …]

12345678910>>...22