Searched refs:item (Results 226 - 250 of 704) sorted by relevance

1234567891011>>

/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
H A DAbstractCardPresenter.java50 @Override public final void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
51 Card card = (Card) item;
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
H A DSceneUsageBase.java59 public boolean onOptionsItemSelected(MenuItem item) { argument
60 switch (item.getItemId()) {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DControlBarPresenter.java53 void onControlSelected(Presenter.ViewHolder controlViewHolder, Object item, argument
61 void onControlClicked(Presenter.ViewHolder controlViewHolder, Object item, argument
152 Object item = adapter.get(position);
161 Object item = getDisplayedAdapter().get(position);
163 mOnControlClickedListener.onControlClicked(itemViewHolder, item,
172 presenter.onBindViewHolder(vh, item);
247 public void onBindViewHolder(Presenter.ViewHolder holder, Object item) { argument
249 BoundData data = (BoundData) item;
288 * @param defaultFocusToMiddle True for middle item, false for 0.
H A DMediaItemActionPresenter.java57 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
59 MultiActionsProvider.MultiAction action = (MultiActionsProvider.MultiAction) item;
H A DDetailsOverviewRow.java28 * the item.
36 * <h3>Updating main item</h3>
59 * Called when DetailsOverviewRow has changed main item.
81 * @param item The main item for the details page.
83 public DetailsOverviewRow(Object item) { argument
85 mItem = item;
132 * Notifies listeners for main item change on UI thread.
183 * Returns the main item for the details page.
190 * Sets the main item fo
193 setItem(Object item) argument
[all...]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DGridTest.java46 public int createItem(int index, boolean append, Object[] item, boolean disappearingItem) { argument
51 public void addItem(Object item, int index, int length, int rowIndex, int edge) { argument
53 // initialize edge for first item added
H A DPresenterTest.java125 HeaderItem item = new HeaderItem("");
126 item.setDescription("description");
127 p.onBindViewHolder(vh, new Row(item));
138 HeaderItem item = new HeaderItem("");
139 p.onBindViewHolder(vh, new Row(item));
148 protected void onBindDescription(ViewHolder vh, Object item) {
158 Object item = new Object();
159 PlaybackControlsRow controlsRow = new PlaybackControlsRow(item);
/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/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DDefaultItemAnimatorTest.java66 public void onRemoveFinished(RecyclerView.ViewHolder item) {
68 assertTrue(mRemoveFinished.add(item));
69 onFinished(item);
76 public void onAddFinished(RecyclerView.ViewHolder item) {
78 assertTrue(mAddFinished.add(item));
79 onFinished(item);
86 public void onMoveFinished(RecyclerView.ViewHolder item) {
88 assertTrue(mMoveFinished.add(item));
89 onFinished(item);
96 public void onChangeFinished(RecyclerView.ViewHolder item, boolea
[all...]
/frameworks/base/core/java/android/view/
H A DMenuInflater.java60 private static final String XML_ITEM = "item";
166 // A menu start tag denotes a submenu for an item
186 // Add the item if it hasn't been added (if the item was
214 private void registerMenu(@SuppressWarnings("unused") MenuItem item, argument
246 "Couldn't resolve menu item onClick handler " + methodName +
253 public boolean onMenuItemClick(MenuItem item) { argument
256 return (Boolean) mMethod.invoke(mRealOwner, item);
258 mMethod.invoke(mRealOwner, item);
294 * Group state is set on items as they are added, allowing an item t
476 setItem(MenuItem item) argument
[all...]
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
H A DAppListFragment.java59 final Item item = mItems.get(position);
61 Log.i("AppListFragment", "Item clicked: " + position + " -- " + item.component);
66 args.putParcelable(BrowserListFragment.ARG_COMPONENT, item.component);
136 final Item item = mItems.get(position);
137 tv.setText(item.label);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DListViewAddRemove.java117 String item = (String) parent.getItemAtPosition(position);
120 if (!item.equals(v.getText())) {
125 mItemToDelete = item;
126 // numList.remove(item);
158 String item = getItem(position);
159 return mIdMap.get(item);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcher.java269 UserSwitcherController.UserRecord item = getItem(position);
278 String name = getName(mContext, item);
279 if (item.picture == null) {
280 v.bind(name, getDrawable(mContext, item).mutate(), item.resolveId());
282 v.bind(name, item.picture, item.info.id);
285 v.setAvatarEnabled(item.isSwitchToEnabled);
286 convertView.setActivated(item.isCurrent);
287 convertView.setTag(item);
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DBottomNavigationView.java63 * The bar contents can be populated by specifying a menu resource file. Each menu item title, icon
82 * &lt;item android:id="@+id/action_search"
85 * &lt;item android:id="@+id/action_settings"
88 * &lt;item android:id="@+id/action_navigation"
176 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
177 if (mReselectedListener != null && item.getItemId() == getSelectedItemId()) {
178 mReselectedListener.onNavigationItemReselected(item);
179 return true; // item is already selected
182 && !mSelectedListener.onNavigationItemSelected(item);
191 * Set a listener that will be notified when a bottom navigation item i
359 onNavigationItemSelected(@onNull MenuItem item) argument
372 onNavigationItemReselected(@onNull MenuItem item) argument
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DBrowseFragment.java63 void onMediaItemSelected(MediaBrowserCompat.MediaItem item); argument
96 for (MediaBrowserCompat.MediaItem item : children) {
98 mMediaItems.set(itemIndex, item);
100 mMediaItems.add(item);
194 MediaBrowserCompat.MediaItem item = mBrowserAdapter.getItem(position);
197 listener.onMediaItemSelected(item);
286 MediaBrowserCompat.MediaItem item = getItem(position);
287 holder.mTitleView.setText(item.getDescription().getTitle());
288 holder.mDescriptionView.setText(item.getDescription().getDescription());
289 if (item
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DBrowseFragment.java63 void onMediaItemSelected(MediaBrowserCompat.MediaItem item); argument
96 for (MediaBrowserCompat.MediaItem item : children) {
98 mMediaItems.set(itemIndex, item);
100 mMediaItems.add(item);
194 MediaBrowserCompat.MediaItem item = mBrowserAdapter.getItem(position);
197 listener.onMediaItemSelected(item);
286 MediaBrowserCompat.MediaItem item = getItem(position);
287 holder.mTitleView.setText(item.getDescription().getTitle());
288 holder.mDescriptionView.setText(item.getDescription().getDescription());
289 if (item
[all...]
/frameworks/base/core/java/android/widget/
H A DActionMenuPresenter.java235 public View getItemView(final MenuItemImpl item, View convertView, ViewGroup parent) { argument
236 View actionView = item.getActionView();
237 if (actionView == null || item.hasCollapsibleActionView()) {
238 actionView = super.getItemView(item, convertView, parent);
240 actionView.setVisibility(item.isActionViewExpanded() ? View.GONE : View.VISIBLE);
251 public void bindItemView(MenuItemImpl item, MenuView.ItemView itemView) { argument
252 itemView.initialize(item, 0);
265 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
266 return item.isActionButton();
272 * the animations that need to be run on any item change
529 findViewForItem(MenuItem item) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp134 BufferItem item; local
135 status_t err = acquireBufferLocked(&item, 0);
158 item.mSlot != mCurrentBufferSlot) {
173 mCurrentBufferSlot = item.mSlot;
175 mCurrentFence = item.mFence;
177 outFence = item.mFence;
181 outDataspace = item.mDataSpace;
190 void FramebufferSurface::onFrameAvailable(const BufferItem& /* item */) {
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemGroup.java55 // Value not found. Return the last item before our search range, which is the closest
79 * A mapping from the index of an item hierarchy in mChildren, to the first position in which
102 * ItemGroup uses this map to look for which ItemHierarchy an item at a given position belongs
120 * Add a child hierarchy to this item group.
135 * Remove a previously added child from this item group.
166 for (ItemHierarchy item : mChildren) {
167 item.unregisterObserver(this);
183 ItemHierarchy item = mChildren.get(itemIndex);
185 return item.getItemAt(subpos);
197 * child is empty, position of the next visible item i
[all...]
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceInflater.java99 * Inflate a new item hierarchy from the specified xml resource. Throws
106 * this is the root item; otherwise it is the root of the inflated
209 * @return The newly instantiated item, or null.
265 * This routine is responsible for creating the correct subclass of item
266 * given the xml element name. Override it to handle custom item objects. If
270 * @param name The fully qualified class name of the item to be create.
271 * @param attrs An AttributeSet of attributes to apply to the item.
272 * @return The item created.
282 final Preference item;
285 item
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DDeviceDescriptor.cpp69 ssize_t DeviceVector::indexOf(const sp<DeviceDescriptor>& item) const
72 if (item->equals(itemAt(i))) {
89 ssize_t DeviceVector::add(const sp<DeviceDescriptor>& item) argument
91 ssize_t ret = indexOf(item);
94 ret = SortedVector::add(item);
99 ALOGW("DeviceVector::add device %08x already in", item->type());
105 ssize_t DeviceVector::remove(const sp<DeviceDescriptor>& item) argument
107 ssize_t ret = indexOf(item);
110 ALOGW("DeviceVector::remove device %08x not in", item->type());
/frameworks/base/core/java/android/preference/
H A DGenericInflater.java78 * @param context The context the item is being created in.
80 * @return Newly created item. Return null for the default behavior.
171 * name. If the factory returns an item, add that to the hierarchy. If it
182 * each element name as the XML is parsed. If the factory returns an item,
210 * Inflate a new item hierarchy from the specified xml resource. Throws
217 * this is the root item; otherwise it is the root of the inflated
366 * @return The newly instantied item, or null.
409 * This routine is responsible for creating the correct subclass of item
410 * given the xml element name. Override it to handle custom item objects. If
414 * @param name The fully qualified class name of the item t
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DMetaData.cpp197 typed_data item; local
198 i = mItems.add(key, item);
203 typed_data &item = mItems.editValueAt(i); local
205 item.setData(type, data, size);
218 const typed_data &item = mItems.valueAt(i); local
220 item.getData(type, data, size);
302 ALOGE("Couldn't allocate %zu bytes for item", size);
376 const typed_data &item = mItems.valueAt(i); local
377 s.appendFormat("%s: %s", cc, item.asString(false).string());
389 const typed_data &item local
403 const typed_data &item = mItems.valueAt(i); local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DDeviceDescriptor.h72 ssize_t add(const sp<DeviceDescriptor>& item);
74 ssize_t remove(const sp<DeviceDescriptor>& item);
75 ssize_t indexOf(const sp<DeviceDescriptor>& item) const;
/frameworks/av/services/mediaanalytics/
H A DMediaAnalyticsService.h42 virtual int64_t submit(MediaAnalyticsItem *item, bool forcenew);
73 bool contentValid(MediaAnalyticsItem *item, bool isTrusted);
87 void summarize(MediaAnalyticsItem *item);

Completed in 514 milliseconds

1234567891011>>