Searched refs:action (Results 101 - 125 of 424) sorted by relevance

1234567891011>>

/frameworks/support/v4/kitkat/android/support/v4/app/
H A DNotificationCompatKitKat.java96 public void addAction(NotificationCompatBase.Action action) { argument
97 mActionExtrasList.add(NotificationCompatJellybean.writeActionAndGetExtras(b, action));
109 // Add the action extras sparse array if any action was added with extras.
129 Notification.Action action = notif.actions[actionIndex];
137 action.icon, action.title, action.actionIntent, actionExtras);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DShareActionProvider.java39 * This is a provider for a share action. It is responsible for creating views
50 * Here is how to use the action provider with custom backing file in a {@link MenuItem}:
59 * // Set history different from the default before getting the action
96 * decide whether to perform some action before the sharing is
188 // Lookup and set the expand action icon.
256 * only the action views created by {@link #onCreateActionView()} after setting
261 * action view. You should <strong>not</strong> call
285 * Sets an intent with information about the share action. Here is a
305 final String action = shareIntent.getAction();
306 if (Intent.ACTION_SEND.equals(action) || Inten
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSmoothScroller.java106 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { argument
112 action.update(-dx, -dy, time, mDecelerateInterpolator);
120 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { argument
134 updateActionForInterimTarget(action);
224 protected void updateActionForInterimTarget(Action action) { argument
245 action.update((int) (mInterimTargetDx * TARGET_SEEK_EXTRA_SCROLL_RATIO)
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java42 * @param actionId The action id.
43 * @param label The action label.
49 private AccessibilityActionCompat(Object action) { argument
50 mAction = action;
54 * Gets the id for this action.
56 * @return The action id.
63 * Gets the label for this action. Its purpose is to describe the
64 * action to user.
204 public void addAction(Object info, int action); argument
205 public void addAction(Object info, Object action); argument
206 getAccessibilityActionId(Object action) argument
207 getAccessibilityActionLabel(Object action) argument
208 performAction(Object info, int action) argument
209 performAction(Object info, int action, Bundle arguments) argument
311 addAction(Object info, int action) argument
316 addAction(Object info, Object action) argument
321 getAccessibilityActionId(Object action) argument
326 getAccessibilityActionLabel(Object action) argument
461 performAction(Object info, int action) argument
466 performAction(Object info, int action, Bundle arguments) argument
754 addAction(Object info, int action) argument
874 performAction(Object info, int action) argument
1021 performAction(Object info, int action, Bundle arguments) argument
1164 addAction(Object info, Object action) argument
1169 getAccessibilityActionId(Object action) argument
1174 getAccessibilityActionLabel(Object action) argument
1804 addAction(int action) argument
1819 addAction(AccessibilityActionCompat action) argument
1835 performAction(int action) argument
1852 performAction(int action, Bundle arguments) argument
2606 getActionSymbolicName(int action) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerNotificationWarnings.java244 private PendingIntent pendingBroadcast(String action) { argument
246 0, new Intent(action), 0, UserHandle.CURRENT);
249 private static Intent settings(String action) { argument
250 return new Intent(action).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
385 final String action = intent.getAction();
386 Slog.i(TAG, "Received " + action);
387 if (action.equals(ACTION_SHOW_BATTERY_SETTINGS)) {
390 } else if (action.equals(ACTION_START_SAVER)) {
393 } else if (action.equals(ACTION_STOP_SAVER)) {
397 } else if (action
[all...]
H A DPowerUI.java153 String action = intent.getAction();
154 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) {
207 } else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
209 } else if (Intent.ACTION_SCREEN_ON.equals(action)) {
211 } else if (Intent.ACTION_USER_SWITCHED.equals(action)) {
213 } else if (PowerManager.ACTION_POWER_SAVE_MODE_CHANGED.equals(action)) {
215 } else if (PowerManager.ACTION_POWER_SAVE_MODE_CHANGING.equals(action)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBarPolicy.java82 String action = intent.getAction();
83 if (action.equals(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED)) {
86 else if (action.equals(Intent.ACTION_SYNC_STATE_CHANGED)) {
89 else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED) ||
90 action.equals(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED)) {
93 else if (action.equals(AudioManager.RINGER_MODE_CHANGED_ACTION) ||
94 action.equals(AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION)) {
97 else if (action.equals(TelephonyIntents.ACTION_SIM_STATE_CHANGED)) {
100 else if (action.equals(TelecomManager.ACTION_CURRENT_TTY_MODE_CHANGED)) {
103 else if (action
[all...]
/frameworks/base/core/java/android/view/
H A DKeyEvent.java68 * with the special action {@link #ACTION_MULTIPLE} that either specifies
1077 * for old applications, but still do the appropriate action when
1087 * event and should not perform the action normally associated with the
1089 * action for a key until it receives an up or the long press timeout has
1109 * press action was executed while it was down.
1258 * @param action Action code: either {@link #ACTION_DOWN},
1262 public KeyEvent(int action, int code) { argument
1263 mAction = action;
1276 * @param action Action code: either {@link #ACTION_DOWN},
1282 public KeyEvent(long downTime, long eventTime, int action, argument
1306 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState) argument
1333 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode) argument
1363 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument
1395 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument
1497 obtain(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source, String characters) argument
1609 KeyEvent(KeyEvent origEvent, int action) argument
1631 changeAction(KeyEvent event, int action) argument
2787 actionToString(int action) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java424 final int action = event.getAction();
431 logCoords(type, action, i, mTempCoords, id, event);
437 logCoords(type, action, i, mTempCoords, id, event);
441 private void logCoords(String type, int action, int index, argument
446 switch (action & MotionEvent.ACTION_MASK) {
463 if (index == ((action & MotionEvent.ACTION_POINTER_INDEX_MASK)
471 if (index == ((action & MotionEvent.ACTION_POINTER_INDEX_MASK)
491 prefix = Integer.toString(action);
527 final int action = event.getAction();
530 if (action
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiClientTest.java55 String action = intent.getAction();
56 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
73 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
76 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
79 } else if (action.equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DRangeTest.java156 private static <T, T2> void assertAction(String action, T object, T2 expected, argument
158 assertEquals("Expected " + object + " " + action + " to be ",
162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, argument
164 String expectedMessage = expected ? action : ("not " + action);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DIntentTile.java46 private IntentTile(Host host, String action) { argument
48 mContext.registerReceiver(mReceiver, new IntentFilter(action));
61 final String action = spec.substring(PREFIX.length(), spec.length() - 1);
62 if (action.isEmpty()) {
63 throw new IllegalArgumentException("Empty intent tile spec action");
65 return new IntentTile(host, action);
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java61 "com.android.server.NetworkTimeUpdateService.action.POLL";
235 String action = intent.getAction();
236 if (TelephonyIntents.ACTION_NETWORK_SET_TIME.equals(action)) {
238 } else if (TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE.equals(action)) {
249 String action = intent.getAction();
250 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(action)) {
/frameworks/native/include/input/
H A DInputTransport.h68 int32_t action; member in struct:android::InputMessage::Body::Key
86 int32_t action; member in struct:android::InputMessage::Body::Motion
104 uint32_t index = (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK)
213 int32_t action,
234 int32_t action,
/frameworks/support/v4/java/android/support/v4/media/session/
H A DPlaybackStateCompat.java422 private CustomAction(String action, CharSequence name, int icon, Bundle extras) { argument
423 mAction = action;
464 * Returns the action of the {@link CustomAction}.
466 * @return The action of the {@link CustomAction}.
473 * Returns the display name of this action. e.g. "Favorite"
494 * information about the action, or null if none. These arguments are
525 * @param action The action of the {@link CustomAction}.
527 * name will be displayed along side the action if the UI
532 * the custom action i
534 Builder(String action, CharSequence name, int icon) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DGlobalActions.java194 // If we only have 1 item and it's a simple press action, just do this action.
295 Log.e(TAG, "Invalid global action key " + actionKey);
318 final Action action = mAdapter.getItem(position);
319 if (action instanceof LongPressAction) {
320 return ((LongPressAction) action).onLongPress();
567 final Action action = mItems.get(i);
569 if (mKeyguardShowing && !action.showDuringKeyguard()) {
572 if (!mDeviceProvisioned && !action.showBeforeProvisioning()) {
594 final Action action
[all...]
/frameworks/base/core/java/android/widget/
H A DViewFlipper.java73 final String action = intent.getAction();
74 if (Intent.ACTION_SCREEN_OFF.equals(action)) {
77 } else if (Intent.ACTION_USER_PRESENT.equals(action)) {
/frameworks/base/core/java/com/android/internal/app/
H A DChooserActivity.java113 final String action = in.getAction();
114 if (Intent.ACTION_SEND.equals(action) ||
115 Intent.ACTION_SEND_MULTIPLE.equals(action)) {
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
H A DSampleTrustAgent.java39 * $ adb shell am broadcast -a action.sample_trust_agent.grant_trust\
48 private static final String ACTION_GRANT_TRUST = "action.sample_trust_agent.grant_trust";
49 private static final String ACTION_REVOKE_TRUST = "action.sample_trust_agent.revoke_trust";
142 String action = intent.getAction();
143 if (ACTION_GRANT_TRUST.equals(action)) {
151 } else if (ACTION_REVOKE_TRUST.equals(action)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DConsole.java156 /** Returns the stringified MotionEvent action */
157 public static String motionEventActionToString(int action) { argument
158 switch (action) {
172 return "" + action;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DClock.java122 String action = intent.getAction();
123 if (action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
129 } else if (action.equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
H A DDeadZone.java112 final int action = event.getAction();
113 if (action == MotionEvent.ACTION_OUTSIDE) {
115 } else if (action == MotionEvent.ACTION_DOWN) {
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DConnectivityController.java158 final String action = intent.getAction();
159 if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
184 Slog.d(TAG, "Unrecognised action in intent: " + action);
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java166 String action = intent.getAction();
167 String title = action;
172 if (Intent.ACTION_BATTERY_CHANGED.equals(action)) {
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DPlayerService.java124 public void sendRequest(String action, Bundle params, IRequestCallback cb) { argument
125 if (RequestUtils.ACTION_SET_CONTENT.equals(action)) {
127 } else if (RequestUtils.ACTION_SET_NEXT_CONTENT.equals(action)) {

Completed in 769 milliseconds

1234567891011>>