/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | StateView.java | 136 mPath.reset(); in onDraw() 170 mPath.moveTo(w, 0); in drawHorizontalPath() 181 mPath.lineTo(w, h); in drawHorizontalPath() 188 mPath.moveTo(0, 0); in drawHorizontalPath() 206 mPath.close(); in drawHorizontalPath() 220 mPath.lineTo(w, h); in drawVerticalPath() 226 mPath.lineTo(0, h); in drawVerticalPath() 227 mPath.close(); in drawVerticalPath() 231 mPath.moveTo(0, 0); in drawVerticalDownPath() 237 mPath.lineTo(w, 0); in drawVerticalDownPath() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | RoundedLine.java | 45 mPath.rewind(); in makePath() 92 mPath.moveTo(p1x, p1y); in makePath() 95 mPath.moveTo(p2x, p2y); in makePath() 98 mPath.moveTo(p1ax, p1ay); in makePath() 99 mPath.lineTo(p1x, p1y); in makePath() 100 mPath.lineTo(p1bx, p1by); in makePath() 101 mPath.lineTo(p2bx, p2by); in makePath() 102 mPath.lineTo(p2x, p2y); in makePath() 103 mPath.lineTo(p2ax, p2ay); in makePath() 104 mPath.close(); in makePath() [all …]
|
/aosp12/system/vold/model/ |
H A D | PrivateVolume.cpp | 126 mPath = StringPrintf("/mnt/expand/%s", mFsUuid.c_str()); in doMount() 127 setPath(mPath); in doMount() 129 if (PrepareDir(mPath, 0700, AID_ROOT, AID_ROOT)) { in doMount() 135 int res = ext4::Check(mDmDevPath, mPath); in doMount() 143 if (ext4::Mount(mDmDevPath, mPath, false, false, true)) { in doMount() 157 if (f2fs::Mount(mDmDevPath, mPath)) { in doMount() 167 RestoreconRecursive(mPath); in doMount() 178 PrepareDir(mPath + "/local", 0751, AID_ROOT, AID_ROOT) || in doMount() 189 std::string mediaPath(mPath + "/media"); in doPostMount() 203 ForceUnmount(mPath); in doUnmount() [all …]
|
/aosp12/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 …]
|
/aosp12/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() 199 mPath.rewind(); in setRoundRect() 256 if (mPath == null) { in setOval() 257 mPath = new Path(); in setOval() 259 mPath.rewind(); in setOval() 304 if (mPath == null) { in setPath() [all …]
|
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 83 return mPath; in getJavaShape() 92 mPath.reset(); in reset() 541 mPath.reset(); in set() 543 mPath.append(delegate.mPath, false /*connect*/); in set() 595 destPathDelegate.mPath.append( in addPath() 598 destPathDelegate.mPath.append(srcPathDelegate.mPath, false); in addPath() 769 mPath.moveTo(0, 0); in cubicTo() 824 mPath.closePath(); in close() 878 mPath = newPath; in offset() 904 dst.mPath = newPath; in transform() [all …]
|
/aosp12/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()
|
/aosp12/frameworks/av/media/img_utils/src/ |
H A D | FileOutput.cpp | 24 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()
|
H A D | FileInput.cpp | 24 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()
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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 | 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 | 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 | 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 | 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()
|
/aosp12/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() 113 return &mPath; in getPath() 128 SkPath mPath; variable
|
/aosp12/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 …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
H A D | RoundedArrowDrawable.java | 41 private final Path mPath; field in RoundedArrowDrawable 63 mPath = new Path(); in RoundedArrowDrawable() 70 addDownPointingRoundedTriangleToPath(width, height, radius, mPath); in RoundedArrowDrawable() 72 mPath); in RoundedArrowDrawable() 78 mPath.transform(pathTransform); in RoundedArrowDrawable() 92 mPath = new Path(); in RoundedArrowDrawable() 99 addDownPointingRoundedTriangleToPath(width, height, radius, mPath); in RoundedArrowDrawable() 104 mPath.transform(pathTransform); in RoundedArrowDrawable() 109 canvas.drawPath(mPath, mPaint); in draw() 114 outline.setPath(mPath); in getOutline()
|
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaVolume.java | 56 private final @Nullable File mPath; field in MediaVolume 72 return mPath; in getPath() 82 this.mPath = path; in MediaVolume() 89 this.mPath = new File(in.readString()); in MediaVolume() 100 Objects.equals(mPath, that.mPath) && in equals() 106 return Objects.hash(mName, mUser, mPath, mId); in hashCode() 137 dest.writeString(mPath.toString()); in writeToParcel() 144 + mPath + "]"; in toString()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | FastScrollThumbDrawable.java | 33 private final Path mPath = new Path(); field in FastScrollThumbDrawable 44 if (mPath.isConvex()) { in getOutline() 45 outline.setConvexPath(mPath); in getOutline() 51 mPath.reset(); in onBoundsChange() 58 mPath.addRoundRect(bounds.left, bounds.top, bounds.left + diameter, bounds.top + diameter, in onBoundsChange() 67 mPath.transform(sMatrix); in onBoundsChange() 72 canvas.drawPath(mPath, mPaint); in draw()
|
/aosp12/frameworks/base/core/java/android/os/storage/ |
H A D | StorageVolume.java | 93 private final File mPath; field 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() 471 return (mPath.equals(volume.mPath)); in equals() 478 return mPath.hashCode(); in hashCode() 503 pw.printPair("mPath", mPath); in dump() 563 private File mPath; field in StorageVolume.Builder 578 mPath = path; in Builder() [all …]
|
/aosp12/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/draw/ |
H A D | CanvasView.java | 32 private final Path mPath; field in CanvasView 39 mPath = new Path(); in CanvasView() 50 canvas.drawPath(mPath, mPaint); in onDraw() 76 mPath.reset(); in clearCanvas() 86 mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in moveTouch() 93 mPath.moveTo(x, y); in downTouch() 99 mPath.lineTo(mX, mY); in upTouch()
|
/aosp12/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;
|
/aosp12/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | UsageGraph.java | 56 private final Path mPath = new Path(); field in UsageGraph 275 mPath.reset(); in drawLinePath() 276 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawLinePath() 285 mPath.lineTo(x, y); in drawLinePath() 288 canvas.drawPath(mPath, paint); in drawLinePath() 296 mPath.reset(); in drawFilledPath() 298 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawFilledPath() 304 mPath.lineTo(lastStartX, getHeight()); in drawFilledPath() 305 mPath.close(); in drawFilledPath() 311 mPath.lineTo(x, y); in drawFilledPath() [all …]
|