Home
last modified time | relevance | path

Searched refs:mPath (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCircularCornerPathRenderer.java30 private final Path mPath = new Path(); field in CircularCornerPathRenderer
42 mPath.reset(); in getCornerPath()
45 mPath.moveTo(0, mHeight - mCornerRadiusBottom); in getCornerPath()
46 mPath.arcTo(0, mHeight - mCornerRadiusBottom * 2, mCornerRadiusBottom * 2, mHeight, in getCornerPath()
50 mPath.moveTo(mWidth - mCornerRadiusBottom, mHeight); in getCornerPath()
51 mPath.arcTo(mWidth - mCornerRadiusBottom * 2, mHeight - mCornerRadiusBottom * 2, in getCornerPath()
55 mPath.moveTo(mWidth, mCornerRadiusTop); in getCornerPath()
56 mPath.arcTo(mWidth - mCornerRadiusTop * 2, 0, mWidth, mCornerRadiusTop * 2, 0, -90, in getCornerPath()
60 mPath.moveTo(mCornerRadiusTop, 0); in getCornerPath()
61 mPath.arcTo(0, 0, mCornerRadiusTop * 2, mCornerRadiusTop * 2, 270, -90, true); in getCornerPath()
[all …]
/frameworks/base/graphics/java/android/graphics/
DOutline.java67 public Path mPath; field in Outline
96 if (mPath != null) { in setEmpty()
98 mPath.rewind(); in setEmpty()
161 if (mPath == null) { in set()
162 mPath = new Path(); in set()
164 mPath.set(src.mPath); in set()
199 mPath.rewind(); in setRoundRect()
256 if (mPath == null) { in setOval()
257 mPath = new Path(); in setOval()
259 mPath.rewind(); in setOval()
[all …]
DPathMeasure.java20 private Path mPath; field in PathMeasure
32 mPath = null; in PathMeasure()
52 mPath = path; in PathMeasure()
61 mPath = path; in setPath()
/frameworks/av/media/img_utils/src/
DFileOutput.cpp24 FileOutput::FileOutput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} in FileOutput()
28 ALOGW("%s: Destructor called with %s still open.", __FUNCTION__, mPath.string()); in ~FileOutput()
35 ALOGW("%s: Open called when file %s already open.", __FUNCTION__, mPath.string()); in open()
38 mFp = ::fopen(mPath, "wb"); in open()
40 ALOGE("%s: Could not open file %s", __FUNCTION__, mPath.string()); in open()
49 ALOGE("%s: Could not write file %s, file not open.", __FUNCTION__, mPath.string()); in write()
57 ALOGE("%s: Error %d occurred while writing file %s.", __FUNCTION__, error, mPath.string()); in write()
65 ALOGW("%s: Close called when file %s already close.", __FUNCTION__, mPath.string()); in close()
71 ALOGE("%s: Failed to close file %s.", __FUNCTION__, mPath.string()); in close()
DFileInput.cpp24 FileInput::FileInput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} in FileInput()
36 ALOGW("%s: Open called when file %s already open.", __FUNCTION__, mPath.string()); in open()
39 mFp = ::fopen(mPath, "rb"); in open()
41 ALOGE("%s: Could not open file %s", __FUNCTION__, mPath.string()); in open()
50 ALOGE("%s: Could not read file %s, file not open.", __FUNCTION__, mPath.string()); in read()
57 ALOGE("%s: Error %d occurred while reading file %s.", __FUNCTION__, error, mPath.string()); in read()
71 ALOGW("%s: Close called when file %s already close.", __FUNCTION__, mPath.string()); in close()
77 ALOGE("%s: Failed to close file %s.", __FUNCTION__, mPath.string()); in close()
/frameworks/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java68 private Path2D mPath = new Path2D.Double(); field in Path_Delegate
83 return mPath; in getJavaShape()
88 mPath.append(shape, false /*connect*/); in setJavaShape()
92 mPath.reset(); in reset()
99 mPath.append(iterator, false /*connect*/); in setPathIterator()
200 Area area = new Area(pathDelegate.mPath); in nIsRect()
351 pathDelegate.mPath.append(new Ellipse2D.Float( in nAddOval()
363 pathDelegate.mPath.append(new Ellipse2D.Float( in nAddCircle()
376 pathDelegate.mPath.append(new Arc2D.Float( in nAddArc()
390 pathDelegate.mPath.append(new RoundRectangle2D.Float( in nAddRoundRect()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DRoundRectShape.java43 private Path mPath; // this is what we actually draw field in RoundRectShape
79 mPath = new Path(); in RoundRectShape()
84 canvas.drawPath(mPath, paint); in draw()
97 outline.setConvexPath(mPath); in getOutline()
113 mPath.reset(); in onResize()
116 mPath.addRoundRect(r, mOuterRadii, Path.Direction.CW); in onResize()
118 mPath.addRect(r, Path.Direction.CW); in onResize()
125 mPath.addRoundRect(mInnerRect, mInnerRadii, Path.Direction.CCW); in onResize()
127 mPath.addRect(mInnerRect, Path.Direction.CCW); in onResize()
140 shape.mPath = new Path(mPath); in clone()
[all …]
DPathShape.java37 private Path mPath; field in PathShape
54 mPath = path; in PathShape()
63 canvas.drawPath(mPath, paint); in draw()
76 shape.mPath = new Path(mPath); in clone()
97 && Objects.equals(mPath, pathShape.mPath); in equals()
102 return Objects.hash(super.hashCode(), mStdWidth, mStdHeight, mPath, mScaleX, mScaleY); in hashCode()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathsCacheActivity.java33 private Path mPath; field in PathsCacheActivity
43 mPath = makePath(); in onCreate()
96 canvas.drawPath(mPath, mMediumPaint); in onDraw()
98 mPath.reset(); in onDraw()
99 buildPath(mPath); in onDraw()
102 canvas.drawPath(mPath, mMediumPaint); in onDraw()
103 canvas.drawPath(mPath, mMediumPaint); in onDraw()
105 mPath.reset(); in onDraw()
106 buildPath(mPath); in onDraw()
109 canvas.drawPath(mPath, mMediumPaint); in onDraw()
[all …]
DPathsActivity.java46 private final Path mPath; field in PathsActivity.PathsView
85 mPath = new Path(); in PathsView()
86 mPath.moveTo(0.0f, 0.0f); in PathsView()
87 mPath.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in PathsView()
88 mPath.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in PathsView()
89 mPath.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in PathsView()
92 mPath.computeBounds(mPathBounds, true); in PathsView()
103 canvas.drawPath(mPath, mMediumPaint); in PathsView()
115 canvas.drawPath(mPath, mSmallPaint); in onDraw()
118 canvas.drawPath(mPath, mMediumPaint); in onDraw()
[all …]
DTextOnPathActivity.java30 private Path mPath; field in TextOnPathActivity
37 mPath = makePath(); in onCreate()
98 mMeasure = new PathMeasure(mPath, false); in TextOnPathView()
115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
116 canvas.drawPath(mPath, mPathPaint); in onDraw()
135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); in onDraw()
139 canvas.drawPath(mPath, mPathPaint); in onDraw()
143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
144 canvas.drawPath(mPath, mPathPaint); in onDraw()
148 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
[all …]
DScaledPathsActivity.java39 private final Path mPath; field in ScaledPathsActivity.PathsView
51 mPath = new Path(); in PathsView()
52 mPath.moveTo(0.0f, 0.0f); in PathsView()
53 mPath.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in PathsView()
54 mPath.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in PathsView()
55 mPath.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in PathsView()
57 mPath.computeBounds(mPathBounds, true); in PathsView()
87 canvas.drawPath(mPath, mPathPaint); in drawPath()
DPathOffsetActivity.java39 private Path mPath; field in PathOffsetActivity.PathsView
49 mPath = new Path(); in PathsView()
50 mPath.lineTo(100, 100); in PathsView()
51 mPath.lineTo(200, 300); in PathsView()
56 mPath.offset(1, 1); in onDraw()
58 canvas.drawPath(mPath, mPaint); in onDraw()
DClearActivity.java43 private final Path mPath; field in ClearActivity.PathsView
58 mPath = new Path(); in PathsView()
59 mPath.moveTo(0.0f, 0.0f); in PathsView()
60 mPath.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in PathsView()
61 mPath.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in PathsView()
62 mPath.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in PathsView()
77 canvas.drawPath(mPath, mClearPaint); in onDraw()
DSmallCircleActivity.java49 private final Path mPath; field in SmallCircleActivity.PathView
54 mPath = new Path(); in PathView()
55 mPath.addCircle(SIZE * 0.5f, SIZE * 0.5f, SIZE * 0.275f, Path.Direction.CW); in PathView()
56 mPath.addCircle(SIZE * 0.5f, SIZE * 0.5f, SIZE * 0.225f, Path.Direction.CCW); in PathView()
67 canvas.drawPath(mPath, mPaint); in onDraw()
/frameworks/base/libs/hwui/
DOutline.h46 if (mPath.countVerbs() > 10) { in setRoundRect()
47 mPath.reset(); in setRoundRect()
49 mPath.rewind(); in setRoundRect()
54 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), radius, radius); in setRoundRect()
56 mPath.addRect(left, top, right, bottom); in setRoundRect()
66 mPath = *outline; in setConvexPath()
73 mPath.reset(); in setEmpty()
79 mPath.reset(); in setNone()
113 return &mPath; in getPath()
128 SkPath mPath; variable
DRevealClip.h36 mPath.rewind(); in set()
38 mPath.addCircle(x, y, radius); in set()
55 return &mPath; in getPath()
63 SkPath mPath; variable
/frameworks/base/core/java/android/gesture/
DGestureLibraries.java53 private final File mPath; field in GestureLibraries.FileGestureLibrary
56 mPath = path; in FileGestureLibrary()
61 return !mPath.canWrite(); in isReadOnly()
67 final File file = mPath; in save()
83 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); in save()
85 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); in save()
93 final File file = mPath; in load()
99 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); in load()
101 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); in load()
/frameworks/base/tools/aapt/
DOutputSet.h31 : mPath(path), mFile(file) {} in OutputEntry()
38 return mPath; in getPath()
41 bool operator<(const OutputEntry& o) const { return getPath() < o.mPath; }
42 bool operator==(const OutputEntry& o) const { return getPath() == o.mPath; }
45 android::String8 mPath;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java49 private Path mPath; field in CornerHandleView
71 mPath = new Path(); in updatePath()
92 mPath.moveTo(marginPx + halfStrokePx, marginPx + radiusPx + lineLengthPx); in updatePath()
93 mPath.lineTo(marginPx + halfStrokePx, marginPx + radiusPx); in updatePath()
94 mPath.arcTo(circle, startAngle, angle); in updatePath()
95 mPath.moveTo(marginPx + radiusPx, marginPx + halfStrokePx); in updatePath()
96 mPath.lineTo(marginPx + radiusPx + lineLengthPx, marginPx + halfStrokePx); in updatePath()
98 mPath.arcTo(circle, startAngle, angle); in updatePath()
116 canvas.drawPath(mPath, mPaint); in onDraw()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingImageMessage.java51 private final Path mPath = new Path(); field in MessagingImageMessage
165 mPath.reset(); in getRoundedRectPath()
171 mPath.moveTo(left, top + roundnessY); in getRoundedRectPath()
172 mPath.quadTo(left, top, left + roundnessX, top); in getRoundedRectPath()
173 mPath.lineTo(right - roundnessX, top); in getRoundedRectPath()
174 mPath.quadTo(right, top, right, top + roundnessY); in getRoundedRectPath()
175 mPath.lineTo(right, bottom - roundnessY); in getRoundedRectPath()
176 mPath.quadTo(right, bottom, right - roundnessX, bottom); in getRoundedRectPath()
177 mPath.lineTo(left + roundnessX, bottom); in getRoundedRectPath()
178 mPath.quadTo(left, bottom, left, bottom - roundnessY); in getRoundedRectPath()
[all …]
/frameworks/base/core/java/android/net/
DWebAddress.java57 private String mPath; field in WebAddress
85 mPath = "/"; in WebAddress()
111 mPath = t; in WebAddress()
113 mPath = "/" + t; in WebAddress()
147 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
187 mPath = path; in setPath()
193 return mPath; in getPath()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSlashDrawable.java42 private final Path mPath = new Path(); field in SlashDrawable
154 mPath.reset(); in draw()
156 mPath.addRoundRect(mSlashRect, radiusX, radiusY, Direction.CW); in draw()
159 mPath.transform(m); in draw()
160 canvas.drawPath(mPath, mPaint); in draw()
164 mPath.transform(m); in draw()
168 mPath.transform(m); in draw()
169 mPath.addRoundRect(mSlashRect, 1.0f * width, 1.0f * height, Direction.CW); in draw()
171 mPath.transform(m); in draw()
172 canvas.clipOutPath(mPath); in draw()
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java87 private final File mPath; field in StorageVolume
136 mPath = Preconditions.checkNotNull(path); in StorageVolume()
151 mPath = new File(in.readString()); in StorageVolume()
178 return mPath.toString(); in getPath()
194 return mPath; in getPathFile()
391 if (obj instanceof StorageVolume && mPath != null) { in equals()
393 return (mPath.equals(volume.mPath)); in equals()
400 return mPath.hashCode(); in hashCode()
425 pw.printPair("mPath", mPath); in dump()
459 parcel.writeString(mPath.toString()); in writeToParcel()
/frameworks/base/core/java/android/webkit/
DPlugin.java50 private String mPath; field in Plugin
66 mPath = path; in Plugin()
99 return mPath; in getPath()
139 mPath = path; in setPath()

123