Searched refs:item (Results 76 - 100 of 176) sorted by relevance

12345678

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DMipmapDrawableTest.java116 // adding an item should check bounds to see if new drawable is more appropriate
118 Drawable item = new MockDrawable(42);
119 mMipmapDrawable.addDrawable(item);
127 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight() - 1));
128 assertSame(item, mMipmapDrawable.getCurrent());
130 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight()));
131 assertSame(item, mMipmapDrawable.getCurrent());
133 mMipmapDrawable.setBounds(new Rect(0, 0, 0, item.getIntrinsicHeight() + 1));
134 assertSame(item, mMipmapDrawable.getCurrent());
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUnitTest.java123 public void setItem(ScriptField_ListAllocs_s.Item item) { argument
124 mItem = item;
/frameworks/compile/libbcc/tools/build/
H A Dgen-sha1-stamp.py107 symbols = [get_symbol_name(item[0]) for item in x]
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java41 * of your objects to determine what text will be displayed for the item in the list.
341 * Returns the position of the specified item in the array.
343 * @param item The item to retrieve the position of.
345 * @return The position of the specified item.
347 public int getPosition(T item) { argument
348 return mObjects.indexOf(item);
390 T item = getItem(position);
391 if (item instanceof CharSequence) {
392 text.setText((CharSequence)item);
[all...]
/frameworks/native/include/utils/
H A DKeyedVector.h85 ssize_t add(const KEY& key, const VALUE& item);
86 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
87 ssize_t replaceValueAt(size_t index, const VALUE& item);
188 ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) {
190 mVector.editItemAt(index).value = item;
/frameworks/base/core/java/android/preference/
H A DPreferenceScreen.java138 * {@link #getRootAdapter()}. It also handles passing list item clicks to the corresponding
211 Object item = getRootAdapter().getItem(position);
212 if (!(item instanceof Preference)) return;
214 final Preference preference = (Preference) item;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentTasksLoader.java179 TaskDescription item = new TaskDescription(taskId,
182 item.setLabel(title);
184 return item;
186 if (DEBUG) Log.v(TAG, "SKIPPING item " + persistentTaskId);
371 TaskDescription item = null;
390 item = createTaskDescription(recentInfo.id,
393 if (item != null) {
394 loadThumbnailAndIcon(item);
396 return item;
472 TaskDescription item
[all...]
H A DRecentsHorizontalScrollView.java223 View item = mLinearLayout.getChildAt(i);
224 if (x >= item.getLeft() && x < item.getRight()
225 && y >= item.getTop() && y < item.getBottom()) {
226 return item;
322 // Keep track of the last visible item in the list so we can restore it
H A DRecentsVerticalScrollView.java102 // Once we can clear the data associated with individual item views,
231 View item = mLinearLayout.getChildAt(i);
232 if (item.getVisibility() == View.VISIBLE
233 && x >= item.getLeft() && x < item.getRight()
234 && y >= item.getTop() && y < item.getBottom()) {
235 return item;
331 // Keep track of the last visible item in the list so we can restore it
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pGroupList.java62 for (Map.Entry<Integer, WifiP2pGroup> item : source.mGroups.snapshot().entrySet()) {
63 mGroups.put(item.getKey(), item.getValue());
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCommandParams.java144 for (Item item : menu.items) {
145 if (item.icon != null) {
148 item.icon = icon;
H A DMenu.java64 Item item = in.readParcelable(null);
65 items.add(item);
/frameworks/base/core/java/android/accounts/
H A DAccountAuthenticatorCache.java81 public void writeAsXml(AuthenticatorDescription item, XmlSerializer out) argument
83 out.attribute(null, "type", item.type);
/frameworks/base/core/java/com/android/internal/view/
H A DStandaloneActionMode.java132 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
133 return mCallback.onActionItemClicked(this, item);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java105 AdapterItem item = mItems.get(position);
106 return getView(item, null /*parentGroup*/, convertView, parent);
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java254 * Basic idea: each entry in mItems represents an item in the list for quick access.
298 final Object item = mItems.get(i);
299 if (item != null && item == mCategoryEditingGroups) {
302 if (item == null) {
368 final Object item = getItem(position);
369 if (item instanceof RouteCategory) {
371 } else if (item == null) {
374 final RouteInfo info = (RouteInfo) item;
515 final Object item
[all...]
/frameworks/av/media/libstagefright/
H A DTimedEventQueue.cpp112 QueueItem item; local
113 item.event = event;
114 item.realtime_us = realtime_us;
120 mQueue.insert(it, item);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DListMenuPresenter.java61 * @param itemLayoutRes Layout resource for individual item views.
71 * @param itemLayoutRes Layout resource for individual item views.
174 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { argument
178 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { argument
248 // Since a menu item's ID is optional, we'll use the position as an
249 // ID for the item in the AdapterView
269 final MenuItemImpl item = items.get(i);
270 if (item == expandedItem) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java549 ResourceValue item = mRenderResources.findResValue(customStyle,
553 item = mRenderResources.resolveResValue(item);
555 if (item instanceof StyleResourceValue) {
556 customStyleValues = (StyleResourceValue)item;
576 ResourceValue item = mRenderResources.findItemInTheme(defStyleAttribute.getFirst(),
579 if (item != null) {
580 // item is a reference to a style entry. Search for it.
581 item = mRenderResources.findResValue(item
[all...]
/frameworks/compile/libbcc/tests/
H A Dtest.py66 def which(item):
67 return runCmd(["which", item])
69 def fileType(item):
70 return runCmd(["file", item])
/frameworks/base/core/tests/coretests/src/android/view/
H A DMenuTest.java46 final MenuItem item = mMenu.add(0, id, 0, "test");
48 Assert.assertEquals(id, item.getItemId());
49 Assert.assertEquals(item, mMenu.findItem(id));
60 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test");
64 Assert.assertEquals(groupId, item.getGroupId());
73 // 1. Create a grouped item in the menu
74 // 2. Check that findGroupIndex() finds the grouped item.
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp160 status_t SurfaceTexture::acquireBufferLocked(BufferQueue::BufferItem *item) { argument
161 status_t err = ConsumerBase::acquireBufferLocked(item);
166 int slot = item->mBuf;
167 if (item->mGraphicBuffer != NULL) {
175 // item.mGraphicBuffer == NULL, if we destroyed the EGLImage when
234 BufferQueue::BufferItem item; local
238 err = acquireBufferLocked(&item);
240 int buf = item.mBuf;
245 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) {
296 mCurrentCrop = item
[all...]
/frameworks/base/core/java/android/app/
H A DMediaRouteActionProvider.java76 public View onCreateActionView(MenuItem item) { argument
79 "with a menu item. Don't reuse MediaRouteActionProvider instances! " +
82 mMenuItem = item;
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditLayout.java200 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
202 return mCallback.onActionItemClicked(this, item);
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java294 // Stop the current speech item
304 * Adds a speech item to the queue.
357 // Note that the current speech item must be removed only if it
358 // belongs to the callingApp, else the item will be "orphaned" and
359 // not stopped correctly if a stop request comes along for the item
373 // Stop the current speech item unconditionally.
394 * An item in the synth thread queue.
416 * Checker whether the item is valid. If this method returns false, the item should not
422 * Plays the speech item
[all...]

Completed in 2846 milliseconds

12345678