/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyButtonView.java | 153 public boolean performAccessibilityActionInternal(int action, Bundle arguments) { argument 154 if (action == ACTION_CLICK && mCode != 0) { 160 } else if (action == ACTION_LONG_CLICK && mCode != 0) { 166 return super.performAccessibilityActionInternal(action, arguments); 170 final int action = ev.getAction(); 172 if (action == MotionEvent.ACTION_DOWN) { 179 switch (action) { 236 public void sendEvent(int action, int flags) { argument 237 sendEvent(action, flags, SystemClock.uptimeMillis()); 240 void sendEvent(int action, in argument [all...] |
H A D | NextAlarmController.java | 61 final String action = intent.getAction(); 62 if (action.equals(Intent.ACTION_USER_SWITCHED) 63 || action.equals(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED)) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ExploreByTouchHelper.java | 165 * You should call this method after performing a user action that normally 504 private boolean performAction(int virtualViewId, int action, Bundle arguments) { argument 507 return performActionForHost(action, arguments); 509 return performActionForChild(virtualViewId, action, arguments); 513 private boolean performActionForHost(int action, Bundle arguments) { argument 514 return mView.performAccessibilityAction(action, arguments); 517 private boolean performActionForChild(int virtualViewId, int action, Bundle arguments) { argument 518 switch (action) { 521 return manageFocusForChild(virtualViewId, action); 523 return onPerformActionForVirtualView(virtualViewId, action, argument 527 manageFocusForChild(int virtualViewId, int action) argument 809 onPerformActionForVirtualView( int virtualViewId, int action, Bundle arguments) argument 823 performAction(int virtualViewId, int action, Bundle arguments) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | GuidedAction.java | 30 * A data class which represents an action within a {@link 34 * A GuidedAction typically represents a single action a user may take, but may also represent a 63 * When finishing editing, goes to next action. 67 * When finishing editing, stay on current action. 72 * Id of standard OK action. 77 * Id of standard Cancel action. 82 * Id of standard Finish action. 87 * Id of standard Finish action. 92 * Id of standard Yes action. 97 * Id of standard No action 160 applyValues(GuidedAction action) argument [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecLocalDevice.java | 147 * A callback interface to get notified when all pending action is cleared. 318 // Use copied action list in that processCommand may remove itself. 319 for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) { 321 boolean result = action.processCommand(message); 497 static void injectKeyEvent(long time, int action, int keycode, int repeat) { argument 498 KeyEvent keyEvent = KeyEvent.obtain(time, time, action, keycode, 650 void addAndStartAction(final HdmiCecFeatureAction action) { argument 652 mActions.add(action); 654 Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action); 705 removeAction(final HdmiCecFeatureAction action) argument [all...] |
H A D | HdmiCecFeatureAction.java | 36 * initiates the action, through the callback given at the creation of the object. All the actual 37 * action classes inherit FeatureAction. 40 * {@link HdmiCecLocalDevice}. Each action is passed a new command arriving from the bus, and either 41 * consumes it if the command is what the action expects, or yields it to other action. Declared as 53 // Internal state indicating the progress of action. 76 * Called after the action is created. Initialization or first step to take 77 * for the action can be done in this method. Shall update {@code mState} to 78 * indicate that the action has started. 93 * Called when the action shoul 178 addAndStartAction(HdmiCecFeatureAction action) argument 196 removeAction(HdmiCecFeatureAction action) argument 271 addOnFinishedCallback(HdmiCecFeatureAction action, Runnable runnable) argument [all...] |
/frameworks/support/v4/jellybean/android/support/v4/app/ |
H A D | NotificationCompatJellybean.java | 46 // Bundle keys for storing action fields in a bundle 130 public void addAction(NotificationCompatBase.Action action) { argument 131 mActionExtrasList.add(writeActionAndGetExtras(b, action)); 153 // Add the action extras sparse array if any action was added with extras. 205 /** Return an SparseArray for action extras or null if none was needed. */ 273 Notification.Builder builder, NotificationCompatBase.Action action) { 274 builder.addAction(action.getIcon(), action.getTitle(), action 272 writeActionAndGetExtras( Notification.Builder builder, NotificationCompatBase.Action action) argument 398 getBundleForAction(NotificationCompatBase.Action action) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 47 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, 50 action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), 57 action(other.action), flags(other.flags), 71 int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, 76 action(action), actionButton(actionButton), 89 action(other.action), actionButto 45 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) argument 69 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument [all...] |
/frameworks/support/v4/api24/android/support/v4/app/ |
H A D | NotificationCompatApi24.java | 113 public void addAction(NotificationCompatBase.Action action) { argument 115 action.getIcon(), action.getTitle(), action.getActionIntent()); 116 if (action.getRemoteInputs() != null) { 118 action.getRemoteInputs())) { 123 if (action.getExtras() != null) { 124 actionExtras = new Bundle(action.getExtras()); 129 action.getAllowGeneratedReplies()); 131 actionBuilder.setAllowGeneratedReplies(action [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AbsActionBarView.java | 97 final int action = MotionEventCompat.getActionMasked(ev); 98 if (action == MotionEvent.ACTION_DOWN) { 104 if (action == MotionEvent.ACTION_DOWN && !handled) { 109 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { 121 final int action = MotionEventCompat.getActionMasked(ev); 122 if (action == MotionEventCompat.ACTION_HOVER_ENTER) { 128 if (action == MotionEventCompat.ACTION_HOVER_ENTER && !handled) { 133 if (action == MotionEventCompat.ACTION_HOVER_EXIT 134 || action [all...] |
/frameworks/base/media/java/android/media/session/ |
H A D | PlaybackState.java | 573 long action = 1; 574 while (action <= actions && action < Integer.MAX_VALUE) { 575 if ((action & actions) != 0) { 576 rccFlags |= getRccFlagForAction(action); 578 action = action << 1; 609 private static int getRccFlagForAction(long action) { argument 612 int testAction = action < Integer.MAX_VALUE ? (int) action 665 CustomAction(String action, CharSequence name, int icon, Bundle extras) argument 771 Builder(String action, CharSequence name, @DrawableRes int icon) argument 994 addCustomAction(String action, String name, int icon) argument [all...] |
/frameworks/compile/mclinker/unittests/ |
H A D | InputTreeTest.cpp | 62 std::vector<InputAction*>::iterator action; local 63 for (action = actions.begin(); action != actions.end(); ++action) { 64 (*action)->activate(*m_pBuilder); 65 delete *action;
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | EphemeralResolverService.java | 80 final int action = message.what; 81 switch (action) { 96 throw new IllegalArgumentException("Unknown message: " + action);
|
/frameworks/av/drm/libdrmframework/include/ |
H A D | NoOpDrmManagerClientImpl.h | 33 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 43 int checkRightsStatus(int uniqueId, const String8& path, int action); 44 status_t consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve); 48 int uniqueId, const String8& path, int action, const ActionDescription& description);
|
/frameworks/av/drm/libdrmframework/plugins/passthru/include/ |
H A D | DrmPassthruPlugIn.h | 31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action); 54 int onCheckRightsStatus(int uniqueId, const String8& path, int action); 56 status_t onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve); 62 int uniqueId, const String8& path, int action, const ActionDescription& description);
|
/frameworks/av/include/drm/ |
H A D | DrmManagerClient.h | 110 * @param[in] action Action to perform. (Action::DEFAULT, Action::PLAY, etc) 116 status_t consumeRights(sp<DecryptHandle> &decryptHandle, int action, bool reserve); 122 * @param[in] playbackStatus Playback action (Playback::START, Playback::STOP, Playback::PAUSE) 188 * Validates whether an action on the DRM content is allowed or not. 191 * @param[in] action Action to validate. (Action::DEFAULT, Action::PLAY, etc) 192 * @param[in] description Detailed description of the action 193 * @return true if the action is allowed. 195 bool validateAction(const String8& path, int action, const ActionDescription& description); 216 * @param[in] action Actions defined such as, 223 DrmConstraints* getConstraints(const String8* path, const int action); [all...] |
/frameworks/base/core/java/android/transition/ |
H A D | Scene.java | 146 * Exiting a scene runs the {@link #setExitAction(Runnable) exit action} 162 * an {@link #setEnterAction(Runnable)} enter action}, or a 216 * action, and possibly an exit action as well. An enter action 224 * @param action The runnable whose {@link Runnable#run() run()} method will 230 public void setEnterAction(Runnable action) { argument 231 mEnterAction = action; 238 * action, and possibly an exit action a 251 setExitAction(Runnable action) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | LocalPreferences.java | 53 public static boolean getShowDeviceRoot(Context context, @ActionType int action) { argument 54 return getPrefs(context).getBoolean(INCLUDE_DEVICE_ROOT + action, false); 58 Context context, @ActionType int action, boolean display) { 59 getPrefs(context).edit().putBoolean(INCLUDE_DEVICE_ROOT + action, display).apply(); 57 setShowDeviceRoot( Context context, @ActionType int action, boolean display) argument
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlActionExecutor.cpp | 31 void XmlNodeAction::action(XmlNodeAction::ActionFunc f) { function in class:aapt::xml::XmlNodeAction 37 void XmlNodeAction::action(XmlNodeAction::ActionFuncWithDiag f) { function in class:aapt::xml::XmlNodeAction 54 for (const ActionFuncWithDiag& action : mActions) { 55 error |= !action(el, diag);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewPager.java | 124 final int action = ev.getAction() & MotionEventCompat.ACTION_MASK; 126 if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { 130 switch (action) {
|
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
H A D | BlasTest.java | 85 public void runOnUiThread(Runnable action) { argument 86 synchronized(action) { 87 mActivity.runOnUiThread(action); 89 action.wait(); 91 Log.v(TAG, "waiting for action running on UI thread is interrupted: " +
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | TabLayoutActions.java | 23 import android.support.test.espresso.action.CoordinatesProvider; 24 import android.support.test.espresso.action.GeneralClickAction; 25 import android.support.test.espresso.action.Press; 26 import android.support.test.espresso.action.Tap;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | PlaybackControlGlue.java | 56 * <p>Provide a click listener on your fragment and if an action is clicked, call 58 * but if you do a click listener will be installed on the fragment and recognized action clicks 437 * Handles action clicks. A subclass may override this add support for additional actions. 440 public void onActionClicked(Action action) { argument 441 dispatchAction(action, null); 467 Action action = mControlsRow.getActionForKeyCode(mPrimaryActionsAdapter, keyCode); 468 if (action != null) { 469 if (action == mPrimaryActionsAdapter.lookup(ACTION_PLAY_PAUSE) || 470 action == mPrimaryActionsAdapter.lookup(ACTION_REWIND) || 471 action 486 dispatchAction(Action action, KeyEvent keyEvent) argument [all...] |
H A D | PlaybackControlSupportGlue.java | 58 * <p>Provide a click listener on your fragment and if an action is clicked, call 60 * but if you do a click listener will be installed on the fragment and recognized action clicks 439 * Handles action clicks. A subclass may override this add support for additional actions. 442 public void onActionClicked(Action action) { argument 443 dispatchAction(action, null); 469 Action action = mControlsRow.getActionForKeyCode(mPrimaryActionsAdapter, keyCode); 470 if (action != null) { 471 if (action == mPrimaryActionsAdapter.lookup(ACTION_PLAY_PAUSE) || 472 action == mPrimaryActionsAdapter.lookup(ACTION_REWIND) || 473 action 488 dispatchAction(Action action, KeyEvent keyEvent) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 235 final int action = event.getActionMasked(); 248 final boolean streamComplete = action == MotionEvent.ACTION_UP || 249 action == MotionEvent.ACTION_CANCEL || anchoredScaleCancelled; 251 if (action == MotionEvent.ACTION_DOWN || streamComplete) { 280 final boolean configChanged = action == MotionEvent.ACTION_DOWN || 281 action == MotionEvent.ACTION_POINTER_UP || 282 action == MotionEvent.ACTION_POINTER_DOWN || anchoredScaleCancelled; 284 final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP; 365 if (action == MotionEvent.ACTION_MOVE) {
|