/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | QueueAdapter.java | 52 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 …]
|
D | BrowseFragment.java | 184 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/ |
D | List14.java | 100 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/ |
D | DataFragment.java | 74 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/ |
D | CubeWallpaper1.java | 105 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/ |
D | MediaPlayerDemo_Video.java | 44 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/ |
D | CubeWallpaper2.java | 169 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/ |
D | CameraPreview.java | 62 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/ |
D | CameraPreview.java | 62 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/ |
D | SpeedPickerListAdapter.java | 73 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/ |
D | AttachmentsRecyclerViewAdapter.java | 75 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/ |
D | PlanetAdapter.java | 67 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/ |
D | LocalPlayer.java | 389 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/ |
D | ContactsListFragment.java | 702 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/ |
D | WindowSurface.java | 66 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/ |
D | AttractionListFragment.java | 157 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/ |
D | SetTimerActivity.java | 99 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/ |
D | AccountsTester.java | 117 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 …]
|
D | PermissionDetails.java | 118 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/ |
D | MainActivity.java | 95 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/ |
D | SampleWallpaper.java | 121 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/ |
D | MainActivity.java | 381 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/ |
D | MediaProjectionDemo.java | 204 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/ |
D | AlarmAdapter.java | 70 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/ |
D | InlineContentClipView.java | 88 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()
|