Home
last modified time | relevance | path

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

12

/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/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/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/ReceiveContentDemo/src/com/example/android/receivecontent/
DAttachmentsRecyclerViewAdapter.java75 public void onBindViewHolder(@NonNull MyViewHolder holder, int position) { in onBindViewHolder() argument
77 holder.mAttachmentThumbnailView.setImageURI(uri); in onBindViewHolder()
78 holder.mAttachmentThumbnailView.setClipToOutline(true); 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/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/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/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/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/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 …]
DPermissionDetails.java118 AppViewHolder holder; in getView() local
128 holder = new AppViewHolder(); in getView()
129 holder.pkgName = (TextView) convertView.findViewById(R.id.pkg_name); in getView()
130 convertView.setTag(holder); in getView()
134 holder = (AppViewHolder) convertView.getTag(); in getView()
138 holder.pkgName.setText(pInfo.packageName); in getView()
/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()
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/
DSampleWallpaper.java121 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument
122 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
128 SurfaceHolder holder = getSurfaceHolder(); in draw() local
137 canvas = holder.lockCanvas(); in draw()
151 holder.unlockCanvasAndPost(canvas); in draw()
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java381 ViewHolder holder; in getView() local
383 holder = new ViewHolder(); in getView()
387 convertView.setTag(holder); in getView()
388 holder.text1 = (TextView) convertView.findViewById(android.R.id.text1); in getView()
389 holder.text2 = (TextView) convertView.findViewById(android.R.id.text2); in getView()
391 holder = (ViewHolder) convertView.getTag(); in getView()
394 holder.text1.setText(event.title); in getView()
395 holder.text2.setText(event.text); in getView()
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java204 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
211 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
212 mSurface = holder.getSurface(); in surfaceCreated()
219 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmAdapter.java70 public void onBindViewHolder(AlarmViewHolder holder, final int position) { in onBindViewHolder() argument
77 holder.mAlarmTimeTextView in onBindViewHolder()
79 holder.mAlarmDateTextView in onBindViewHolder()
81 holder.mDeleteImageView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
/development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/
DInlineContentClipView.java88 public void surfaceCreated(@NonNull SurfaceHolder holder) { in InlineContentClipView()
93 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, in InlineContentClipView()
97 public void surfaceDestroyed(@NonNull SurfaceHolder holder) { in InlineContentClipView()

12