/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) { in concatMirrorMatrix() argument 218 Mirror type = holder.mirror; in concatMirrorMatrix() 220 if (holder.rotation.value() == 90 in concatMirrorMatrix() 221 || holder.rotation.value() == 270) { in concatMirrorMatrix() 225 if (holder.rotation.value() == 90 in concatMirrorMatrix() 226 || holder.rotation.value() == 270) { in concatMirrorMatrix() 254 GeometryHolder holder = new GeometryHolder(); in unpackGeometry() local 255 unpackGeometry(holder, geometry); in unpackGeometry() 256 return holder; in unpackGeometry() 304 GeometryHolder holder = unpackGeometry(geometry); in finalGeometryRect() local [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaAdapter.java | 109 ViewHolder holder = null; in bindView() local 115 holder = (ViewHolder) view.getTag(); in bindView() 118 if (holder == null) { in bindView() 119 holder = new ViewHolder(); in bindView() 120 view.setTag(holder); in bindView() 121 holder.title = (TextView) view.findViewById(R.id.title); in bindView() 122 holder.when = (TextView) view.findViewById(R.id.when); in bindView() 123 holder.where = (TextView) view.findViewById(R.id.where); in bindView() 124 holder.textContainer = (LinearLayout) in bindView() 126 holder.selectedMarker = view.findViewById(R.id.selected_marker); in bindView() [all …]
|
D | AgendaByDayAdapter.java | 185 ViewHolder holder = null; in getView() local 193 holder = (ViewHolder) tag; in getView() 194 holder.julianDay = row.mDay; in getView() 198 if (holder == null) { in getView() 201 holder = new ViewHolder(); in getView() 203 holder.dayView = (TextView) agendaDayView.findViewById(R.id.day); in getView() 204 holder.dateView = (TextView) agendaDayView.findViewById(R.id.date); in getView() 205 holder.julianDay = row.mDay; in getView() 206 holder.grayed = false; in getView() 207 agendaDayView.setTag(holder); in getView() [all …]
|
D | AgendaListView.java | 145 AgendaByDayAdapter.ViewHolder holder = (AgendaByDayAdapter.ViewHolder) o; in updatePastEvents() local 146 if (holder.julianDay <= todayJulianDay && !holder.grayed) { in updatePastEvents() 153 AgendaAdapter.ViewHolder holder = (AgendaAdapter.ViewHolder) o; in updatePastEvents() local 154 if (!holder.grayed && ((!holder.allDay && holder.startTimeMilli <= now) || in updatePastEvents() 155 (holder.allDay && holder.julianDay <= todayJulianDay))) { in updatePastEvents() 189 Object holder = v.getTag(); in onItemClick() local 190 if (holder instanceof AgendaAdapter.ViewHolder) { in onItemClick() 191 holderStartTime = ((AgendaAdapter.ViewHolder) holder).startTimeMilli; in onItemClick()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | ContactPhotoManager.java | 738 for (BitmapHolder holder : mBitmapHolderCache.snapshot().values()) { in refreshCache() 739 holder.fresh = false; in refreshCache() 749 BitmapHolder holder = mBitmapHolderCache.get(request.getKey()); in loadCachedPhoto() local 750 if (holder == null) { in loadCachedPhoto() 756 if (holder.bytes == null) { in loadCachedPhoto() 758 return holder.fresh; in loadCachedPhoto() 761 Bitmap cachedBitmap = holder.bitmapRef == null ? null : holder.bitmapRef.get(); in loadCachedPhoto() 763 if (holder.bytes.length < 8 * 1024) { in loadCachedPhoto() 765 inflateBitmap(holder, request.getRequestedExtent()); in loadCachedPhoto() 766 cachedBitmap = holder.bitmap; in loadCachedPhoto() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | Settings.java | 851 HeaderViewHolder holder; in getView() local 857 holder = new HeaderViewHolder(); in getView() 862 holder.title = (TextView) view; in getView() 868 holder.icon = (ImageView) view.findViewById(R.id.icon); in getView() 869 holder.title = (TextView) in getView() 871 holder.summary = (TextView) in getView() 873 holder.switch_ = (Switch) view.findViewById(R.id.switchWidget); in getView() 879 holder.icon = (ImageView) view.findViewById(R.id.icon); in getView() 880 holder.title = (TextView) in getView() 882 holder.summary = (TextView) in getView() [all …]
|
D | UsageStats.java | 161 AppViewHolder holder; in getView() local 171 holder = new AppViewHolder(); in getView() 172 holder.pkgName = (TextView) convertView.findViewById(R.id.package_name); in getView() 173 holder.launchCount = (TextView) convertView.findViewById(R.id.launch_count); in getView() 174 holder.usageTime = (TextView) convertView.findViewById(R.id.usage_time); in getView() 175 convertView.setTag(holder); in getView() 179 holder = (AppViewHolder) convertView.getTag(); in getView() 186 holder.pkgName.setText(label); in getView() 187 holder.launchCount.setText(String.valueOf(pkgStats.launchCount)); in getView() 188 holder.usageTime.setText(String.valueOf(pkgStats.usageTime)+" ms"); in getView()
|
D | AppPicker.java | 118 AppViewHolder holder = AppViewHolder.createOrRecycle(mInflater, convertView); in getView() local 119 convertView = holder.rootView; in getView() 121 holder.appName.setText(info.label); in getView() 123 holder.appIcon.setImageDrawable(info.info.loadIcon(getPackageManager())); in getView() 124 holder.appSize.setText(info.info.packageName); in getView() 126 holder.appIcon.setImageDrawable(null); in getView() 127 holder.appSize.setText(""); in getView() 129 holder.disabled.setVisibility(View.GONE); in getView() 130 holder.checkBox.setVisibility(View.GONE); in getView()
|
D | TrustedCredentialsSettings.java | 216 ViewHolder holder; in getView() local 220 holder = new ViewHolder(); in getView() 221 holder.mSubjectPrimaryView = (TextView) in getView() 223 holder.mSubjectSecondaryView = (TextView) in getView() 225 holder.mCheckBox = (CheckBox) view.findViewById(R.id.trusted_credential_status); in getView() 226 view.setTag(holder); in getView() 228 holder = (ViewHolder) view.getTag(); in getView() 231 holder.mSubjectPrimaryView.setText(certHolder.mSubjectPrimary); in getView() 232 holder.mSubjectSecondaryView.setText(certHolder.mSubjectSecondary); in getView() 234 holder.mCheckBox.setChecked(!certHolder.mDeleted); in getView() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmClockFragment.java | 818 ItemHolder holder = (ItemHolder) v.getTag(); in getView() local 822 holder.footerFiller.setVisibility(position < getCount() - 1 ? View.GONE : View.VISIBLE); in getView() 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.label = (TextView) view.findViewById(R.id.label); 984 holder.delete = (ImageView) view.findViewById(R.id.delete); [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitiesActivity.java | 346 final CityViewHolder holder = new CityViewHolder(); in getView() local 347 holder.name = (TextView) view.findViewById(R.id.city_name); in getView() 348 holder.time = (TextView) view.findViewById(R.id.city_time); in getView() 349 holder.selected = (CheckBox) view.findViewById(R.id.city_onoff); in getView() 350 holder.selectedPin = (ImageView) view.findViewById(R.id.city_selected_icon); in getView() 351 holder.remove = (ImageView) view.findViewById(R.id.city_remove); in getView() 352 holder.remove.setOnClickListener(new OnClickListener() { in getView() 356 CompoundButton b = holder.selected; in getView() 362 view.setTag(holder); in getView() 365 CityViewHolder holder = (CityViewHolder) view.getTag(); in getView() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
D | PhotoManager.java | 398 final BitmapHolder holder = sBitmapHolderCache.get(request.getKey()); in loadCachedPhoto() local 400 if (holder != null && holder.bytes == null) { in loadCachedPhoto() 401 onImageDrawn(request, holder.fresh); in loadCachedPhoto() 403 return holder.fresh; in loadCachedPhoto() 515 private static void cacheBitmapHolder(final String cacheKey, final BitmapHolder holder) { in cacheBitmapHolder() argument 528 + (holder.bytes == null ? "<null>" : btk(holder.bytes.length))); in cacheBitmapHolder() 531 sBitmapHolderCache.put(cacheKey, holder); in cacheBitmapHolder() 713 final BitmapHolder holder = sBitmapHolderCache in loadPhotosInBackground() local 715 if (holder == null || holder.bytes == null || !holder.fresh || !isSizeCompatible( in loadPhotosInBackground() 716 holder.width, holder.height, request.bitmapKey.w, request.bitmapKey.h)) { in loadPhotosInBackground() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | AsyncResultHolderTests.java | 32 private <T> void setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, in setAfterGivenTime() argument 42 holder.set(value); in setAfterGivenTime() 48 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>(); in testGetWithoutSet() local 49 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetWithoutSet() 54 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>(); in testGetBeforeSet() local 55 setAfterGivenTime(holder, SET_VALUE, TIMEOUT_IN_MILLISECONDS + MARGIN_IN_MILLISECONDS); in testGetBeforeSet() 56 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetBeforeSet() 61 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<Integer>(); in testGetAfterSet() local 62 holder.set(SET_VALUE); in testGetAfterSet() 63 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetAfterSet() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 400 final AsyncResultHolder<ArrayList<SuggestedWordInfo>> holder = in getSuggestionsWithSessionId() local 407 holder.set(null); in getSuggestionsWithSessionId() 414 holder.set(binarySuggestion); in getSuggestionsWithSessionId() 428 holder.set(binarySuggestion); in getSuggestionsWithSessionId() 430 holder.set(inMemDictSuggestion); in getSuggestionsWithSessionId() 433 holder.set(binarySuggestion); in getSuggestionsWithSessionId() 436 holder.set(inMemDictSuggestion); in getSuggestionsWithSessionId() 441 return holder.get(null, TIMEOUT_FOR_READ_OPS_IN_MILLISECONDS); in getSuggestionsWithSessionId() 462 final AsyncResultHolder<Boolean> holder = new AsyncResultHolder<Boolean>(); in isValidWordInner() local 466 holder.set(isValidWordLocked(word)); in isValidWordInner() [all …]
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperListAdapter.java | 99 ViewHolder holder; in getView() local 103 holder = new ViewHolder(); in getView() 104 holder.title = (TextView) convertView.findViewById(R.id.title); in getView() 105 holder.thumbnail = (ImageView) convertView.findViewById(R.id.thumbnail); in getView() 106 convertView.setTag(holder); in getView() 108 holder = (ViewHolder) convertView.getTag(); in getView() 112 if (holder.thumbnail != null) { in getView() 113 holder.thumbnail.setImageDrawable(wallpaperInfo.thumbnail); in getView() 116 if (holder.title != null && wallpaperInfo.info != null) { in getView() 117 holder.title.setText(wallpaperInfo.info.loadLabel(mPackageManager)); in getView() [all …]
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/ |
D | Visualization1.java | 121 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument 122 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged() 130 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument 131 super.onSurfaceCreated(holder); in onSurfaceCreated() 135 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument 136 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed() 163 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local 164 final Rect frame = holder.getSurfaceFrame(); in drawFrame() 170 c = holder.lockCanvas(); in drawFrame() 177 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | NestedFolderTeaserView.java | 234 final FolderHolder holder = new FolderHolder(itemView, sendersTextView, countTextView); in createFolderHolder() local 236 attachOnClickListener(itemView, holder); in createFolderHolder() 238 return holder; in createFolderHolder() 241 private void attachOnClickListener(final View view, final FolderHolder holder) { in attachOnClickListener() argument 245 mListener.onFolderSelected(holder.getFolder()); in attachOnClickListener() 339 final FolderHolder holder = mFolderHolders.valueAt(i); in updateShowMoreView() local 341 if (holder.getItemView().getParent() == null) { in updateShowMoreView() 345 unreadCount += holder.getFolder().unreadCount; in updateShowMoreView() 475 final FolderHolder holder = mFolderHolders.get(folder.id); 477 if (holder != null) { [all …]
|
D | ThumbnailLoadTask.java | 52 ThumbnailLoadTask task, final AttachmentBitmapHolder holder, in setupThumbnailPreview() argument 54 final int width = holder.getThumbnailWidth(); in setupThumbnailPreview() 55 final int height = holder.getThumbnailHeight(); in setupThumbnailPreview() 58 holder.setThumbnailToDefault(); in setupThumbnailPreview() 69 && (holder.bitmapSetToDefault() || in setupThumbnailPreview() 77 holder, width, height); in setupThumbnailPreview() 82 holder.setThumbnailToDefault(); in setupThumbnailPreview() 86 public ThumbnailLoadTask(AttachmentBitmapHolder holder, int width, int height) { in ThumbnailLoadTask() argument 87 mHolder = holder; in ThumbnailLoadTask()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppViewHolder.java | 29 AppViewHolder holder = new AppViewHolder(); in createOrRecycle() local 30 holder.rootView = convertView; in createOrRecycle() 31 holder.appName = (TextView) convertView.findViewById(R.id.app_name); in createOrRecycle() 32 holder.appIcon = (ImageView) convertView.findViewById(R.id.app_icon); in createOrRecycle() 33 holder.appSize = (TextView) convertView.findViewById(R.id.app_size); in createOrRecycle() 34 holder.disabled = (TextView) convertView.findViewById(R.id.app_disabled); in createOrRecycle() 35 holder.checkBox = (CheckBox) convertView.findViewById(R.id.app_on_sdcard); in createOrRecycle() 36 convertView.setTag(holder); in createOrRecycle() 37 return holder; in createOrRecycle()
|
D | ManageApplications.java | 730 AppViewHolder holder = (AppViewHolder)mActive.get(i).getTag(); in onPackageSizeChanged() local 731 if (holder.entry.info.packageName.equals(packageName)) { in onPackageSizeChanged() 732 synchronized (holder.entry) { in onPackageSizeChanged() 733 holder.updateSizeText(mTab.mInvalidSizeStr, mWhichSize); in onPackageSizeChanged() 735 if (holder.entry.info.packageName.equals(mTab.mOwner.mCurrentPkgName) in onPackageSizeChanged() 776 AppViewHolder holder = AppViewHolder.createOrRecycle(mTab.mInflater, convertView); in getView() local 777 convertView = holder.rootView; in getView() 782 holder.entry = entry; in getView() 784 holder.appName.setText(entry.label); in getView() 788 holder.appIcon.setImageDrawable(entry.icon); in getView() [all …]
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 285 ViewHolder holder; in getView() local 289 holder = new ViewHolder(); in getView() 290 holder.mAliasTextView = (TextView) view.findViewById(R.id.cert_item_alias); in getView() 291 holder.mSubjectTextView = (TextView) view.findViewById(R.id.cert_item_subject); in getView() 292 holder.mRadioButton = (RadioButton) view.findViewById(R.id.cert_item_selected); in getView() 293 view.setTag(holder); in getView() 295 holder = (ViewHolder) view.getTag(); in getView() 300 holder.mAliasTextView.setText(alias); in getView() 304 new CertLoader(adapterPosition, holder.mSubjectTextView).execute(); in getView() 306 holder.mSubjectTextView.setText(subject); in getView() [all …]
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/ |
D | RenderScriptWallpaper.java | 78 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument 79 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged() 81 mRs.setSurface(holder, width, height); in onSurfaceChanged() 104 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument 105 super.onSurfaceCreated(holder); in onSurfaceCreated() 113 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument 114 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/ |
D | RenderScriptWallpaper.java | 75 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument 76 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged() 78 mRs.setSurface(holder, width, height); in onSurfaceChanged() 96 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument 97 super.onSurfaceCreated(holder); in onSurfaceCreated() 105 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument 106 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | RenderScriptWallpaper.java | 79 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument 80 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged() 82 mRs.setSurface(holder, width, height); in onSurfaceChanged() 100 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument 101 super.onSurfaceCreated(holder); in onSurfaceCreated() 109 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument 110 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
D | PolarClockWallpaper.java | 433 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument 434 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged() 439 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument 440 super.onSurfaceCreated(holder); in onSurfaceCreated() 444 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument 445 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed() 465 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local 466 final Rect frame = holder.getSurfaceFrame(); in drawFrame() 472 c = holder.lockCanvas(); in drawFrame() 567 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
|