Searched defs:path (Results 401 - 425 of 533) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/net/
H A DUri.java104 and a path component that begins with two slash characters. The
110 <scheme>://<authority><path>?<query>
267 * Gets the decoded path.
269 * @return the decoded path, or null if this is not a hierarchical URI
276 * Gets the encoded path.
278 * @return the encoded path, or null if this is not a hierarchical URI
323 * Gets the decoded path segments.
325 * @return decoded path segments, each without a leading or trailing '/'
330 * Gets the decoded last segment in the path.
332 * @return the decoded last segment or null if the path i
608 private PathPart path; field in class:Uri.StringUri
1168 private final PathPart path; field in class:Uri.HierarchicalUri
1172 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1350 private PathPart path; field in class:Uri.Builder
1414 path(PathPart path) argument
1430 path(String path) argument
1441 encodedPath(String path) argument
[all...]
/frameworks/base/core/java/android/os/
H A DEnvironment.java454 * Writing to this path requires the
467 * This path may change between platform versions, so applications should
732 * @return Returns the File path for the directory. Note that this directory
742 * Returns the path for android-specific data on the SD card.
751 * Generates the raw path to an application's data
760 * Generates the raw path to an application's media
769 * Generates the raw path to an application's OBB files
778 * Generates the path to an application's files.
787 * Generates the path to an application's cache.
803 * Unknown storage state, such as when a path is
904 getStorageState(File path) argument
918 getExternalStorageState(File path) argument
950 isExternalStorageRemovable(File path) argument
993 isExternalStorageEmulated(File path) argument
1063 maybeTranslateEmulatedPathToInternal(File path) argument
[all...]
H A DFileUtils.java109 public static int setPermissions(File path, int mode, int uid, int gid) { argument
110 return setPermissions(path.getAbsolutePath(), mode, uid, gid);
114 * Set owner and mode of of given path.
121 public static int setPermissions(String path, int mode, int uid, int gid) { argument
123 Os.chmod(path, mode);
125 Slog.w(TAG, "Failed to chmod(" + path + "): " + e);
131 Os.chown(path, uid, gid);
133 Slog.w(TAG, "Failed to chown(" + path + "): " + e);
180 * Return owning UID of given path, otherwise -1.
182 public static int getUid(String path) { argument
842 rewriteAfterRename(File beforeDir, File afterDir, String path) argument
1016 newFileOrNull(@ullable String path) argument
[all...]
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java280 public final void drawPath(@NonNull Path path, @NonNull Paint paint) { argument
281 if (path.isSimplePath && path.rects != null) {
282 nDrawRegion(mNativeCanvasWrapper, path.rects.mNativeRegion, paint.getNativeInstance());
284 nDrawPath(mNativeCanvasWrapper, path.readOnlyNI(), paint.getNativeInstance());
441 public final void drawTextOnPath(@NonNull char[] text, int index, int count, @NonNull Path path, argument
447 path.readOnlyNI(), hOffset, vOffset,
452 public final void drawTextOnPath(@NonNull String text, @NonNull Path path, float hOffset, argument
455 nDrawTextOnPath(mNativeCanvasWrapper, text, path.readOnlyNI(), hOffset, vOffset,
/frameworks/base/core/java/android/widget/
H A DVideoView.java243 * Sets video path.
245 * @param path the path of the video.
247 public void setVideoPath(String path) { argument
248 setVideoURI(Uri.parse(path));
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp41 // Purge entries from the HWUI path cache if this path's data is unique
408 // Returns a float[] with each point along the path represented by 3 floats
409 // * fractional length along the path that the point resides
412 // Note that more than one point may have the same length along the path in
417 SkPath* path = reinterpret_cast<SkPath*>(pathHandle); local
418 SkASSERT(path);
419 SkPath::Iter pathIter(*path, false);
433 int numVerbs = path->countVerbs();
435 addMove(segmentPoints, lengths, path
509 SkPath* path = reinterpret_cast<SkPath*>(pathHandle); local
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp272 loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName, argument
280 ScopedUtfChars pathStr(env, path);
H A Dandroid_database_SQLiteConnection.cpp84 const String8 path; member in struct:android::SQLiteConnection
89 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : argument
90 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { }
127 String8 path(pathChars);
135 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL);
175 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label);
H A Dandroid_graphics_drawable_VectorDrawable.cpp147 VectorDrawable::FullPath* path = reinterpret_cast<VectorDrawable::FullPath*>(pathPtr); local
149 path->mutateStagingProperties()->setFillGradient(fillShader);
153 VectorDrawable::FullPath* path = reinterpret_cast<VectorDrawable::FullPath*>(pathPtr); local
155 path->mutateStagingProperties()->setStrokeGradient(strokeShader);
185 VectorDrawable::Path* path = reinterpret_cast<VectorDrawable::Path*>(pathPtr); local
194 path->mutateStagingProperties()->setData(data);
272 VectorDrawable::Path* path = reinterpret_cast<VectorDrawable::Path*>(pathPtr); local
274 path->mutateStagingProperties()->setData(*pathData);
H A Dcom_android_internal_os_Zygote.cpp351 static int UnmountTree(const char* path) { argument
352 size_t path_len = strlen(path);
365 if (strncmp(mentry->mnt_dir, path, path_len) == 0) {
371 for (auto path : toUnmount) {
372 if (umount2(path.c_str(), MNT_DETACH)) {
373 ALOGW("Failed to unmount %s: %s", path.c_str(), strerror(errno));
904 JNIEnv* env, jclass, jstring path) {
905 ScopedUtfChars path_native(env, path);
903 com_android_internal_os_Zygote_nativeAllowFileAcrossFork( JNIEnv* env, jclass, jstring path) argument
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
H A DTransactionParcelTests.java611 public void dumpHeap(boolean managed, boolean mallocInfo, boolean runGc, String path, argument
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp416 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
420 ->canHandle(uniqueId, Utility::getStringValue(env, path),
582 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
586 ->getDrmObjectType(uniqueId, Utility::getStringValue(env, path),
593 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) {
603 Utility::getStringValue(env, path), fd);
609 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) {
613 ->checkRightsStatus(uniqueId, Utility::getStringValue(env, path), action);
619 JNIEnv* env, jobject thiz, jint uniqueId, jstring path) {
622 ->removeRights(uniqueId, Utility::getStringValue(env, path)));
415 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
581 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
592 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument
608 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument
618 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java300 public void drawPath(@NonNull Path path, @NonNull Paint paint) { argument
302 if (path.isSimplePath && path.rects != null) {
303 nDrawRegion(mNativeCanvasWrapper, path.rects.mNativeRegion, paint.getNativeInstance());
305 nDrawPath(mNativeCanvasWrapper, path.readOnlyNI(), paint.getNativeInstance());
426 public void drawTextOnPath(@NonNull char[] text, int index, int count, @NonNull Path path, argument
433 path.readOnlyNI(), hOffset, vOffset,
437 public void drawTextOnPath(@NonNull String text, @NonNull Path path, float hOffset, argument
441 nDrawTextOnPath(mNativeCanvasWrapper, text, path.readOnlyNI(), hOffset, vOffset,
H A DPath.java32 * It can be drawn with canvas.drawPath(path, paint), either filled or stroked
34 * text on a path.
57 * Create an empty path
65 * Create a new path, copying the contents from the src path.
67 * @param src The path to copy from when initializing the new path
83 * Clear any lines and curves from the path, making it empty.
98 * Rewinds the path: clears any lines and curves from the path bu
171 op(Path path, Op op) argument
[all...]
H A DTypeface.java195 public static Typeface createFromResources(AssetManager mgr, String path, int cookie) { argument
198 mgr, path, 0 /* ttcIndex */, null /* axes */,
206 if (fontFamily.addFontFromAssetManager(mgr, path, cookie, false /* isAsset */,
228 FamilyResourceEntry entry, AssetManager mgr, String path) {
252 Typeface typeface = findFromCache(mgr, path);
274 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */,
286 public static Typeface findFromCache(AssetManager mgr, String path) { argument
288 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, null /* axes */,
355 * Constructs a builder with a file path.
357 * @param path Th
227 createFromResources( FamilyResourceEntry entry, AssetManager mgr, String path) argument
359 Builder(@onNull File path) argument
380 Builder(@onNull String path) argument
390 Builder(@onNull AssetManager assetManager, @NonNull String path) argument
526 createAssetUid(final AssetManager mgr, String path, int ttcIndex, @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) argument
830 createFromAsset(AssetManager mgr, String path) argument
884 createFromFile(@ullable String path) argument
[all...]
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp487 if (*relstart == '/') relstart++; // won't be true when path == rootpath
505 // Non-7bit-clean path also means needing pax extended format
603 // Prefix and main relative path. Path lengths have been preflighted.
613 // string in the basic name field. We can also construct the full path name
619 // [ 0 : 100 ]; file name/path
620 // [ 345 : 155 ] filename path prefix
621 // We only use the prefix area if fullname won't fit in the path
650 "path", fullname.string());
832 write_text_file(const char* path, const char* data) argument
838 fd = creat(path, 066
857 compare_file(const char* path, const unsigned char* data, int len) argument
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp355 const SkPath& path, const SkPaint& paint) {
358 PathTessellator::tessellatePath(path, &paint, state.computedState.transform, vertexBuffer);
401 SkPath path; local
403 path.moveTo(rect.centerX(), rect.centerY());
405 path.arcTo(rect, op.startAngle, op.sweepAngle, !op.useCenter);
407 path.close();
409 renderConvexPath(renderer, state, path, *(op.paint));
569 SkPath path; local
571 path.addOval(rect);
574 // Mask the ripple path b
354 renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, const SkPath& path, const SkPaint& paint) argument
651 SkPath path; local
657 SkPath path; local
[all...]
H A DFontRenderer.cpp667 int numGlyphs, const SkPath* path, float hOffset, float vOffset,
675 mCurrentFont->render(paint, glyphs, numGlyphs, path, hOffset, vOffset);
688 // a null path is OK because there are no custom kernels used
666 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument
H A DRecordingCanvas.cpp225 bool RecordingCanvas::quickRejectPath(const SkPath& path) const {
226 SkRect bounds = path.getBounds();
232 bool RecordingCanvas::clipPath(const SkPath* path, SkClipOp op) { argument
233 return mState.clipPath(path, op);
416 void RecordingCanvas::drawPath(const SkPath& path, const SkPaint& paint) { argument
419 addOp(alloc().create_trivial<PathOp>(Rect(path.getBounds()),
421 refPaint(&paint), refPath(&path)));
520 const SkPaint& paint, const SkPath& path, size_t start,
531 1, refPath(&path), x, y));
519 drawLayoutOnPath(const minikin::Layout& layout, float hOffset, float vOffset, const SkPaint& paint, const SkPath& path, size_t start, size_t end) argument
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp693 char path[1024]; local
694 snprintf(path, 1024, "/data/data/%s/cache/rendertree_dump", package);
695 int fd = open(path, O_CREAT | O_WRONLY, S_IRWXU | S_IRGRP | S_IROTH);
697 ALOGD("Failed to open '%s'", path);
/frameworks/base/media/java/android/mtp/
H A DMtpStorageManager.java65 public void onEvent(int event, String path) { argument
71 MtpObject obj = mObject.getChild(path);
74 Log.i(TAG, "Got inotify added event for " + path + " " + event);
75 handleAddedObject(mObject, path, (event & IN_ISDIR) != 0);
78 Log.w(TAG, "Object was null in event " + path);
82 Log.i(TAG, "Got inotify removed event for " + path + " " + event);
91 Log.w(TAG, "Got unrecognized event " + path + " " + event);
428 * Get the object with the specified path. Visit any necessary directories on the way.
429 * @param path Full path o
432 getByPath(String path) argument
644 handleAddedObject(MtpObject parent, String path, boolean isDir) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaExtractor.cpp83 const char *path,
85 return mImpl->setDataSource(httpService, path, headers);
718 const char *path = env->GetStringUTFChars(pathObj, NULL); local
720 if (path == NULL) {
730 status_t err = extractor->setDataSource(httpService, path, &headers);
732 env->ReleaseStringUTFChars(pathObj, path);
733 path = NULL;
81 setDataSource( const sp<IMediaHTTPService> &httpService, const char *path, const KeyedVector<String8, String8> *headers) argument
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportReceiverTest.java981 private void createTextFile(String path, String content) throws IOException { argument
982 Log.v(TAG, "createFile(" + path + ")");
984 new FileOutputStream(path)))) {
989 private void createZipFile(String path, String entryName, String content) throws IOException { argument
990 Log.v(TAG, "createZipFile(" + path + ", " + entryName + ")");
992 new BufferedOutputStream(new FileOutputStream(path)))) {
1008 String path = new File(dir, file).getAbsolutePath();
1009 Log.v(TAG, "Path for '" + file + "': " + path);
1010 return path;
/frameworks/base/services/core/java/com/android/server/am/
H A DRecentTasks.java435 Bitmap getTaskDescriptionIcon(String path) { argument
436 return mTaskPersister.getTaskDescriptionIcon(path);
439 void saveImage(Bitmap image, String path) { argument
440 mTaskPersister.saveImage(image, path);
926 // everything and then go through our general path of adding a new task.
978 // everything and then go through our general path of adding a new task.
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecLocalDevice.java119 // Active routing path. Physical address of the active source but not all the time, such as
768 final boolean isConnectedToArcPort(int path) { argument
770 return mService.isConnectedToArcPort(path);
801 void setActivePath(int path) { argument
803 mActiveRoutingPath = path;
805 mService.setActivePortId(pathToPortId(path));
810 * routing path connected to it directly or indirectly under the device hierarchy.
824 // We update active routing path instead, since we get the active port id from
825 // the active routing path.

Completed in 1353 milliseconds

<<11121314151617181920>>