Home
last modified time | relevance | path

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

123

/frameworks/base/graphics/java/android/graphics/
DOutline.java35 public Path mPath; field in Outline
63 mPath = null; in setEmpty()
77 return mRect == null && mPath == null; in isEmpty()
122 if (src.mPath != null) { in set()
123 if (mPath == null) { in set()
124 mPath = new Path(); in set()
126 mPath.set(src.mPath); in set()
168 mPath = null; in setRoundRect()
193 if (mPath == null) mPath = new Path(); in setOval()
194 mPath.reset(); 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/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java61 private Path2D mPath = new Path2D.Double(); field in Path_Delegate
73 return mPath; in getJavaShape()
77 mPath.reset(); in setJavaShape()
78 mPath.append(shape, false /*connect*/); in setJavaShape()
82 mPath.reset(); in reset()
86 mPath.reset(); in setPathIterator()
87 mPath.append(iterator, false /*connect*/); in setPathIterator()
121 pathDelegate.mPath.reset(); in native_reset()
191 Area area = new Area(pathDelegate.mPath); in native_isRect()
342 pathDelegate.mPath.append(new Ellipse2D.Float( in native_addOval()
[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/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/graphics/java/android/graphics/drawable/shapes/
DRoundRectShape.java38 private Path mPath; // this is what we actually draw field in RoundRectShape
74 mPath = new Path(); in RoundRectShape()
79 canvas.drawPath(mPath, paint); in draw()
92 outline.setConvexPath(mPath); in getOutline()
109 mPath.reset(); in onResize()
112 mPath.addRoundRect(r, mOuterRadii, Path.Direction.CW); in onResize()
114 mPath.addRect(r, Path.Direction.CW); in onResize()
121 mPath.addRoundRect(mInnerRect, mInnerRadii, Path.Direction.CCW); in onResize()
123 mPath.addRect(mInnerRect, Path.Direction.CCW); in onResize()
136 shape.mPath = new Path(mPath); in clone()
DPathShape.java30 private Path mPath; field in PathShape
49 mPath = path; in PathShape()
58 canvas.drawPath(mPath, paint); in draw()
71 shape.mPath = new Path(mPath); in clone()
/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()
DGestureOverlayView.java89 private final Path mPath = new Path(); field in GestureOverlayView
301 mPath.rewind(); in setGesture()
302 mPath.addPath(path, -bounds.left + (getWidth() - bounds.width()) / 2.0f, in setGesture()
311 return mPath; in getGesturePath()
315 path.set(mPath); in getGesturePath()
404 canvas.drawPath(mPath, mGesturePaint); in draw()
440 mPath.rewind(); in clear()
449 mPath.rewind(); in clear()
460 mPath.rewind(); in cancelClearAnimation()
571 mPath.rewind(); in touchDown()
[all …]
/frameworks/base/libs/hwui/
DOutline.h39 mPath.reset(); in setRoundRect()
40 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), in setRoundRect()
51 mPath = *outline; in setConvexPath()
58 mPath.reset(); in setEmpty()
64 mPath.reset(); in setNone()
106 return &mPath; in getPath()
122 SkPath mPath; variable
DRevealClip.h40 mPath.rewind(); in set()
42 mPath.addCircle(x, y, radius); in set()
59 return &mPath; in getPath()
67 SkPath mPath; variable
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java44 private final File mPath; field in StorageVolume
69 mPath = Preconditions.checkNotNull(path); in StorageVolume()
85 mPath = new File(in.readString()); in StorageVolume()
108 return mPath.toString(); in getPath()
112 return mPath; in getPathFile()
223 if (obj instanceof StorageVolume && mPath != null) { in equals()
225 return (mPath.equals(volume.mPath)); in equals()
232 return mPath.hashCode(); in hashCode()
247 pw.printPair("mPath", mPath); in dump()
282 parcel.writeString(mPath.toString()); in writeToParcel()
/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/net/
DWebAddress.java51 private String mPath; field in WebAddress
79 mPath = "/"; in WebAddress()
105 mPath = t; in WebAddress()
107 mPath = "/" + t; in WebAddress()
141 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
176 mPath = path; in setPath()
181 return mPath; in getPath()
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawerArrowDrawable.java108 private final Path mPath = new Path(); field in DrawerArrowDrawable
359 mPath.rewind(); in draw()
365 mPath.moveTo(arrowEdge + arrowShaftCut, 0); in draw()
366 mPath.rLineTo(arrowShaftLength - arrowShaftCut * 2, 0); in draw()
369 mPath.moveTo(arrowEdge, topBottomBarOffset); in draw()
370 mPath.rLineTo(arrowWidth, arrowHeight); in draw()
373 mPath.moveTo(arrowEdge, -topBottomBarOffset); in draw()
374 mPath.rLineTo(arrowWidth, -arrowHeight); in draw()
376 mPath.close(); in draw()
393 canvas.drawPath(mPath, mPaint); in draw()
/frameworks/base/media/java/android/mtp/
DMtpStorage.java32 private final String mPath; field in MtpStorage
40 mPath = volume.getPath(); in MtpStorage()
62 return mPath; in getPath()
/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()
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java53 private final String mPath; field in CertBlacklister.BlacklistObserver
61 mPath = path; in BlacklistObserver()
62 mTmpDir = new File(mPath).getParentFile(); in BlacklistObserver()
95 tmp.renameTo(new File(mPath)); in writeBlacklist()

123