Searched refs:scrap (Results 1 - 12 of 12) sorted by relevance

/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp270 char scrap[SIZE]; local
283 strncpy(scrap, name, index);
284 scrap[index] = 0;
285 f = (__eglMustCastToProperFunctionPointerType)dlsym(dso, scrap);
286 //ALOGD_IF(f, "found <%s> instead", scrap);
293 snprintf(scrap, SIZE, "%sOES", name);
294 f = (__eglMustCastToProperFunctionPointerType)dlsym(dso, scrap);
295 //ALOGD_IF(f, "found <%s> instead", scrap);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewAnimationsTest.java373 // it should move to change scrap and then show up from there
399 // it should move to change scrap and then show up from there
444 // it should move to change scrap and then show up from there
468 // it should move to change scrap and then show up from there
1080 public void putRecycledView(RecyclerView.ViewHolder scrap) {
1081 super.putRecycledView(scrap);
1158 }, PositionConstraint.scrap(6, -1, 5), PositionConstraint.scrap(5, -1, 6),
1159 PositionConstraint.scrap(7, -1, 7), PositionConstraint.scrap(
[all...]
H A DBaseRecyclerViewAnimationsTest.java128 builder.append("scrap:\n");
505 // true if found in scrap
534 scrap, enum constant in enum:BaseRecyclerViewAnimationsTest.PositionConstraint.Type
536 adapterScrap /*first pass adapter, second pass scrap*/
549 public static PositionConstraint scrap(int oldPos, int preLayoutPos, int postLayoutPos) { method in class:BaseRecyclerViewAnimationsTest.PositionConstraint
551 constraint.mType = Type.scrap;
601 if (mType == Type.scrap || (mType == Type.adapterScrap && !state.isPreLayout())) {
602 assertNotNull(this + ": result should come from scrap\n" + log, result.scrapResult);
617 if (mType == Type.scrap) {
H A DBaseRecyclerViewInstrumentationTest.java369 public void putRecycledView(RecyclerView.ViewHolder scrap) {
370 assertNull(scrap.mOwnerRecyclerView);
371 super.putRecycledView(scrap);
679 assertFalse("Invalid scrap should be no kept", viewHolder.isInvalid());
H A DLinearLayoutManagerTest.java1144 public void putRecycledView(RecyclerView.ViewHolder scrap) {
1145 super.putRecycledView(scrap);
1148 Log.d(TAG, "CHILD_CNT(put):" + cnt + ", " + scrap);
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java1225 * @param optScrap Optional scrap view; will be reused if possible
1238 final View scrap = optType == positionViewType ?
1241 view = mAdapter.getView(position, scrap, this);
1243 if (view != scrap && scrap != null) {
1245 mRecycler.addScrap(scrap);
1515 ArrayList<View> scrap = mScrapViews[lp.viewType];
1516 if (scrap.size() < mMaxScrap) {
1517 scrap.add(v);
1534 ArrayList<View> scrap
[all...]
/frameworks/base/core/java/android/widget/
H A DAbsListView.java2331 * newly-inflated or remained scrap for multiple layout
2351 // If we failed to re-bind the data, scrap the obtained view.
2369 // Failed to re-bind the data, return scrap to the heap.
2955 // Detach any view left in the scrap heap
6287 // Pretend they went through the scrap heap
6550 * scrap heap.
6594 * inside the RecycleBin's scrap heap. This listener is used to free resources
6602 * Indicates that the specified View was moved into the recycler's scrap heap.
6667 final ArrayList<View> scrap = mCurrentScrap;
6668 final int scrapCount = scrap
6832 addScrapView(View scrap, int position) argument
7123 clearScrap(final ArrayList<View> scrap) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java1176 public int[] extractThemeAttrs(@Nullable int[] scrap) { argument
1203 if (scrap != null && scrap.length == N) {
1204 attrs = scrap;
/frameworks/base/core/java/com/android/internal/widget/
H A DLinearLayoutManager.java668 // If there are scrap children that we did not layout, we need to find where they did go
682 RecyclerView.ViewHolder scrap = scrapList.get(i);
683 if (scrap.isRemoved()) {
686 final int position = scrap.getLayoutPosition();
690 scrapExtraStart += mOrientationHelper.getDecoratedMeasurement(scrap.itemView);
692 scrapExtraEnd += mOrientationHelper.getDecoratedMeasurement(scrap.itemView);
697 Log.d(TAG, "for unused scrap, decided to add " + scrapExtraStart
1494 * * OR we are laying out scrap children
1528 // if we are laying out views in scrap, this may return null which means there is
2098 * Equal to {@link RecyclerView.State#isPreLayout()}. When consuming scrap, i
[all...]
H A DRecyclerView.java1294 * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
5010 public void putRecycledView(ViewHolder scrap) { argument
5011 final int viewType = scrap.getItemViewType();
5016 if (DEBUG && scrapHeap.contains(scrap)) {
5017 throw new IllegalArgumentException("this scrap item already exists");
5019 scrap.resetInternal();
5020 scrapHeap.add(scrap);
5186 * Clear scrap views out of this recycler. Detached views contained within a
5216 * Returns an unmodifiable list of ViewHolders that are currently in the scrap list.
5218 * @return List of ViewHolders in the scrap lis
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DLinearLayoutManager.java698 // If there are scrap children that we did not layout, we need to find where they did go
712 RecyclerView.ViewHolder scrap = scrapList.get(i);
713 if (scrap.isRemoved()) {
716 final int position = scrap.getLayoutPosition();
720 scrapExtraStart += mOrientationHelper.getDecoratedMeasurement(scrap.itemView);
722 scrapExtraEnd += mOrientationHelper.getDecoratedMeasurement(scrap.itemView);
727 Log.d(TAG, "for unused scrap, decided to add " + scrapExtraStart
1528 * * OR we are laying out scrap children
1562 // if we are laying out views in scrap, this may return null which means there is
2190 * Equal to {@link RecyclerView.State#isPreLayout()}. When consuming scrap, i
[all...]
H A DRecyclerView.java1440 * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
5428 * Add a scrap ViewHolder to the pool.
5432 * @param scrap ViewHolder to be added to the pool.
5434 public void putRecycledView(ViewHolder scrap) { argument
5435 final int viewType = scrap.getItemViewType();
5440 if (DEBUG && scrapHeap.contains(scrap)) {
5441 throw new IllegalArgumentException("this scrap item already exists");
5443 scrap.resetInternal();
5444 scrapHeap.add(scrap);
5610 * Clear scrap view
[all...]

Completed in 92 milliseconds