Searched defs:holder (Results 1 - 25 of 28) sorted by relevance

12

/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DCameraPreviewView.java38 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
47 public void surfaceCreated(SurfaceHolder holder) { argument
56 public void surfaceDestroyed(SurfaceHolder holder) { argument
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
H A DFallView.java36 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
37 super.surfaceChanged(holder, format, w, h);
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
H A DGalaxyView.java33 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
34 super.surfaceChanged(holder, format, w, h);
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
H A DGrassView.java33 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
34 super.surfaceChanged(holder, format, w, h);
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
H A DGalaxyView.java25 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
26 super.surfaceChanged(holder, format, w, h);
30 mRS.setSurface(holder, w, h);
/packages/wallpapers/NoiseField/src/com/android/noisefield/
H A DNoiseFieldView.java19 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
20 super.surfaceChanged(holder, format, w, h);
25 mRS.setSurface(holder, w, h);
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
H A DPhaseBeamView.java19 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
20 super.surfaceChanged(holder, format, w, h);
25 mRS.setSurface(holder, w, h);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DAsyncResultHolderTests.java32 private <T> void setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, argument
42 holder.set(value);
48 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>();
49 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS);
54 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>();
55 setAfterGivenTime(holder, SET_VALUE, TIMEOUT_IN_MILLISECONDS + MARGIN_IN_MILLISECONDS);
56 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS);
61 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>();
62 holder.set(SET_VALUE);
63 final int resultValue = holder
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DThumbnailLoadTask.java52 ThumbnailLoadTask task, final AttachmentBitmapHolder holder,
54 final int width = holder.getThumbnailWidth();
55 final int height = holder.getThumbnailHeight();
58 holder.setThumbnailToDefault();
69 && (holder.bitmapSetToDefault() ||
77 holder, width, height);
82 holder.setThumbnailToDefault();
86 public ThumbnailLoadTask(AttachmentBitmapHolder holder, int width, int height) { argument
87 mHolder = holder;
51 setupThumbnailPreview( ThumbnailLoadTask task, final AttachmentBitmapHolder holder, final Attachment attachment, final Attachment prevAttachment) argument
H A DNestedFolderTeaserView.java234 final FolderHolder holder = new FolderHolder(itemView, sendersTextView, countTextView);
236 attachOnClickListener(itemView, holder);
238 return holder;
241 private void attachOnClickListener(final View view, final FolderHolder holder) { argument
245 mListener.onFolderSelected(holder.getFolder());
339 final FolderHolder holder = mFolderHolders.valueAt(i);
341 if (holder.getItemView().getParent() == null) {
345 unreadCount += holder.getFolder().unreadCount;
475 final FolderHolder holder = mFolderHolders.get(folder.id);
477 if (holder !
[all...]
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
H A DWalkAroundWallpaper.java137 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
138 super.onSurfaceChanged(holder, format, width, height);
140 if (holder.isCreating()) {
143 mCamera.setPreviewDisplay(holder);
156 public void onSurfaceCreated(SurfaceHolder holder) { argument
157 super.onSurfaceCreated(holder);
/packages/wallpapers/Basic/src/com/android/wallpaper/
H A DRenderScriptWallpaper.java75 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
76 super.onSurfaceChanged(holder, format, width, height);
78 mRs.setSurface(holder, width, height);
96 public void onSurfaceCreated(SurfaceHolder holder) { argument
97 super.onSurfaceCreated(holder);
105 public void onSurfaceDestroyed(SurfaceHolder holder) { argument
106 super.onSurfaceDestroyed(holder);
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
H A DRenderScriptWallpaper.java79 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
80 super.onSurfaceChanged(holder, format, width, height);
82 mRs.setSurface(holder, width, height);
100 public void onSurfaceCreated(SurfaceHolder holder) { argument
101 super.onSurfaceCreated(holder);
109 public void onSurfaceDestroyed(SurfaceHolder holder) { argument
110 super.onSurfaceDestroyed(holder);
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
H A DRenderScriptWallpaper.java78 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
79 super.onSurfaceChanged(holder, format, width, height);
81 mRs.setSurface(holder, width, height);
104 public void onSurfaceCreated(SurfaceHolder holder) { argument
105 super.onSurfaceCreated(holder);
113 public void onSurfaceDestroyed(SurfaceHolder holder) { argument
114 super.onSurfaceDestroyed(holder);
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/
H A DVisualization1.java121 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
122 super.onSurfaceChanged(holder, format, width, height);
130 public void onSurfaceCreated(SurfaceHolder holder) { argument
131 super.onSurfaceCreated(holder);
135 public void onSurfaceDestroyed(SurfaceHolder holder) { argument
136 super.onSurfaceDestroyed(holder);
163 final SurfaceHolder holder = getSurfaceHolder();
164 final Rect frame = holder.getSurfaceFrame();
170 c = holder.lockCanvas();
177 if (c != null) holder
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) { argument
218 Mirror type = holder.mirror;
220 if (holder.rotation.value() == 90
221 || holder.rotation.value() == 270) {
225 if (holder.rotation.value() == 90
226 || holder.rotation.value() == 270) {
254 GeometryHolder holder = new GeometryHolder();
255 unpackGeometry(holder, geometry);
256 return holder;
304 GeometryHolder holder
311 applyFullGeometryMatrix(Bitmap image, GeometryHolder holder) argument
372 getOriginalToScreen(GeometryHolder holder, boolean rotate, float originalWidth, float originalHeight, float viewWidth, float viewHeight) argument
401 drawTransformedCropped(GeometryHolder holder, Canvas canvas, Bitmap photo, int viewWidth, int viewHeight) argument
429 getFullGeometryMatrix(GeometryHolder holder, int bitmapWidth, int bitmapHeight) argument
440 getFullGeometryToScreenMatrix(GeometryHolder holder, int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) argument
457 getTrueCropRect(GeometryHolder holder, int bitmapWidth, int bitmapHeight) argument
468 getCropSelectionToScreenMatrix(RectF outCrop, GeometryHolder holder, int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLRootView.java599 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
601 super.surfaceChanged(holder, format, w, h);
605 public void surfaceCreated(SurfaceHolder holder) { argument
607 super.surfaceCreated(holder);
611 public void surfaceDestroyed(SurfaceHolder holder) { argument
613 super.surfaceDestroyed(holder);
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java433 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
434 super.onSurfaceChanged(holder, format, width, height);
439 public void onSurfaceCreated(SurfaceHolder holder) { argument
440 super.onSurfaceCreated(holder);
444 public void onSurfaceDestroyed(SurfaceHolder holder) { argument
445 super.onSurfaceDestroyed(holder);
465 final SurfaceHolder holder = getSurfaceHolder();
466 final Rect frame = holder.getSurfaceFrame();
472 c = holder.lockCanvas();
567 if (c != null) holder
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DVideoUI.java748 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
753 public void surfaceCreated(SurfaceHolder holder) { argument
758 public void surfaceDestroyed(SurfaceHolder holder) { argument
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
H A DPhotoManager.java173 * as they come from the database. Each holder has a soft reference to the
398 final BitmapHolder holder = sBitmapHolderCache.get(request.getKey());
400 if (holder != null && holder.bytes == null) {
401 onImageDrawn(request, holder.fresh);
403 return holder.fresh;
410 * Takes care of retrieving the Bitmap from both the decoded and holder caches.
515 private static void cacheBitmapHolder(final String cacheKey, final BitmapHolder holder) { argument
528 + (holder.bytes == null ? "<null>" : btk(holder
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DContactPhotoManager.java503 * as they come from the database. Each holder has a soft reference to the
738 for (BitmapHolder holder : mBitmapHolderCache.snapshot().values()) {
739 holder.fresh = false;
749 BitmapHolder holder = mBitmapHolderCache.get(request.getKey());
750 if (holder == null) {
756 if (holder.bytes == null) {
758 return holder.fresh;
761 Bitmap cachedBitmap = holder.bitmapRef == null ? null : holder.bitmapRef.get();
763 if (holder
813 inflateBitmap(BitmapHolder holder, int requestedExtent) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClockFragment.java818 ItemHolder holder = (ItemHolder) v.getTag();
822 holder.footerFiller.setVisibility(position < getCount() - 1 ? View.GONE : View.VISIBLE);
976 // standard view holder optimization
977 final ItemHolder holder = new ItemHolder();
978 holder.alarmItem = (LinearLayout) view.findViewById(R.id.alarm_item);
979 holder.clock = (TextTime) view.findViewById(R.id.digital_clock);
980 holder.onoff = (Switch) view.findViewById(R.id.onoff);
981 holder.onoff.setTypeface(mRobotoNormal);
982 holder.daysOfWeek = (TextView) view.findViewById(R.id.daysOfWeek);
983 holder
1293 setItemAlpha(ItemHolder holder, boolean enabled) argument
1302 updateDaysOfWeekButtons(ItemHolder holder, DaysOfWeek daysOfWeek) argument
1337 turnOffDayOfWeek(ItemHolder holder, int dayIndex) argument
1343 turnOnDayOfWeek(ItemHolder holder, int dayIndex) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DSettings.java851 HeaderViewHolder holder;
857 holder = new HeaderViewHolder();
862 holder.title = (TextView) view;
868 holder.icon = (ImageView) view.findViewById(R.id.icon);
869 holder.title = (TextView)
871 holder.summary = (TextView)
873 holder.switch_ = (Switch) view.findViewById(R.id.switchWidget);
879 holder.icon = (ImageView) view.findViewById(R.id.icon);
880 holder.title = (TextView)
882 holder
958 updateCommonHeaderView(Header header, HeaderViewHolder holder) argument
978 setHeaderIcon(HeaderViewHolder holder, Drawable icon) argument
[all...]
/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DVideoEditorActivity.java219 // Prepare the surface holder
1188 public void surfaceCreated(SurfaceHolder holder) { argument
1197 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
1209 public void surfaceDestroyed(SurfaceHolder holder) { argument
1707 * @param surfaceHolder The surface holder
/packages/apps/Camera/src/com/android/camera/
H A DPhotoModule.java1217 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
1218 Log.v(TAG, "surfaceChanged:" + holder + " width=" + width + ". height="
1223 public void surfaceCreated(SurfaceHolder holder) { argument
1224 Log.v(TAG, "surfaceCreated: " + holder);
1225 mCameraSurfaceHolder = holder;
1229 mCameraDevice.setPreviewDisplayAsync(holder);
1238 public void surfaceDestroyed(SurfaceHolder holder) { argument
1239 Log.v(TAG, "surfaceDestroyed: " + holder);

Completed in 508 milliseconds

12