/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
H A D | CircularCornerPathRenderer.java | 31 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 …]
|
H A D | PathSpecCornerPathRenderer.java | 40 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()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Outline.java | 67 public Path mPath; field in Outline 96 if (mPath != null) { in setEmpty() 98 mPath.rewind(); in setEmpty() 161 if (mPath == null) { in set() 164 mPath.set(src.mPath); in set() 198 mPath.rewind(); in setRoundRect() 255 if (mPath == null) { in setOval() 256 mPath = new Path(); in setOval() 258 mPath.rewind(); in setOval() 303 if (mPath == null) { in setPath() [all …]
|
H A D | PathIterator.java | 44 private final Path mPath; field in PathIterator 80 mPath = path; in PathIterator() 81 mNativeIterator = nCreate(mPath.mNativePath); in PathIterator() 82 mPathGenerationId = mPath.getGenerationId(); in PathIterator() 153 if (mPathGenerationId != mPath.getGenerationId()) { in peek() 176 if (mPathGenerationId != mPath.getGenerationId()) { in nextInternal()
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RoundRectShape.java | 43 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() 127 mPath.addRect(mInnerRect, Path.Direction.CCW); in onResize() 140 shape.mPath = new Path(mPath); in clone() 160 && Objects.equals(mPath, that.mPath); in equals() [all …]
|
H A D | PathShape.java | 37 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()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | PathsCacheActivity.java | 33 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 …]
|
H A D | PathsActivity.java | 46 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() 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() 122 canvas.drawPath(mPath, mLargePaint); in onDraw() 128 canvas.drawPath(mPath, mSmallPaint); in onDraw() [all …]
|
H A D | TextOnPathActivity.java | 30 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 …]
|
H A D | ScaledPathsActivity.java | 39 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()
|
H A D | PathOffsetActivity.java | 39 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()
|
H A D | ClearActivity.java | 43 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()
|
H A D | SmallCircleActivity.java | 49 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()
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | Outline.h | 46 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() 109 return &mPath; in getPath() 124 SkPath mPath; variable
|
H A D | RevealClip.h | 36 mPath.rewind(); in set() 38 mPath.addCircle(x, y, radius); in set() 55 return &mPath; in getPath() 63 SkPath mPath; variable
|
/aosp14/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 61 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 …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/ |
H A D | ScrimDrawable.java | 47 private final Path mPath = new Path(); field in ScrimDrawable 239 mPath.reset(); in draw() 240 mPath.moveTo(mBoundsRectF.right, mBoundsRectF.top + topEdgeRadius); in draw() 241 mPath.cubicTo(mBoundsRectF.right, mBoundsRectF.top + topEdgeRadius, in draw() 244 mPath.lineTo(mBoundsRectF.left + topEdgeRadius, mBoundsRectF.top); in draw() 245 mPath.cubicTo(mBoundsRectF.left + topEdgeRadius, mBoundsRectF.top, in draw() 256 mPath.close(); in draw() 257 canvas.drawPath(mPath, mPaint); in draw() 271 canvas.clipOutPath(mConcaveInfo.mPath); in drawConcave() 280 mConcaveInfo.mPath.reset(); in updatePath() [all …]
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | OutputSet.h | 31 : 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;
|
/aosp14/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/ |
H A D | InkView.java | 36 private final Path mPath; field in InkView 59 mPath = new Path(); in InkView() 71 canvas.drawPath(mPath, mPaint); in onDraw() 77 mPath.moveTo(x, y); in stylusStart() 85 if (mPath.isEmpty()) { in stylusMove() 89 mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in stylusMove() 96 mPath.lineTo(mX, mY); in stylusFinish() 98 mPath.reset(); in stylusFinish() 157 mPath.reset(); in getFinishRunnable()
|
/aosp14/frameworks/base/core/java/android/os/storage/ |
H A D | StorageVolume.java | 91 private final File mPath; field in StorageVolume 160 mPath = new File(in.readString8()); in StorageVolume() 198 return mPath.toString(); in getPath() 214 return mPath; in getPathFile() 234 return mPath; in getDirectory() 481 return (mPath.equals(volume.mPath)); in equals() 488 return mPath.hashCode(); in hashCode() 513 pw.printPair("mPath", mPath); in dump() 575 private File mPath; field in StorageVolume.Builder 590 mPath = path; in Builder() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | SlashDrawable.java | 42 private final Path mPath = new Path(); field in SlashDrawable 156 mPath.reset(); in draw() 158 mPath.addRoundRect(mSlashRect, radiusX, radiusY, Direction.CW); in draw() 161 mPath.transform(m); in draw() 162 canvas.drawPath(mPath, mPaint); in draw() 166 mPath.transform(m); in draw() 170 mPath.transform(m); in draw() 171 mPath.addRoundRect(mSlashRect, 1.0f * width, 1.0f * height, Direction.CW); in draw() 173 mPath.transform(m); in draw() 174 canvas.clipOutPath(mPath); in draw()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | MessagingImageMessage.java | 50 private final Path mPath = new Path(); field in MessagingImageMessage 181 mPath.reset(); in getRoundedRectPath() 187 mPath.moveTo(left, top + roundnessY); in getRoundedRectPath() 188 mPath.quadTo(left, top, left + roundnessX, top); in getRoundedRectPath() 189 mPath.lineTo(right - roundnessX, top); in getRoundedRectPath() 190 mPath.quadTo(right, top, right, top + roundnessY); in getRoundedRectPath() 191 mPath.lineTo(right, bottom - roundnessY); in getRoundedRectPath() 193 mPath.lineTo(left + roundnessX, bottom); in getRoundedRectPath() 194 mPath.quadTo(left, bottom, left, bottom - roundnessY); in getRoundedRectPath() 195 mPath.close(); in getRoundedRectPath() [all …]
|
/aosp14/frameworks/base/core/java/android/net/ |
H A D | WebAddress.java | 58 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
H A D | AndroidPackageSplitImpl.java | 33 private final String mPath; field in AndroidPackageSplitImpl 45 mPath = path; in AndroidPackageSplitImpl() 67 return mPath; in getPath() 98 mName, that.mName) && Objects.equals(mPath, that.mPath) in equals() 120 var dependenciesHash = Objects.hash(mName, mPath, mRevisionCode, mFlags, mClassLoaderName); in hashCode()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
H A D | BubbleBarHandleView.java | 45 private final Path mPath = new Path(); field in BubbleBarHandleView 96 mPath.reset(); in BubbleBarHandleView() 97 mPath.addOval(dot1, Path.Direction.CW); in BubbleBarHandleView() 98 mPath.addOval(dot2, Path.Direction.CW); in BubbleBarHandleView() 99 mPath.addOval(dot3, Path.Direction.CW); in BubbleBarHandleView() 100 outline.setPath(mPath); in BubbleBarHandleView()
|