/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmClockFragment.java | 80 private RecyclerView mRecyclerView; 117 mRecyclerView = (RecyclerView) v.findViewById(R.id.alarms_recycler_view); 128 mRecyclerView.setLayoutManager(mLayoutManager); 134 mEmptyViewController = new EmptyViewController(mMainLayout, mRecyclerView, emptyView); 157 mRecyclerView.findViewHolderForItemId(mExpandedAlarmId); 174 mRecyclerView.addOnLayoutChangeListener(scrollPositionWatcher); 175 mRecyclerView.addOnScrollListener(scrollPositionWatcher); 176 mRecyclerView.setAdapter(mItemAdapter); 180 mRecyclerView.setItemAnimator(itemAnimator); 302 if (mRecyclerView.getItemAnimator().isRunning()) [all...] |
/developers/build/prebuilts/gradle/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragment.java | 55 RecyclerView mRecyclerView; 94 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_app_usage); 95 mLayoutManager = mRecyclerView.getLayoutManager(); 96 mRecyclerView.scrollToPosition(0); 97 mRecyclerView.setAdapter(mUsageListAdapter); 126 * Returns the {@link #mRecyclerView} including the time span specified by the 162 * Updates the {@link #mRecyclerView} with the list of {@link UsageStats} passed as an argument. 165 * {@link #mRecyclerView}. 187 mRecyclerView.scrollToPosition(0);
|
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectorySelectionFragment.java | 55 RecyclerView mRecyclerView; 125 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_directory_entries); 126 mLayoutManager = mRecyclerView.getLayoutManager(); 127 mRecyclerView.scrollToPosition(0); 129 mRecyclerView.setAdapter(mAdapter); 145 * And updates the {@link #mRecyclerView} depending on the contents of the children.
|
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectorySelectionFragment.java | 55 RecyclerView mRecyclerView; 125 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_directory_entries); 126 mLayoutManager = mRecyclerView.getLayoutManager(); 127 mRecyclerView.scrollToPosition(0); 129 mRecyclerView.setAdapter(mAdapter); 145 * And updates the {@link #mRecyclerView} depending on the contents of the children.
|
/developers/samples/android/system/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragment.java | 55 RecyclerView mRecyclerView; 94 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_app_usage); 95 mLayoutManager = mRecyclerView.getLayoutManager(); 96 mRecyclerView.scrollToPosition(0); 97 mRecyclerView.setAdapter(mUsageListAdapter); 126 * Returns the {@link #mRecyclerView} including the time span specified by the 162 * Updates the {@link #mRecyclerView} with the list of {@link UsageStats} passed as an argument. 165 * {@link #mRecyclerView}. 187 mRecyclerView.scrollToPosition(0);
|
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/ |
AppUsageStatisticsFragment.java | 55 RecyclerView mRecyclerView; 94 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_app_usage); 95 mLayoutManager = mRecyclerView.getLayoutManager(); 96 mRecyclerView.scrollToPosition(0); 97 mRecyclerView.setAdapter(mUsageListAdapter); 126 * Returns the {@link #mRecyclerView} including the time span specified by the 162 * Updates the {@link #mRecyclerView} with the list of {@link UsageStats} passed as an argument. 165 * {@link #mRecyclerView}. 187 mRecyclerView.scrollToPosition(0);
|
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/ |
DirectorySelectionFragment.java | 55 RecyclerView mRecyclerView; 125 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_directory_entries); 126 mLayoutManager = mRecyclerView.getLayoutManager(); 127 mRecyclerView.scrollToPosition(0); 129 mRecyclerView.setAdapter(mAdapter); 145 * And updates the {@link #mRecyclerView} depending on the contents of the children.
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
AnimatedRecyclerView.java | 48 private RecyclerView mRecyclerView; 65 mRecyclerView = new RecyclerView(this); 68 mRecyclerView.setItemAnimator(mCachedAnimator); 69 mRecyclerView.setLayoutManager(new MyLayoutManager(this)); 70 mRecyclerView.setHasFixedSize(true); 71 mRecyclerView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 77 mRecyclerView.setAdapter(mAdapter); 78 container.addView(mRecyclerView); 84 if (isChecked && mRecyclerView.getItemAnimator() == null) { 85 mRecyclerView.setItemAnimator(mCachedAnimator) [all...] |
NestedRecyclerViewActivity.java | 89 private final RecyclerView mRecyclerView; 92 mRecyclerView = itemView; 128 holder.mRecyclerView.swapAdapter(mAdapters.get(position), true); 132 holder.mRecyclerView.getLayoutManager().onRestoreInstanceState(savedState); 140 holder.mRecyclerView.getLayoutManager().onSaveInstanceState());
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
FocusSearchNavigationTest.java | 93 private RecyclerView mRecyclerView; 106 mRecyclerView = (RecyclerView) mActivity.findViewById(R.id.recycler_view); 107 ViewCompat.setLayoutDirection(mRecyclerView, mLayoutDir); 110 mRecyclerView.setLayoutManager(layout); 111 mRecyclerView.setAdapter(new FocusSearchAdapter(itemCount, mOrientation)); 113 mRecyclerView.setLayoutParams(new LinearLayout.LayoutParams( 116 mRecyclerView.setLayoutParams(new LinearLayout.LayoutParams( 125 assertThat("test sanity", mRecyclerView.getLayoutManager().getLayoutDirection(), 127 assertThat("test sanity", ViewCompat.getLayoutDirection(mRecyclerView), is(mLayoutDir)); 138 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i) [all...] |
RecyclerViewAnimationsTest.java | 72 ((SimpleItemAnimator)(mRecyclerView.getItemAnimator())).setSupportsChangeAnimations(true); 74 final RecyclerView.ViewHolder oldVh = mRecyclerView.findViewHolderForAdapterPosition(3); 87 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); 120 RecyclerView.ViewHolder vh = mRecyclerView.getChildViewHolder(mRecyclerView.getChildAt(0)); 128 mRecyclerView.setItemAnimator(animator); 167 MatcherAssert.assertThat(mRecyclerView.getChildCount(), CoreMatchers.is(0)); 171 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(vh), 177 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(updatedVH[0]), 222 LoggingItemAnimator itemAnimator = (LoggingItemAnimator) mRecyclerView [all...] |
RecyclerViewOnGenericMotionEventTest.java | 43 TestRecyclerView mRecyclerView; 47 mRecyclerView = new TestRecyclerView(getContext()); 55 mRecyclerView.layout(0, 0, 320, 320); 61 mRecyclerView.setLayoutManager(layoutManager); 65 mRecyclerView.onGenericMotionEvent(e); 74 mRecyclerView.setLayoutManager(layoutManager); 78 mRecyclerView.onGenericMotionEvent(e); 85 mRecyclerView.setLayoutManager(layoutManager); 89 mRecyclerView.onGenericMotionEvent(e); 96 mRecyclerView.setLayoutManager(layoutManager) [all...] |
BaseLinearLayoutManagerTest.java | 93 mRecyclerView = inflateWrappedRV(); 95 mRecyclerView.setHasFixedSize(true); 99 mRecyclerView.setAdapter(mTestAdapter); 104 mRecyclerView.setLayoutManager(mLayoutManager); 106 mRecyclerView.setLayoutParams( 114 mRecyclerView.setLayoutParams(parentLayoutParams); 138 mRecyclerView.findViewHolderForLayoutPosition(scrollPosition); 175 setRecyclerView(mRecyclerView); 387 mRecyclerView.addOnScrollListener(mCallbackListener); 391 mRecyclerView.removeOnScrollListener(listener) [all...] |
AsyncListUtilLayoutTest.java | 68 mRecyclerView = inflateWrappedRV(); 69 mRecyclerView.setHasFixedSize(true); 72 mRecyclerView.setAdapter(mAdapter); 76 mRecyclerView.setLayoutManager(mLayoutManager); 79 setRecyclerView(mRecyclerView); 105 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { 242 mRecyclerView.getAdapter().notifyDataSetChanged(); 247 mRecyclerView.getAdapter().notifyItemChanged(position);
|
BaseGridLayoutManagerTest.java | 182 requestLayoutOnUIThread(mRecyclerView); 229 final boolean hadMore = hasMore(mRecyclerView.mState); 293 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { 300 mRecyclerView.removeOnScrollListener(this);
|
RecyclerViewLayoutTest.java | 380 + " same time", rv.mLayout == lm, is(lm.mRecyclerView == rv)); 431 mRecyclerView = rv; 474 mRecyclerView.offsetChildrenHorizontal(-dx); 483 mRecyclerView.offsetChildrenVertical(-dy); 627 mRecyclerView.getLayoutManager().getTransformedBoundingBox(child, true, rect); 811 mRecyclerView.getWidth() / 2, mRecyclerView.getHeight() / 2); 825 mRecyclerView.getWidth() / 2, mRecyclerView.getHeight() / 2); [all...] |
RecyclerViewFocusRecoveryTest.java | 142 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); 155 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); 158 mRecyclerView.isFocused(), is(false)); 179 + mRecyclerView.getChildCount() + " children", 180 mChildCount - 1, is(mRecyclerView.getChildCount())); 190 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); 193 mRecyclerView.isFocused(), is(false)); 216 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); 219 mRecyclerView.isFocused(), is(false)); 240 + mRecyclerView.getChildCount() + " children" [all...] |
BaseRecyclerViewInstrumentationTest.java | 72 protected RecyclerView mRecyclerView; 144 mRecyclerView.setAdapter(adapter); 167 waitForIdleScroll(mRecyclerView); 184 mRecyclerView.swapAdapter(adapter, removeAndRecycleExistingViews); 204 if (mRecyclerView != null && mRecyclerView 206 TestLayoutManager lm = (TestLayoutManager) mRecyclerView.getLayoutManager(); 222 if (mRecyclerView != null) { 242 mRecyclerView.getPaddingLeft(), 243 mRecyclerView.getPaddingTop() [all...] |
BaseStaggeredGridLayoutManagerTest.java | 89 mRecyclerView = new WrappedRecyclerView(getActivity()); 90 mRecyclerView.setAdapter(mAdapter); 91 mRecyclerView.setHasFixedSize(true); 95 mRecyclerView.setLayoutManager(mLayoutManager); 96 mRecyclerView.addItemDecoration(new RecyclerView.ItemDecoration() { 119 setRecyclerView(mRecyclerView); 224 int position = mRecyclerView.getChildLayoutPosition(child); 526 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { 533 mRecyclerView.removeOnScrollListener(this); 754 requestLayoutOnUIThread(mRecyclerView); [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
EntityHeaderController.java | 80 private RecyclerView mRecyclerView; 124 mRecyclerView = recyclerView; 298 if (mRecyclerView != null && mLifecycle != null) { 299 ActionBarShadowController.attachToRecyclerView(mActivity, mLifecycle, mRecyclerView);
|
/packages/services/Car/tests/CarDiagnosticVerifier/src/com/google/android/car/diagnosticverifier/ |
MainActivity.java | 83 private RecyclerView mRecyclerView; 145 mRecyclerView = (RecyclerView) findViewById(R.id.verification_results); 148 mRecyclerView.setLayoutManager(layoutManager); 150 mRecyclerView.setAdapter(mResultAdapter);
|
/frameworks/base/core/java/com/android/internal/widget/ |
RecyclerView.java | [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
RecyclerView.java | [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
QSCustomizer.java | 79 private RecyclerView mRecyclerView; 113 mRecyclerView = findViewById(android.R.id.list); 115 mRecyclerView.setAdapter(mTileAdapter); 116 mTileAdapter.getItemTouchHelper().attachToRecyclerView(mRecyclerView); 119 mRecyclerView.setLayoutManager(layout); 120 mRecyclerView.addItemDecoration(mTileAdapter.getItemDecoration()); 123 mRecyclerView.setItemAnimator(animator); 262 mRecyclerView.setAdapter(mTileAdapter); 331 mRecyclerView.setAdapter(mTileAdapter);
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
ConversationListSwipeHelper.java | 51 private final RecyclerView mRecyclerView; 67 mRecyclerView = recyclerView; 69 final Context context = mRecyclerView.getContext(); 102 final View viewAtPoint = mRecyclerView.findChildViewUnder(mInitialX, mInitialY); 261 mRecyclerView.getParent().requestDisallowInterceptTouchEvent(true); 340 mRecyclerView.getWidth() : -mRecyclerView.getWidth(); 441 return hasGestureSwipeTarget() && mListItemView.getParent() == mRecyclerView;
|