Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
Dtest_parser.py10 def testChunk(t, fileName): argument
12 print '----', fileName,
22 print 'parser module raised exception on input file', fileName + ':'
28 print 'parser module failed on input file', fileName
33 def testFile(fileName): argument
34 t = open(fileName).read()
35 testChunk(t, fileName)
Dexample.py17 def get_docs(fileName): argument
23 source = open(fileName).read()
24 basename = os.path.basename(os.path.splitext(fileName)[0])
/device/linaro/bootloader/edk2/BaseTools/Tests/
DTestTools.py98 def DisplayFile(self, fileName): argument
99 sys.stdout.write(self.ReadTmpFile(fileName))
136 def GetTmpFilePath(self, fileName): argument
137 return os.path.join(self.testDir, fileName)
139 def OpenTmpFile(self, fileName, mode = 'r'): argument
140 return open(os.path.join(self.testDir, fileName), mode)
142 def ReadTmpFile(self, fileName): argument
143 f = open(self.GetTmpFilePath(fileName), 'r')
148 def WriteTmpFile(self, fileName, data): argument
149 f = open(self.GetTmpFilePath(fileName), 'w')
[all …]
/device/google/contexthub/lib/nanohub/
Dnanoapp.c46 bool readFile(void *dst, uint32_t len, const char *fileName) in readFile() argument
48 FILE *f = fopen(fileName, "rb"); in readFile()
68 void *loadFile(const char *fileName, uint32_t *size) in loadFile() argument
70 FILE *f = fopen(fileName, "rb"); in loadFile()
76 fprintf(stderr, "couldn't open %s: %s\n", fileName, strerror(errno)); in loadFile()
90 fileName, strerror(errno)); in loadFile()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddynload_next.c80 const char *fileName, *moreErrorStr; in _PyImport_GetDynLoadFunc() local
82 NSLinkEditError( &c, &errNo, &fileName, &moreErrorStr ); in _PyImport_GetDynLoadFunc()
84 fileName, moreErrorStr); in _PyImport_GetDynLoadFunc()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h29 bool readFile(void *dst, uint32_t len, const char *fileName);
30 void *loadFile(const char *fileName, uint32_t *size);
/device/google/marlin/camera/QCamera2/stack/mm-lib2d-interface/test/
Dmm_lib2d_test.c214 lib2d_error lib2d_test_load_input_yuv_data(char *fileName, int offset, in lib2d_test_load_input_yuv_data() argument
225 fp = fopen(fileName, "rb"); in lib2d_test_load_input_yuv_data()
235 printf("failed to open file %s \n", fileName); in lib2d_test_load_input_yuv_data()
264 lib2d_error lib2d_test_load_input_yuv_data_linebyline(char *fileName, in lib2d_test_load_input_yuv_data_linebyline() argument
275 fp = fopen(fileName, "rb"); in lib2d_test_load_input_yuv_data_linebyline()
300 printf("failed to open file %s \n", fileName); in lib2d_test_load_input_yuv_data_linebyline()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dlex.c225 StripPath( char *fileName ) in StripPath() argument
227 StripPath( fileName ) in StripPath()
228 char *fileName; in StripPath()
234 if(NULL != (p = strrchr(fileName, dirSym[0])))
237 p = fileName;
Dgen.c136 static void OutLineInfo(FILE *file,int line,char *fileName); /* MR14 */
4504 static void OutLineInfo(FILE *file,int line,char *fileName) in OutLineInfo() argument
4506 static void OutLineInfo(file,line,fileName) in OutLineInfo()
4509 char * fileName;
4521 fprintf(file, LineInfoFormatStr,line,fileName);
4523 if (fileName == prevFileName) {
4527 prevFileNameMS=(char *)calloc(1,strlen(fileName)+1);
4530 for (p=fileName; *p != 0; p++) {
4536 prevFileName=fileName;
/device/google/marlin/camera/QCamera2/HAL/test/
Dqcamera_test.cpp2164 char fileName[100];
2166 snprintf(fileName, sizeof(fileName) / sizeof(char),
2171 mVideoFd = open(fileName, O_CREAT | O_RDWR );
2175 LOGE("Could not open video file for writing %s!", fileName);
2937 char fileName[100];
2945 snprintf(fileName, sizeof(fileName) / sizeof(char), "/sdcard/ViV_vid_%dx%d_%d.mp4",
2952 snprintf(fileName, sizeof(fileName) / sizeof(char), "/sdcard/ViV_vid_%dx%d_%d.mp4",
2959 int fd = open(fileName, O_CREAT | O_RDWR );
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess_elf.c619 static bool loadNanoappElfFile(const char *fileName, struct ElfNanoApp *app) in loadNanoappElfFile() argument
629 fd = open(fileName, O_RDONLY, 0); in loadNanoappElfFile()
631 ERR("Failed to open file %s for reading: %s", fileName, strerror(errno)); in loadNanoappElfFile()
792 static int handleAppStatic(const char *fileName, FILE *out, uint32_t layoutFlags, uint64_t appId, u… in handleAppStatic() argument
796 if (!loadNanoappElfFile(fileName, &app) in handleAppStatic()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/logging/
Dhandlers.py306 for fileName in fileNames:
307 if fileName[:plen] == prefix:
308 suffix = fileName[plen:]
310 result.append(os.path.join(dirName, fileName))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_urllib.py247 def registerFileForCleanUp(self, fileName): argument
248 self.tempFiles.append(fileName)
/device/google/marlin/camera/usbcamcore/src/
DQualcommUsbCamera.cpp125 static int readFromFile(char* fileName, char* buffer, int bufferSize);
126 static int fileDump(const char* fileName, char* data, int length, int* frm_cnt);
2764 static int readFromFile(char* fileName, char* buffer, int bufferSize) in readFromFile() argument
2769 fp = fopen(fileName, "rb"); in readFromFile()
2771 ALOGE("%s: Error in opening %s ", __func__, fileName); in readFromFile()