Home
last modified time | relevance | path

Searched refs:pathLen (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/binder/
DRpcSocketAddress.h42 unsigned int pathLen = strlen(path) + 1; local
43 LOG_ALWAYS_FATAL_IF(pathLen > sizeof(mAddr.sun_path), "Socket path is too long: %u %s",
44 pathLen, path);
45 memcpy(mAddr.sun_path, path, pathLen);
/frameworks/native/cmds/rawbu/
Dbackup.cpp237 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/
DMtpDatabase.java782 int pathLen = Integer.min(path.length(), 4096); in getObjectFilePath() local
783 path.getChars(0, pathLen, outFilePath, 0); in getObjectFilePath()
784 outFilePath[pathLen] = 0; in getObjectFilePath()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp7500 size_t pathLen = strlen(targetPath); in createIdmap() local
7502 *charData++ = i < pathLen ? targetPath[i] : '\0'; // write: target path in createIdmap()
7504 pathLen = strlen(overlayPath); in createIdmap()
7506 *charData++ = i < pathLen ? overlayPath[i] : '\0'; // write: overlay path in createIdmap()