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

/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/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<>();
49 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS);
54 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>();
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<>();
62 holder.set(SET_VALUE);
63 final int resultValue = holder
[all...]
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
H A DPanelAdapter.java73 public void onBindViewHolder(ViewHolder holder, int position) { argument
75 holder.setSetting(s);
76 holder.mTitle.setText(s.getTitle());
79 holder.mValue.setText(Integer.toString(s.getIntValue()));
82 holder.mValue.setText(s.getStringValue());
85 holder.mValue.setText("");
88 if (TextUtils.isEmpty(holder.mValue.getText())) {
89 holder.mValue.setVisibility(View.GONE);
91 holder.mValue.setVisibility(View.VISIBLE);
96 public void onViewRecycled(ViewHolder holder) { argument
[all...]
H A DDialogAdapter.java76 public void onBindViewHolder(ViewHolder holder, int position) { argument
78 holder.setSetting(s);
79 holder.mTitle.setText(s.getTitle());
83 public void onViewRecycled(ViewHolder holder) { argument
84 holder.setSetting(null);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DThumbnailLoadTask.java51 public static void setupThumbnailPreview(final AttachmentBitmapHolder holder, argument
53 final int width = holder.getThumbnailWidth();
54 final int height = holder.getThumbnailHeight();
57 holder.setThumbnailToDefault();
68 && (holder.bitmapSetToDefault() ||
71 holder, width, height);
76 holder.setThumbnailToDefault();
80 public ThumbnailLoadTask(AttachmentBitmapHolder holder, int width, int height) { argument
81 mHolder = holder;
H A DNestedFolderTeaserView.java233 final FolderHolder holder = new FolderHolder(itemView, sendersTextView, countTextView);
235 attachOnClickListener(itemView, holder);
237 return holder;
240 private void attachOnClickListener(final View view, final FolderHolder holder) { argument
244 mListener.onFolderSelected(holder.getFolder());
340 final FolderHolder holder = mFolderHolders.valueAt(i);
342 if (holder.getItemView().getParent() == null) {
346 unreadCount += holder.getFolder().unreadCount;
478 final FolderHolder holder = mFolderHolders.get(folder.id);
480 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/ContactsCommon/src/com/android/contacts/common/
H A DContactPhotoManager.java612 * as they come from the database. Each holder has a soft reference to the
883 for (BitmapHolder holder : mBitmapHolderCache.snapshot().values()) {
884 holder.fresh = false;
894 BitmapHolder holder = mBitmapHolderCache.get(request.getKey());
895 if (holder == null) {
901 if (holder.bytes == null) {
903 return holder.fresh;
906 Bitmap cachedBitmap = holder.bitmapRef == null ? null : holder.bitmapRef.get();
908 if (holder
975 inflateBitmap(BitmapHolder holder, int requestedExtent) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClockFragment.java649 // standard view holder optimization
650 final ItemHolder holder = new ItemHolder();
651 holder.alarmItem = (LinearLayout) view.findViewById(R.id.alarm_item);
652 holder.tomorrowLabel = (TextView) view.findViewById(R.id.tomorrowLabel);
653 holder.clock = (TextTime) view.findViewById(R.id.digital_clock);
654 holder.onoff = (Switch) view.findViewById(R.id.onoff);
655 holder.onoff.setTypeface(mRobotoNormal);
656 holder.daysOfWeek = (TextView) view.findViewById(R.id.daysOfWeek);
657 holder.label = (TextView) view.findViewById(R.id.label);
658 holder
981 setDigitalTimeAlpha(ItemHolder holder, boolean enabled) argument
986 updateDaysOfWeekButtons(ItemHolder holder, DaysOfWeek daysOfWeek) argument
1021 turnOffDayOfWeek(ItemHolder holder, int dayIndex) argument
1027 turnOnDayOfWeek(ItemHolder holder, int dayIndex) argument
[all...]
/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);
H A DVideoModule.java2713 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
2718 public void surfaceCreated(SurfaceHolder holder) { argument
2731 public void surfaceDestroyed(SurfaceHolder holder) { argument
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCamera.java1159 SurfaceHolder holder = preview.getHolder();
1160 holder.addCallback(this);
1161 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
1739 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
1740 // Make sure we have a surface in the holder before proceeding.
1741 if (holder.getSurface() == null) {
1742 Log.d(TAG, "holder.getSurface() == null");
1748 // We need to save the holder for later use, even when the mCameraDevice
1751 mSurfaceHolder = holder;
1774 if (holder
1792 surfaceCreated(SurfaceHolder holder) argument
1795 surfaceDestroyed(SurfaceHolder holder) argument
1813 setPreviewDisplay(SurfaceHolder holder) argument
[all...]
H A DVideoCamera.java429 SurfaceHolder holder = preview.getHolder();
430 holder.addCallback(this);
431 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
894 private void setPreviewDisplay(SurfaceHolder holder) { argument
902 mCameraDevice.setPreviewDisplay(holder);
1070 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
1071 // Make sure we have a surface in the holder before proceeding.
1072 if (holder.getSurface() == null) {
1073 Log.d(TAG, "holder.getSurface() == null");
1079 mSurfaceHolder = holder;
1112 surfaceCreated(SurfaceHolder holder) argument
1115 surfaceDestroyed(SurfaceHolder holder) argument
[all...]

Completed in 1550 milliseconds