Searched refs:path (Results 151 - 175 of 670) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageListener.java34 public void onStorageStateChanged(String path, String oldState, String newState) { argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp81 ScopedUtfChars path(env, jpath);
82 int fd = open(path.c_str(), O_RDONLY);
95 ScopedUtfChars path(env, jpath);
96 int fd = open(path.c_str(), O_WRONLY);
/frameworks/native/cmds/installd/
H A Dglobals.h29 char* path; member in struct:android::installd::dir_rec_t
H A Dutils.h65 int create_pkg_path(char path[PKG_PATH_MAX],
96 int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid);
98 int create_move_path(char path[PKG_PATH_MAX],
127 int validate_system_app_path(const char* path);
131 int get_path_from_string(dir_rec_t* rec, const char* path);
135 int validate_apk_path(const char *path);
136 int validate_apk_path_subdirs(const char *path);
/frameworks/base/core/java/android/gesture/
H A DGestureStroke.java124 Path path = null;
132 if (path == null) {
133 path = new Path();
134 path.moveTo(x, y);
141 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);
148 mCachedPath = path;
154 * @param width the width of the bounding box of the target path
155 * @param height the height of the bounding box of the target path
158 * @return the path
174 Path path
[all...]
/frameworks/base/libs/hwui/
H A DPathTessellator.h35 * Structure used for threshold values in outline path tessellation.
38 * depending on its type (point, line or path).
67 * Populates a VertexBuffer with a tessellated approximation of the input convex path, as a single
70 * @param path The path to be approximated
71 * @param paint The paint the path will be drawn with, indicating AA, painting style
73 * @param transform The transform the path is to be drawn with, used to drive stretch-aware path
77 static void tessellatePath(const SkPath& path, const SkPaint* paint,
87 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DTextAnimation.cpp45 SkPath path;
46 path.addOval(SkRect::MakeLTRB(100, 100, 300, 300));
49 TestUtils::drawUtf8ToCanvas(&canvas, "This is a neat circle of text!", paint, path);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java69 Path path = new Path();
70 path.setFillType(FillType.EVEN_ODD);
98 drawCorner(canvas, cornerPaint, path, inset.right, inset.bottom, outerArcRadius, 0);
99 drawCorner(canvas, cornerPaint, path, inset.left, inset.bottom, outerArcRadius, 1);
100 drawCorner(canvas, cornerPaint, path, inset.left, inset.top, outerArcRadius, 2);
101 drawCorner(canvas, cornerPaint, path, inset.right, inset.top, outerArcRadius, 3);
146 * @param path A path to reuse. Prevents allocating memory for each path.
152 private static void drawCorner(Canvas canvas, Paint paint, Path path, floa argument
[all...]
/frameworks/compile/mclinker/unittests/
H A DFragmentRefTest.cpp43 Path path(TOPDIR);
44 path.append("unittests/test3.txt");
47 areaFactory->produce(path, FileHandle::OpenMode(FileHandle::ReadWrite),
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DSIMFileHandler.java70 String path = getCommonIccEFPath(efid);
71 if (path == null) {
74 return path;
H A DUsimFileHandler.java70 String path = getCommonIccEFPath(efid);
71 if (path == null) {
74 // the phone book path.
77 return path;
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DDownloadDrmHelper.java90 * @param path Path to the file
96 public static String getOriginalMimeType(Context context, String path, String containingMime) { argument
100 if (drmClient.canHandle(path, null)) {
101 result = drmClient.getOriginalMimeType(path);
105 "Can't get original mime type since path is null or empty string.");
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp240 char path[255]; local
247 snprintf(path, sizeof(path), "/proc/%d/wchan", tid);
248 if ((fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC))) < 0) {
249 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
258 printf("Failed to read '%s' (%s)\n", path, strerror(save_errno));
306 char path[255]; local
312 snprintf(path, sizeof(path), "/proc/%d/stat", pid);
313 if ((fd = TEMP_FAILURE_RETRY(open(path, O_RDONL
405 _dump_file_from_fd(const char *title, const char *path, int fd) argument
470 dump_file(const char *title, const char *path) argument
482 read_file_as_long(const char *path, long int *output) argument
509 dump_files(const char *title, const char *dir, bool (*skip)(const char *path), int (*dump_from_fd)(const char *title, const char *path, int fd)) argument
578 dump_file_from_fd(const char *title, const char *path, int fd) argument
948 create_parent_dirs(const char *path) argument
975 redirect_to_file(FILE *redirect, char *path) argument
989 should_dump_native_traces(const char* path) argument
1060 char path[PATH_MAX]; local
1222 take_screenshot(const std::string& path) argument
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotTest.java86 NewScreenshotObserver(String path) { argument
87 super(path, FileObserver.CREATE);
95 public void onEvent(int event, String path) { argument
96 Log.d(LOG_TAG, String.format("Detected new file added %s", path));
98 mAddedPath = path;
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DRegion.java64 final Path path = new Path();
68 path.moveTo(mPointsXY[i] - bounds.left + mCutOffsetX,
71 path.lineTo(mPointsXY[i] - bounds.left + mCutOffsetX,
75 path.close();
90 canvas.drawPath(path, paint1);
91 canvas.drawPath(path, paint2);
114 final Path path = new Path();
117 path.moveTo(mPointsXY[i] - mRoiBounds.left + cutOffsetX,
120 path.lineTo(mPointsXY[i] - mRoiBounds.left + cutOffsetX,
125 path
[all...]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DPathParser.java59 * @param pathData The string representing a path, the same as "d" string in svg file.
63 Path path = new Path();
67 PathDataNode.nodesToPath(nodes, path);
71 return path;
77 * @param pathData The string representing a path, the same as "d" string in svg file.
121 * @param nodesFrom The source path represented in an array of PathDataNode
122 * @param nodesTo The target path represented in an array of PathDataNode
147 * @param target The target path represented in an array of PathDataNode
148 * @param source The source path represented in an array of PathDataNode
164 // Note that 'e' or 'E' are not valid path command
313 nodesToPath(PathDataNode[] node, Path path) argument
339 addCommand(Path path, float[] current, char previousCmd, char cmd, float[] val) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaFile.java306 public static MediaFileType getFileType(String path) { argument
307 int lastDot = path.lastIndexOf('.');
310 return sFileTypeMap.get(path.substring(lastDot + 1).toUpperCase(Locale.ROOT));
320 public static String getFileTitle(String path) { argument
322 int lastSlash = path.lastIndexOf('/');
325 if (lastSlash < path.length()) {
326 path = path.substring(lastSlash);
330 int lastDot = path.lastIndexOf('.');
332 path
342 getMimeTypeForFile(String path) argument
[all...]
/frameworks/compile/mclinker/lib/Support/Unix/
H A DFileSystem.inc65 pDir.m_Handler = reinterpret_cast<intptr_t>(opendir(pDir.path().c_str()));
73 std::string path(pDir.path().native());
74 switch (read_dir(pDir.m_Handler, path)) {
79 pDir.m_Cache.insert(path, exist);
81 entry->setValue(sys::fs::Path(path));
91 pDir.path().native());
/frameworks/base/core/java/android/net/
H A DUri.java102 and a path component that begins with two slash characters. The
108 <scheme>://<authority><path>?<query>
259 * Gets the decoded path.
261 * @return the decoded path, or null if this is not a hierarchical URI
267 * Gets the encoded path.
269 * @return the encoded path, or null if this is not a hierarchical URI
309 * Gets the decoded path segments.
311 * @return decoded path segments, each without a leading or trailing '/'
316 * Gets the decoded last segment in the path.
318 * @return the decoded last segment or null if the path i
593 private PathPart path; field in class:Uri.StringUri
1145 private final PathPart path; field in class:Uri.HierarchicalUri
1149 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1327 private PathPart path; field in class:Uri.Builder
1391 path(PathPart path) argument
1407 path(String path) argument
1418 encodedPath(String path) argument
[all...]
/frameworks/base/cmds/idmap/
H A Dcreate.cpp33 int open_idmap(const char *path) argument
35 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644));
37 ALOGD("error: open %s: %s\n", path, strerror(errno));
41 ALOGD("error: fchmod %s: %s\n", path, strerror(errno));
45 ALOGD("error: flock %s: %s\n", path, strerror(errno));
53 unlink(path);
/frameworks/base/core/java/android/animation/
H A DPathKeyframes.java49 public PathKeyframes(Path path) { argument
50 this(path, 0.5f);
53 public PathKeyframes(Path path, float error) { argument
54 if (path == null || path.isEmpty()) {
55 throw new IllegalArgumentException("The path must not be null or empty");
57 mKeyframeData = path.approximate(error);
/frameworks/base/core/java/android/content/
H A DUriMatcher.java152 * this method will accept a leading slash in the path.
155 * @param path the path to match. * may be used as a wild card for
160 public void addURI(String authority, String path, int code) argument
167 if (path != null) {
168 String newPath = path;
170 if (path.length() > 0 && path.charAt(0) == '/') {
171 newPath = path.substring(1);
210 * Try to match against the path i
[all...]
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
H A DLowStorageTest.java51 File path = Environment.getDataDirectory();
52 StatFs stat = new StatFs(path.getPath());
79 File path = Environment.getDataDirectory();
80 StatFs stat = new StatFs(path.getPath());
121 File path = Environment.getDataDirectory();
122 StatFs stat = new StatFs(path.getPath());
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp36 MidiIoWrapper::MidiIoWrapper(const char *path) { argument
37 ALOGV("MidiIoWrapper(%s)", path);
38 mFd = open(path, O_RDONLY | O_LARGEFILE);
/frameworks/base/core/java/android/util/
H A DPathParser.java26 * @param pathString The string representing a path, the same as "d" string in svg file.
33 Path path = new Path();
34 nParseStringForPath(path.mNativePath, pathString, pathString.length());
35 return path;
39 * Interpret PathData as path commands and insert the commands to the given path.
42 * @param outPath The Path object where path commands will be inserted.
49 * @param pathDataFrom The source path represented in PathData
50 * @param pathDataTo The target path represented in PathData
59 * the result of parsing a path strin
[all...]

Completed in 1648 milliseconds

1234567891011>>