/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceRecyclerViewAccessibilityDelegate.java | 54 int position = mRecyclerView.getChildAdapterPosition(host); 62 Preference preference = preferenceGroupAdapter.getItem(position);
|
H A D | PreferenceGroupAdapter.java | 56 * Maps a position into this adapter -> {@link Preference}. These 246 public Preference getItem(int position) { argument 247 if (position < 0 || position >= getItemCount()) return null; 248 return mPreferenceList.get(position); 252 public long getItemId(int position) { argument 256 return this.getItem(position).getId(); 313 public int getItemViewType(int position) { argument 314 final Preference preference = this.getItem(position); 360 public void onBindViewHolder(PreferenceViewHolder holder, int position) { argument [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 132 buf.position(eocdOffsetInBuf); 139 * Returns the position at which ZIP End of Central Directory record starts in the provided 213 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_OFFSET_FIELD_OFFSET); 226 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_OFFSET_FIELD_OFFSET, 239 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_SIZE_FIELD_OFFSET); 260 buffer.putInt(buffer.position() + offset, (int) value);
|
/frameworks/support/compat/tests/java/android/support/v4/widget/ |
H A D | ListViewCompatTest.java | 66 public Object getItem(int position) { 71 public long getItemId(int position) { 72 return position; 76 public View getView(int position, View convertView, ViewGroup parent) { 82 result.setText("row #" + (position + 1));
|
/frameworks/support/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
H A D | FragmentNestingPagerSupport.java | 122 public Fragment getItem(int position) { argument 123 TabInfo info = mTabs.get(position); 128 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 132 public void onPageSelected(int position) { argument 133 mActionBar.setSelectedNavigationItem(position);
|
H A D | FragmentNestingStatePagerSupport.java | 122 public Fragment getItem(int position) { argument 123 TabInfo info = mTabs.get(position); 128 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 132 public void onPageSelected(int position) { argument 133 mActionBar.setSelectedNavigationItem(position);
|
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
H A D | FragmentNestingPagerSupport.java | 122 public Fragment getItem(int position) { argument 123 TabInfo info = mTabs.get(position); 128 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 132 public void onPageSelected(int position) { argument 133 mActionBar.setSelectedNavigationItem(position);
|
H A D | FragmentNestingStatePagerSupport.java | 122 public Fragment getItem(int position) { argument 123 TabInfo info = mTabs.get(position); 128 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 132 public void onPageSelected(int position) { argument 133 mActionBar.setSelectedNavigationItem(position);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActivityChooserView.java | 578 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 580 final int itemViewType = adapter.getItemViewType(position); 588 // The item at position zero is the default already. 589 if (position > 0) { 590 mAdapter.getDataModel().setDefaultActivity(position); 595 position = mAdapter.getShowDefaultActivity() ? position : position + 1; 596 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); 699 public int getItemViewType(int position) { argument 727 getItem(int position) argument 743 getItemId(int position) argument 748 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 384 public @Nullable T getItem(int position) { argument 385 return mObjects.get(position); 389 * Returns the position of the specified item in the array. 391 * @param item The item to retrieve the position of. 393 * @return The position of the specified item. 400 public long getItemId(int position) { argument 401 return position; 405 public @NonNull View getView(int position, @Nullable View convertView, argument 407 return createViewFromResource(mInflater, position, convertView, parent, mResource); 410 private @NonNull View createViewFromResource(@NonNull LayoutInflater inflater, int position, argument 490 getDropDownView(int position, @Nullable View convertView, @NonNull ViewGroup parent) argument [all...] |
H A D | DayPickerView.java | 182 private void updateButtonVisibility(int position) { argument 183 final boolean hasPrev = position > 0; 184 final boolean hasNext = position < (mAdapter.getCount() - 1); 281 * @param animate whether to smooth scroll to the new position 292 * @param animate whether to smooth scroll to the new position 312 final int position = getPositionFromDay(timeInMillis); 313 if (position != mViewPager.getCurrentItem()) { 314 mViewPager.setCurrentItem(position, animate); 325 final int position = getPositionFromDay(timeInMillis); 326 if (position ! 408 setPosition(int position) argument [all...] |
H A D | GridView.java | 215 int position; 217 position = lookForSelectablePosition(mItemCount - 1, false); 219 position = lookForSelectablePosition(0, true); 221 setSelectedPositionInt(position); 222 setNextSelectedPositionInt(position); 234 int lookForSelectablePosition(int position, boolean lookDown) { argument 240 if (position < 0 || position >= mItemCount) { 243 return position; 263 int position 553 fillSpecific(int position, int top) argument 852 smoothScrollToPosition(int position) argument 1424 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected, int where) argument 1465 setupChild(View child, int position, int y, boolean flowDown, int childrenLeft, boolean selected, boolean isAttachedToWindow, int where) argument 1584 setSelection(int position) argument 1603 setSelectionInt(int position) argument 2390 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 205 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); 207 position[i*6 + 0].x = r->left; 208 position[i*6 + 0].y = height - r->top; 209 position[i*6 + 1].x = r->left; 210 position[i*6 + 1].y = height - r->bottom; 211 position[i*6 + 2].x = r->right; 212 position[i*6 + 2].y = height - r->bottom; 213 position[i*6 + 3].x = r->left; 214 position[i*6 + 3].y = height - r->top; 215 position[ [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | TabLayoutWithViewPagerTest.java | 83 protected void configureInstantiatedItem(View view, int position) { argument 84 switch (position) { 119 public void destroyItem(ViewGroup container, int position, Object object) { argument 126 return ((ViewHolder) object).position; 135 public CharSequence getPageTitle(int position) { argument 136 return mEntries.get(position).first; 141 final int position; field in class:TabLayoutWithViewPagerTest.BasePagerAdapter.ViewHolder 143 public ViewHolder(View view, int position) { argument 145 this.position = position; 152 instantiateItem(ViewGroup container, int position) argument 167 instantiateItem(ViewGroup container, int position) argument [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | HlsSampleDecryptor.cpp | 262 size_t position = 0; 264 while (position < limit) { 265 position = findNextUnescapeIndex(data, position, limit); 266 if (position < limit) { 267 scratchEscapePositions.add(position); 268 position += 3; 273 size_t escapedPosition = 0; // The position being read from. 274 size_t unescapedPosition = 0; // The position being written to.
|
/frameworks/base/core/java/android/accounts/ |
H A D | ChooseAccountActivity.java | 87 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 88 onListItemClick((ListView)parent, v, position, id); 121 protected void onListItemClick(ListView l, View v, int position, long id) { argument 122 Account account = (Account) mAccounts[position]; 169 public View getView(int position, View convertView, ViewGroup parent) { argument 182 holder.text.setText(mInfos[position].name); 183 holder.icon.setImageDrawable(mInfos[position].drawable);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | AccessibilityButtonChooserActivity.java | 89 gridview.setOnItemClickListener((parent, view, position, id) -> { 90 onTargetSelected(mTargets.get(position)); 127 public Object getItem(int position) { argument 132 public long getItemId(int position) { argument 133 return position; 137 public View getView(int position, View convertView, ViewGroup parent) { argument 140 final AccessibilityButtonTarget target = mTargets.get(position);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskWindowContainerController.java | 82 final int position = toTop ? POSITION_TOP : POSITION_BOTTOM; 83 stack.addTask(task, position, showForAllUsers, true /* moveParents */); 107 public void positionChildAt(AppWindowContainerController childController, int position) { argument 112 "Attempted to position of non-existing app : " + childController); 120 task.positionChildAt(position, aToken, false /* includeParents */); 124 public void reparent(StackWindowController stackController, int position, boolean moveParents) { argument 127 + " to stack=" + stackController + " at " + position); 138 mContainer.reparent(stack, position, moveParents);
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
H A D | PlayerSession.java | 140 long position = mRenderer == null ? -1 : mRenderer.getSeekPosition(); 142 bob.setState(newState, position, rate, SystemClock.elapsedRealtime()); 181 long position = -1; 183 position = mRenderer.getSeekPosition(); 213 bob.setState(pbState, position, rate, SystemClock.elapsedRealtime()); 229 long position = mRenderer == null ? -1 : mRenderer.getSeekPosition(); 231 bob.setState(PlaybackState.STATE_PAUSED, position, 0, SystemClock.elapsedRealtime());
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
H A D | UsageStatsActivity.java | 155 public Object getItem(int position) { argument 156 return mStats.get(position); 160 public long getItemId(int position) { argument 161 return position; 165 public View getView(int position, View convertView, ViewGroup parent) { argument 178 holder.packageName.setText(mStats.get(position).getPackageName()); 180 mStats.get(position).getTotalTimeInForeground()));
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
H A D | MetadataListReader.java | 93 newBuffer.position((int) offsetInfo.getStartOffset()); 226 * @return the position of the reader 256 mByteBuffer.position(0); 263 mByteBuffer.position(0); 270 mByteBuffer.position(0); 335 mByteBuffer.position(mByteBuffer.position() + numOfBytes); 340 return mByteBuffer.position();
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
H A D | ItemTouchHelperActivity.java | 81 public void onBindViewHolder(ConfigViewHolder holder, int position) { 82 ConfigToggle toggle = mConfigToggles[position]; 260 public void onBindViewHolder(ItemTouchViewHolder holder, int position) { argument 261 holder.textView.setText(mItems.get(position)); 265 public void delete(int position) { argument 266 mItems.remove(position); 267 notifyItemRemoved(position);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
H A D | ItemTouchHelperActivity.java | 81 public void onBindViewHolder(ConfigViewHolder holder, int position) { 82 ConfigToggle toggle = mConfigToggles[position]; 260 public void onBindViewHolder(ItemTouchViewHolder holder, int position) { argument 261 holder.textView.setText(mItems.get(position)); 265 public void delete(int position) { argument 266 mItems.remove(position); 267 notifyItemRemoved(position);
|
/frameworks/av/media/libaaudio/src/legacy/ |
H A D | AudioStreamTrack.cpp | 232 // Get current position so we can detect when the track is playing. 302 aaudio_wrapping_frames_t position; local 312 err = mAudioTrack->getPosition(&position); 315 } else if (position == mPositionWhenPausing) { 319 mPositionWhenPausing = position; 324 err = mAudioTrack->getPosition(&position); 327 } else if (position == 0) { 410 aaudio_wrapping_frames_t position; local 418 result = mAudioTrack->getPosition(&position); 420 mFramesRead.update32(position); [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | AsyncListUtilLayoutTest.java | 156 void scrollToPositionWithOffset(final int position, final int offset) throws Throwable { argument 160 mLayoutManager.scrollToPositionWithOffset(position, offset); 246 public void onItemLoaded(int position) { argument 247 mRecyclerView.getAdapter().notifyItemChanged(position); 274 public void onBindViewHolder(SimpleViewHolder holder, int position) { argument 275 final String item = mAsyncListUtil == null ? null : mAsyncListUtil.getItem(position); 279 mLoadedPositions.set(position); 280 if (mExpectedPositions.get(position)) { 281 mExpectedPositions.clear(position);
|