/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 124 // Row count is one more than the last item's row index. 138 // Column count is one more than the last item's column index. 446 throw new RuntimeException("Cannot find span group index for position " 466 throw new RuntimeException("Cannot find span index for pre layout position. It is" 842 * Clears the span index cache. GridLayoutManager automatically calls this method when 872 * Returns the final span index of the provided position. 874 * If you have a faster way to calculate span index for your items, you should override 875 * this method. Otherwise, you should enable span index cache 938 int index = lo - 1; 939 if (index > [all...] |
H A D | PositionMap.java | 118 * Removes the mapping at the specified index. 120 public void removeAt(int index) { argument 121 if (mValues[index] != DELETED) { 122 mValues[index] = DELETED; 130 * @param index Index to begin at 133 public void removeAtRange(int index, int size) { argument 134 final int end = Math.min(mSize, index + size); 135 for (int i = index; i < end; i++) { 241 * Given an index in the range <code>0...size()-1</code>, returns 242 * the key from the <code>index</cod 245 keyAt(int index) argument 259 valueAt(int index) argument 272 setValueAt(int index, E value) argument [all...] |
H A D | RecyclerView.java | 93 * <li><em>Index:</em> The index of an attached child view as used in a call to 637 public void addView(View child, int index) { 638 RecyclerView.this.addView(child, index); 648 public void removeViewAt(int index) { 649 final View child = RecyclerView.this.getChildAt(index); 653 RecyclerView.this.removeViewAt(index); 676 public void attachViewToParent(View child, int index, 689 RecyclerView.this.attachViewToParent(child, index, layoutParams); 1260 * @param index Position in the decoration chain to insert this decoration at. If this value 1263 public void addItemDecoration(ItemDecoration decor, int index) { argument 5301 getScrapViewAt(int index) argument 6988 addDisappearingView(View child, int index) argument 7011 addView(View child, int index) argument 7015 addViewInt(View child, int index, boolean disappearing) argument 7089 removeViewAt(int index) argument 7235 detachViewAt(int index) argument 7239 detachViewInternal(int index, View view) argument 7255 attachView(View child, int index, LayoutParams lp) argument 7276 attachView(View child, int index) argument 7340 detachAndScrapViewAt(int index, Recycler recycler) argument 7362 removeAndRecycleViewAt(int index, Recycler recycler) argument 7383 getChildAt(int index) argument 7628 scrapOrRecycleView(Recycler recycler, int index, View view) argument [all...] |
H A D | StaggeredGridLayoutManager.java | 1573 // assign span before measuring so that item decorators can get updated span index 2337 * Returns the Span index to which this View is assigned. 2339 * @return The Span index of the View. If View is not yet assigned to any span, returns 2360 private Span(int index) { argument 2361 mIndex = index;
|
H A D | ViewInfoStore.java | 105 int index = mLayoutHolderMap.indexOfKey(vh); 106 if (index < 0) { 109 final InfoRecord record = mLayoutHolderMap.valueAt(index); 122 mLayoutHolderMap.removeAt(index); 223 for (int index = mLayoutHolderMap.size() - 1; index >= 0; index --) { 224 final ViewHolder viewHolder = mLayoutHolderMap.keyAt(index); 225 final InfoRecord record = mLayoutHolderMap.removeAt(index);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
H A D | ItemTouchHelper.java | 335 final int index = MotionEventCompat.findPointerIndex(event, mActivePointerId); 337 Log.d(TAG, "pointer index " + index); 339 if (index >= 0) { 340 checkSelectForSwipe(action, event, index); 374 // Find the index of the active pointer and fetch its position 534 // we don't know if RV changed something so we should invalidate this index. 800 // find the index to add 2277 final int index = MotionEventCompat 2279 final float x = MotionEventCompat.getX(e, index); [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseLinearLayoutManagerTest.java | 218 assertNotNull(message + ":\nItem with same adapter index should be visible " + 383 public void removeAndRecycleViewAt(int index, RecyclerView.Recycler recycler) { argument 386 "recycling view at" + mRecyclerView.getChildViewHolder(getChildAt(index))); 388 super.removeAndRecycleViewAt(index, recycler);
|
H A D | BaseWrapContentTest.java | 216 int index = 0; 219 tmp.set(expected[index]); 221 assertThat("behavior " + index, snapshot.mChildCoordinates.get(behavior.getId()), 223 index ++; 372 int index) { 373 long key1 = map1.keyAt(index); 374 long key2 = map2.keyAt(index); 375 assertEquals(prefix + "key mismatch at index " + index, key1, key2); 376 Object value1 = map1.valueAt(index); 371 assertAtIndex(String prefix, LongSparseArray<?> map1, LongSparseArray<?> map2, int index) argument [all...] |
H A D | ChildHelperTest.java | 115 public void addView(View child, int index) { argument 116 mViews.add(index, child); 124 private boolean validateIndex(int index) { argument 125 return index < getChildCount() && index >= 0; 129 public void removeViewAt(int index) { argument 130 if (validateIndex(index)) { 131 mViews.remove(index); 154 public void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams) { argument 156 addView(child, index); [all...] |
H A D | RecyclerViewLayoutTest.java | 1758 int index = testAdapter.mItems.indexOf(vh.mBoundItem); 1759 assertEquals("should be able to find VH with adapter position " + index, vh, 1760 recyclerView.findViewHolderForAdapterPosition(index)); 1761 assertEquals("get adapter position should return correct index", index, 1771 int index = testAdapter.mItems.indexOf(vh.mBoundItem); 1772 if (index >= 0) { 1774 + index, vh, 1775 recyclerView.findViewHolderForAdapterPosition(index)); 1777 assertSame("get adapter position should return correct index", inde 4151 detachViewFromParent(int index) argument 4156 attachViewToParent(View child, int index, ViewGroup.LayoutParams params) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Element.java | 57 * <a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a> 233 * sub-element at index 234 * @param index index of the sub-element to return 235 * @return sub-element in this element at given index 237 public Element getSubElement(int index) { argument 241 if (index < 0 || index >= mVisibleElementMap.length) { 242 throw new RSIllegalArgumentException("Illegal sub-element index"); 244 return mElements[mVisibleElementMap[index]]; 253 getSubElementName(int index) argument 270 getSubElementArraySize(int index) argument 286 getSubElementOffsetBytes(int index) argument [all...] |
H A D | RenderScript.java | 44 * <a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a> developer guide.</p> 885 native void rsnClosureSetArg(long con, long closureID, int index, argument 887 synchronized void nClosureSetArg(long closureID, int index, long value, argument 890 rsnClosureSetArg(mContext, closureID, index, value, size);
|
H A D | Script.java | 353 for (int index = 0; index < ains.length; ++index) { 354 in_ids[index] = ains[index].getID(mRS); 405 for (int index = 0; index < ains.length; ++index) { 406 in_ids[index] = ains[index] 431 setVar(int index, float v) argument 441 setVar(int index, double v) argument 451 setVar(int index, int v) argument 461 setVar(int index, long v) argument 471 setVar(int index, boolean v) argument 481 setVar(int index, BaseObj o) argument 496 setVar(int index, FieldPacker v) argument 508 setVar(int index, FieldPacker v, Element e, int[] dims) argument [all...] |
H A D | ScriptGroup.java | 205 int index, Script.FieldID fid, Object obj, 213 depClosures[index] = f.getClosure().getID(rs); 215 depFieldIDs[index] = fieldID != null ? fieldID.getID(rs) : 0; 217 depClosures[index] = 0; 218 depFieldIDs[index] = 0; 223 if (index < mArgs.length) { 224 unbound.addReference(this, index); 228 values[index] = 0; 229 sizes[index] = 0; 232 values[index] 204 retrieveValueAndDependenceInfo(RenderScript rs, int index, Script.FieldID fid, Object obj, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument 277 setArg(int index, Object obj) argument 369 addReference(Closure closure, int index) argument [all...] |
H A D | ScriptIntrinsicLUT.java | 70 private void validate(int index, int value) { argument 71 if (index < 0 || index > 255) { 82 * @param index Must be 0-255 85 public void setRed(int index, int value) { argument 86 validate(index, value); 87 mCache[index] = (byte)value; 94 * @param index Must be 0-255 97 public void setGreen(int index, int value) { argument 98 validate(index, valu 109 setBlue(int index, int value) argument 121 setAlpha(int index, int value) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 503 jint index, jlong value, jint size) { 505 dispatchTab.ClosureSetArg((RsContext)con, (RsClosure)closureID, (uint32_t)index, 1670 for (int index = in_len; --index >= 0;) { 1671 in_allocs[index] = (RsAllocation)in_ptr[index]; 1776 for (int index = in_len; --index >= 0;) { 1777 in_allocs[index] = (RsAllocation)in_ptr[index]; 502 nClosureSetArg(JNIEnv *_env, jobject _this, jlong con, jlong closureID, jint index, jlong value, jint size) argument [all...] |
/frameworks/rs/api/ |
H A D | Specification.cpp | 63 // Returns the index in TYPES for the provided cType 458 // Find index of numerical type corresponding to cTypeStr. The case where 465 // If index exists, perform replacement. 535 void FunctionSpecification::getParam(size_t index, int replacementIndexes[MAX_REPLACEABLES], argument 538 ParameterEntry* p = mParameters[index];
|
H A D | Specification.h | 421 void getParam(size_t index, int replacementIndexes[MAX_REPLACEABLES], std::string* type,
|
H A D | rs_for_each.spec | 52 cell, like the Array0 index or the current level of detail. 61 field: uint32_t xStart, "Starting index in the X dimension." 62 field: uint32_t xEnd, "Ending index (exclusive) in the X dimension." 63 field: uint32_t yStart, "Starting index in the Y dimension." 64 field: uint32_t yEnd, "Ending index (exclusive) in the Y dimension." 65 field: uint32_t zStart, "Starting index in the Z dimension." 66 field: uint32_t zEnd, "Ending index (exclusive) in the Z dimension." 67 field: uint32_t arrayStart, "Starting index in the Array0 dimension." 68 field: uint32_t arrayEnd, "Ending index (exclusive) in the Array0 dimension." 69 field: uint32_t array1Start, "Starting index i [all...] |
H A D | rs_graphics.spec | 256 arg: uint slot, "index of the constant buffer on the program" 454 If start and len are also specified, draw specified index range of part of a mesh using the current context state. 465 arg: uint primitiveIndex, "for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw." 475 arg: uint start, "starting index in the range" 713 ret: rs_allocation, "allocation containing index data" 715 arg: uint32_t index, "index of the index allocation" 717 summary: Return an allocation containing index data 719 Returns an allocation containing index dat [all...] |
H A D | rs_matrix.spec | 24 We use a zero-based index for rows and columns. E.g. the last element of a
|
H A D | rs_value_types.spec | 44 <li>The letter s or S, followed by a zero based index.</li></ul>
|
/frameworks/rs/cpp/ |
H A D | Element.cpp | 26 android::RSC::sp<const Element> Element::getSubElement(uint32_t index) { argument 31 if (index >= mVisibleElementMapSize) { 32 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index"); 35 return mElements[mVisibleElementMap[index]]; 38 const char * Element::getSubElementName(uint32_t index) { argument 43 if (index >= mVisibleElementMapSize) { 44 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index"); 47 return mElementNames[mVisibleElementMap[index]]; 50 size_t Element::getSubElementArraySize(uint32_t index) { argument 55 if (index > 62 getSubElementOffsetBytes(uint32_t index) argument [all...] |
H A D | Script.cpp | 48 void Script::setVar(uint32_t index, sp<const BaseObj> o) const { argument 49 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID())); 52 void Script::setVar(uint32_t index, const void *v, size_t len) const { argument 53 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
|
H A D | rsCppStructs.h | 941 * For complex Elements, this returns the sub-element at a given index. 942 * @param[in] index index of sub-element 945 sp<const Element> getSubElement(uint32_t index); 949 * index. 950 * @param[in] index index of sub-element 953 const char * getSubElementName(uint32_t index); 957 * index. 958 * @param[in] index inde 1712 setVar(uint32_t index, float v) const argument 1715 setVar(uint32_t index, double v) const argument 1718 setVar(uint32_t index, int32_t v) const argument 1721 setVar(uint32_t index, uint32_t v) const argument 1724 setVar(uint32_t index, int64_t v) const argument 1727 setVar(uint32_t index, bool v) const argument [all...] |