Searched refs:path (Results 126 - 150 of 535) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/gesture/
H A DGesture.java129 public Path toPath(Path path) { argument
130 if (path == null) path = new Path();
136 path.addPath(strokes.get(i).getPath());
139 return path;
146 public Path toPath(Path path, int width, int height, int edge, int numSample) { argument
147 if (path == null) path = new Path();
153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample));
156 return path;
[all...]
H A DGestureStroke.java125 Path path = null;
133 if (path == null) {
134 path = new Path();
135 path.moveTo(x, y);
142 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);
149 mCachedPath = path;
155 * @param width the width of the bounding box of the target path
156 * @param height the height of the bounding box of the target path
159 * @return the path
175 Path path
[all...]
/frameworks/base/core/java/android/webkit/
H A DPlugin.java62 String path,
66 mPath = path;
138 public void setPath(String path) { argument
139 mPath = path;
61 Plugin(String name, String path, String fileName, String description) argument
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageListener.java34 public void onStorageStateChanged(String path, String oldState, String newState) { argument
/frameworks/wilhelm/tests/automated/
H A DAndroid.mk11 $(call include-path-for, wilhelm) \
13 $(call include-path-for, wilhelm-ut)
/frameworks/base/libs/hwui/
H A DPathCache.h59 * Alpha texture used to represent a path.
70 * Left coordinate of the path bounds.
74 * Top coordinate of the path bounds.
78 * Offset to draw the path at the correct origin.
122 } path; member in union:android::uirenderer::PathDescription::Shape
169 void operator()(PathDescription& path, PathTexture*& texture);
195 PathTexture* get(const SkPath* path, const SkPaint* paint);
198 * Removes the specified path. This is meant to be called from threads
201 void removeDeferred(SkPath* path);
219 * Precaches the specified path usin
274 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture) argument
284 const SkPath path; member in class:android::uirenderer::PathCache::PathTask
[all...]
H A DPathTessellator.h43 * Populates a VertexBuffer with a tessellated approximation of the input convex path, as a single
46 * @param path The path to be approximated
47 * @param paint The paint the path will be drawn with, indicating AA, painting style
49 * @param transform The transform the path is to be drawn with, used to drive stretch-aware path
53 static void tessellatePath(const SkPath& path, const SkPaint* paint,
63 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
77 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
87 * @param path Th
[all...]
H A DDisplayListRenderer.h95 virtual bool clipPath(const SkPath* path, SkRegion::Op op);
139 virtual status_t drawPath(const SkPath* path, const SkPaint* paint);
147 virtual status_t drawTextOnPath(const char* text, int bytesCount, int count, const SkPath* path,
200 inline const SkPath* refPath(const SkPath* path) { argument
201 if (!path) return NULL;
203 const SkPath* pathCopy = mPathMap.valueFor(path);
204 if (pathCopy == NULL || pathCopy->getGenerationID() != path->getGenerationID()) {
205 SkPath* newPathCopy = new SkPath(*path);
206 newPathCopy->setSourcePath(path);
210 mPathMap.replaceValueFor(path, pathCop
[all...]
/frameworks/compile/mclinker/unittests/
H A DFragmentRefTest.cpp47 Path path(TOPDIR);
48 path.append("unittests/test3.txt");
50 MemoryArea* area = areaFactory->produce(path, FileHandle::ReadWrite);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DSIMFileHandler.java69 String path = getCommonIccEFPath(efid);
70 if (path == null) {
73 return path;
H A DUsimFileHandler.java68 String path = getCommonIccEFPath(efid);
69 if (path == null) {
72 // the phone book path.
75 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/base/core/java/android/os/storage/
H A DStorageManager.java98 public void onStorageStateChanged(String path, String oldState, String newState) { argument
101 mListeners.get(i).sendStorageStateChanged(path, oldState, newState);
169 changeListener.onObbStateChange(ev.path, ev.state);
184 void sendObbStateChanged(String path, int state) { argument
185 ObbStateChangedStorageEvent e = new ObbStateChangedStorageEvent(path, state);
194 public final String path; field in class:StorageManager.ObbStateChangedStorageEvent
198 public ObbStateChangedStorageEvent(String path, int state) { argument
200 this.path = path;
243 public String path; field in class:StorageManager.StorageStateChangedStorageEvent
291 sendStorageStateChanged(String path, String oldState, String newState) argument
627 getStorageBytesUntilLow(File path) argument
637 getStorageLowBytes(File path) argument
654 getStorageFullBytes(File 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/base/cmds/idmap/
H A Dscan.cpp60 String8 flatten_path(const char *path) argument
62 String16 tmp(path);
67 int mkdir_p(const String8& path, uid_t uid, gid_t gid) argument
73 if (stat(path.string(), &st) == 0) {
76 if (mkdir_p(path.getPathDir(), uid, gid) < 0) {
79 if (mkdir(path.string(), 0755) != 0) {
82 if (chown(path.string(), uid, gid) == -1) {
85 if (chmod(path.string(), mode) == -1) {
144 int parse_apk(const char *path, const char *target_package_name) argument
146 UniquePtr<ZipFileRO> zip(ZipFileRO::open(path));
[all...]
/frameworks/base/media/java/android/media/
H A DMediaExtractor.java121 * Sets the data source (file-path or http URL) to use.
123 * @param path the path of the file, or the http URL
126 public final void setDataSource(String path, Map<String, String> headers) argument
144 MediaHTTPService.createHttpServiceBinderIfNecessary(path),
145 path,
152 String path,
157 * Sets the data source (file-path or http URL) to use.
159 * @param path the path o
150 nativeSetDataSource( IBinder httpServiceBinder, String path, String[] keys, String[] values) argument
168 setDataSource(String path) argument
[all...]
H A DMediaFile.java274 public static MediaFileType getFileType(String path) { argument
275 int lastDot = path.lastIndexOf('.');
278 return sFileTypeMap.get(path.substring(lastDot + 1).toUpperCase(Locale.ROOT));
288 public static String getFileTitle(String path) { argument
290 int lastSlash = path.lastIndexOf('/');
293 if (lastSlash < path.length()) {
294 path = path.substring(lastSlash);
298 int lastDot = path.lastIndexOf('.');
300 path
310 getMimeTypeForFile(String path) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.c175 char path[255]; local
182 sprintf(path, "/proc/%d/wchan", tid);
183 if ((fd = open(path, O_RDONLY)) < 0) {
184 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
189 printf("Failed to read '%s' (%s)\n", path, strerror(errno));
254 int dump_file(const char *title, const char *path) { argument
255 int fd = open(path, O_RDONLY);
258 if (title) printf("------ %s (%s) ------\n", title, path);
259 printf("*** %s: %s\n", path, strerror(err));
263 return dump_file_from_fd(title, path, f
266 dump_file_from_fd(const char *title, const char *path, int fd) argument
429 redirect_to_file(FILE *redirect, char *path, int gzip_level) argument
494 should_dump_native_traces(const char* path) argument
577 char path[PATH_MAX]; local
[all...]
H A Ddumpstate.c83 char path[PATH_MAX]; local
94 snprintf(path, sizeof(path), "%s/%s/%s", driverpath, de->d_name, filename);
95 dump_file(title, path);
532 char path[PATH_MAX], tmp_path[PATH_MAX]; local
536 strlcpy(path, use_outfile, sizeof(path));
541 strlcat(path, date, sizeof(path));
544 strlcpy(screenshot_path, path, sizeo
[all...]
/frameworks/compile/mclinker/lib/Support/Unix/
H A DFileSystem.inc63 pDir.m_Handler = reinterpret_cast<intptr_t>(opendir(pDir.path().c_str()));
71 std::string path(pDir.path().native());
72 switch (read_dir(pDir.m_Handler, path)) {
76 mcld::sys::fs::PathCache::entry_type* entry = pDir.m_Cache.insert(path, exist);
78 entry->setValue(path);
88 pDir.path().native());
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java223 /** Map from path to {@link StorageVolume} */
226 /** Map from path to state */
381 final String path; field in class:MountService.UnmountCallBack
386 UnmountCallBack(String path, boolean force, boolean removeEncryption) { argument
388 this.path = path;
394 if (DEBUG_UNMOUNT) Slog.i(TAG, "Unmounting " + path);
395 doUnmountVolume(path, true, removeEncryption);
402 UmsEnableCallBack(String path, String method, boolean force) { argument
403 super(path, forc
416 ShutdownCallBack(String path, final MountShutdownLatch mountShutdownLatch) argument
732 doShareUnshareVolume(String path, String method, boolean enable) argument
1033 notifyVolumeStateChange(String label, String path, int oldState, int newState) argument
1100 doMountVolume(String path) argument
1169 doUnmountVolume(String path, boolean force, boolean removeEncryption) argument
1211 doFormatVolume(String path) argument
1227 doGetVolumeShared(String path, String method) argument
1734 mountVolume(String path) argument
1740 unmountVolume(String path, boolean force, boolean removeEncryption) argument
1762 formatVolume(String path) argument
1769 getStorageUsers(String path) argument
2522 maybeTranslatePathForVold( String path, File[] appPaths, File[] voldPaths) argument
[all...]
/frameworks/base/core/java/android/util/
H A DPathParser.java30 * @param pathData The string representing a path, the same as "d" string in svg file.
34 Path path = new Path();
38 PathDataNode.nodesToPath(nodes, path);
42 return path;
48 * @param pathData The string representing a path, the same as "d" string in svg file.
92 * @param nodesFrom The source path represented in an array of PathDataNode
93 * @param nodesTo The target path represented in an array of PathDataNode
118 * @param target The target path represented in an array of PathDataNode
119 * @param source The source path represented in an array of PathDataNode
135 // Note that 'e' or 'E' are not valid path command
282 nodesToPath(PathDataNode[] node, Path path) argument
308 addCommand(Path path, float[] current, char previousCmd, char cmd, float[] val) argument
[all...]
/frameworks/native/cmds/installd/
H A Dinstalld.c297 if (android_system_dirs.dirs[i].path != NULL) {
298 free(android_system_dirs.dirs[i].path);
351 android_system_dirs.dirs[0].path = build_string2(android_root_dir.path, APP_SUBDIR);
352 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path);
354 android_system_dirs.dirs[1].path = build_string2(android_root_dir.path, PRIV_APP_SUBDIR);
355 android_system_dirs.dirs[1].len = strlen(android_system_dirs.dirs[1].path);
357 android_system_dirs.dirs[2].path = "/vendor/app/";
358 android_system_dirs.dirs[2].len = strlen(android_system_dirs.dirs[2].path);
[all...]
/frameworks/av/services/audioflinger/
H A DAndroid.mk44 $(call include-path-for, audio-effects) \
45 $(call include-path-for, audio-utils)
77 # Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
97 $(call include-path-for, audio-utils)
125 $(call include-path-for, audio-utils)
/frameworks/base/core/java/com/android/internal/content/
H A DNativeLibraryHelper.java100 final String path = codePaths.get(i);
101 apkHandles[i] = nativeOpenApk(path);
107 throw new IOException("Unable to open APK: " + path);
144 private static native long nativeOpenApk(String path); argument
256 private static void createNativeLibrarySubdir(File path) throws IOException { argument
257 if (!path.isDirectory()) {
258 path.delete();
260 if (!path.mkdir()) {
261 throw new IOException("Cannot create " + path.getPath());
265 Os.chmod(path
[all...]

Completed in 5734 milliseconds

1234567891011>>