Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java354 final Uri messageUri, final int action) { in createActionIntent() argument
357 updateActionIntent(account, messageUri, action, intent); in createActionIntent()
363 static Intent updateActionIntent(Account account, Uri messageUri, int action, Intent intent) { in updateActionIntent() argument
365 intent.putExtra(EXTRA_ACTION, action); in updateActionIntent()
400 private static void launch(Context launcher, Account account, Message message, int action, in launch() argument
405 intent.putExtra(EXTRA_ACTION, action); in launch()
407 if (action == EDIT_DRAFT) { in launch()
448 int action; in finishCreate() local
452 action = savedState.getInt(EXTRA_ACTION, COMPOSE); in finishCreate()
463 action = intent.getIntExtra(EXTRA_ACTION, COMPOSE); in finishCreate()
[all …]
/packages/apps/Browser/src/com/android/browser/
DIntentHandler.java79 final String action = intent.getAction(); in onNewIntent() local
81 if (Intent.ACTION_MAIN.equals(action) || in onNewIntent()
86 if (BrowserActivity.ACTION_SHOW_BOOKMARKS.equals(action)) { in onNewIntent()
94 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
95 || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action) in onNewIntent()
96 || Intent.ACTION_SEARCH.equals(action) in onNewIntent()
97 || MediaStore.INTENT_ACTION_MEDIA_SEARCH.equals(action) in onNewIntent()
98 || Intent.ACTION_WEB_SEARCH.equals(action)) { in onNewIntent()
137 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
147 if (Intent.ACTION_VIEW.equals(action) in onNewIntent()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactListFragment.java100 final Action action = mActions.get(position); in configureAdapter()
101 String mimeType = action.getMimeType(); in configureAdapter()
124 actionsContainer.setTag(action); in configureAdapter()
126 alternateActionButton.setTag(action); in configureAdapter()
128 final boolean hasAlternateAction = action.getAlternateIntent() != null; in configureAdapter()
130 alternateActionButton.setImageDrawable(action.getAlternateIcon()); in configureAdapter()
131 alternateActionButton.setContentDescription(action.getAlternateIconDescription()); in configureAdapter()
140 R.string.description_dial_phone_number, action.getBody())); in configureAdapter()
143 .getString(R.string.description_send_message, action.getBody())); in configureAdapter()
147 text1.setText(action.getBody()); in configureAdapter()
[all …]
DResolveCache.java123 protected Entry getEntry(Action action) { in getEntry() argument
124 final String mimeType = action.getMimeType(); in getEntry()
129 Intent intent = action.getIntent(); in getEntry()
201 public boolean hasResolve(Action action) { in hasResolve() argument
202 return getEntry(action).bestResolve != null; in hasResolve()
209 public CharSequence getDescription(Action action, String name) { in getDescription() argument
210 final ResolveInfo info = getEntry(action).bestResolve; in getDescription()
212 CharSequence actionDesc = action.getSubtitle(); in getDescription()
217 strs = new CharSequence[]{infoStr, action.getBody()}; in getDescription()
228 public Drawable getIcon(Action action) { in getIcon() argument
[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 (UI.LIST_DEFAULT.equals(action) ) { in resolveIntent()
64 } else if (UI.LIST_ALL_CONTACTS_ACTION.equals(action)) { in resolveIntent()
66 } else if (UI.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) { in resolveIntent()
68 } else if (UI.LIST_STARRED_ACTION.equals(action)) { in resolveIntent()
70 } else if (UI.LIST_FREQUENT_ACTION.equals(action)) { in resolveIntent()
72 } else if (UI.LIST_STREQUENT_ACTION.equals(action)) { in resolveIntent()
74 } else if (UI.LIST_GROUP_ACTION.equals(action)) { in resolveIntent()
77 } else if (Intent.ACTION_PICK.equals(action)) { in resolveIntent()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp324 tNFA_EE_ACTION& action = eventData->action; in nfaEeCallback() local
325 if (action.trigger == NFC_EE_TRIG_SELECT) in nfaEeCallback()
326 …OGD ("%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=select (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
327 else if (action.trigger == NFC_EE_TRIG_APP_INIT) in nfaEeCallback()
329 tNFC_APP_INIT& app_init = action.param.app_init; in nfaEeCallback()
331 action.ee_handle, action.trigger, app_init.len_aid, app_init.len_data); in nfaEeCallback()
344 else if (action.trigger == NFC_EE_TRIG_RF_PROTOCOL) in nfaEeCallback()
345 …"%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=rf protocol (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
346 else if (action.trigger == NFC_EE_TRIG_RF_TECHNOLOGY) in nfaEeCallback()
347 …GD ("%s: NFA_EE_ACTION_EVT; h=0x%X; trigger=rf tech (0x%X)", fn, action.ee_handle, action.trigger); in nfaEeCallback()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActionBar.java74 public int action; field in GalleryActionBar.ActionItem
81 public ActionItem(int action, boolean applied, boolean enabled, int title, in ActionItem() argument
83 this(action, applied, enabled, title, title, clusterBy); in ActionItem()
86 public ActionItem(int action, boolean applied, boolean enabled, int spinnerTitle, in ActionItem() argument
88 this.action = action; in ActionItem()
124 return sClusterItems[position].action; in getItemId()
181 if (item.action == type) { in getClusterByTypeString()
202 mActions.add(item.action); in createDialogData()
215 if (item.action == id) { in setClusterItemEnabled()
224 if (item.action == id) { in setClusterItemVisibility()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java220 private Intent getIntentBySingleSelectedPath(String action) { in getIntentBySingleSelectedPath() argument
224 return new Intent(action).setDataAndType(manager.getContentUri(path), mimeType); in getIntentBySingleSelectedPath()
227 private void onMenuClicked(int action, ProgressListener listener) { in onMenuClicked() argument
228 onMenuClicked(action, listener, false, true); in onMenuClicked()
231 public void onMenuClicked(int action, ProgressListener listener, in onMenuClicked() argument
234 switch (action) { in onMenuClicked()
277 startAction(action, title, listener, waitOnStop, showDialog); in onMenuClicked()
313 final int action = menuItem.getItemId(); in onMenuClicked() local
317 ConfirmDialogListener cdl = new ConfirmDialogListener(action, listener); in onMenuClicked()
325 onMenuClicked(action, listener); in onMenuClicked()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiver.java62 String action = intent.getAction(); in onReceive() local
65 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { in onReceive()
92 } else if (action.equals(BluetoothDevicePicker.ACTION_DEVICE_SELECTED)) { in onReceive()
113 } else if (action.equals(Constants.ACTION_INCOMING_FILE_CONFIRM)) { in onReceive()
128 } else if (action.equals(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION)) { in onReceive()
134 } else if (action.equals(Constants.ACTION_OPEN) || action.equals(Constants.ACTION_LIST)) { in onReceive()
136 if (action.equals(Constants.ACTION_OPEN)) { in onReceive()
170 } else if (action.equals(Constants.ACTION_OPEN_OUTBOUND_TRANSFER)) { in onReceive()
177 } else if (action.equals(Constants.ACTION_OPEN_INBOUND_TRANSFER)) { in onReceive()
184 } else if (action.equals(Constants.ACTION_OPEN_RECEIVED_FILES)) { in onReceive()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/
DNotificationActionIntentService.java70 private static void logNotificationAction(String intentAction, NotificationAction action) { in logNotificationAction() argument
76 eventLabel = action.getFolder().getTypeDescription(); in logNotificationAction()
91 final String action = intent.getAction(); in onHandleIntent() local
116 LogUtils.i(LOG_TAG, "Handling %s", action); in onHandleIntent()
118 logNotificationAction(action, notificationAction); in onHandleIntent()
120 if (ACTION_UNDO.equals(action)) { in onHandleIntent()
123 } else if (ACTION_ARCHIVE_REMOVE_LABEL.equals(action) || ACTION_DELETE.equals(action)) { in onHandleIntent()
129 if (ACTION_UNDO_TIMEOUT.equals(action) || ACTION_DESTRUCT.equals(action)) { in onHandleIntent()
133 } else if (ACTION_MARK_READ.equals(action)) { in onHandleIntent()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DOnePaneController.java257 public boolean doesActionChangeConversationListVisibility(final int action) { in doesActionChangeConversationListVisibility() argument
258 if (action == R.id.archive in doesActionChangeConversationListVisibility()
259 || action == R.id.remove_folder in doesActionChangeConversationListVisibility()
260 || action == R.id.delete in doesActionChangeConversationListVisibility()
261 || action == R.id.discard_drafts in doesActionChangeConversationListVisibility()
262 || action == R.id.mark_important in doesActionChangeConversationListVisibility()
263 || action == R.id.mark_not_important in doesActionChangeConversationListVisibility()
264 || action == R.id.mute in doesActionChangeConversationListVisibility()
265 || action == R.id.report_spam in doesActionChangeConversationListVisibility()
266 || action == R.id.mark_not_spam in doesActionChangeConversationListVisibility()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadReceiver.java64 String action = intent.getAction(); in onReceive() local
65 if (action.equals(Intent.ACTION_BOOT_COMPLETED)) { in onReceive()
71 } else if (action.equals(Intent.ACTION_MEDIA_MOUNTED)) { in onReceive()
77 } else if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { in onReceive()
84 } else if (action.equals(Constants.ACTION_RETRY)) { in onReceive()
86 } else if (action.equals(Constants.ACTION_OPEN) in onReceive()
87 || action.equals(Constants.ACTION_LIST) in onReceive()
88 || action.equals(Constants.ACTION_HIDE)) { in onReceive()
110 final String action = intent.getAction(); in handleNotificationBroadcast() local
111 if (Constants.ACTION_LIST.equals(action)) { in handleNotificationBroadcast()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattDebugUtils.java80 String action = intent.getAction(); in handleDebugAction()
81 Log.d(TAG, "handleDebugAction() action=" + action); in handleDebugAction()
87 if (ACTION_DEBUG_DUMP_CLIENTMAP.equals(action)) { in handleDebugAction()
90 } else if (ACTION_DEBUG_DUMP_SERVERMAP.equals(action)) { in handleDebugAction()
93 } else if (ACTION_DEBUG_DUMP_HANDLEMAP.equals(action)) { in handleDebugAction()
100 } else if (ACTION_GATT_TEST_USAGE.equals(action)) { in handleDebugAction()
103 } else if (ACTION_GATT_TEST_ENABLE.equals(action)) { in handleDebugAction()
107 } else if (ACTION_GATT_TEST_CONNECT.equals(action)) { in handleDebugAction()
112 } else if (ACTION_GATT_TEST_DISCONNECT.equals(action)) { in handleDebugAction()
115 } else if (ACTION_GATT_TEST_DISCOVER.equals(action)) { in handleDebugAction()
[all …]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DVoiceDialerReceiver.java35 String action = intent.getAction(); in onReceive() local
39 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) { in onReceive()
44 else if (Intent.ACTION_PACKAGE_ADDED.equals(action) || in onReceive()
45 Intent.ACTION_PACKAGE_CHANGED.equals(action) || in onReceive()
46 Intent.ACTION_PACKAGE_REMOVED.equals(action) || in onReceive()
47 Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(action) || in onReceive()
48 Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action)) { in onReceive()
53 else if (TelephonyIntents.SECRET_CODE_ACTION.equals(action) && "8351".equals(host)) { in onReceive()
59 else if (TelephonyIntents.SECRET_CODE_ACTION.equals(action) && "8350".equals(host)) { in onReceive()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java76 String action = intent.getAction(); in onReceive() local
78 Log.i(TAG, "onReceive: " + action); in onReceive()
82 if (ACTION_ON_QUARTER_HOUR.equals(action) in onReceive()
83 || Intent.ACTION_DATE_CHANGED.equals(action) in onReceive()
84 || Intent.ACTION_TIMEZONE_CHANGED.equals(action) in onReceive()
85 || Intent.ACTION_TIME_CHANGED.equals(action) in onReceive()
86 || Intent.ACTION_LOCALE_CHANGED.equals(action)) { in onReceive()
103 if(!ACTION_ON_QUARTER_HOUR.equals(action)) { in onReceive()
107 } else if (AlarmNotifications.SYSTEM_ALARM_CHANGE_ACTION.equals(action) in onReceive()
108 || Intent.ACTION_SCREEN_ON.equals(action)) { in onReceive()
[all …]
/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java54 String action = intent.getAction(); in onReceiveWithPrivilege() local
56 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) { in onReceiveWithPrivilege()
62 } else if (Intent.ACTION_AIRPLANE_MODE_CHANGED.equals(action)) { in onReceiveWithPrivilege()
68 } else if (Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION.equals(action) || in onReceiveWithPrivilege()
69 Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION.equals(action)) { in onReceiveWithPrivilege()
78 loge("ignoring unprivileged action received " + action); in onReceiveWithPrivilege()
81 .equals(action)) { in onReceiveWithPrivilege()
91 loge("ignoring unprivileged action received " + action); in onReceiveWithPrivilege()
93 } else if (GET_LATEST_CB_AREA_INFO_ACTION.equals(action)) { in onReceiveWithPrivilege()
107 Log.w(TAG, "onReceive() unexpected action " + action); in onReceiveWithPrivilege()
/packages/apps/Tag/src/com/android/apps/tag/record/
DSmartPoster.java104 @Nullable ImageRecord image, RecommendedAction action, in SmartPoster() argument
109 mAction = Preconditions.checkNotNull(action); in SmartPoster()
141 RecommendedAction action = parseRecommendedAction(recordsRaw); in parse() local
144 return new SmartPoster(uri, title, image, action, type); in parse()
208 for (RecommendedAction action : RecommendedAction.values()) {
209 builder.put(action.getByte(), action); in action.getByte()
240 byte action = record.getPayload()[0]; in parseRecommendedAction()
241 if (RecommendedAction.LOOKUP.containsKey(action)) { in parseRecommendedAction()
242 return RecommendedAction.LOOKUP.get(action); in parseRecommendedAction()
/packages/apps/Camera/src/com/android/camera/
DSoundClips.java39 public void play(int action); in play() argument
75 public synchronized void play(int action) { in play() argument
76 switch(action) { in play()
87 Log.w(TAG, "Unrecognized action:" + action); in play()
148 public synchronized void play(int action) { in play() argument
149 if (action < 0 || action >= mSoundRes.length) { in play()
150 Log.e(TAG, "Resource ID not found for action:" + action + " in play()."); in play()
154 int index = mSoundRes[action]; in play()
/packages/apps/Camera2/src/com/android/camera/
DSoundClips.java42 public void play(int action); in play() argument
85 public synchronized void play(int action) { in play() argument
86 switch(action) { in play()
100 Log.w(TAG, "Unrecognized action:" + action); in play()
159 public synchronized void play(int action) { in play() argument
160 if (action < 0 || action >= mSoundRes.length) { in play()
161 Log.e(TAG, "Resource ID not found for action:" + action + " in play()."); in play()
165 int index = mSoundRes[action]; in play()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java157 MediaAction action = audio.getCurrentAction(); in presentAudio() local
158 if (action == MediaAction.START) { in presentAudio()
160 } else if (action == MediaAction.PAUSE) { in presentAudio()
162 } else if (action == MediaAction.STOP) { in presentAudio()
164 } else if (action == MediaAction.SEEK) { in presentAudio()
237 MediaAction action = video.getCurrentAction(); in presentVideo() local
238 if (action == MediaAction.START) { in presentVideo()
240 } else if (action == MediaAction.PAUSE) { in presentVideo()
242 } else if (action == MediaAction.STOP) { in presentVideo()
244 } else if (action == MediaAction.SEEK) { in presentVideo()
/packages/apps/Camera2/src/com/android/camera/data/
DLocalMediaData.java146 public boolean isUIActionSupported(int action) { in isUIActionSupported() argument
151 public boolean isDataActionSupported(int action) { in isDataActionSupported() argument
410 public boolean isUIActionSupported(int action) { in isUIActionSupported() argument
411 return ((action & mSupportedUIActions) == action); in isUIActionSupported()
415 public boolean isDataActionSupported(int action) { in isDataActionSupported() argument
416 return ((action & mSupportedDataActions) == action); in isDataActionSupported()
696 public boolean isUIActionSupported(int action) { in isUIActionSupported() argument
697 return ((action & mSupportedUIActions) == action); in isUIActionSupported()
701 public boolean isDataActionSupported(int action) { in isDataActionSupported() argument
702 return ((action & mSupportedDataActions) == action); in isDataActionSupported()
/packages/apps/Launcher2/src/com/android/launcher2/
DFocusHelper.java91 final int action = e.getAction(); in handleAppsCustomizeTabKeyEvent() local
92 final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); in handleAppsCustomizeTabKeyEvent()
149 final int action = e.getAction(); in handlePagedViewGridLayoutWidgetKeyEvent() local
150 final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); in handlePagedViewGridLayoutWidgetKeyEvent()
308 final int action = e.getAction(); in handleAppsCustomizeKeyEvent() local
309 final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); in handleAppsCustomizeKeyEvent()
448 final int action = e.getAction(); in handleTabKeyEvent() local
449 final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); in handleTabKeyEvent()
505 final int action = e.getAction(); in handleHotseatButtonKeyEvent() local
506 final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); in handleHotseatButtonKeyEvent()
[all …]

12345678910>>...14