/packages/apps/TV/src/com/android/tv/search/ |
ProgramGuideSearchFragment.java | 56 public Presenter.ViewHolder onCreateViewHolder(ViewGroup viewGroup) { 69 return new Presenter.ViewHolder(cardView); 73 public void onBindViewHolder(ViewHolder viewHolder, Object o) { 74 ImageCardView cardView = (ImageCardView) viewHolder.view; 88 public void onUnbindViewHolder(ViewHolder viewHolder) { 125 public void onItemClicked(Presenter.ViewHolder viewHolder, Object o, RowPresenter 126 .ViewHolder viewHolder1, Row row) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
Picker.java | 360 static class ViewHolder extends RecyclerView.ViewHolder { 363 ViewHolder(View v, TextView textView) { 369 class PickerScrollArrayAdapter extends RecyclerView.Adapter<ViewHolder> { 385 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 394 ViewHolder vh = new ViewHolder(v, textView); 399 public void onBindViewHolder(ViewHolder holder, int position) { 409 public void onViewAttachedToWindow(ViewHolder holder) { 423 public void onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
RecyclerViewAnimationsTest.java | 64 final RecyclerView.ViewHolder oldVh = mRecyclerView.findViewHolderForAdapterPosition(3); 77 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); 101 final List<RecyclerView.ViewHolder> mRecycled = new ArrayList<>(); 110 RecyclerView.ViewHolder vh = mRecyclerView.getChildViewHolder(mRecyclerView.getChildAt(0)); 113 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, 120 final RecyclerView.ViewHolder[] updatedVH = new RecyclerView.ViewHolder[1]; 573 RecyclerView.ViewHolder targetVH = mRecyclerView.getChildViewHolder(targetChild[0]); 722 final List<RecyclerView.ViewHolder> mRecycledView [all...] |
RecyclerViewBasicTest.java | 206 final List<RecyclerView.ViewHolder> recycledVhs = new ArrayList<>(); 210 public void onViewRecycled(RecyclerView.ViewHolder holder) { 229 final List<RecyclerView.ViewHolder> recycledVhs = new ArrayList<>(); 233 public void onViewRecycled(RecyclerView.ViewHolder holder) { 328 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 474 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 479 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { 499 static class MockViewHolder extends RecyclerView.ViewHolder {
|
GridLayoutManagerTest.java | 611 RecyclerView.ViewHolder toBeRemoved = null; 612 List<RecyclerView.ViewHolder> toBeMoved = new ArrayList<RecyclerView.ViewHolder>(); 615 RecyclerView.ViewHolder holder = mRecyclerView.getChildViewHolder(child); 634 for (RecyclerView.ViewHolder vh : toBeMoved) { 638 List<RecyclerView.ViewHolder> newHolders = new ArrayList<RecyclerView.ViewHolder>(); 641 RecyclerView.ViewHolder holder = mRecyclerView.getChildViewHolder(child); 649 for (RecyclerView.ViewHolder holder : newHolders) { 714 final Map<Integer, RecyclerView.ViewHolder> viewHolderMap [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
DetailsFragment.java | 55 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)}. 102 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 103 RowPresenter.ViewHolder rowViewHolder, Object row) { 241 * adds two alignment positions({@link ItemAlignmentFacet}) for ViewHolder of 325 ItemBridgeAdapter.ViewHolder bridgeViewHolder = (ItemBridgeAdapter.ViewHolder) 340 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)} if presenter is 343 * @param presenter The presenter used to create row ViewHolder. 344 * @param viewHolder The visible (attached) row ViewHolder, note that it may or may no [all...] |
DetailsSupportFragment.java | 57 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)}. 104 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 105 RowPresenter.ViewHolder rowViewHolder, Object row) { 243 * adds two alignment positions({@link ItemAlignmentFacet}) for ViewHolder of 327 ItemBridgeAdapter.ViewHolder bridgeViewHolder = (ItemBridgeAdapter.ViewHolder) 342 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)} if presenter is 345 * @param presenter The presenter used to create row ViewHolder. 346 * @param viewHolder The visible (attached) row ViewHolder, note that it may or may no [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
Picker.java | 369 private class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { 372 public ViewHolder(View itemView) { 392 private class Adapter extends RecyclerView.Adapter<ViewHolder> 406 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 408 return new ViewHolder(view); 412 public void onBindViewHolder(ViewHolder holder, int position) { 440 final ViewHolder vh = (ViewHolder) mGridView.getChildViewHolder(view);
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
SectionBreakDocumentsAdapterWrapperTest.java | 160 private static class DummyAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 162 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {} 163 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
FullWidthDetailsOverviewSharedElementHelper.java | 23 import android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter.ViewHolder; 43 * activity transition once {@link FullWidthDetailsOverviewRowPresenter.Listener#onBindLogo(ViewHolder)} 54 private ViewHolder mViewHolder; 116 public void onBindLogo(ViewHolder vh) { 126 Log.d(TAG, "rebind? clear transitionName on current viewHolder "
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
AppChooserActivity.java | 246 final ViewHolder holder = new ViewHolder(view); 253 final ViewHolder holder = (ViewHolder) view.getTag(); 267 static class ViewHolder { 271 public ViewHolder(View view) {
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
LocaleDragAndDropAdapter.java | 58 class CustomViewHolder extends RecyclerView.ViewHolder implements View.OnTouchListener { 95 public boolean onMove(RecyclerView view, RecyclerView.ViewHolder source, 96 RecyclerView.ViewHolder target) { 102 public void onSwiped(RecyclerView.ViewHolder viewHolder, int i) { 113 RecyclerView.ViewHolder viewHolder, float dX, float dY, 116 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, 120 viewHolder.itemView.setElevation( 127 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) [all...] |
/packages/apps/Settings/src/com/android/settings/sim/ |
SimPreferenceDialog.java | 202 final ViewHolder holder; 210 holder = new ViewHolder(); 221 holder = (ViewHolder) rowView.getTag(); 235 final ViewHolder holder = (ViewHolder) rowView.getTag(); 246 private class ViewHolder {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
GridLayoutManagerActivity.java | 116 public SimpleStringAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, 118 final SimpleStringAdapter.ViewHolder vh = super
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/ |
VideoConsumptionExampleFragment.java | 108 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 109 RowPresenter.ViewHolder rowViewHolder, Row row) {
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
GroupingListAdapterTests.java | 83 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { 88 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/settings/ |
PermissionsSettingsAdapter.java | 38 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 43 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { 45 PermissionsViewHolder viewHolder = (PermissionsViewHolder) holder; 49 viewHolder.imageView.setEnabled(false); 50 viewHolder.textView.setEnabled(false); 51 viewHolder.state.setEnabled(false); 52 viewHolder.state.setText( 55 viewHolder.imageView.setEnabled(true); 56 viewHolder.textView.setEnabled(true); 57 viewHolder.state.setEnabled(true) [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
NavigationMenuPresenter.java | 276 private abstract static class ViewHolder extends RecyclerView.ViewHolder { 278 public ViewHolder(View itemView) { 284 private static class NormalViewHolder extends ViewHolder { 294 private static class SubheaderViewHolder extends ViewHolder { 302 private static class SeparatorViewHolder extends ViewHolder { 310 private static class HeaderViewHolder extends ViewHolder { 338 private class NavigationMenuAdapter extends RecyclerView.Adapter<ViewHolder> { 385 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 400 public void onBindViewHolder(ViewHolder holder, int position) [all...] |
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 224 ViewHolder viewHolder; 228 viewHolder = new ViewHolder(); 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); 231 view.setTag(viewHolder); 233 viewHolder = (ViewHolder) view.getTag(); 239 viewHolder.deviceName.setText(deviceName) [all...] |
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
BrowseFragment.java | 175 static class ViewHolder { 184 ViewHolder holder; 189 holder = new ViewHolder(); 196 holder = (ViewHolder) convertView.getTag();
|
/developers/build/prebuilts/gradle/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ |
SpeedPickerActivity.java | 79 public void onClick(WearableListView.ViewHolder viewHolder) { 81 int newSpeedLimit = speeds[viewHolder.getPosition()];
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
SetTimerActivity.java | 99 public void onClick(WearableListView.ViewHolder holder) { 199 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 200 return new WearableListView.ViewHolder( 205 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) {
|
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
ComplicationSimpleConfigActivity.java | 72 public void onClick(WearableListView.ViewHolder viewHolder) { 77 Integer tag = (Integer) viewHolder.itemView.getTag(); 149 public static class ItemViewHolder extends WearableListView.ViewHolder { 160 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 168 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) {
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 224 ViewHolder viewHolder; 228 viewHolder = new ViewHolder(); 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); 231 view.setTag(viewHolder); 233 viewHolder = (ViewHolder) view.getTag(); 239 viewHolder.deviceName.setText(deviceName) [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
BrowseFragment.java | 175 static class ViewHolder { 184 ViewHolder holder; 189 holder = new ViewHolder(); 196 holder = (ViewHolder) convertView.getTag();
|