Home
last modified time | relevance | path

Searched refs:actions (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DMainActivity.java61 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
62 addAction(actions, BrowseActivity.class, R.string.browse, R.string.browse_description); in onCreateActions()
63 addAction(actions, BrowseSupportActivity.class, R.string.browse_support, in onCreateActions()
65 addAction(actions, SearchActivity.class, R.string.search, R.string.search_description); in onCreateActions()
66 …addAction(actions, SearchSupportActivity.class, R.string.search_support, R.string.search_support_d… in onCreateActions()
67 … addAction(actions, DetailsActivity.class, R.string.details, R.string.details_description); in onCreateActions()
68 actions.get(actions.size()-1).getIntent().putExtra(DetailsActivity.EXTRA_ITEM, in onCreateActions()
70 …addAction(actions, DetailsSupportActivity.class, R.string.details_support, R.string.details_suppor… in onCreateActions()
71 actions.get(actions.size()-1).getIntent().putExtra(DetailsSupportActivity.EXTRA_ITEM, in onCreateActions()
73 addAction(actions, SearchDetailsActivity.class, R.string.search_details, in onCreateActions()
[all …]
DGuidedStepSupportActivity.java99 private static void addAction(List<GuidedAction> actions, long id, String title, String desc) { in addAction() argument
100 actions.add(new GuidedAction.Builder() in addAction()
107 private static void addAction(List<GuidedAction> actions, long id, String title, String desc, in addAction() argument
109 actions.add(new GuidedAction.Builder() in addAction()
117 private static void addEditableAction(Context context, List<GuidedAction> actions, in addEditableAction() argument
119 actions.add(new GuidedAction.Builder(context) in addEditableAction()
128 private static void addEditableAction(List<GuidedAction> actions, long id, String title, in addEditableAction() argument
130 actions.add(new GuidedAction.Builder() in addEditableAction()
139 private static void addEditableAction(List<GuidedAction> actions, long id, String title, in addEditableAction() argument
141 actions.add(new GuidedAction.Builder() in addEditableAction()
[all …]
DGuidedStepActivity.java97 private static void addAction(List<GuidedAction> actions, long id, String title, String desc) { in addAction() argument
98 actions.add(new GuidedAction.Builder() in addAction()
105 private static void addAction(List<GuidedAction> actions, long id, String title, String desc, in addAction() argument
107 actions.add(new GuidedAction.Builder() in addAction()
115 private static void addEditableAction(Context context, List<GuidedAction> actions, in addEditableAction() argument
117 actions.add(new GuidedAction.Builder(context) in addEditableAction()
126 private static void addEditableAction(List<GuidedAction> actions, long id, String title, in addEditableAction() argument
128 actions.add(new GuidedAction.Builder() in addEditableAction()
137 private static void addEditableAction(List<GuidedAction> actions, long id, String title, in addEditableAction() argument
139 actions.add(new GuidedAction.Builder() in addEditableAction()
[all …]
DGuidedStepSupportHalfScreenActivity.java62 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
64 actions.add(new GuidedAction.Builder(context) in onCreateActions()
68 actions.add(new GuidedAction.Builder(context) in onCreateActions()
117 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
119 actions.add(new GuidedAction.Builder(context) in onCreateActions()
123 actions.add(new GuidedAction.Builder(context) in onCreateActions()
130 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions() argument
131 actions.add(new GuidedAction.Builder(getActivity()) in onCreateButtonActions()
DGuidedStepHalfScreenActivity.java60 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
62 actions.add(new GuidedAction.Builder(context) in onCreateActions()
66 actions.add(new GuidedAction.Builder(context) in onCreateActions()
115 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
117 actions.add(new GuidedAction.Builder(context) in onCreateActions()
121 actions.add(new GuidedAction.Builder(context) in onCreateActions()
128 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions() argument
129 actions.add(new GuidedAction.Builder(getActivity()) in onCreateButtonActions()
DDetailsPresenterSelectionActivity.java56 private static void addAction(List<GuidedAction> actions, long id, String title, String desc) { in addAction() argument
57 actions.add(new GuidedAction.Builder() in addAction()
64 private static void addCheckedAction(List<GuidedAction> actions, Context context, in addCheckedAction() argument
66 actions.add(new GuidedAction.Builder() in addCheckedAction()
97 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
109 addCheckedAction(actions, getActivity(), OPTION_IDS[i], OPTION_NAMES[i], in onCreateActions()
DDetailsFragment.java95 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
97 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
98 actions.clear(ACTION_RENT); in onCreate()
99 actions.clear(ACTION_BUY); in onCreate()
104 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
106 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
107 actions.clear(ACTION_RENT); in onCreate()
DDetailsSupportFragment.java97 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
99 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
100 actions.clear(ACTION_RENT); in onCreate()
101 actions.clear(ACTION_BUY); in onCreate()
106 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
108 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
109 actions.clear(ACTION_RENT); in onCreate()
DNewDetailsFragment.java108 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
110 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
111 actions.clear(ACTION_RENT); in onCreate()
112 actions.clear(ACTION_BUY); in onCreate()
117 SparseArrayObjectAdapter actions = (SparseArrayObjectAdapter) in onCreate()
119 actions.set(ACTION_PLAY, mActionPlay); in onCreate()
120 actions.clear(ACTION_RENT); in onCreate()
/frameworks/base/tools/preload2/src/com/android/preload/
DMain.java21 import com.android.preload.actions.ClearTableAction;
22 import com.android.preload.actions.ComputeThresholdAction;
23 import com.android.preload.actions.ComputeThresholdXAction;
24 import com.android.preload.actions.DeviceSpecific;
25 import com.android.preload.actions.ExportAction;
26 import com.android.preload.actions.ImportAction;
27 import com.android.preload.actions.ReloadListAction;
28 import com.android.preload.actions.RunMonkeyAction;
29 import com.android.preload.actions.ScanAllPackagesAction;
30 import com.android.preload.actions.ScanPackageAction;
[all …]
/frameworks/base/core/java/android/view/
DHandlerActionQueue.java55 final HandlerAction[] actions = mActions; in removeCallbacks() local
57 if (actions[i].matches(action)) { in removeCallbacks()
66 actions[j] = actions[i]; in removeCallbacks()
77 actions[j] = null; in removeCallbacks()
84 final HandlerAction[] actions = mActions; in executeActions() local
86 final HandlerAction handlerAction = actions[i]; in executeActions()
/frameworks/support/media-compat/kitkat/android/support/v4/media/session/
DMediaSessionCompatApi19.java33 public static void setTransportControlFlags(Object rccObj, long actions) { in setTransportControlFlags() argument
35 getRccTransportControlFlagsFromActions(actions)); in setTransportControlFlags()
42 public static void setMetadata(Object rccObj, Bundle metadata, long actions) { in setMetadata() argument
47 if ((actions & ACTION_SET_RATING) != 0) { in setMetadata()
58 static int getRccTransportControlFlagsFromActions(long actions) { in getRccTransportControlFlagsFromActions() argument
60 MediaSessionCompatApi18.getRccTransportControlFlagsFromActions(actions); in getRccTransportControlFlagsFromActions()
61 if ((actions & ACTION_SET_RATING) != 0) { in getRccTransportControlFlagsFromActions()
/frameworks/support/media-compat/ics/android/support/v4/media/session/
DMediaSessionCompatApi14.java81 public static void setTransportControlFlags(Object rccObj, long actions) { in setTransportControlFlags() argument
83 getRccTransportControlFlagsFromActions(actions)); in setTransportControlFlags()
132 static int getRccTransportControlFlagsFromActions(long actions) { in getRccTransportControlFlagsFromActions() argument
134 if ((actions & ACTION_STOP) != 0) { in getRccTransportControlFlagsFromActions()
137 if ((actions & ACTION_PAUSE) != 0) { in getRccTransportControlFlagsFromActions()
140 if ((actions & ACTION_PLAY) != 0) { in getRccTransportControlFlagsFromActions()
143 if ((actions & ACTION_REWIND) != 0) { in getRccTransportControlFlagsFromActions()
146 if ((actions & ACTION_SKIP_TO_PREVIOUS) != 0) { in getRccTransportControlFlagsFromActions()
149 if ((actions & ACTION_SKIP_TO_NEXT) != 0) { in getRccTransportControlFlagsFromActions()
152 if ((actions & ACTION_FAST_FORWARD) != 0) { in getRccTransportControlFlagsFromActions()
[all …]
/frameworks/base/docs/html/training/tv/playback/
Dguided-step.jd15 <li><a href="#actions">Create and Handle User Actions</a></li>
49 list of possible actions or decisions for this step.
60 the step and actions the user can take. Override
99 <h2 id="actions">Create and Handle User Actions</h2>
102 Add user actions by overriding
106 {@link android.support.v17.leanback.widget.GuidedAction.Builder} to add new actions.
111 public void onCreateActions(List&lt;GuidedAction&gt; actions, Bundle savedInstanceState) {
113 actions.add(new GuidedAction.Builder()
124 actions you can create:
132 provide additional information about user choices, use label actions.
[all …]
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/wizard/
DWizardNewPaymentStepFragment.java50 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
51 actions.add(new GuidedAction.Builder(getActivity()) in onCreateActions()
61 actions.add(new GuidedDatePickerAction.Builder(getActivity()) in onCreateActions()
70 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions() argument
72 actions.add(new GuidedAction.Builder(getActivity()) in onCreateButtonActions()
76 actions.get(actions.size() - 1).setEnabled(false); in onCreateButtonActions()
/frameworks/support/media-compat/jellybean-mr2/android/support/v4/media/session/
DMediaSessionCompatApi18.java87 public static void setTransportControlFlags(Object rccObj, long actions) { in setTransportControlFlags() argument
89 getRccTransportControlFlagsFromActions(actions)); in setTransportControlFlags()
98 static int getRccTransportControlFlagsFromActions(long actions) { in getRccTransportControlFlagsFromActions() argument
100 MediaSessionCompatApi14.getRccTransportControlFlagsFromActions(actions); in getRccTransportControlFlagsFromActions()
101 if ((actions & ACTION_SEEK_TO) != 0) { in getRccTransportControlFlagsFromActions()
/frameworks/support/compat/api20/android/support/v4/app/
DNotificationCompatApi20.java136 … return getActionCompatFromAction(notif.actions[actionIndex], actionFactory, remoteInputFactory); in getAction()
178 NotificationCompatBase.Action[] actions = actionFactory.newArray(parcelables.size()); in getActionsFromParcelableArrayList() local
179 for (int i = 0; i < actions.length; i++) { in getActionsFromParcelableArrayList()
181 actions[i] = getActionCompatFromAction(action, actionFactory, remoteInputFactory); in getActionsFromParcelableArrayList()
183 return actions; in getActionsFromParcelableArrayList()
192 NotificationCompatBase.Action[] actions) { in getParcelableArrayListForActions() argument
193 if (actions == null) { in getParcelableArrayListForActions()
196 ArrayList<Parcelable> parcelables = new ArrayList<Parcelable>(actions.length); in getParcelableArrayListForActions()
197 for (NotificationCompatBase.Action action : actions) { in getParcelableArrayListForActions()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DGuidedStepFragment.java327 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
336 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions() argument
699 public void setButtonActions(List<GuidedAction> actions) { in setButtonActions() argument
700 mButtonActions = actions; in setButtonActions()
784 public void setActions(List<GuidedAction> actions) { in setActions() argument
785 mActions = actions; in setActions()
982 ArrayList<GuidedAction> actions = new ArrayList<GuidedAction>(); in onCreate() local
983 onCreateActions(actions, savedInstanceState); in onCreate()
985 onRestoreActions(actions, savedInstanceState); in onCreate()
987 setActions(actions); in onCreate()
[all …]
DGuidedStepSupportFragment.java329 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions() argument
338 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions() argument
701 public void setButtonActions(List<GuidedAction> actions) { in setButtonActions() argument
702 mButtonActions = actions; in setButtonActions()
786 public void setActions(List<GuidedAction> actions) { in setActions() argument
787 mActions = actions; in setActions()
984 ArrayList<GuidedAction> actions = new ArrayList<GuidedAction>(); in onCreate() local
985 onCreateActions(actions, savedInstanceState); in onCreate()
987 onRestoreActions(actions, savedInstanceState); in onCreate()
989 setActions(actions); in onCreate()
[all …]
DMediaControllerGlue.java186 long actions = mMediaController.getPlaybackState().getActions(); in getSupportedActions() local
187 if ((actions & PlaybackStateCompat.ACTION_PLAY_PAUSE) != 0) { in getSupportedActions()
190 if ((actions & PlaybackStateCompat.ACTION_SKIP_TO_NEXT) != 0) { in getSupportedActions()
193 if ((actions & PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS) != 0) { in getSupportedActions()
196 if ((actions & PlaybackStateCompat.ACTION_FAST_FORWARD) != 0) { in getSupportedActions()
199 if ((actions & PlaybackStateCompat.ACTION_REWIND) != 0) { in getSupportedActions()
/frameworks/compile/mclinker/unittests/
DInputTreeTest.cpp55 std::vector<InputAction*> actions; in TEST_F() local
58 actions.push_back(new StartGroupAction(position++)); in TEST_F()
59 actions.push_back(new InputFileAction(position++, "path1")); in TEST_F()
60 actions.push_back(new EndGroupAction(position++)); in TEST_F()
63 for (action = actions.begin(); action != actions.end(); ++action) { in TEST_F()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DNotificationCompatImplBase.java57 boolean useChronometer, long when, int priority, List<T> actions, in overrideContentViewMedia() argument
61 number, largeIcon, subText, useChronometer, when, priority, actions, in overrideContentViewMedia()
74 boolean useChronometer, long when, int priority, List<T> actions, in generateContentViewMedia() argument
84 final int numActions = actions.size(); in generateContentViewMedia()
97 final NotificationCompatBase.Action action = actions.get(actionsToShowInCompact[i]); in generateContentViewMedia()
118 boolean useChronometer, long when, int priority, int color, List<T> actions, in overrideMediaBigContentView() argument
123 actions, showCancelButton, cancelButtonIntent, decoratedCustomView); in overrideMediaBigContentView()
132 boolean useChronometer, long when, int priority, int color, List<T> actions, in generateMediaBigView() argument
135 final int actionCount = Math.min(actions.size(), MAX_MEDIA_BUTTONS); in generateMediaBigView()
144 final RemoteViews button = generateMediaActionButton(context, actions.get(i)); in generateMediaBigView()
[all …]
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp824 std::vector<Action> actions; in TranslateArguments() local
826 actions.reserve(32); in TranslateArguments()
840 actions.push_back(std::move(action)); in TranslateArguments()
843 actions.push_back(std::move(action)); in TranslateArguments()
847 actions.push_back(std::move(action)); in TranslateArguments()
860 actions.push_back(std::move(action)); in TranslateArguments()
868 actions.push_back(std::move(action)); in TranslateArguments()
871 actions.push_back(std::move(action)); in TranslateArguments()
875 actions.push_back(std::move(action)); in TranslateArguments()
884 actions.push_back(std::move(action)); in TranslateArguments()
[all …]
/frameworks/base/docs/html/training/appbar/
Dactions.jd14 <li><a href="#add-actions">Add Action Buttons</a></li>
15 <li><a href="#handle-actions">Respond to Actions</a></li>
37 The app bar allows you to add buttons for user actions. This feature lets you
38 put the most important <em>actions</em> for the current context right at the
46 Space in the app bar is limited. If an app declares more actions than can
47 fit in the app bar, the app bar send the excess actions to an
62 <h2 id="add-actions">Add Action Buttons</h2>
68 add actions to the action bar, create a new XML file in your project's
102 actions are sent to the overflow menu. If you set
113 <h2 id="handle-actions">Respond to Actions</h2>
/frameworks/base/services/core/java/com/android/server/hdmi/
DHotplugDetectionAction.java239 List<DeviceSelectAction> actions = getActions(DeviceSelectAction.class); in mayCancelDeviceSelect() local
240 if (actions.isEmpty()) { in mayCancelDeviceSelect()
245 DeviceSelectAction action = actions.get(0); in mayCancelDeviceSelect()
252 List<OneTouchRecordAction> actions = getActions(OneTouchRecordAction.class); in mayCancelOneTouchRecord() local
253 for (OneTouchRecordAction action : actions) { in mayCancelOneTouchRecord()

12345678910>>...13