Searched refs:position (Results 176 - 200 of 821) sorted by relevance

1234567891011>>

/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentTabsPager.java147 public Fragment getItem(int position) { argument
148 TabInfo info = mTabs.get(position);
154 int position = mTabHost.getCurrentTab();
155 mViewPager.setCurrentItem(position);
159 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
163 public void onPageSelected(int position) { argument
172 mTabHost.setCurrentTab(position);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DNestedRecyclerViewActivity.java75 public void onBindViewHolder(ViewHolder holder, int position) { argument
76 holder.mTextView.setText(mData[position]);
77 boolean even = position % 2 == 0;
126 public void onBindViewHolder(ViewHolder holder, int position) { argument
128 holder.mRecyclerView.swapAdapter(mAdapters.get(position), true);
130 Parcelable savedState = mSavedStates.get(position);
133 mSavedStates.set(position, null);
H A DStableIdActivity.java44 * data with that stable ID has moved position, and move the View accordingly, even though the only
131 public void onBindViewHolder(ViewHolder holder, int position) { argument
132 holder.mDataView.setText(mData.get(position).second);
136 public long getItemId(int position) { argument
137 return mData.get(position).first;
/frameworks/base/core/java/android/widget/
H A DExpandableListConnector.java34 * <li> flPos - Flat list position, the position used by ListView
35 * <li> gPos - Group position, the position of a group among all the groups
36 * <li> cPos - Child position, the position of a child among all the children
46 * Internally, this connector translates the flat list position that the
96 * Translates a flat list position to either a) group pos if the specified
97 * flat list position corresponds to a group, or b) child pos if it
102 * @param flPos the flat list position t
961 public ExpandableListPosition position; field in class:ExpandableListConnector.PositionMetadata
[all...]
H A DRemoteViewsService.java90 * @param position The position of the item within the Factory's data set of the item whose
92 * @return A RemoteViews object corresponding to the data at the specified position.
94 public RemoteViews getViewAt(int position); argument
115 * @param position The position of the item within the data set whose row id we want.
116 * @return The id of the item at the specified position.
118 public long getItemId(int position); argument
161 public synchronized RemoteViews getViewAt(int position) { argument
164 rv = mFactory.getViewAt(position);
194 getItemId(int position) argument
[all...]
H A DCursorAdapter.java244 public Object getItem(int position) { argument
246 mCursor.moveToPosition(position);
256 public long getItemId(int position) { argument
258 if (mCursor.moveToPosition(position)) {
276 public View getView(int position, View convertView, ViewGroup parent) { argument
280 if (!mCursor.moveToPosition(position)) {
281 throw new IllegalStateException("couldn't move cursor to position " + position);
294 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
297 mCursor.moveToPosition(position);
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java172 public void setTabSelected(int position) { argument
173 mSelectedTabIndex = position;
177 final boolean isSelected = i == position;
180 animateToTab(position);
183 if (mTabSpinner != null && position >= 0) {
184 mTabSpinner.setSelection(position);
247 public void animateToTab(final int position) { argument
248 final View tabView = mTabLayout.getChildAt(position);
311 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument
313 mTabLayout.addView(tabView, position, ne
326 updateTab(int position) argument
336 removeTabAt(int position) argument
357 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
500 getItem(int position) argument
505 getItemId(int position) argument
510 getView(int position, View convertView, ViewGroup parent) argument
520 getDropDownView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java173 * {@link UsbDeviceConnection#requestWait() is processed} the position will be set
221 * will be unchanged; if the request succeeded the position of the buffer is
268 wasQueued = native_queue(buffer, buffer.position(), buffer.remaining());
293 mBuffer.position(mBuffer.position() + bytesTransferred);
297 // The user might have modified mBuffer which might make put/position fail.
302 mBuffer.position(mBuffer.position() + bytesTransferred);
320 mBuffer.position(bytesToStore);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
H A DUserGridView.java54 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
56 UserSwitcherController.UserRecord record = mAdapter.getItem(position);
78 View view, int position, long id) {
79 UserSwitcherController.UserRecord record = mAdapter.getItem(position);
136 public View getView(int position, View convertView, ViewGroup parent) { argument
142 UserSwitcherController.UserRecord record = getItem(position);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DListViewAddRemove.java94 int position = listview.getPositionForView(view);
103 int position = listview.getPositionForView(view);
115 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
117 String item = (String) parent.getItemAtPosition(position);
157 public long getItemId(int position) { argument
158 String item = getItem(position);
H A DListViewAddRemoveNoTransition.java55 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
56 String item = (String) parent.getItemAtPosition(position);
92 public long getItemId(int position) { argument
93 String item = getItem(position);
/frameworks/support/wear/src/android/support/wear/internal/widget/drawer/
H A DMultiPageUi.java91 public void onPageSelected(int position) {
92 mPresenter.onSelected(position);
136 public Object instantiateItem(ViewGroup container, int position) { argument
148 iconView.setImageDrawable(mAdapter.getItemDrawable(position));
149 textView.setText(mAdapter.getItemText(position));
154 public void destroyItem(ViewGroup container, int position, Object object) { argument
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCube.java76 mVertexBuffer.position(0);
82 mColorBuffer.position(0);
86 mIndexBuffer.position(0);
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DSamplesList.java59 protected void onListItemClick(ListView l, View v, int position, long id) { argument
60 Class<?> clazz = (Class<?>) SAMPLES.get(position).get(KEY_CLASS);
61 int resourceId = ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DHSWanMetricsElementTest.java60 buffer.position(0);
84 buffer.position(0);
98 buffer.position(0);
/frameworks/av/media/libaaudio/src/binding/
H A DAAudioServiceMessage.h30 int64_t position; // number of frames transferred so far member in struct:aaudio::AAudioMessageTimestamp
31 int64_t deviceOffset; // add to client position to get device position
32 int64_t timestamp; // time when that position was reached
/frameworks/av/media/libaudioclient/
H A DAudioPolicy.cpp104 size_t position = parcel->dataPosition(); local
106 parcel->setDataPosition(position);
111 size_t position = parcel->dataPosition(); local
114 parcel->setDataPosition(position);
/frameworks/base/core/java/android/app/
H A DLauncherActivity.java116 public Intent intentForPosition(int position) { argument
122 ListItem item = mActivitiesList.get(position);
130 public ListItem itemForPosition(int position) { argument
135 return mActivitiesList.get(position);
142 public Object getItem(int position) { argument
143 return position;
146 public long getItemId(int position) { argument
147 return position;
150 public View getView(int position, View convertView, ViewGroup parent) { argument
158 bindView(view, mActivitiesList.get(position));
406 onListItemClick(ListView l, View v, int position, long id) argument
416 intentForPosition(int position) argument
426 itemForPosition(int position) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DSlide.java164 int[] position = new int[2];
165 view.getLocationOnScreen(position);
166 transitionValues.values.put(PROPNAME_SCREEN_POSITION, position);
239 int[] position = (int[]) endValues.values.get(PROPNAME_SCREEN_POSITION);
245 .createAnimation(view, endValues, position[0], position[1],
255 int[] position = (int[]) startValues.values.get(PROPNAME_SCREEN_POSITION);
261 .createAnimation(view, startValues, position[0], position[1],
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DAsn1Boolean.java13 throw new DecodeException("Boolean length != 1: " + length, data.position());
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dpose.h9 // Encapsulates a 3D pose (rotation and position).
11 // @tparam T Data type for storing the position coordinate and rotation
21 // Initializes a pose with given rotation and position.
24 // position Initial position.
25 Pose(Eigen::Quaternion<T> rotation, Eigen::Vector3<T> position) argument
26 : rotation_(rotation), position_(position) {}
71 // Gets the position of the 3D pose.
77 // Sets the position of the 3D pose.
78 void SetPosition(Eigen::Vector3<T> position) { position argument
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemHierarchy.java51 * Called when items are inserted at the given position.
56 * Called when the given items are moved to a different position.
83 * Get the item at position.
85 * @param position An integer from 0 to {@link #getCount()}}, which indicates the position in
87 * @return A representation of the item at {@code position}. Must not be {@code null}.
89 IItem getItemAt(int position); argument
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
H A DListViewScrollHandlingDelegateTest.java105 public Object getItem(int position) {
110 public long getItemId(int position) {
111 return position;
115 public View getView(int position, View convertView, ViewGroup parent) {
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DCursorAdapter.java226 public Object getItem(int position) { argument
228 mCursor.moveToPosition(position);
239 public long getItemId(int position) { argument
241 if (mCursor.moveToPosition(position)) {
260 public View getView(int position, View convertView, ViewGroup parent) { argument
264 if (!mCursor.moveToPosition(position)) {
265 throw new IllegalStateException("couldn't move cursor to position " + position);
278 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
280 mCursor.moveToPosition(position);
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DStableIdActivity.java44 * data with that stable ID has moved position, and move the View accordingly, even though the only
131 public void onBindViewHolder(ViewHolder holder, int position) { argument
132 holder.mDataView.setText(mData.get(position).second);
136 public long getItemId(int position) { argument
137 return mData.get(position).first;

Completed in 937 milliseconds

1234567891011>>