/build/libs/host/ |
CopyFile.c | 116 static int copyFileContents(const char* dst, int dstFd, const char* src, int srcFd) 125 readCount = read(srcFd, buf, sizeof(buf)); 212 int srcFd, dstFd, statResult, copyResult; 243 srcFd = open(src, O_RDONLY | O_BINARY, 0); 244 if (srcFd < 0) { 258 (void) close(srcFd); 275 (void) close(srcFd); 287 (void) close(srcFd); 291 copyResult = copyFileContents(dst, dstFd, src, srcFd); 293 (void) close(srcFd); [all...] |
/hardware/libhardware_legacy/wifi/ |
wifi.c | 323 int srcfd, destfd; local 337 srcfd = TEMP_FAILURE_RETRY(open(config_file, O_RDONLY)); 338 if (srcfd < 0) { 343 nread = TEMP_FAILURE_RETRY(read(srcfd, pbuf, sb.st_size)); 344 close(srcfd); 402 int srcfd, destfd; local 427 srcfd = TEMP_FAILURE_RETRY(open(SUPP_CONFIG_TEMPLATE, O_RDONLY)); 428 if (srcfd < 0) { 435 close(srcfd); 440 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaMuxerTest.java | 164 AssetFileDescriptor srcFd = mResources.openRawResourceFd(srcMedia); 166 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), 167 srcFd.getLength()); 249 srcFd.close();
|
ExtractDecodeEditEncodeMuxTest.java | 459 AssetFileDescriptor srcFd = getContext().getResources().openRawResourceFd(mSourceResId); 461 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), 462 srcFd.getLength()); [all...] |
/device/asus/flo/conn_init/ |
wfc_util_fctrl.c | 589 int srcfd, destfd; local 608 srcfd = open(pSourceFName, O_RDONLY); 609 if (srcfd < 0) { 616 close(srcfd); 621 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) { 624 close(srcfd); 640 close(srcfd);
|
/device/lge/mako/conn_init/ |
wfc_util_fctrl.c | 589 int srcfd, destfd; local 608 srcfd = open(pSourceFName, O_RDONLY); 609 if (srcfd < 0) { 616 close(srcfd); 621 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) { 624 close(srcfd); 640 close(srcfd);
|
/dalvik/vm/ |
RawDexFile.cpp | 33 static int copyFileToFile(int destFd, int srcFd, size_t size) 35 if (lseek(srcFd, 0, SEEK_SET) != 0) { 40 return sysCopyFileToFile(destFd, srcFd, size);
|
/frameworks/av/media/mtp/ |
MtpDevice.h | 88 bool sendObject(MtpObjectInfo* info, int srcFD);
|
MtpDevice.cpp | 460 bool MtpDevice::sendObject(MtpObjectInfo* info, int srcFD) { 472 int count = read(srcFD, buffer, sizeof(buffer));
|
/hardware/qcom/media/libc2dcolorconvert/ |
C2DColorConverter.h | 102 virtual int convertC2D(int srcFd, void *srcBase, void * srcData, int dstFd, void *dstBase, void * dstData) = 0;
|
C2DColorConverter.cpp | 60 virtual int convertC2D(int srcFd, void *srcBase, void * srcData, int dstFd, void *dstBase, void * dstData); 193 int C2DColorConverter::convertC2D(int srcFd, void *srcBase, void * srcData, int dstFd, void *dstBase, void * dstData) 202 if ((srcFd < 0) || (dstFd < 0) || (srcData == NULL) || (dstData == NULL)) { 208 ret = updateYUVSurfaceDef(srcFd, srcBase, srcData, true); 210 ret = updateRGBSurfaceDef(srcFd, srcData, true);
|
/prebuilts/sdk/tools/linux/ |
acp | |