Searched refs:position (Results 251 - 275 of 821) sorted by relevance

<<11121314151617181920>>

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerSavedStateTest.java106 return "scroll to position";
120 return "scroll to position with positive offset";
134 return "scroll to position with negative offset";
216 int position;
219 position = testAdapter().getItemCount() / 2;
220 layoutManager().scrollToPosition(position);
230 return "Scroll to position " + position ;
237 position,
363 void scrollToPosition(final int position) { argument
371 scrollToPositionWithOffset(final int position, final int offset) argument
[all...]
/frameworks/base/core/java/android/content/
H A DSyncActivityTooManyDeletes.java61 // the order of these must match up with the constants for position used in onItemClick
109 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
110 // the constants for position correspond to the items options array in onCreate()
111 if (position == 0) startSyncReallyDelete();
112 else if (position == 1) startSyncUndoDeletes();
/frameworks/base/core/java/android/widget/
H A DListView.java66 * position - index of the items in the cursor
102 * public View getView(int position, View convertView, ViewGroup container) {
108 * .setText(getItem(position));
154 * Used to indicate a no preference for a position type.
583 int position;
585 position = lookForSelectablePosition(mItemCount - 1, false);
587 position = lookForSelectablePosition(0, true);
589 setSelectedPositionInt(position);
590 setNextSelectedPositionInt(position);
767 * @param pos The first position t
893 fillAboveAndBelow(View sel, int position) argument
1010 smoothScrollToPosition(int position) argument
1205 setupForSetSelection(int position, int top) argument
1226 setupFocusIfValid(int position) argument
1323 measureScrapChild(View child, int position, int widthMeasureSpec, int heightHint) argument
1480 fillSpecific(int position, int top) argument
2037 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected) argument
2076 setupChild(View child, int position, int y, boolean flowDown, int childrenLeft, boolean selected, boolean isAttachedToWindow) argument
2188 setSelection(int position) argument
2198 setSelectionInt(int position) argument
2232 lookForSelectablePosition(int position, boolean lookDown) argument
2272 lookForSelectablePositionAfter(int current, int position, boolean lookDown) argument
3313 addViewAbove(View theView, int position) argument
3322 addViewBelow(View theView, int position) argument
4004 getHeightForPosition(int position) argument
4116 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DHSConnectionCapabilityElementTest.java66 buffer.position(0);
93 buffer.position(0);
109 buffer.position(0);
H A DHSFriendlyNameElementTest.java101 buffer.position(0);
116 buffer.position(0);
142 buffer.position(0);
166 buffer.position(0);
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTabLayoutActions.java142 * Calls <code>setScrollPosition(position, positionOffset, true)</code> on the
145 public static ViewAction setScrollPosition(final int position, final float positionOffset) { argument
155 return "setScrollPosition(" + position + ", " + positionOffset + ", true)";
161 tabs.setScrollPosition(position, positionOffset, true);
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/
H A DListFragment.java70 public View getView(int position, View convertView, ViewGroup parent) { argument
71 View view = super.getView(position, convertView, parent);
79 EmojiRepo.EmojiData item = getItem(position);
/frameworks/support/frameworks/support/samples/SupportWearDemos/src/com/example/android/support/wear/app/
H A DMainDemoActivity.java88 public void onBindViewHolder(ViewHolder holder, final int position) { argument
89 holder.mView.setText(mKeys[position].toString());
95 startActivity(mData.get(mKeys[position]));
/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/
H A DListFragment.java70 public View getView(int position, View convertView, ViewGroup parent) { argument
71 View view = super.getView(position, convertView, parent);
79 EmojiRepo.EmojiData item = getItem(position);
/frameworks/support/samples/SupportWearDemos/src/com/example/android/support/wear/app/
H A DMainDemoActivity.java88 public void onBindViewHolder(ViewHolder holder, final int position) { argument
89 holder.mView.setText(mKeys[position].toString());
95 startActivity(mData.get(mKeys[position]));
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DDrawerLayoutDoubleActivity.java110 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
111 mContent.setText(Shakespeare.DIALOGUE[position]);
112 mToolbar.setTitle(Shakespeare.TITLES[position]);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DDropDownPreference.java135 public void onItemSelected(AdapterView<?> parent, View v, int position, long id) {
136 if (position >= 0) {
137 String value = getEntryValues()[position].toString();
/frameworks/support/design/src/android/support/design/widget/
H A DTabLayout.java396 * Set the scroll position of the tabs. This is useful for when the tabs are being displayed as
401 * @param position current scroll position
402 * @param positionOffset Value from [0, 1) indicating the offset from {@code position}.
405 public void setScrollPosition(int position, float positionOffset, boolean updateSelectedText) { argument
406 setScrollPosition(position, positionOffset, updateSelectedText, true);
409 void setScrollPosition(int position, float positionOffset, boolean updateSelectedText, argument
411 final int roundedPosition = Math.round(position + positionOffset);
416 // Set the indicator position, if enabled
418 mTabStrip.setIndicatorPositionFromTabPosition(position, positionOffse
454 addTab(@onNull Tab tab, int position) argument
475 addTab(@onNull Tab tab, int position, boolean setSelected) argument
619 removeTabAt(int position) argument
940 configureTab(Tab tab, int position) argument
1061 removeTabViewAt(int position) argument
1117 setSelectedTabView(int position) argument
1181 calculateScrollXForTab(int position, float positionOffset) argument
1350 setPosition(int position) argument
1828 setIndicatorPositionFromTabPosition(int position, float positionOffset) argument
1963 animateIndicatorToPosition(final int position, int duration) argument
2121 onPageScrolled(final int position, final float positionOffset, final int positionOffsetPixels) argument
2139 onPageSelected(final int position) argument
[all...]
/frameworks/av/include/media/
H A DLinearMap.h34 get a timestamp from the sink. The sink timestamp's position (mPosition)
59 We substitute the sink mPosition of 51020 with the track position 1020,
104 If you look back further, the position is extrapolated either from a passed in
269 // Returns the previous position in the mSamples array
278 ssize_t position = mPos - back; local
279 if (position < 0) position += mSize;
280 return (size_t)position;
/frameworks/av/media/libmedia/include/media/
H A DLinearMap.h34 get a timestamp from the sink. The sink timestamp's position (mPosition)
59 We substitute the sink mPosition of 51020 with the track position 1020,
104 If you look back further, the position is extrapolated either from a passed in
269 // Returns the previous position in the mSamples array
278 ssize_t position = mPos - back; local
279 if (position < 0) position += mSize;
280 return (size_t)position;
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfUtils.h24 int getBlock(void* param, unsigned long position, unsigned char* outBuffer,
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
H A DThemePreviewLayout.java178 int position = 1;
186 if (position == itemsPerColumn + (remainderItems > 0 ? 1 : 0)) {
188 position = 1;
193 position++;
/frameworks/compile/mclinker/unittests/
H A DInputTreeTest.cpp57 size_t position = 0; local
58 actions.push_back(new StartGroupAction(position++));
59 actions.push_back(new InputFileAction(position++, "path1"));
60 actions.push_back(new EndGroupAction(position++));
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgram.h36 // known locations for position and texture coordinates
37 enum { position=0, texCoords=1 }; enumerator in enum:android::Program::__anon1896
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DPhotoPagerAdapter.java50 public Fragment getItem(Context context, Cursor cursor, int position) { argument
70 return createPhotoViewFragment(builder.build(), position, onlyShowSpinner);
78 Intent intent, int position, boolean onlyShowSpinner) {
79 return PhotoViewFragment.newInstance(intent, position, onlyShowSpinner);
77 createPhotoViewFragment( Intent intent, int position, boolean onlyShowSpinner) argument
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DAsyncListUtilActivity.java94 public void onBindViewHolder(TextViewHolder holder, int position) { argument
95 final String itemString = mAsyncListUtil.getItem(position);
152 public void onItemLoaded(int position) {
153 mRecyclerView.getAdapter().notifyItemChanged(position);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DAsyncListUtilActivity.java94 public void onBindViewHolder(TextViewHolder holder, int position) { argument
95 final String itemString = mAsyncListUtil.getItem(position);
152 public void onItemLoaded(int position) {
153 mRecyclerView.getAdapter().notifyItemChanged(position);
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteDialogHelper.java113 int position = firstVisiblePosition + i;
114 E item = adapter.getItem(position);
136 int position = firstVisiblePosition + i;
137 E item = adapter.getItem(position);
/frameworks/wilhelm/tests/listening/
H A DseekTorture.c100 unsigned position, duration; local
101 while (fscanf(fp_map, "%u %u", &position, &duration) == 2) {
102 printf("%u %u\n", position, duration);
103 result = (*playerSeek)->SetPosition(playerSeek, (SLmillisecond) position,
/frameworks/base/packages/Osu/src/com/android/anqp/eap/
H A DExpandedEAPMethod.java35 payload.position(payload.position()+7);

Completed in 902 milliseconds

<<11121314151617181920>>