@Implementation protected void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
p.getTextBounds(e.text, 0, e.text.length(), bounds); Logger.d("Text bounds: " + bounds.toString());
@Override public String toString() { return bound.toString(); } }
@Override public String toString() { return bound.toString(); } }
protected void setPaddingRect(Rect paddingRect) { Log.d(TAG, "setPaddingRect:" + paddingRect.toString()); this.currentPaddingRect = paddingRect; }
public void show() { isHide = false; // setVisibility(VISIBLE); Rect oldFocusEffectRect = new Rect(); this.getGlobalVisibleRect(oldFocusEffectRect); Log.e(TAG, "show:" + oldFocusEffectRect.toString()); }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Override public String toString() { StringBuilder sb=new StringBuilder(); sb.append("{\n"); for (int i=0; i<getSize(); i++) { sb.append(get(i).toString()); sb.append("\n"); } sb.append("}"); return sb.toString(); } }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation protected void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); StringBuilder descriptionBuilder = new StringBuilder(); if (dst != null) { descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top) .append(") with height=").append(dst.height()).append(" and width=").append(dst.width()); } if (src != null) { descriptionBuilder.append( " taken from ").append(src.toString()); } appendDescription(descriptionBuilder.toString()); }
@Implementation public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { describeBitmap(bitmap, paint); appendDescription(" at (" + dst.left + "," + dst.top + ") with height=" + dst.height() + " and width=" + dst.width() + " taken from " + src.toString()); }
/** * */ private void configureDrawableBounds() { this.ensureDrawableBounds(); if (mImageDrawable != null) { mDrawableBounds.set(mImageDrawable.getBounds()); } else { mDrawableBounds.set(0, 0, 0, 0); } this.configureAccelerationInfo(); if (UiConfig.DEBUG_LOG_ENABLED) { Log.d(TAG, "Drawable bounds configured to(" + mDrawableBounds.toString() + ")."); } }
/** * 当在执行动画或者滑动的时候持续更新焦点框位置 * * @param focusView * @param padding */ private void continueChangeFocusEffect(View focusView, Rect padding) { Log.d(TAG, "continueChangeFocusEffect:" + focusView.toString()); getGlobalVisibleRectOfDecorView(focusView, globalVisibleRect); globalVisibleRect.left -= padding.left; globalVisibleRect.right += padding.right; globalVisibleRect.top -= padding.top; globalVisibleRect.bottom += padding.bottom; Log.d(TAG, "continueChangeFocusEffect:" + globalVisibleRect.toString()); changeFocusEffectLocation(globalVisibleRect); }
@Override public void onAutofocusStarted(Rect[] rects) { if (rects == null) { Log.i(TAG, "Autofocus started with focusing areas being null"); } else { Log.i(TAG, "Autofocus started"); for (Rect rect : rects) { Log.d(TAG, "Focus area: " + rect.toString()); } } }
@Override public void onAutofocusStopped(Rect[] rects) { if (rects == null) { Log.i(TAG, "Autofocus stopped with focusing areas being null"); } else { Log.i(TAG, "Autofocus stopped"); for (Rect rect : rects) { Log.d(TAG, "Focus area: " + rect.toString()); } } }