Searched refs:item (Results 1 - 25 of 607) sorted by relevance

1234567891011>>

/frameworks/support/compat/honeycomb/android/support/v4/view/
H A DMenuItemCompatHoneycomb.java26 public static void setShowAsAction(MenuItem item, int actionEnum) { argument
27 item.setShowAsAction(actionEnum);
30 public static MenuItem setActionView(MenuItem item, View view) { argument
31 return item.setActionView(view);
34 public static MenuItem setActionView(MenuItem item, int resId) { argument
35 return item.setActionView(resId);
38 public static View getActionView(MenuItem item) { argument
39 return item.getActionView();
/frameworks/support/compat/ics/android/support/v4/view/
H A DMenuItemCompatIcs.java23 public static boolean expandActionView(MenuItem item) { argument
24 return item.expandActionView();
27 public static boolean collapseActionView(MenuItem item) { argument
28 return item.collapseActionView();
31 public static boolean isActionViewExpanded(MenuItem item) { argument
32 return item.isActionViewExpanded();
35 public static MenuItem setOnActionExpandListener(MenuItem item, argument
37 return item.setOnActionExpandListener(new OnActionExpandListenerWrapper(listener));
46 boolean onMenuItemActionExpand(MenuItem item); argument
47 boolean onMenuItemActionCollapse(MenuItem item); argument
59 onMenuItemActionExpand(MenuItem item) argument
64 onMenuItemActionCollapse(MenuItem item) argument
[all...]
/frameworks/support/compat/java/android/support/v4/view/
H A DMenuItemCompat.java36 * Never show this item as a button in an Action Bar.
41 * Show this item as a button in an Action Bar if the system
47 * Always show this item as a button in an Action Bar. Use sparingly!
56 * When this item is in the action bar, always show it with a
62 * This item's action view collapses to a normal menu item.
72 void setShowAsAction(MenuItem item, int actionEnum); argument
73 MenuItem setActionView(MenuItem item, View view); argument
74 MenuItem setActionView(MenuItem item, int resId); argument
75 View getActionView(MenuItem item); argument
76 expandActionView(MenuItem item) argument
77 collapseActionView(MenuItem item) argument
78 isActionViewExpanded(MenuItem item) argument
79 setOnActionExpandListener(MenuItem item, OnActionExpandListener listener) argument
99 onMenuItemActionExpand(MenuItem item) argument
108 onMenuItemActionCollapse(MenuItem item) argument
116 setShowAsAction(MenuItem item, int actionEnum) argument
120 setActionView(MenuItem item, View view) argument
125 setActionView(MenuItem item, int resId) argument
130 getActionView(MenuItem item) argument
135 expandActionView(MenuItem item) argument
140 collapseActionView(MenuItem item) argument
145 isActionViewExpanded(MenuItem item) argument
150 setOnActionExpandListener(MenuItem item, OnActionExpandListener listener) argument
160 setShowAsAction(MenuItem item, int actionEnum) argument
165 setActionView(MenuItem item, View view) argument
170 setActionView(MenuItem item, int resId) argument
175 getActionView(MenuItem item) argument
180 expandActionView(MenuItem item) argument
185 collapseActionView(MenuItem item) argument
190 isActionViewExpanded(MenuItem item) argument
195 setOnActionExpandListener(MenuItem item, OnActionExpandListener listener) argument
202 expandActionView(MenuItem item) argument
207 collapseActionView(MenuItem item) argument
212 isActionViewExpanded(MenuItem item) argument
217 setOnActionExpandListener(MenuItem item, final OnActionExpandListener listener) argument
267 setShowAsAction(MenuItem item, int actionEnum) argument
286 setActionView(MenuItem item, View view) argument
308 setActionView(MenuItem item, int resId) argument
321 getActionView(MenuItem item) argument
343 setActionProvider(MenuItem item, ActionProvider provider) argument
360 getActionProvider(MenuItem item) argument
382 expandActionView(MenuItem item) argument
401 collapseActionView(MenuItem item) argument
417 isActionViewExpanded(MenuItem item) argument
433 setOnActionExpandListener(MenuItem item, OnActionExpandListener listener) argument
[all...]
H A DMenuCompat.java33 public static void setShowAsAction(MenuItem item, int actionEnum) { argument
34 MenuItemCompat.setShowAsAction(item, actionEnum);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DItemTest.java41 Item item = new Item();
42 item.setTitle("TestTitle");
43 item.setSummary("TestSummary");
46 item.setIcon(icon);
53 item.onBindView(view);
65 Item item = new Item();
66 item.setTitle("TestTitle");
69 item.onBindView(view);
78 Item item = new Item();
79 item
[all...]
H A DButtonBarItemTest.java44 ButtonBarItem item = new ButtonBarItem();
45 item.setId(888);
50 item.addChild(mChild1);
51 item.addChild(mChild2);
52 item.addChild(mChild3);
54 assertEquals("Finding 123 should return child1", mChild1, item.findItemById(123));
55 assertEquals("Finding 456 should return child2", mChild2, item.findItemById(456));
56 assertEquals("Finding 789 should return child3", mChild3, item.findItemById(789));
58 assertEquals("Finding 888 should return ButtonBarItem itself", item,
59 item
[all...]
H A DButtonItemTest.java41 ButtonItem item = new ButtonItem();
43 assertTrue("ButtonItem should be enabled by default", item.isEnabled());
44 assertEquals("ButtonItem should return count = 0", 0, item.getCount());
45 assertEquals("ButtonItem should return layout resource = 0", 0, item.getLayoutResource());
47 item.getTheme());
48 assertNull("Default text should be null", item.getText());
52 ButtonItem item = new ButtonItem();
55 item.onBindView(new View(getContext()));
63 TestButtonItem item = new TestButtonItem();
64 final Button button = item
136 onClick(ButtonItem item) argument
[all...]
/frameworks/av/media/libstagefright/filters/
H A DGraphicBufferListener.cpp65 void GraphicBufferListener::onFrameAvailable(const BufferItem& /* item */) {
89 BufferItem item; local
95 return item;
100 status_t err = mConsumer->acquireBuffer(&item, 0);
104 item.mSlot = -1;
105 return item;
108 item.mSlot = -1;
109 return item;
113 err = item.mFence->waitForever("GraphicBufferListener::getBufferItem");
121 if (item
129 getBuffer(BufferItem item) argument
142 releaseBuffer(BufferItem item) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DMenus.java31 MenuItem item = menu.getItem(i);
32 if (item.isVisible()) {
35 if (contains(exclusions, item)) {
38 item.setEnabled(false);
42 private static boolean contains(MenuItem[] exclusions, MenuItem item) { argument
44 if (exclusions[x] == item) {
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
H A DSwitchItemTest.java37 SwitchItem item = new SwitchItem();
38 item.setTitle("TestTitle");
39 item.setSummary("TestSummary");
42 item.setChecked(true);
44 item.onBindView(view);
51 SwitchItem item = new SwitchItem();
52 item.setTitle("TestTitle");
53 item.setSummary("TestSummary");
56 item.setChecked(false);
58 item
197 onCheckedChange(SwitchItem item, boolean isChecked) argument
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DSessionManager.java33 * Actual playback of a single media item is abstracted into a Player interface,
88 // If player supports queuing, get status of each item. Player is
92 PlaylistItem item = mPlaylist.get(i);
93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */);
96 // Otherwise, only need to get status for current item. Player is
114 // append new item with initial status PLAYBACK_STATE_PENDING
115 PlaylistItem item = new PlaylistItem(Integer.toString(mSessionId),
117 mPlaylist.add(item);
120 // if player supports queuing, enqueue the item now
122 mPlayer.enqueue(item);
427 onItemChanged(PlaylistItem item) argument
[all...]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DSessionManager.java33 * Actual playback of a single media item is abstracted into a Player interface,
88 // If player supports queuing, get status of each item. Player is
92 PlaylistItem item = mPlaylist.get(i);
93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */);
96 // Otherwise, only need to get status for current item. Player is
114 // append new item with initial status PLAYBACK_STATE_PENDING
115 PlaylistItem item = new PlaylistItem(Integer.toString(mSessionId),
117 mPlaylist.add(item);
120 // if player supports queuing, enqueue the item now
122 mPlayer.enqueue(item);
427 onItemChanged(PlaylistItem item) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp89 Item *item = &mItems[i]; local
90 delete[] item->mName;
91 item->mName = NULL;
92 freeItemValue(item);
97 void AMessage::freeItemValue(Item *item) { argument
98 switch (item->mType) {
101 delete item->u.stringValue;
109 if (item->u.refValue != NULL) {
110 item->u.refValue->decStrong(this);
179 // assumes item'
189 Item *item; local
208 const Item *item = &mItems[i]; local
218 const Item *item = &mItems[i]; local
275 Item *item = allocateItem(name); local
287 Item *item = allocateItem(name); local
303 Item *item = allocateItem(name); local
313 Item *item = allocateItem(name); local
323 const Item *item = findItem(name, kTypeString); local
332 const Item *item = findItem(name, kTypeObject); local
341 const Item *item = findItem(name, kTypeBuffer); local
350 const Item *item = findItem(name, kTypeMessage); local
361 const Item *item = findItem(name, kTypeRect); local
539 const Item &item = mItems[i]; local
637 Item *item = &msg->mItems[i]; local
734 const Item &item = mItems[i]; local
805 const Item &item = mItems[i]; local
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPresenterSelector.java22 * Returns a presenter for the given item.
24 public abstract Presenter getPresenter(Object item); argument
H A DArrayObjectAdapter.java60 * Returns the index for the first occurrence of item in the adapter, or -1 if
63 * @param item The item to find in the list.
64 * @return Index of the first occurrence of the item in the adapter, or -1
67 public int indexOf(Object item) { argument
68 return mItems.indexOf(item);
75 * @param positionStart The position of first item that has changed.
83 * Adds an item to the end of the adapter.
85 * @param item The item t
87 add(Object item) argument
98 add(int index, Object item) argument
125 remove(Object item) argument
141 replace(int position, Object item) argument
[all...]
/frameworks/av/services/camera/libcameraservice/gui/
H A DRingBufferConsumer.cpp79 const RingBufferItem& item = *it; local
81 cur.mCrop = item.mCrop;
82 cur.mTransform = item.mTransform;
83 cur.mScalingMode = item.mScalingMode;
84 cur.mTimestamp = item.mTimestamp;
85 cur.mFrameNumber = item.mFrameNumber;
86 cur.mPinned = item.mPinCount > 0;
142 // Fine. Empty buffer item list.
164 void RingBufferConsumer::pinBufferLocked(const BufferItem& item) { argument
172 if (item
224 RingBufferItem& item = *accIt; local
269 onFrameAvailable(const BufferItem& item) argument
291 RingBufferItem& item = *mBufferItemList.insert(mBufferItemList.end(), local
325 unpinBuffer(const BufferItem& item) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackHandler.java41 private void stop(PlaybackQueueItem item) { argument
42 if (item == null) {
46 item.stop(TextToSpeech.STOPPED);
49 public void enqueue(PlaybackQueueItem item) { argument
51 mQueue.put(item);
76 * @return false iff the queue is empty and no queue item is currently
106 final PlaybackQueueItem item = it.next();
107 if (item.getCallerIdentity() == callerIdentity) {
121 PlaybackQueueItem item = null;
123 item
[all...]
/frameworks/native/libs/gui/
H A DBufferItemConsumer.cpp60 status_t BufferItemConsumer::acquireBuffer(BufferItem *item, argument
64 if (!item) return BAD_VALUE;
68 err = acquireBufferLocked(item, presentWhen);
77 err = item->mFence->waitForever("BufferItemConsumer::acquireBuffer");
85 item->mGraphicBuffer = mSlots[item->mSlot].mGraphicBuffer;
90 status_t BufferItemConsumer::releaseBuffer(const BufferItem &item, argument
96 err = addReleaseFenceLocked(item.mSlot, item.mGraphicBuffer, releaseFence);
98 err = releaseBufferLocked(item
[all...]
/frameworks/base/core/java/android/widget/
H A DMenuItemHoverListener.java9 * An interface notified when a menu item is hovered. Useful for cases when hover should trigger
16 * Called when hover exits a menu item.
18 * If hover is moving to another item, this method will be called before
19 * {@link #onItemHoverEnter(MenuBuilder, MenuItem)} for the newly-hovered item.
21 * @param menu the item's parent menu
22 * @param item the hovered menu item
24 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); argument
27 * Called when hover enters a menu item.
29 * @param menu the item'
32 onItemHoverEnter(@onNull MenuBuilder menu, @NonNull MenuItem item) argument
[all...]
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsConfig.aidl35 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
38 int getProvisionedValue(int item);
44 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
47 String getProvisionedStringValue(int item);
51 * management entity. It sets the config item value in the provisioned storage
54 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
58 int setProvisionedValue(int item, int value);
62 * management entity. It sets the config item value in the provisioned storage
65 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
69 int setProvisionedStringValue(int item, Strin
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DSimpleItemAnimator.java42 * Sets whether this ItemAnimator supports animations of item change events.
153 * Called when an item is removed from the RecyclerView. Implementors can choose
171 * @param holder The item that is being removed.
178 * Called when an item is added to the RecyclerView. Implementors can choose
196 * @param holder The item that is being added.
203 * Called when an item is moved in the RecyclerView. Implementors can choose
216 * @param holder The item that is being moved.
224 * Called when an item is changed in the RecyclerView, as indicated by a call to
244 * @param oldHolder The original item that changed.
245 * @param newHolder The new item tha
263 dispatchRemoveFinished(ViewHolder item) argument
277 dispatchMoveFinished(ViewHolder item) argument
287 dispatchAddFinished(ViewHolder item) argument
302 dispatchChangeFinished(ViewHolder item, boolean oldItem) argument
312 dispatchRemoveStarting(ViewHolder item) argument
321 dispatchMoveStarting(ViewHolder item) argument
330 dispatchAddStarting(ViewHolder item) argument
343 dispatchChangeStarting(ViewHolder item, boolean oldItem) argument
356 onRemoveStarting(ViewHolder item) argument
367 onRemoveFinished(ViewHolder item) argument
379 onAddStarting(ViewHolder item) argument
390 onAddFinished(ViewHolder item) argument
402 onMoveStarting(ViewHolder item) argument
413 onMoveFinished(ViewHolder item) argument
427 onChangeStarting(ViewHolder item, boolean oldItem) argument
440 onChangeFinished(ViewHolder item, boolean oldItem) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DSubMenuBuilder.java34 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { argument
38 mItem = item;
80 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
81 return super.dispatchMenuItemSelected(menu, item) ||
82 mParentMenu.dispatchMenuItemSelected(menu, item);
116 public boolean expandItemActionView(MenuItemImpl item) { argument
117 return mParentMenu.expandItemActionView(item);
121 public boolean collapseItemActionView(MenuItemImpl item) { argument
122 return mParentMenu.collapseItemActionView(item);
/frameworks/av/services/camera/libcameraservice/common/
H A DFrameProcessorBase.cpp52 List<RangeListener>::iterator item = mRangeListeners.begin(); local
53 while (item != mRangeListeners.end()) {
54 if (item->minId == minId &&
55 item->maxId == maxId &&
56 item->listener == listener) {
62 item++;
75 List<RangeListener>::iterator item = mRangeListeners.begin(); local
76 while (item != mRangeListeners.end()) {
77 if (item->minId == minId &&
78 item
202 List<RangeListener>::iterator item = mRangeListeners.begin(); variable
221 List<sp<FilteredListener> >::iterator item = listeners.begin(); member in namespace:android::camera2
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java40 public boolean matches(Object item) {
41 if (item == null) return false;
42 return Objects.equal(((UserHandle) item).getIdentifier(), userId);
56 public boolean matches(Object item) {
57 if (item == null) return false;
58 return Objects.equal(((Intent) item).getComponent(), component);
72 public boolean matches(Object item) {
73 if (item == null) return false;
74 return Objects.equal(((Intent) item).getAction(), action);
89 public boolean matches(Object item) {
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
H A DMyActivity.java25 public boolean onOptionsItemSelected(MenuItem item) { argument
26 // Handle action bar item clicks here. The action bar will
29 int id = item.getItemId();
33 return super.onOptionsItemSelected(item);

Completed in 547 milliseconds

1234567891011>>