Lines Matching refs:hv
554 HighlightView hv = new HighlightView(mImageView);
579 hv.setup(mImageMatrix, imageRect, faceRect, mCircleCrop, mAspectX != 0 && mAspectY != 0);
581 mImageView.add(hv);
586 HighlightView hv = new HighlightView(mImageView);
610 hv.setup(mImageMatrix, imageRect, cropRect, mCircleCrop, mAspectX != 0 && mAspectY != 0);
611 mImageView.add(hv);
683 for (HighlightView hv : mHighlightViews) {
684 hv.mMatrix.set(getImageMatrix());
685 hv.invalidate();
686 if (hv.mIsFocused) {
687 centerBasedOnHighlightView(hv);
700 for (HighlightView hv : mHighlightViews) {
701 hv.mMatrix.set(getImageMatrix());
702 hv.invalidate();
709 for (HighlightView hv : mHighlightViews) {
710 hv.mMatrix.set(getImageMatrix());
711 hv.invalidate();
718 for (HighlightView hv : mHighlightViews) {
719 hv.mMatrix.set(getImageMatrix());
720 hv.invalidate();
728 HighlightView hv = mHighlightViews.get(i);
729 hv.mMatrix.postTranslate(deltaX, deltaY);
730 hv.invalidate();
738 HighlightView hv = mHighlightViews.get(i);
739 hv.setFocus(false);
740 hv.invalidate();
744 HighlightView hv = mHighlightViews.get(i);
745 int edge = hv.getHit(event.getX(), event.getY());
747 if (!hv.hasFocus()) {
748 hv.setFocus(true);
749 hv.invalidate();
775 HighlightView hv = mHighlightViews.get(i);
776 int edge = hv.getHit(event.getX(), event.getY());
779 mMotionHighlightView = hv;
794 HighlightView hv = mHighlightViews.get(i);
795 if (hv.hasFocus()) {
796 cropImage.mCrop = hv;
804 centerBasedOnHighlightView(hv);
854 private void ensureVisible(HighlightView hv) {
855 Rect r = hv.mDrawRect;
873 private void centerBasedOnHighlightView(HighlightView hv) {
874 Rect drawRect = hv.mDrawRect;
890 float[] coordinates = new float[] { hv.mCropRect.centerX(), hv.mCropRect.centerY() };
895 ensureVisible(hv);
906 public void add(HighlightView hv) {
907 mHighlightViews.add(hv);