/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
H A D | MipmapDrawableTest.java | 116 // 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 D | UnitTest.java | 123 public void setItem(ScriptField_ListAllocs_s.Item item) { argument 124 mItem = item;
|
/frameworks/compile/libbcc/tools/build/ |
H A D | gen-sha1-stamp.py | 107 symbols = [get_symbol_name(item[0]) for item in x]
|
/frameworks/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 41 * 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 D | KeyedVector.h | 85 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 D | PreferenceScreen.java | 138 * {@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 D | RecentTasksLoader.java | 179 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 D | RecentsHorizontalScrollView.java | 223 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 D | RecentsVerticalScrollView.java | 102 // 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 D | WifiP2pGroupList.java | 62 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 D | CommandParams.java | 144 for (Item item : menu.items) { 145 if (item.icon != null) { 148 item.icon = icon;
|
H A D | Menu.java | 64 Item item = in.readParcelable(null); 65 items.add(item);
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountAuthenticatorCache.java | 81 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 D | StandaloneActionMode.java | 132 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 D | FakeAdapter.java | 105 AdapterItem item = mItems.get(position); 106 return getView(item, null /*parentGroup*/, convertView, parent);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 254 * 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 D | TimedEventQueue.cpp | 112 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 D | ListMenuPresenter.java | 61 * @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 D | BridgeContext.java | 549 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 D | test.py | 66 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 D | MenuTest.java | 46 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 D | SurfaceTexture.cpp | 160 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 D | MediaRouteActionProvider.java | 76 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 D | ExtractEditLayout.java | 200 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument 202 return mCallback.onActionItemClicked(this, item);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeechService.java | 294 // 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...] |