Searched refs:pathLen (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/cmds/rawbu/ |
D | backup.cpp | 237 int pathLen = strlen(path); in write_header() local 239 if (!write_int32(fh, pathLen)) return 0; in write_header() 240 if (fwrite(path, 1, pathLen, fh) != (size_t)pathLen) { in write_header() 449 int32_t pathLen = read_int32(fh, -1); in read_header() local 450 if (pathLen <= 0) { in read_header() 451 fprintf(stderr, "bad path length %d in restore file\n", pathLen); in read_header() 454 char* readPath = (char*)malloc(pathLen+1); in read_header() 455 if (fread(readPath, 1, pathLen, fh) != (size_t)pathLen) { in read_header() 460 readPath[pathLen] = 0; in read_header()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 786 int pathLen = Integer.min(path.length(), 4096); in getObjectFilePath() local 787 path.getChars(0, pathLen, outFilePath, 0); in getObjectFilePath() 788 outFilePath[pathLen] = 0; in getObjectFilePath()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 7222 size_t pathLen = strlen(targetPath); in createIdmap() local 7224 *charData++ = i < pathLen ? targetPath[i] : '\0'; // write: target path in createIdmap() 7226 pathLen = strlen(overlayPath); in createIdmap() 7228 *charData++ = i < pathLen ? overlayPath[i] : '\0'; // write: overlay path in createIdmap()
|