/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/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/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()
|
D | CameraPreview.java | 247 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 252 mCamera.setPreviewDisplay(holder); in surfaceCreated() 259 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 300 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
|
/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/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
D | NativeMedia.java | 76 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/ |
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/HoneycombGallery/src/com/example/android/hcgallery/ |
D | CameraFragment.java | 265 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 270 mCamera.setPreviewDisplay(holder); in surfaceCreated() 279 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 321 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
|
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
D | LunarView.java | 803 SurfaceHolder holder = getHolder(); in LunarView() local 804 holder.addCallback(this); in LunarView() 807 thread = new LunarThread(holder, context, new Handler() { in LunarView() 861 public void surfaceChanged(SurfaceHolder holder, int format, int width, in surfaceChanged() argument 870 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 882 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
|
/development/samples/JetBoy/src/com/example/android/jetboy/ |
D | JetBoyView.java | 1312 SurfaceHolder holder = getHolder(); in JetBoyView() local 1313 holder.addCallback(this); in JetBoyView() 1318 thread = new JetBoyThread(holder, context, new Handler() { in JetBoyView() 1390 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
|
/development/ndk/platforms/android-4/samples/san-angeles/jni/ |
D | license-LGPL.txt | 62 restrictive license from a patent holder. Therefore, we insist that 119 program which contains a notice placed by the copyright holder or 407 original copyright holder who places the Library under this License may add
|