HomeSort by relevance Sort by last modified time
    Searched refs:position (Results 151 - 175 of 4027) sorted by null

1 2 3 4 5 67 8 91011>>

  /frameworks/base/services/net/java/android/net/netlink/
NetlinkMessage.java 46 final int startPosition = (byteBuffer != null) ? byteBuffer.position() : -1;
56 byteBuffer.position(byteBuffer.limit());
65 byteBuffer.position(byteBuffer.position() + payloadLength);
76 byteBuffer.position(byteBuffer.position() + payloadLength);
  /frameworks/base/tests/BiDiTests/src/com/android/bidi/
BiDiTestGalleryImages.java 52 public Object getItem(int position) {
53 return position;
57 public long getItemId(int position) {
58 return position;
62 public View getView(int position, View convertView, ViewGroup parent) {
64 i.setImageResource(mImageIds[position]);
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
SectionedAlbumDataAdapter.java 113 public boolean isEnabled(int position) {
114 if (isHeader(position)) {
117 return mAlbumData.isEnabled(internalPosition(position));
129 public Object getItem(int position) {
130 if (isHeader(position)) {
131 return mAlbumData.getItem(internalPosition(position+1)).account;
133 return mAlbumData.getItem(internalPosition(position));
138 public long getItemId(int position) {
139 return position;
143 public int getItemViewType(int position) {
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
AsyncListUtilTest.java 115 final int position = 30; local
118 assertLoadedItemsOnUiThread("no new items should be loaded", 0, position, count);
120 mViewCallback.expectItemRangeChanged(position, count);
124 assertLoadedItemsOnUiThread("all new items should be loaded", count, position, count);
138 private void scrollAndExpectTiles(int position, String context, int... positions)
141 scrollOnUiThread(position);
161 final int position,
166 assertEquals(message, expectedCount, getLoadedItemCount(position, count));
171 private void scrollOnUiThread(final int position) throws Throwable {
175 mViewCallback.scrollTo(position);
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpDeviceIndex.java 39 * - get/getAscending/getDescending: get an item at a specified list position
237 * @param position Index of item to fetch, where 0 is the first item in the
240 * @return the bucket label or IngestObjectInfo at the specified position and
243 public Object get(int position, SortOrder order) {
249 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]];
250 if (bucket.unifiedStartIndex == position) {
253 return results.mtpObjects[bucket.itemsStartIndex + position - 1
257 int zeroIndex = results.unifiedLookupIndex.length - 1 - position;
269 * @param position Index of item to fetch from a view of the data that does not
271 * @return position-th item in specified order, when not including label
    [all...]
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
AddPrinterActivity.java 220 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
221 ((ActionAdapter) getListAdapter()).performAction(position);
225 * Marks an adapter that can can perform an action for a position in it's list.
229 * Perform the action for a position in the list.
231 * @param position The position of the item
233 abstract void performAction(@IntRange(from = 0) int position);
285 * Find the sub adapter and the position in the sub-adapter the position in the combined
288 * @param position The position in the combined adapte
    [all...]
  /development/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
SimpleStringAdapter.java 50 public String getValueAt(int position) {
51 return mValues.get(position);
92 public void onBindViewHolder(ViewHolder holder, int position) {
93 holder.mBoundString = mValues.get(position);
94 holder.mTextView.setText(position + ":" + mValues.get(position));
95 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10));
96 holder.mTextView.setBackgroundColor(getBackgroundColor(position));
99 private int getBackgroundColor(int position) {
100 switch (position % 4)
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
FakeAdapter.java 85 public boolean isEnabled(int position) {
95 public Object getItem(int position) {
96 return mItems.get(position);
100 public long getItemId(int position) {
101 return position;
105 public int getItemViewType(int position) {
106 return mItems.get(position).getType();
110 public View getView(int position, View convertView, ViewGroup parent) {
112 AdapterItem item = mItems.get(position);
128 public View getDropDownView(int position, View convertView, ViewGroup parent)
    [all...]
  /frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
ObservableListAdapter.java 101 public Object getItem(int position) {
102 return mList.get(position);
106 public long getItemId(int position) {
107 return position;
111 public View getView(int position, View convertView, ViewGroup parent) {
112 return getViewForResource(mResourceId, position, convertView, parent);
116 public View getDropDownView(int position, View convertView, ViewGroup parent) {
117 return getViewForResource(mDropDownResourceId, position, convertView, parent);
120 public View getViewForResource(int resourceId, int position, View convertView,
131 T item = mList.get(position);
    [all...]
  /external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
CharsetASCII.java 49 int oldSource = source.position();
50 int oldTarget = target.position();
80 source.position(oldSource + sourceLength);
81 target.position(oldTarget + sourceLength);
84 source.position(oldSource + targetLength);
85 target.position(oldTarget + targetLength);
94 source.position(source.position() - 1); /* rewind by 1 */
100 int count = target.position() - oldTarget;
125 source.position(i + 1)
    [all...]
  /frameworks/ex/common/java/com/android/common/widget/
CompositeCursorAdapter.java 240 * Given a list position, returns the index of the corresponding partition.
242 public int getPartitionForPosition(int position) {
247 if (position >= start && position < end) {
256 * Given a list position, return the offset of the corresponding item in its
259 public int getOffsetInPartition(int position) {
264 if (position >= start && position < end) {
265 int offset = position - start;
277 * Returns the first list position for the specified partition
281 int position = 0; local
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
test_plurality_checkable_iterator.py 88 self.position = 0
94 if self.position == 0:
95 self.position += 1
97 elif self.position == 1:
98 self.position += 1
121 self.position = 0
127 if self.position < 2:
128 self.position += 1
129 raise CustomTestException('Test exception %s' % self.position)
159 self.position =
    [all...]
  /external/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/
post.pass.cpp 29 assert((*i).position() == 0);
32 assert((*i2).position() == 0);
38 assert((*i).position() == 10);
41 assert((*i2).position() == 0);
47 assert((*i).position() == 20);
50 assert((*i2).position() == 0);
56 assert((*i2).position() == 0);
67 assert((*i).position() == 0);
70 assert((*i2).position() == 0);
76 assert((*i).position() == 10)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.iter/re.regiter/re.regiter.incr/
post.pass.cpp 29 assert((*i).position() == 0);
32 assert((*i2).position() == 0);
38 assert((*i).position() == 10);
41 assert((*i2).position() == 0);
47 assert((*i).position() == 20);
50 assert((*i2).position() == 0);
56 assert((*i2).position() == 0);
67 assert((*i).position() == 0);
70 assert((*i2).position() == 0);
76 assert((*i).position() == 10)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
AlarmTimeAdapter.java 87 public void onBindViewHolder(AlarmTimeViewHolder viewHolder, int position) {
88 if (!mCursor.moveToPosition(position)) {
89 LogUtils.e(TAG, "Failed to bind alarm " + position);
104 public long getItemId(int position) {
105 if (mCursor == null || !mCursor.moveToPosition(position)) {
113 public int getItemViewType(int position) {
114 final long stableId = getItemId(position);
124 * Request the UI to expand the alarm at selected position and scroll it into view.
126 public void expand(int position) {
127 final long stableId = getItemId(position);
    [all...]
  /external/sonic/
Sonic.java 77 int position,
82 int start = position*numChannels;
324 int position)
326 int remainingSamples = numInputSamples - position;
328 move(inputBuffer, 0, inputBuffer, position, remainingSamples);
335 int position,
339 move(outputBuffer, numOutputSamples, samples, position, numSamples);
345 int position)
352 copyToOutput(inputBuffer, position, numSamples);
492 int position,
719 int position = 0; local
752 int position = newRatePosition*oldSampleRate; local
768 int position; local
855 int position = 0, period, newSamples; local
    [all...]
  /art/runtime/base/
dchecked_vector.h 151 // Modifiers: insert(). Check position.
152 iterator insert(const_iterator position, const value_type& value) {
153 DCHECK(cbegin() <= position && position <= cend());
154 return Base::insert(position, value);
156 iterator insert(const_iterator position, size_type n, const value_type& value) {
157 DCHECK(cbegin() <= position && position <= cend());
158 return Base::insert(position, n, value);
161 iterator insert(const_iterator position, InputIterator first, InputIterator last)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
AbstractTestListActivity.java 41 private Intent getIntent(int position) {
42 TestListItem item = mAdapter.getItem(position);
83 protected final void onListItemClick(ListView listView, View view, int position, long id) {
84 super.onListItemClick(listView, view, position, id);
85 handleItemClick(listView, view, position, id);
89 protected void handleItemClick(ListView listView, View view, int position, long id) {
90 Intent intent = getIntent(position);
  /cts/tests/tests/view/src/android/view/animation/cts/
GridLayoutAnimCtsActivity.java 63 public boolean isEnabled(int position) {
77 public Object getItem(int position) {
78 return position;
81 public long getItemId(int position) {
82 return position;
89 public View getView(int position, View convertView, ViewGroup parent) {
103 public int getItemViewType(int position) {
  /developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/slidingtabsbasic/
SlidingTabsBasicFragment.java 115 * Return the title of the item at {@code position}. This is important as what this method
118 * Here we construct one using the position value, but for real application the title should
122 public CharSequence getPageTitle(int position) {
123 return "Item " + (position + 1);
128 * Instantiate the {@link View} which should be displayed at {@code position}. Here we
129 * inflate a layout from the apps resources and then change the text view to signify the position.
132 public Object instantiateItem(ViewGroup container, int position) {
141 title.setText(String.valueOf(position + 1));
143 Log.i(LOG_TAG, "instantiateItem() [position: " + position + "]")
    [all...]
  /developers/samples/android/ui/views/SlidingTabs/SlidingTabsBasic/Application/src/main/java/com/example/android/slidingtabsbasic/
SlidingTabsBasicFragment.java 115 * Return the title of the item at {@code position}. This is important as what this method
118 * Here we construct one using the position value, but for real application the title should
122 public CharSequence getPageTitle(int position) {
123 return "Item " + (position + 1);
128 * Instantiate the {@link View} which should be displayed at {@code position}. Here we
129 * inflate a layout from the apps resources and then change the text view to signify the position.
132 public Object instantiateItem(ViewGroup container, int position) {
141 title.setText(String.valueOf(position + 1));
143 Log.i(LOG_TAG, "instantiateItem() [position: " + position + "]")
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
List14.java 78 public Object getItem(int position) {
79 return position;
87 public long getItemId(int position) {
88 return position;
97 public View getView(int position, View convertView, ViewGroup parent) {
122 holder.text.setText(DATA[position]);
123 holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 : mIcon2);
  /development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/
SlidingTabsBasicFragment.java 115 * Return the title of the item at {@code position}. This is important as what this method
118 * Here we construct one using the position value, but for real application the title should
122 public CharSequence getPageTitle(int position) {
123 return "Item " + (position + 1);
128 * Instantiate the {@link View} which should be displayed at {@code position}. Here we
129 * inflate a layout from the apps resources and then change the text view to signify the position.
132 public Object instantiateItem(ViewGroup container, int position) {
141 title.setText(String.valueOf(position + 1));
143 Log.i(LOG_TAG, "instantiateItem() [position: " + position + "]")
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/
ScriptListAdapter.java 47 public Object getItem(int position) {
48 return getScriptList().get(position);
52 public long getItemId(int position) {
53 return position;
57 public View getView(int position, View convertView, ViewGroup parent) {
59 File script = getScriptList().get(position);
80 text.setText(getScriptList().get(position).getName());
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ArrayObjectAdapter.java 75 * @param positionStart The position of first item that has changed.
135 * Replaces item at position with a new item and calls notifyItemRangeChanged()
136 * at the given position. Note that this method does not compare new item to
138 * @param position The index of item to replace.
139 * @param item The new item to be placed at given position.
141 public void replace(int position, Object item) {
142 mItems.set(position, item);
143 notifyItemRangeChanged(position, 1);
148 * the starting position and the number of elements to remove.
150 * @param position The index of the first item to remove
    [all...]

Completed in 1012 milliseconds

1 2 3 4 5 67 8 91011>>