Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCircularCornerPathRenderer.java31 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 …]
DPathSpecCornerPathRenderer.java40 private final Path mPath = new Path(); field in PathSpecCornerPathRenderer
114 mPath.reset(); in getCornerPath()
116 mPath.addPath(mRoundedPath); in getCornerPath()
121 mPath.transform(mMatrix); in getCornerPath()
122 return mPath; in getCornerPath()
/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 …]
/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/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.setPath(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 …]
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()
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 …]
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 setPath()
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/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/core/java/android/gesture/
DGestureLibraries.java61 private final File mPath; field in GestureLibraries.FileGestureLibrary
65 mPath = path; in FileGestureLibrary()
70 mPath = null; in FileGestureLibrary()
80 if (mPath != null) { in isReadOnly()
81 return !mPath.canWrite(); in isReadOnly()
90 if (mPath != null) { in save()
91 final File file = mPath; in save()
106 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); in save()
121 if (mPath != null) { in load()
122 final File file = mPath; in load()
[all …]
/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/core/java/android/os/storage/
DStorageVolume.java93 private final File mPath; field in StorageVolume
143 mPath = Preconditions.checkNotNull(path); in StorageVolume()
159 mPath = new File(in.readString8()); in StorageVolume()
196 return mPath.toString(); in getPath()
212 return mPath; in getPathFile()
232 return mPath; in getDirectory()
469 if (obj instanceof StorageVolume && mPath != null) { in equals()
471 return (mPath.equals(volume.mPath)); in equals()
478 return mPath.hashCode(); in hashCode()
503 pw.printPair("mPath", mPath); in dump()
[all …]
/frameworks/base/core/java/android/net/
DWebAddress.java58 private String mPath; field in WebAddress
86 mPath = "/"; in WebAddress()
112 mPath = t; in WebAddress()
114 mPath = "/" + t; in WebAddress()
149 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
189 mPath = path; in setPath()
195 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/com/android/internal/widget/
DMessagingImageMessage.java51 private final Path mPath = new Path(); field in MessagingImageMessage
171 mPath.reset(); in getRoundedRectPath()
177 mPath.moveTo(left, top + roundnessY); in getRoundedRectPath()
178 mPath.quadTo(left, top, left + roundnessX, top); in getRoundedRectPath()
179 mPath.lineTo(right - roundnessX, top); in getRoundedRectPath()
180 mPath.quadTo(right, top, right, top + roundnessY); in getRoundedRectPath()
181 mPath.lineTo(right, bottom - roundnessY); in getRoundedRectPath()
182 mPath.quadTo(right, bottom, right - roundnessX, bottom); in getRoundedRectPath()
183 mPath.lineTo(left + roundnessX, bottom); in getRoundedRectPath()
184 mPath.quadTo(left, bottom, left, bottom - roundnessY); in getRoundedRectPath()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcLocksReader.java38 private final String mPath; field in ProcLocksReader
41 mPath = "/proc/locks"; in ProcLocksReader()
45 mPath = path; in ProcLocksReader()
61 reader = new ProcFileReader(new FileInputStream(mPath)); in hasFileLocks()
/frameworks/base/media/java/android/mtp/
DMtpStorage.java31 private final String mPath; field in MtpStorage
39 mPath = volume.getPath(); in MtpStorage()
63 return mPath; in getPath()

1234