/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | DetailsPresenterSelectionActivity.java | 115 public void onGuidedActionClicked(GuidedAction action) { argument 116 if (action.getId() == ACTION_ID_SWITCH_LEGACY_ON) { 117 USE_LEGACY_PRESENTER = action.isChecked(); 118 } else if (action.getId() == ACTION_ID_SWITCH_LEGACY_OFF) { 119 USE_LEGACY_PRESENTER = !action.isChecked();
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | DetailsPresenterSelectionActivity.java | 115 public void onGuidedActionClicked(GuidedAction action) { argument 116 if (action.getId() == ACTION_ID_SWITCH_LEGACY_ON) { 117 USE_LEGACY_PRESENTER = action.isChecked(); 118 } else if (action.getId() == ACTION_ID_SWITCH_LEGACY_OFF) { 119 USE_LEGACY_PRESENTER = !action.isChecked();
|
/frameworks/base/core/java/android/text/method/ |
H A D | LinkMovementMethod.java | 51 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) { 62 if (action(UP, widget, buffer)) { 71 if (action(DOWN, widget, buffer)) { 80 if (action(UP, widget, buffer)) { 89 if (action(DOWN, widget, buffer)) { 96 private boolean action(int what, TextView widget, Spannable buffer) { method in class:LinkMovementMethod 196 int action = event.getAction(); 198 if (action == MotionEvent.ACTION_UP || 199 action == MotionEvent.ACTION_DOWN) { 216 if (action [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyButtonView.java | 163 public boolean performAccessibilityActionInternal(int action, Bundle arguments) { argument 164 if (action == ACTION_CLICK && mCode != 0) { 170 } else if (action == ACTION_LONG_CLICK && mCode != 0) { 176 return super.performAccessibilityActionInternal(action, arguments); 180 final int action = ev.getAction(); 182 if (action == MotionEvent.ACTION_DOWN) { 189 switch (action) { 247 public void sendEvent(int action, int flags) { argument 248 sendEvent(action, flags, SystemClock.uptimeMillis()); 251 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/compat/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/compat/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 | 95 final int action = MotionEventCompat.getActionMasked(ev); 96 if (action == MotionEvent.ACTION_DOWN) { 102 if (action == MotionEvent.ACTION_DOWN && !handled) { 107 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { 119 final int action = MotionEventCompat.getActionMasked(ev); 120 if (action == MotionEventCompat.ACTION_HOVER_ENTER) { 126 if (action == MotionEventCompat.ACTION_HOVER_ENTER && !handled) { 131 if (action == MotionEventCompat.ACTION_HOVER_EXIT 132 || 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/support/compat/java/android/support/v4/view/accessibility/ |
H A D | AccessibilityEventCompat.java | 36 public void setAction(AccessibilityEvent event, int action); argument 77 public void setAction(AccessibilityEvent event, int action) { argument 116 public void setAction(AccessibilityEvent event, int action) { argument 117 AccessibilityEventCompatJellyBean.setAction(event, action); 398 * Sets the performed action that triggered this event. 410 * @param action The action. 414 public void setAction(AccessibilityEvent event, int action) { argument 415 IMPL.setAction(event, action); 419 * Gets the performed action tha [all...] |
/frameworks/base/core/java/android/app/ |
H A D | EphemeralResolverService.java | 88 final int action = message.what; 89 switch (action) { 105 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/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) {
|
/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: " +
|