/packages/apps/Settings/src/com/android/settings/datausage/ |
SpinnerPreference.java | 55 public void setSelection(int position) { 56 mPosition = position; 78 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { 79 if (mPosition == position) return; 80 mPosition = position; 81 mCurrentObject = mAdapter.getItem(position); 82 mListener.onItemSelected(parent, view, position, id);
|
/frameworks/base/core/java/android/preference/ |
PreferenceGroupAdapter.java | 64 * Maps a position into this adapter -> {@link Preference}. These 211 public Preference getItem(int position) { 212 if (position < 0 || position >= getCount()) return null; 213 return mPreferenceList.get(position); 216 public long getItemId(int position) { 217 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID; 218 return this.getItem(position).getId(); 224 public void setHighlighted(int position) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
CompositeAdapter.java | 143 public int getPartitionAtPosition(final int position) { 148 if (position >= start && position < end) { 149 int offset = position - start; 194 public Object getItem(final int position) { 199 if (position >= start && position < end) { 200 final int offset = position - start; 216 public long getItemId(final int position) { 221 if (position >= start && position < end) [all...] |
/libcore/dex/src/main/java/com/android/dex/ |
Dex.java | 128 // if it's an .odex file, set position and limit to the .dex section 133 data.position(8); 136 data.position(offset); 186 public Section open(int position) { 187 if (position < 0 || position >= data.capacity()) { 188 throw new IllegalArgumentException("position=" + position 193 sectionData.position(position); 338 int position = tableOfContents.fieldIds.off + (SizeOf.MEMBER_ID_ITEM * fieldIndex); local 379 int position = tableOfContents.fieldIds.off + (SizeOf.MEMBER_ID_ITEM * fieldIndex); local 390 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); local 400 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); local 412 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); local 443 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); local 458 int position = tableOfContents.typeIds.off + (SizeOf.TYPE_ID_ITEM * typeIndex); local 467 int position = tableOfContents.classDefs.off + (SizeOf.CLASS_DEF_ITEM * classDefIndex); local 476 int position = tableOfContents.classDefs.off + (SizeOf.CLASS_DEF_ITEM * classDefIndex); local 491 int position = tableOfContents.classDefs.off + (SizeOf.CLASS_DEF_ITEM * classDefIndex); local [all...] |
/frameworks/base/core/java/android/widget/ |
AbsSpinner.java | 97 * It also provides methods to transform spinner items based on their position 121 int position = mItemCount > 0 ? 0 : INVALID_POSITION; local 123 setSelectedPositionInt(position); 124 setNextSelectedPositionInt(position); 256 final int position = mFirstPosition; local 261 int index = position + i; 269 public void setSelection(int position, boolean animate) { 270 // Animate only if requested position is already on screen somewhere 271 boolean shouldAnimate = animate && mFirstPosition <= position && 272 position <= mFirstPosition + getChildCount() - 1 373 int position; field in class:AbsSpinner.SavedState [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
FadeAndShortSlide.java | 53 float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 58 float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 73 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 87 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 101 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 102 final int viewCenter = position[0] + view.getWidth() / 2; 103 sceneRoot.getLocationOnScreen(position); 105 final int sceneRootCenter = center == null ? (position[0] + sceneRoot.getWidth() / 2) 117 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 124 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 169 int[] position = new int[2]; local 223 int[] position = (int[]) endValues.values.get(PROPNAME_SCREEN_POSITION); local 254 int[] position = (int[]) startValues.values.get(PROPNAME_SCREEN_POSITION); local [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
IOUtil.java | 46 static int write(FileDescriptor fd, ByteBuffer src, long position, 51 return writeFromNativeBuffer(fd, src, position, nd); 54 int pos = src.position(); 63 src.position(pos); 65 int n = writeFromNativeBuffer(fd, bb, position, nd); 68 src.position(pos + n); 77 long position, NativeDispatcher nd) 80 int pos = bb.position(); 88 if (position != -1) { 91 rem, position); [all...] |
/external/bison/data/ |
location.cc | 19 b4_output_begin([b4_dir_prefix[]position.hh]) 24 ** \file ]b4_dir_prefix[position.hh 25 ** Define the ]b4_namespace_ref[::position class. 28 ]b4_cpp_guard_open([b4_dir_prefix[]position.hh])[ 37 /// Abstract a position. 38 class position 42 /// Construct a position. 43 explicit position (]b4_percent_define_get([[filename_type]])[* f = YY_NULL, 79 /// File name to which this position refers. 87 /// Add and assign a position [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/ |
TaskStackHorizontalViewAdapter.java | 78 private Animator.AnimatorListener getRemoveAtListener(final int position, 121 public void onBindViewHolder(ViewHolder holder, int position) { 122 Task task = mTaskList.get(position); 134 int position = mTaskList.indexOf(task); 135 if (position >= 0) { 136 mTaskList.remove(position); 137 notifyItemRemoved(position); 146 int position = mTaskList.indexOf(task); 147 return (position >= 0) ? position : 0 [all...] |
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaByDayAdapter.java | 83 public long getInstanceId(int position) { 84 if (mRowInfo == null || position >= mRowInfo.size()) { 87 return mRowInfo.get(position).mInstanceId; 90 public long getStartTime(int position) { 91 if (mRowInfo == null || position >= mRowInfo.size()) { 94 return mRowInfo.get(position).mEventStartTimeMilli; 98 // Returns the position of a header of a specific item 99 public int getHeaderPosition(int position) { 100 if (mRowInfo == null || position >= mRowInfo.size()) { 104 for (int i = position; i >=0; i --) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
MergedAdapter.java | 99 * For a given merged position, find the corresponding Adapter and local position within that 100 * Adapter by iterating through Adapters and summing their counts until the merged position is 103 * @param position a merged (global) position 104 * @return the matching Adapter and local position, or null if not found 106 public LocalAdapterPosition<T> getAdapterOffsetForItem(final int position) { 114 if (position < newCount) { 115 return new LocalAdapterPosition<T>(a, position - count); 124 public Object getItem(int position) { [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
EmojiPalettesAdapter.java | 91 public void setPrimaryItem(final ViewGroup container, final int position, 93 if (mActivePosition == position) { 101 mActivePosition = position; 105 public Object instantiateItem(final ViewGroup container, final int position) { 107 Log.d(TAG, "instantiate item: " + position); 109 final EmojiPageKeyboardView oldKeyboardView = mActiveKeyboardViews.get(position); 113 mActiveKeyboardViews.remove(position); 116 mEmojiCategory.getKeyboardFromPagePosition(position); 123 mActiveKeyboardViews.put(position, keyboardView); 133 public void destroyItem(final ViewGroup container, final int position, [all...] |
/external/v8/test/mjsunit/ |
debug-sourceinfo.js | 64 // This is the last position in the entire file (note: this equals 81 // The position of the first line of d(), i.e. "x = 1 ;". 101 // Test that when running through source positions the position, line and 103 var position; variable 109 assertEquals(position + 1, location.position); 117 assertEquals(0, location.position); 123 position = location.position; 134 assertEquals(p, location.position); [all...] |
/developers/build/prebuilts/gradle/DoneBar/Application/src/main/java/com/example/android/donebar/ |
MainActivity.java | 58 public void onItemClick(AdapterView<?> container, View view, int position, long id) { 59 startActivity(mSamples[position].intent); 69 public Object getItem(int position) { 70 return mSamples[position]; 74 public long getItemId(int position) { 75 return mSamples[position].hashCode(); 79 public View getView(int position, View convertView, ViewGroup container) { 86 mSamples[position].titleResId); 88 mSamples[position].descriptionResId);
|
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
MainActivity.java | 56 public void onItemClick(AdapterView<?> container, View view, int position, long id) { 57 startActivity(mSamples[position].intent); 67 public Object getItem(int position) { 68 return mSamples[position]; 72 public long getItemId(int position) { 73 return mSamples[position].hashCode(); 77 public View getView(int position, View convertView, ViewGroup container) { 84 mSamples[position].titleResId); 86 mSamples[position].descriptionResId);
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
TaskListView.java | 46 * the code is grabbing the position of the item in the list, and assuming that to be the 87 public View getView(int position, View convertView, ViewGroup parent) { 94 checkbox.setChecked(mCheckboxes[position]); 97 label.setText(mLabels[position]); 102 .append(mLabels[position]).toString(); 105 convertView.setTag(position); 111 public Object getItem(int position) { 112 return mLabels[position]; 116 public long getItemId(int position) { 117 return position; [all...] |
/development/samples/browseable/DoneBar/src/com.example.android.donebar/ |
MainActivity.java | 58 public void onItemClick(AdapterView<?> container, View view, int position, long id) { 59 startActivity(mSamples[position].intent); 69 public Object getItem(int position) { 70 return mSamples[position]; 74 public long getItemId(int position) { 75 return mSamples[position].hashCode(); 79 public View getView(int position, View convertView, ViewGroup container) { 86 mSamples[position].titleResId); 88 mSamples[position].descriptionResId);
|
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/ |
MainActivity.java | 56 public void onItemClick(AdapterView<?> container, View view, int position, long id) { 57 startActivity(mSamples[position].intent); 67 public Object getItem(int position) { 68 return mSamples[position]; 72 public long getItemId(int position) { 73 return mSamples[position].hashCode(); 77 public View getView(int position, View convertView, ViewGroup container) { 84 mSamples[position].titleResId); 86 mSamples[position].descriptionResId);
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/ |
interactive.rb | 27 @position = options.fetch :position, 0 63 @position = options.fetch :position, 0 91 @position < @data.size and return( super ) 101 index = @position + i - 1 123 def fill_through( position ) 125 if @position < 0 then fill_out 126 else readline until ( @data.size > @position or @eof )
|
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentPagerAdapter.java | 78 * Return the Fragment associated with a specified position. 80 public abstract Fragment getItem(int position); 91 public Object instantiateItem(ViewGroup container, int position) { 96 final long itemId = getItemId(position); 105 fragment = getItem(position); 119 public void destroyItem(ViewGroup container, int position, Object object) { 123 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 129 public void setPrimaryItem(ViewGroup container, int position, Object object) { 168 * Return a unique identifier for the item at the given position. 170 * <p>The default implementation returns the given position [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
FragmentPagerAdapter.java | 74 * Return the Fragment associated with a specified position. 76 public abstract Fragment getItem(int position); 87 public Object instantiateItem(ViewGroup container, int position) { 92 final long itemId = getItemId(position); 101 fragment = getItem(position); 115 public void destroyItem(ViewGroup container, int position, Object object) { 119 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 125 public void setPrimaryItem(ViewGroup container, int position, Object object) { 163 * Return a unique identifier for the item at the given position. 165 * <p>The default implementation returns the given position [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
ByteBufferAsDoubleBuffer.java | 48 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's 49 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 58 int pos = this.position(); 70 position(), 80 position(), 103 bb.getUnchecked(ix(position), dst, offset, length); 104 position += length; 125 bb.putUnchecked(ix(position), src, offset, length); 126 position += length; 134 int pos = position(); [all...] |
ByteBufferAsFloatBuffer.java | 47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 57 int pos = this.position(); 69 position(), 79 position(), 102 bb.getUnchecked(ix(position), dst, offset, length); 103 position += length; 124 bb.putUnchecked(ix(position), src, offset, length); 125 position += length; 133 int pos = position(); [all...] |
ByteBufferAsIntBuffer.java | 47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 57 int pos = this.position(); 69 position(), 79 position(), 102 bb.getUnchecked(ix(position), dst, offset, length); 103 position += length; 124 bb.putUnchecked(ix(position), src, offset, length); 125 position += length; 133 int pos = position(); [all...] |
ByteBufferAsLongBuffer.java | 47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 57 int pos = this.position(); 69 this.position(), 79 this.position(), 102 bb.getUnchecked(ix(position), dst, offset, length); 103 position += length; 124 bb.putUnchecked(ix(position), src, offset, length); 125 position += length; 133 int pos = position(); [all...] |