Searched refs:item (Results 26 - 50 of 364) sorted by relevance

1234567891011>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSparseArrayObjectAdapter.java45 * Returns the index for the given item in the adapter.
47 * @param item The item to find in the array.
48 * @return Index of the item, or a negative value if not found.
50 public int indexOf(Object item) { argument
51 return mItems.indexOfValue(item);
58 * @return Index of the item, or a negative value if not found.
68 * @param positionStart The position of first item that has changed.
76 * Sets the item for the given key.
78 * @param key The key associated with the item
81 set(int key, Object item) argument
[all...]
H A DCursorObjectAdapter.java144 Object item = mItemCache.get(index);
145 if (item != null) {
146 return item;
148 item = mMapper.convert(mCursor);
149 mItemCache.put(index, item);
150 return item;
172 * Removes an item from the cache. This will force the item to be re-read
/frameworks/support/design/src/android/support/design/internal/
H A DNavigationMenuPresenter.java74 * Padding to be inserted at the top of the list to avoid the first menu item
142 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { argument
147 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { argument
192 MenuItemImpl item = mAdapter.getItem(positionInAdapter).getMenuItem();
193 if (item != null && item.isCheckable()) {
194 mAdapter.setCheckedItem(item);
196 mMenu.performItemAction(item, this, 0);
202 public void setCheckedItem(MenuItemImpl item) { argument
203 mAdapter.setCheckedItem(item);
512 NavigationMenuItem(MenuItemImpl item, int paddingTop, int paddingBottom) argument
518 of(MenuItemImpl item) argument
[all...]
H A DNavigationMenu.java39 final MenuItemImpl item = (MenuItemImpl) addInternal(group, id, categoryOrder, title);
40 final SubMenuBuilder subMenu = new NavigationSubMenu(getContext(), this, item);
41 item.setSubMenu(subMenu);
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java65 MenuItem item;
67 if ((item = onAddMenuItem(menu, i)) == null) {
68 // Add a default item for this position if the subclasses
71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i));
74 if (item != null) {
75 mItems[i] = item;
78 item.setOnMenuItemClickListener(this);
96 * Override this to add an item to the menu.
98 * @param itemPosition The position of the item to add (only for your
100 * @return The item tha
119 onMenuItemClick(MenuItem item) argument
138 findItemPosition(MenuItem item) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenu.java64 ActionMenuItem item = new ActionMenuItem(getContext(),
66 mItems.add(order, item);
67 return item;
89 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm))
93 outSpecificItems[ri.specificIndex] = item;
168 ActionMenuItem item = items.get(i);
169 final char shortcut = qwerty ? item.getAlphabeticShortcut() :
170 item.getNumericShortcut();
172 return item;
192 ActionMenuItem item
[all...]
H A DMenuBuilder.java93 * Whether or not the items (or any one item's shown state) has changed since it was last
108 * Whether or not the items (or any one item's action state) has changed since it was
155 * Currently expanded menu item; must be collapsed when we clear.
164 * Called when a menu item is selected.
165 * @param menu The menu that is the parent of the item
166 * @param item The menu item that is selected
167 * @return whether the menu item selection was handled
169 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); argument
183 public boolean invokeItem(MenuItemImpl item); argument
554 setExclusiveItemChecked(MenuItem item) argument
760 dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) argument
893 performItemAction(MenuItem item, int flags) argument
897 performItemAction(MenuItem item, MenuPresenter preferredPresenter, int flags) argument
1007 onItemVisibleChanged(MenuItemImpl item) argument
1017 onItemActionRequestChanged(MenuItemImpl item) argument
1256 expandItemActionView(MenuItemImpl item) argument
1278 collapseItemActionView(MenuItemImpl item) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DPlaybackSynthesisCallback.java69 SynthesisPlaybackQueueItem item;
79 item = mItem;
83 if (item != null) {
85 // point it will write an additional buffer to the item - but we
88 item.stop(TextToSpeech.STOPPED);
146 SynthesisPlaybackQueueItem item = new SynthesisPlaybackQueueItem(
149 mAudioTrackHandler.enqueue(item);
150 mItem = item;
166 SynthesisPlaybackQueueItem item = null;
179 item
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuBuilder.java105 * Whether or not the items (or any one item's shown state) has changed since it was last
121 * Whether or not the items (or any one item's action state) has changed since it was last
174 * Currently expanded menu item; must be collapsed when we clear.
190 * Called when a menu item is selected.
192 * @param menu The menu that is the parent of the item
193 * @param item The menu item that is selected
194 * @return whether the menu item selection was handled
196 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); argument
211 public boolean invokeItem(MenuItemImpl item); argument
592 setExclusiveItemChecked(MenuItem item) argument
810 dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) argument
947 performItemAction(MenuItem item, int flags) argument
951 performItemAction(MenuItem item, MenuPresenter preferredPresenter, int flags) argument
1062 onItemVisibleChanged(MenuItemImpl item) argument
1073 onItemActionRequestChanged(MenuItemImpl item) argument
1313 expandItemActionView(MenuItemImpl item) argument
1335 collapseItemActionView(MenuItemImpl item) argument
[all...]
H A DSubMenuBuilder.java37 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { argument
41 mItem = item;
83 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
84 return super.dispatchMenuItemSelected(menu, item) ||
85 mParentMenu.dispatchMenuItemSelected(menu, item);
124 public boolean expandItemActionView(MenuItemImpl item) { argument
125 return mParentMenu.expandItemActionView(item);
129 public boolean collapseItemActionView(MenuItemImpl item) { argument
130 return mParentMenu.collapseItemActionView(item);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUserDetailView.java67 UserSwitcherController.UserRecord item = getItem(position);
73 String name = getName(mContext, item);
74 if (item.picture == null) {
75 v.bind(name, getDrawable(mContext, item));
77 v.bind(name, item.picture);
79 v.setActivated(item.isCurrent);
80 v.setTag(item);
H A DCastTile.java213 final Item item = new Item();
214 item.icon = R.drawable.ic_qs_cast_on;
215 item.line1 = getDeviceName(device);
216 item.line2 = mContext.getString(R.string.quick_settings_connected);
217 item.tag = device;
218 item.canDisconnect = true;
219 items = new Item[] { item };
233 final Item item = new Item();
234 item.icon = R.drawable.ic_qs_cast_off;
235 item
248 onDetailItemClick(Item item) argument
256 onDetailItemDisconnect(Item item) argument
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsConfig.java288 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
293 public int getProvisionedValue(int item) throws ImsException { argument
296 ret = miConfig.getProvisionedValue(item);
301 if (DBG) Rlog.d(TAG, "getProvisionedValue(): item = " + item + ", ret =" + ret);
311 * @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
316 public String getProvisionedStringValue(int item) throws ImsException { argument
319 ret = miConfig.getProvisionedStringValue(item);
324 if (DBG) Rlog.d(TAG, "getProvisionedStringValue(): item = " + item
341 setProvisionedValue(int item, int value) argument
373 setProvisionedStringValue(int item, String value) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.cpp52 BufferItem item; local
57 err = acquireBufferLocked(&item, computeExpectedPresent(dispSync),
75 int buf = item.mBuf;
76 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) {
82 err = updateAndReleaseLocked(item);
107 status_t SurfaceFlingerConsumer::acquireBufferLocked(BufferItem* item, argument
109 status_t result = GLConsumer::acquireBufferLocked(item, presentWhen,
112 mTransformToDisplayInverse = item->mTransformToDisplayInverse;
113 mSurfaceDamage = item->mSurfaceDamage;
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java118 Item item = new Item();
119 assertEquals(insert(item), 0);
123 item2.cmpField = item.cmpField + 1;
128 item3.cmpField = item.cmpField - 1;
137 Item item = new Item();
138 Item item2 = new Item(item.id, item.cmpField);
139 item2.data = item.data;
140 insert(item);
149 Item item
710 insert(Item item) argument
714 remove(Item item) argument
[all...]
/frameworks/av/media/libstagefright/filters/
H A DGraphicBufferListener.h34 virtual void onFrameAvailable(const BufferItem& item);
45 sp<GraphicBuffer> getBuffer(BufferItem item);
46 status_t releaseBuffer(BufferItem item);
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivity.java31 public boolean onOptionsItemSelected(MenuItem item) { argument
32 // Handle action bar item clicks here. The action bar will
35 int id = item.getItemId();
42 return super.onOptionsItemSelected(item);
/frameworks/data-binding/integration-tests/App With Spaces/app/src/main/java/android/databinding/appwithspaces/
H A DMainActivity.java48 public boolean onOptionsItemSelected(MenuItem item) { argument
49 // Handle action bar item clicks here. The action bar will
52 int id = item.getItemId();
59 return super.onOptionsItemSelected(item);
/frameworks/data-binding/integration-tests/MultiModuleTestApp/app/src/main/java/android/databinding/multimoduletestapp/
H A DMainActivity.java48 public boolean onOptionsItemSelected(MenuItem item) { argument
49 // Handle action bar item clicks here. The action bar will
52 int id = item.getItemId();
59 return super.onOptionsItemSelected(item);
/frameworks/data-binding/integration-tests/MultiModuleTestApp/testlibrary/src/main/java/android/databinding/testlibrary/
H A DTestLibraryMainActivity.java44 public boolean onOptionsItemSelected(MenuItem item) { argument
45 // Handle action bar item clicks here. The action bar will
48 int id = item.getItemId();
55 return super.onOptionsItemSelected(item);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DRenderState.java87 ScriptField_RenderState_s.Item item = new ScriptField_RenderState_s.Item();
88 item.pv = mVertex.getRSData().getAllocation();
89 item.pf = mFragment.getRSData().getAllocation();
90 item.ps = mStore;
91 item.pr = mRaster;
93 mField.set(item, 0, true);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DMyActivity.class ... android.view.MenuItem) android.view.MenuItem item
/frameworks/base/core/java/android/content/
H A DClipData.java44 * each of which can hold one or more representations of an item of data.
81 * since any clip item can always be converted to a string.
84 * "content:" URIs. A content URI allows the recipient of a ClippedData item
168 * Description of a single item in a ClippedData.
170 * <p>The types than an individual item can currently contain are:</p>
178 * to create when pasting a clipped item on to the home screen.
292 * Turn this item into text, regardless of the type of data it
310 * @return Returns the item's textual representation.
385 * @return Returns the item's textual representation.
411 * Turn this item int
638 ClipData(CharSequence label, String[] mimeTypes, Item item) argument
654 ClipData(ClipDescription description, Item item) argument
785 addItem(Item item) argument
[all...]
/frameworks/av/media/libstagefright/
H A DSurfaceMediaSource.cpp294 BufferItem item; local
299 status_t err = mConsumer->acquireBuffer(&item, 0);
304 err = item.mFence->waitForever("SurfaceMediaSource::read");
310 if (item.mGraphicBuffer != NULL) {
311 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer;
313 mSlots[item.mBuf].mFrameNumber = item.mFrameNumber;
317 mFirstFrameTimestamp = item.mTimestamp;
320 if (item
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DSortedList.java40 * Used by {@link #indexOf(Object)} when he item cannot be found in the list.
109 * Adds the given item to the list. If this is a new item, SortedList calls
112 * If the item already exists in the list and its sorting criteria is not changed, it is
114 * {@link Callback#areItemsTheSame(Object, Object)} to check if two items are the same item
117 * reference to the old item and puts the new item into the backing array even if
120 * If the sorting criteria of the item is changed, SortedList won't be able to find
122 * If you need to update sorting criteria of an item that already exists in the list,
123 * use {@link #updateItemAt(int, Object)}. You can find the index of the item usin
133 add(T item) argument
266 findSameItem(T item, T[] items, int from, int to) argument
391 add(T item, boolean notify) argument
423 remove(T item) argument
442 remove(T item, boolean notify) argument
480 updateItemAt(int index, T item) argument
577 indexOf(T item) argument
592 findIndexOf(T item, T[] mData, int left, int right, int reason) argument
617 linearEqualitySearch(T item, int middle, int left, int right) argument
642 addToData(int index, T item) argument
[all...]

Completed in 909 milliseconds

1234567891011>>