Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 25 of 59) sorted by relevance

123

/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DQueueAdapter.java54 ViewHolder holder; in getView() local
59 holder = new ViewHolder(); in getView()
60 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView()
61 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView()
62 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView()
63 convertView.setTag(holder); in getView()
65 holder = (ViewHolder) convertView.getTag(); in getView()
69 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
71 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
76 holder.mImageView.setImageDrawable( in getView()
[all …]
DBrowseFragment.java192 ViewHolder holder; in getView() local
197 holder = new ViewHolder(); in getView()
198 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView()
199 holder.mImageView.setVisibility(View.GONE); in getView()
200 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView()
201 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView()
202 convertView.setTag(holder); in getView()
204 holder = (ViewHolder) convertView.getTag(); in getView()
208 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
209 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DQueueAdapter.java52 ViewHolder holder; in getView() local
57 holder = new ViewHolder(); in getView()
58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView()
59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView()
60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView()
61 convertView.setTag(holder); in getView()
63 holder = (ViewHolder) convertView.getTag(); in getView()
67 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
69 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
74 holder.mImageView.setImageDrawable( in getView()
[all …]
DBrowseFragment.java184 ViewHolder holder; in getView() local
189 holder = new ViewHolder(); in getView()
190 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView()
191 holder.mImageView.setVisibility(View.GONE); in getView()
192 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView()
193 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView()
194 convertView.setTag(holder); in getView()
196 holder = (ViewHolder) convertView.getTag(); in getView()
200 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
201 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DList14.java100 ViewHolder holder; in getView() local
110 holder = new ViewHolder(); in getView()
111 holder.text = (TextView) convertView.findViewById(R.id.text); in getView()
112 holder.icon = (ImageView) convertView.findViewById(R.id.icon); in getView()
114 convertView.setTag(holder); in getView()
118 holder = (ViewHolder) convertView.getTag(); in getView()
122 holder.text.setText(DATA[position]); in getView()
123 holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 : mIcon2); in getView()
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/fragments/
DDataFragment.java74 ViewHolder holder; in getView() local
76 holder = new ViewHolder(); in getView()
80 convertView.setTag(holder); in getView()
81 holder.text1 = (TextView) convertView.findViewById(android.R.id.text1); in getView()
82 holder.text2 = (TextView) convertView.findViewById(android.R.id.text2); in getView()
84 holder = (ViewHolder) convertView.getTag(); in getView()
87 holder.text1.setText(event.title); in getView()
88 holder.text2.setText(event.text); in getView()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
DCubeWallpaper1.java105 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
106 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
114 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument
115 super.onSurfaceCreated(holder); in onSurfaceCreated()
119 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument
120 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
153 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local
157 c = holder.lockCanvas(); in drawFrame()
164 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DMediaPlayerDemo_Video.java44 private SurfaceHolder holder; field in MediaPlayerDemo_Video
65 holder = mPreview.getHolder(); in onCreate()
66 holder.addCallback(this); in onCreate()
67 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in onCreate()
124 mMediaPlayer.setDisplay(holder); in playVideo()
179 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
216 holder.setFixedSize(mVideoWidth, mVideoHeight); in startVideoPlayback()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java169 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
170 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
178 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument
179 super.onSurfaceCreated(holder); in onSurfaceCreated()
183 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument
184 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
217 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local
218 final Rect frame = holder.getSurfaceFrame(); in drawFrame()
224 c = holder.lockCanvas(); in drawFrame()
231 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
DSimpleStringAdapter.java92 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
93 holder.mBoundString = mValues.get(position); in onBindViewHolder()
94 holder.mTextView.setText(position + ":" + mValues.get(position)); in onBindViewHolder()
95 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10)); in onBindViewHolder()
96 holder.mTextView.setBackgroundColor(getBackgroundColor(position)); in onBindViewHolder()
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/
DCameraPreview.java62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
65 mCamera.setPreviewDisplay(holder); in surfaceCreated()
73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
77 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/
DCameraPreview.java62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
65 mCamera.setPreviewDisplay(holder); in surfaceCreated()
73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
77 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DLocalPlayer.java389 SurfaceHolder holder = mSurfaceView.getHolder(); in SurfaceViewPlayer() local
390 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in SurfaceViewPlayer()
391 holder.addCallback(this); in SurfaceViewPlayer()
412 SurfaceHolder holder = mSurfaceView.getHolder(); in release() local
413 holder.removeCallback(this); in release()
452 public void surfaceChanged(SurfaceHolder holder, int format, in surfaceChanged() argument
457 setSurface(holder); in surfaceChanged()
461 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
465 setSurface(holder); in surfaceCreated()
470 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
[all …]
/development/samples/Support7Demos/src/com/example/android/supportv7/media/
DLocalPlayer.java400 SurfaceHolder holder = mSurfaceView.getHolder(); in SurfaceViewPlayer() local
401 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in SurfaceViewPlayer()
402 holder.addCallback(this); in SurfaceViewPlayer()
423 SurfaceHolder holder = mSurfaceView.getHolder(); in release() local
424 holder.removeCallback(this); in release()
463 public void surfaceChanged(SurfaceHolder holder, int format, in surfaceChanged() argument
468 setSurface(holder); in surfaceChanged()
472 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
476 setSurface(holder); in surfaceCreated()
481 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
[all …]
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
DSpeedPickerListAdapter.java73 public void onBindViewHolder(WearableListView.ViewHolder holder, in onBindViewHolder() argument
76 ItemViewHolder itemHolder = (ItemViewHolder) holder; in onBindViewHolder()
81 holder.itemView.setTag(position); in onBindViewHolder()
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/
DPlanetAdapter.java67 public void onBindViewHolder(ViewHolder holder, final int position) { in onBindViewHolder() argument
68 holder.mTextView.setText(mDataset[position]); in onBindViewHolder()
69 holder.mTextView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
DVideoConsumptionExampleFragment.java67 public void surfaceCreated(SurfaceHolder holder) { in onCreate()
68 mGlue.setDisplay(holder); in onCreate()
72 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
77 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactsListFragment.java702 final ViewHolder holder = new ViewHolder(); in newView() local
703 holder.text1 = (TextView) itemLayout.findViewById(android.R.id.text1); in newView()
704 holder.text2 = (TextView) itemLayout.findViewById(android.R.id.text2); in newView()
705 holder.icon = (QuickContactBadge) itemLayout.findViewById(android.R.id.icon); in newView()
709 itemLayout.setTag(holder); in newView()
721 final ViewHolder holder = (ViewHolder) view.getTag(); in bindView() local
735 holder.text1.setText(displayName); in bindView()
739 holder.text2.setVisibility(View.GONE); in bindView()
743 holder.text2.setVisibility(View.VISIBLE); in bindView()
758 holder.text1.setText(highlightedName); in bindView()
[all …]
/development/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DSimpleStringRecyclerViewAdapter.java78 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
79 holder.mBoundString = mValues.get(position); in onBindViewHolder()
80 holder.mTextView.setText(position + ": " + mValues.get(position)); in onBindViewHolder()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DWindowSurface.java66 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
69 mDrawingThread.mSurface = holder; in surfaceCreated()
74 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
79 public void surfaceRedrawNeeded(SurfaceHolder holder) { in surfaceRedrawNeeded() argument
82 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
86 mDrawingThread.mSurface = holder; in surfaceDestroyed()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
DAttractionListFragment.java157 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
160 holder.mTitleTextView.setText(attraction.name); in onBindViewHolder()
161 holder.mDescriptionTextView.setText(attraction.description); in onBindViewHolder()
167 .into(holder.mImageView); in onBindViewHolder()
172 holder.mOverlayTextView.setVisibility(View.GONE); in onBindViewHolder()
174 holder.mOverlayTextView.setVisibility(View.VISIBLE); in onBindViewHolder()
175 holder.mOverlayTextView.setText(distance); in onBindViewHolder()
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
DNativeMedia.java76 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
81 public void surfaceCreated(SurfaceHolder holder) { in onCreate()
83 setSurface(holder.getSurface()); in onCreate()
86 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate()
98 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
103 public void surfaceCreated(SurfaceHolder holder) { in onCreate()
105 setSurface(holder.getSurface()); in onCreate()
108 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate()
/development/apps/Development/src/com/android/development/
DAccountsTester.java117 ViewHolder holder; in getView() local
127 holder = new ViewHolder(); in getView()
128 holder.name = (TextView) convertView.findViewById( in getView()
130 holder.icon = (ImageView) convertView.findViewById( in getView()
133 convertView.setTag(holder); in getView()
137 holder = (ViewHolder) convertView.getTag(); in getView()
141 holder.account = account; in getView()
142 holder.icon.setVisibility(View.INVISIBLE); in getView()
149 holder.icon.setImageDrawable(authContext.getResources().getDrawable( in getView()
151 holder.icon.setVisibility(View.VISIBLE); in getView()
[all …]
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DSetTimerActivity.java99 public void onClick(WearableListView.ViewHolder holder) { in onClick() argument
100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick()
205 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument
206 TextView view = (TextView) holder.itemView.findViewById(R.id.time_text); in onBindViewHolder()
208 holder.itemView.setTag(position); in onBindViewHolder()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DMainActivity.java95 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument
96 TextView view = (TextView) holder.itemView.findViewById(R.id.name); in onBindViewHolder()
98 holder.itemView.setTag(position); in onBindViewHolder()

123