Home
last modified time | relevance | path

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

12345678910>>...36

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDocumentsActivity.java159 if (mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) { in onCreate()
167 if (mState.action == ACTION_CREATE) { in onCreate()
171 } else if (mState.action == ACTION_OPEN_TREE || in onCreate()
172 mState.action == ACTION_OPEN_COPY_DESTINATION) { in onCreate()
176 if (mState.action == ACTION_GET_CONTENT) { in onCreate()
181 } else if (mState.action == ACTION_OPEN || in onCreate()
182 mState.action == ACTION_CREATE || in onCreate()
183 mState.action == ACTION_OPEN_TREE || in onCreate()
184 mState.action == ACTION_OPEN_COPY_DESTINATION) { in onCreate()
192 if (mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) { in onCreate()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedAction.java62 GuidedAction action = new GuidedAction(); in build() local
64 action.setId(mId); in build()
65 action.setLabel1(mTitle); in build()
66 action.setLabel2(mDescription); in build()
67 action.setIcon(mIcon); in build()
70 action.mIntent = mIntent; in build()
71 action.mChecked = mChecked; in build()
72 action.mCheckSetId = mCheckSetId; in build()
73 action.mMultilineDescription = mMultilineDescription; in build()
74 action.mHasNext = mHasNext; in build()
[all …]
DActionPresenterSelector.java33 Action action = (Action) item; in getPresenter() local
34 if (TextUtils.isEmpty(action.getLabel2())) { in getPresenter()
68 Action action = (Action) item; in onBindViewHolder() local
70 vh.mAction = action; in onBindViewHolder()
71 vh.mButton.setText(action.getLabel1()); in onBindViewHolder()
90 Action action = (Action) item; in onBindViewHolder() local
92 Drawable icon = action.getIcon(); in onBindViewHolder()
93 vh.mAction = action; in onBindViewHolder()
112 CharSequence line1 = action.getLabel1(); in onBindViewHolder()
113 CharSequence line2 = action.getLabel2(); in onBindViewHolder()
DDetailsOverviewRow.java270 public final void addAction(Action action) { in addAction() argument
271 getArrayObjectAdapter().add(action); in addAction()
283 public final void addAction(int pos, Action action) { in addAction() argument
284 getArrayObjectAdapter().add(pos, action); in addAction()
295 public final boolean removeAction(Action action) { in removeAction() argument
296 return getArrayObjectAdapter().remove(action); in removeAction()
341 Action action = (Action) adapter.get(i); in getActionForKeyCode() local
342 if (action.respondsToKeyCode(keyCode)) { in getActionForKeyCode()
343 return action; in getActionForKeyCode()
/frameworks/support/v4/api20/android/support/v4/app/
DNotificationCompatApi20.java85 public void addAction(NotificationCompatBase.Action action) { in addAction() argument
86 NotificationCompatApi20.addAction(b, action); in addAction()
101 public static void addAction(Notification.Builder b, NotificationCompatBase.Action action) { in addAction() argument
103 action.getIcon(), action.getTitle(), action.getActionIntent()); in addAction()
104 if (action.getRemoteInputs() != null) { in addAction()
106 action.getRemoteInputs())) { in addAction()
110 if (action.getExtras() != null) { in addAction()
111 actionBuilder.addExtras(action.getExtras()); in addAction()
123 Notification.Action action, NotificationCompatBase.Action.Factory actionFactory, in getActionCompatFromAction() argument
126 action.getRemoteInputs(), remoteInputFactory); in getActionCompatFromAction()
[all …]
/frameworks/base/docs/html/design/patterns/
Dactionbar.jd3 …on bar is an essential design element for all apps. Learn about what the action bar can do and how…
23 <p>The <em>action bar</em> is a dedicated piece of real estate at the top of each screen that is ge…
28 <li>Reduces clutter by providing an action overflow for rarely used actions.</li>
31 <p>If you're new to writing Android apps, note that the action bar is one of the most important des…
34 <p>The action bar is split into four different functional areas that apply to most apps.</p>
66 If your app displays data in different views, this segment of the action bar allows users to switch
81 action bar are moved automatically to the action overflow. Long-press on an icon to view the action
88 Move less often used actions to the action overflow.
100 …You can adapt to such changes by using <em>split action bars</em>, which allow you to distribute a…
101 content across multiple bars located below the main action bar or at the bottom of the screen.</p>
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DGuidedActionAdapter.java54 public void onGuidedActionClicked(GuidedAction action); in onGuidedActionClicked() argument
65 public void onGuidedActionFocused(GuidedAction action); in onGuidedActionFocused() argument
96 public void setAction(GuidedAction action) { in setAction() argument
97 mAction = action; in setAction()
112 GuidedAction action = avh.getAction();
113 if (action.isEnabled() && !action.infoOnly()) {
114 mClickListener.onGuidedActionClicked(action);
230 GuidedAction action = mActions.get(position); in onBindViewHolder() local
231 avh.setAction(action); in onBindViewHolder()
232 mStylist.onBindViewHolder(avh.mStylistViewHolder, action); in onBindViewHolder()
[all …]
/frameworks/base/core/java/android/view/
DChoreographer.java330 public void postCallback(int callbackType, Runnable action, Object token) { in postCallback() argument
331 postCallbackDelayed(callbackType, action, token, 0); in postCallback()
349 Runnable action, Object token, long delayMillis) { in postCallbackDelayed() argument
350 if (action == null) { in postCallbackDelayed()
357 postCallbackDelayedInternal(callbackType, action, token, delayMillis); in postCallbackDelayed()
361 Object action, Object token, long delayMillis) { in postCallbackDelayedInternal() argument
364 + ", action=" + action + ", token=" + token in postCallbackDelayedInternal()
371 mCallbackQueues[callbackType].addCallbackLocked(dueTime, action, token); in postCallbackDelayedInternal()
376 Message msg = mHandler.obtainMessage(MSG_DO_SCHEDULE_CALLBACK, action); in postCallbackDelayedInternal()
397 public void removeCallbacks(int callbackType, Runnable action, Object token) { in removeCallbacks() argument
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java519 String action = intent.getAction(); in onReceive() local
521 if (ACTION_PASSWORD_CHANGED.equals(action)) { in onReceive()
523 } else if (ACTION_PASSWORD_FAILED.equals(action)) { in onReceive()
525 } else if (ACTION_PASSWORD_SUCCEEDED.equals(action)) { in onReceive()
527 } else if (ACTION_DEVICE_ADMIN_ENABLED.equals(action)) { in onReceive()
529 } else if (ACTION_DEVICE_ADMIN_DISABLE_REQUESTED.equals(action)) { in onReceive()
535 } else if (ACTION_DEVICE_ADMIN_DISABLED.equals(action)) { in onReceive()
537 } else if (ACTION_PASSWORD_EXPIRING.equals(action)) { in onReceive()
539 } else if (ACTION_PROFILE_PROVISIONING_COMPLETE.equals(action)) { in onReceive()
541 } else if (ACTION_CHOOSE_PRIVATE_KEY_ALIAS.equals(action)) { in onReceive()
[all …]
/frameworks/base/tools/aapt2/
DFlag.cpp16 std::function<bool(const StringPiece&, std::string*)> action; member
27 const std::function<void(const StringPiece&)>& action) { in wrap() argument
28 return [action](const StringPiece& arg, std::string*) -> bool { in wrap()
29 action(arg); in wrap()
35 std::function<void(const StringPiece&)> action) { in optionalFlag() argument
37 name.toString(), description.toString(), wrap(action), in optionalFlag()
42 std::function<void(const StringPiece&)> action) { in requiredFlag() argument
43 sFlags.push_back(Flag{ name.toString(), description.toString(), wrap(action), in requiredFlag()
48 std::function<bool(const StringPiece&, std::string*)> action) { in requiredFlag() argument
49 sFlags.push_back(Flag{ name.toString(), description.toString(), action, in requiredFlag()
[all …]
/frameworks/base/docs/html/guide/topics/ui/
Dactionbar.jd21 <li><a href="#Removing">Removing the action bar</a></li>
27 <li><a href="#ActionEvents">Handling clicks on action items</a></li>
28 <li><a href="#SplitBar">Using split action bar</a></li>
34 <li><a href="#ActionViewCollapsing">Handling collapsible action views</a></li>
40 <li><a href="#CreatingActionProvider">Creating a custom action provider</a></li>
65 <p>The action bar is a window feature that identifies the user location, and
66 provides user actions and navigation modes. Using the action bar offers your users a
71 <p class="img-caption"><strong>Figure 1.</strong> An action bar that includes the [1] app icon,
72 [2] two action items, and [3] action overflow.</p>
74 <p>The action bar provides several key functions:</p>
[all …]
/frameworks/support/v4/api21/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompatApi21.java34 static void addAction(Object info, Object action) { in addAction() argument
35 ((AccessibilityNodeInfo) info).addAction((AccessibilityAction) action); in addAction()
38 public static boolean removeAction(Object info, Object action) { in removeAction() argument
39 return ((AccessibilityNodeInfo) info).removeAction((AccessibilityAction) action); in removeAction()
92 static int getAccessibilityActionId(Object action) { in getAccessibilityActionId() argument
93 return ((AccessibilityNodeInfo.AccessibilityAction) action).getId(); in getAccessibilityActionId()
96 static CharSequence getAccessibilityActionLabel(Object action) { in getAccessibilityActionLabel() argument
97 return ((AccessibilityNodeInfo.AccessibilityAction) action).getLabel(); in getAccessibilityActionLabel()
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java61 public static void action(Context context, int category) { in action() method in MetricsLogger
62 action(context, category, ""); in action()
65 public static void action(Context context, int category, int value) { in action() method in MetricsLogger
66 action(context, category, Integer.toString(value)); in action()
69 public static void action(Context context, int category, boolean value) { in action() method in MetricsLogger
70 action(context, category, Boolean.toString(value)); in action()
73 public static void action(Context context, int category, String pkg) { in action() method in MetricsLogger
/frameworks/base/docs/html/guide/topics/manifest/
Daction-element.jd1 page.title=&lt;action&gt;
8 <dd><pre class="stx">&lt;action android:<a href="#nm">name</a>="<i>string</i>" /&gt;</pre></dd>
15 <dd itemprop="description">Adds an action to an intent filter.
17 one or more {@code &lt;action&gt;} elements. If it doesn't contain any, no
20 Intent Filters</a> for details on intent filters and the role of action
27 <dd>The name of the action. Some standard actions are defined in the
30 this attribute, prepend "{@code android.intent.action.}" to the
32 For example, for {@code ACTION_MAIN}, use "{@code android.intent.action.MAIN}"
33 and for {@code ACTION_WEB_SEARCH}, use "{@code android.intent.action.WEB_SEARCH}".
37 ensure uniqueness. For example, a {@code TRANSMOGRIFY} action might be specified
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java111 public boolean performAccessibilityActionInternal(int action, Bundle arguments) { in performAccessibilityActionInternal() argument
112 if (action == ACTION_CLICK && mCode != 0) { in performAccessibilityActionInternal()
118 } else if (action == ACTION_LONG_CLICK && mCode != 0) { in performAccessibilityActionInternal()
124 return super.performAccessibilityActionInternal(action, arguments); in performAccessibilityActionInternal()
128 final int action = ev.getAction(); in onTouchEvent() local
130 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
137 switch (action) { in onTouchEvent()
193 public void sendEvent(int action, int flags) { in sendEvent() argument
194 sendEvent(action, flags, SystemClock.uptimeMillis()); in sendEvent()
197 void sendEvent(int action, int flags, long when) { in sendEvent() argument
[all …]
DDateView.java46 final String action = intent.getAction();
47 if (Intent.ACTION_TIME_TICK.equals(action)
48 || Intent.ACTION_TIME_CHANGED.equals(action)
49 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)
50 || Intent.ACTION_LOCALE_CHANGED.equals(action)) {
51 if (Intent.ACTION_LOCALE_CHANGED.equals(action)
52 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)) {
/frameworks/base/docs/html/training/basics/actionbar/
Dadding-buttons.jd29 <p>The action bar allows you to add buttons for the most important action
31 context. Those that appear directly in the action bar with an icon and/or text are known
32 as <em>action buttons</em>. Actions that can't fit in the action bar or aren't
33 important enough are hidden in the action overflow.</p>
36 <p class="img-caption"><strong>Figure 1.</strong> An action bar with an action button
37 for Search and the action overflow, which reveals additional actions.</a>
42 <p>All action buttons and other items available in the action overflow are defined
45 actions to the action bar, create a new XML file in your project's
48 <p>Add an {@code &lt;item>} element for each item you want to include in the action bar.
54 &lt;!-- Search, should appear as action button -->
[all …]
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp248 for (auto& action : input_actions) { in InitializeInputs() local
249 assert(action != nullptr); in InitializeInputs()
250 action->activate(ir_builder.getInputBuilder()); in InitializeInputs()
811 Action action; in TranslateArguments() local
824 action.reset(new mcld::ScriptAction( in TranslateArguments()
826 actions.push_back(std::move(action)); in TranslateArguments()
828 action.reset(new mcld::ContextAction(0x0)); in TranslateArguments()
829 actions.push_back(std::move(action)); in TranslateArguments()
831 action.reset(new mcld::MemoryAreaAction(0x0, in TranslateArguments()
833 actions.push_back(std::move(action)); in TranslateArguments()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DExploreByTouchHelper.java446 private boolean performAction(int virtualViewId, int action, Bundle arguments) { in performAction() argument
449 return performActionForHost(action, arguments); in performAction()
451 return performActionForChild(virtualViewId, action, arguments); in performAction()
455 private boolean performActionForHost(int action, Bundle arguments) { in performActionForHost() argument
456 return ViewCompat.performAccessibilityAction(mView, action, arguments); in performActionForHost()
459 private boolean performActionForChild(int virtualViewId, int action, Bundle arguments) { in performActionForChild() argument
460 switch (action) { in performActionForChild()
463 return manageFocusForChild(virtualViewId, action, arguments); in performActionForChild()
465 return onPerformActionForVirtualView(virtualViewId, action, arguments); in performActionForChild()
469 private boolean manageFocusForChild(int virtualViewId, int action, Bundle arguments) { in manageFocusForChild() argument
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java458 private boolean performAction(int virtualViewId, int action, Bundle arguments) { in performAction() argument
461 return performActionForHost(action, arguments); in performAction()
463 return performActionForChild(virtualViewId, action, arguments); in performAction()
467 private boolean performActionForHost(int action, Bundle arguments) { in performActionForHost() argument
468 return performAccessibilityAction(mView, action, arguments); in performActionForHost()
471 private boolean performActionForChild(int virtualViewId, int action, Bundle arguments) { in performActionForChild() argument
472 switch (action) { in performActionForChild()
475 return manageFocusForChild(virtualViewId, action); in performActionForChild()
477 return onPerformActionForVirtualView(virtualViewId, action, arguments); in performActionForChild()
481 private boolean manageFocusForChild(int virtualViewId, int action) { in manageFocusForChild() argument
[all …]
/frameworks/support/v4/jellybean/android/support/v4/view/
DViewCompatJB.java45 public static void postOnAnimation(View view, Runnable action) { in postOnAnimation() argument
46 view.postOnAnimation(action); in postOnAnimation()
49 public static void postOnAnimationDelayed(View view, Runnable action, long delayMillis) { in postOnAnimationDelayed() argument
50 view.postOnAnimationDelayed(action, delayMillis); in postOnAnimationDelayed()
61 public static boolean performAccessibilityAction(View view, int action, Bundle arguments) { in performAccessibilityAction() argument
62 return view.performAccessibilityAction(action, arguments); in performAccessibilityAction()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevice.java319 for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) { in dispatchMessageToAction()
321 boolean result = action.processCommand(message); in dispatchMessageToAction()
497 static void injectKeyEvent(long time, int action, int keycode, int repeat) { in injectKeyEvent() argument
498 KeyEvent keyEvent = KeyEvent.obtain(time, time, action, keycode, in injectKeyEvent()
650 void addAndStartAction(final HdmiCecFeatureAction action) { in addAndStartAction() argument
652 mActions.add(action); in addAndStartAction()
654 Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action); in addAndStartAction()
657 action.start(); in addAndStartAction()
663 for (HdmiCecFeatureAction action : mActions) { in startQueuedActions()
664 if (!action.started()) { in startQueuedActions()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetProvider.java60 String action = intent.getAction(); in onReceive() local
61 if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { in onReceive()
69 } else if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) { in onReceive()
75 } else if (AppWidgetManager.ACTION_APPWIDGET_OPTIONS_CHANGED.equals(action)) { in onReceive()
84 } else if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) { in onReceive()
86 } else if (AppWidgetManager.ACTION_APPWIDGET_DISABLED.equals(action)) { in onReceive()
88 } else if (AppWidgetManager.ACTION_APPWIDGET_RESTORED.equals(action)) { in onReceive()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java510 long action = 1; in getRccControlFlagsFromActions() local
511 while (action <= actions && action < Integer.MAX_VALUE) { in getRccControlFlagsFromActions()
512 if ((action & actions) != 0) { in getRccControlFlagsFromActions()
513 rccFlags |= getRccFlagForAction(action); in getRccControlFlagsFromActions()
515 action = action << 1; in getRccControlFlagsFromActions()
546 private static int getRccFlagForAction(long action) { in getRccFlagForAction() argument
549 int testAction = action < Integer.MAX_VALUE ? (int) action : 0; in getRccFlagForAction()
602 private CustomAction(String action, CharSequence name, int icon, Bundle extras) {
603 mAction = action;
708 public Builder(String action, CharSequence name, @DrawableRes int icon) {
[all …]
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java51 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) { in handleMovementKey()
62 if (action(UP, widget, buffer)) { in up()
71 if (action(DOWN, widget, buffer)) { in down()
80 if (action(UP, widget, buffer)) { in left()
89 if (action(DOWN, widget, buffer)) { in right()
96 private boolean action(int what, TextView widget, Spannable buffer) { in action() method in LinkMovementMethod
196 int action = event.getAction(); in onTouchEvent() local
198 if (action == MotionEvent.ACTION_UP || in onTouchEvent()
199 action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
216 if (action == MotionEvent.ACTION_UP) { in onTouchEvent()
[all …]

12345678910>>...36