Searched defs:item (Results 26 - 50 of 83) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuPresenter.java58 public void bindItemView(MenuItemImpl item, ItemView itemView) { argument
60 view.setItemData(item);
62 view.initialize(item.getTitleForItemView(view), item.getIcon());
64 view.setVisibility(item.isVisible() ? View.VISIBLE : View.GONE);
70 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
74 return fits && !item.isActionButton();
150 MenuItem item = mMenu.findItem(subMenuId);
151 if (item != null) {
152 onSubMenuSelected((SubMenuBuilder) item
[all...]
H A DMenuPresenter.java87 * Called by Menu implementations to indicate that a submenu item
113 * Called when a menu item with a collapsable action view should expand its action view.
115 * @param menu Menu containing the item to be expanded
116 * @param item Item to be expanded
119 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); argument
122 * Called when a menu item with a collapsable action view should collapse its action view.
124 * @param menu Menu containing the item to be collapsed
125 * @param item Item to be collapsed
128 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); argument
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);
H A DBaseMenuPresenter.java27 * Base class for MenuPresenters that have a consistent container view and item
28 * views. Behaves similarly to an AdapterView in that existing item views will
51 * @param itemLayoutRes Layout resource ID for a single item view
79 * Reuses item views when it can
91 MenuItemImpl item = visibleItems.get(i);
92 if (shouldIncludeItem(childIndex, item)) {
96 final View itemView = getItemView(item, convertView, parent);
97 if (item != oldItem) {
119 * Add an item view at the given index.
148 * Create a new item vie
167 getItemView(MenuItemImpl item, View convertView, ViewGroup parent) argument
184 bindItemView(MenuItemImpl item, MenuView.ItemView itemView) argument
193 shouldIncludeItem(int childIndex, MenuItemImpl item) argument
214 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
218 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
H A DActionMenuView.java145 // Reset padding for generated menu item views; it may change below
174 // When we have overflow and a single expanded (text) item, we want to try centering it
216 // If this item is already at our small item count, mark it for later.
222 // Add padding to this item such that it centers.
266 // First item gets part of its new padding pushed out of sight.
267 // The last item will get this implicitly from layout.
489 public boolean invokeItem(MenuItemImpl item) { argument
490 return mMenu.performItemAction(item, 0);
/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/include/utils/
H A DKeyedVector.h79 ssize_t add(const KEY& key, const VALUE& item);
80 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
81 ssize_t replaceValueAt(size_t index, const VALUE& item);
165 ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) { argument
167 mVector.editItemAt(index).value = item;
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.cpp40 ssize_t SortedListImpl::indexOf(const void* item) const {
41 return _indexOrderOf(item);
44 size_t SortedListImpl::orderOf(const void* item) const {
46 _indexOrderOf(item, &o);
50 ssize_t SortedListImpl::_indexOrderOf(const void* item, size_t* order) const { argument
61 const int c = do_compare(curr, item);
77 ssize_t SortedListImpl::add(const void* item) { argument
79 ssize_t index = _indexOrderOf(item, &order);
80 index = VectorImpl::insertAt(item, order, 1);
117 ssize_t SortedListImpl::remove(const void* item) { argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DClipboardService.java165 private final void checkItemOwnerLocked(ClipData.Item item, int uid) { argument
166 if (item.getUri() != null) {
167 checkUriOwnerLocked(item.getUri(), uid);
169 Intent intent = item.getIntent();
193 private final void grantItemLocked(ClipData.Item item, String pkg) { argument
194 if (item.getUri() != null) {
195 grantUriLocked(item.getUri(), pkg);
197 Intent intent = item.getIntent();
235 private final void revokeItemLocked(ClipData.Item item) { argument
236 if (item
[all...]
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
H A DAppWidgetHostActivity.java173 public boolean onContextItemSelected(MenuItem item) { argument
174 MyAppWidgetView view = (MyAppWidgetView)item.getMenuInfo();
175 switch (item.getItemId()) {
/frameworks/base/core/java/android/app/
H A DLauncherActivity.java63 * An item in the list
122 ListItem item = mActivitiesList.get(position);
123 intent.setClassName(item.packageName, item.className);
124 if (item.extras != null) {
125 intent.putExtras(item.extras);
162 private void bindView(View view, ListItem item) { argument
164 text.setText(item.label);
166 if (item.icon == null) {
167 item
[all...]
/frameworks/base/core/java/android/content/
H A DClipData.java37 * each of which can hold one or more representations of an item of data.
67 * since any clip item an always be converted to a string.
70 * "content:" URIs. A content URI allows the recipient of a ClippedData item
152 * Description of a single item in a ClippedData.
154 * <p>The types than an individual item can currently contain are:</p>
162 * to create when pasting a clipped item on to the home screen.
234 * Turn this item into text, regardless of the type of data it
252 * @return Returns the item's textual representation.
324 * @param item The contents of the first item i
326 ClipData(CharSequence label, String[] mimeTypes, Item item) argument
341 ClipData(ClipDescription description, Item item) argument
443 addItem(Item item) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DFindActionModeCallback.java217 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument
223 switch(item.getItemId()) {
/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/base/core/jni/
H A Dandroid_util_EventLog.cpp103 jobject item = env->GetObjectArrayElement(value, copied); local
104 if (item == NULL || env->IsInstanceOf(item, gStringClass)) {
106 const char *str = item != NULL ? env->GetStringUTFChars((jstring) item, NULL) : "NULL";
113 if (item != NULL) env->ReleaseStringUTFChars((jstring) item, str);
114 } else if (env->IsInstanceOf(item, gIntegerClass)) {
115 jint intVal = env->GetIntField(item, gIntegerValueID);
120 } else if (env->IsInstanceOf(item, gLongClas
[all...]
/frameworks/base/libs/utils/
H A DVectorImpl.cpp140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) argument
146 if (item) {
147 _do_splat(where, item, numItems);
176 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); local
178 if (cmp(curr, item, state) > 0) {
186 item = reinterpret_cast<char*>(array) + mItemSize*(i);
192 _do_copy(temp, item, 1);
229 void VectorImpl::push(const void* item) argument
231 insertAt(item, size());
239 ssize_t VectorImpl::add(const void* item) argument
[all...]
/frameworks/base/media/libstagefright/
H A DMetaData.cpp187 typed_data item; local
188 i = mItems.add(key, item);
193 typed_data &item = mItems.editValueAt(i); local
195 item.setData(type, data, size);
208 const typed_data &item = mItems.valueAt(i); local
210 item.getData(type, data, size);
H A DTimedEventQueue.cpp117 QueueItem item; local
118 item.event = event;
119 item.realtime_us = realtime_us;
125 mQueue.insert(it, item);
/frameworks/base/media/libstagefright/httplive/
H A DM3UParser.cpp238 Item *item = &mItems.editItemAt(mItems.size() - 1); local
240 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI));
242 item->mMeta = itemMeta;
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/
H A DDirListActivity.java107 * Very simple object to use inside ListView as an item.
197 ListItem item = (ListItem)parent.getItemAtPosition(position);
199 if (item.isDirectory()) {
200 showDir(item.getRelativePath());
203 runAllTestsUnder(item.getRelativePath());
211 ListItem item = (ListItem)parent.getItemAtPosition(position);
213 if (item.isDirectory()) {
215 arguments.putString("name", item.getName());
216 arguments.putString("relativePath", item.getRelativePath());
246 public boolean onOptionsItemSelected(MenuItem item) { argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DBaseAdapter.java57 protected AdapterItem(DataBindingItem item, int type, int fullPosition, argument
59 mItem = item;
141 protected View getView(AdapterItem item, AdapterItem parentItem, View convertView, argument
144 DataBindingItem dataBindingItem = item.getDataBindingItem();
155 fillView(context, view, item, parentItem);
166 private void fillView(BridgeContext context, View view, AdapterItem item, argument
172 fillView(context, group.getChildAt(i), item, parentItem);
179 int fullPosition = item.getFullPosition();
180 int positionPerType = item.getPositionPerType();
189 item
[all...]
H A DFakeExpandableAdapter.java75 AdapterItem item = new AdapterItem(dataBindingItem, typeIndex, mItems.size(),
77 mItems.add(item);
87 private void createItems(DataBindingItem item, int depth) { argument
89 createItems(item, item.getChildren().size(), item.getCount(), mChildrenTypes, depth);
94 AdapterItem item = mItems.get(groupPosition);
96 List<AdapterItem> children = item.getChildren();
107 AdapterItem item = mItems.get(groupPosition);
108 return item
[all...]
/frameworks/opt/mailcommon/java/com/android/mailcommon/
H A DWebViewContextMenu.java95 public boolean onMenuItemClick(MenuItem item) { argument
110 public boolean onMenuItemClick(MenuItem item) { argument
171 // Initially make set the menu item handler this WebViewContextMenu, which will default to
300 public boolean onMenuItemClick(MenuItem item) { argument
301 return onMenuItemSelected(item);
346 * Called when a menu item is not handled by the context menu.
/frameworks/base/core/java/android/view/
H A DMenuInflater.java55 private static final String XML_ITEM = "item";
147 // A menu start tag denotes a submenu for an item
166 // Add the item if it hasn't been added (if the item was
203 "Couldn't resolve menu item onClick handler " + methodName +
210 public boolean onMenuItemClick(MenuItem item) { argument
213 return (Boolean) mMethod.invoke(mContext, item);
215 mMethod.invoke(mContext, item);
234 * Group state is set on items as they are added, allowing an item to
322 * Called when the parser is pointing to an item ta
383 setItem(MenuItem item) argument
[all...]
H A DMenuItem.java26 * Interface for direct access to a previously created menu item.
43 /** Never show this item as a button in an Action Bar. */
45 /** Show this item as a button in an Action Bar if the system decides there is room for it. */
48 * Always show this item as a button in an Action Bar.
56 * When this item is in the action bar, always show it with a text label even if
62 * This item's action view collapses to a normal menu item.
69 * Interface definition for a callback to be invoked when a menu item is
77 * Called when a menu item has been invoked. This is the first code
81 * @param item Th
86 onMenuItemClick(MenuItem item) argument
105 onMenuItemActionExpand(MenuItem item) argument
113 onMenuItemActionCollapse(MenuItem item) argument
[all...]

Completed in 531 milliseconds

1234