Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 13 of 13) sorted by relevance

/test/py/tests/
A Dtest_fit_auto_signed.py148 with open(kernel_file, 'wb') as fd:
149 fd.write(os.urandom(512))
151 with open(dt1_file, 'wb') as fd:
152 fd.write(os.urandom(256))
154 with open(dt2_file, 'wb') as fd:
155 fd.write(os.urandom(256))
161 with open(key_file, 'w') as fd:
162 fd.write(str(key.export_key(format='PEM').decode('ascii')))
A Dfit_util.py59 with open(make_fname(ubman, 'u-boot.dts'), 'w') as fd:
60 fd.write(base_fdt)
A Dtest_fit.py150 with open(fname, 'rb') as fd:
151 return fd.read()
163 with open(fname, 'w') as fd:
164 print(data, file=fd)
A Dtest_vboot.py338 with open(ffit, 'rb') as fd:
339 root, strblock = vboot_forge.read_fdt(fd)
341 with open(ffit, 'w+b') as fd:
342 vboot_forge.write_fdt(root, strblock, fd)
527 with open('%stest-kernel.bin' % tmpdir, 'wb') as fd:
528 fd.write(500 * b'\0')
532 with open(evil_kernel, 'wb') as fd:
533 fd.write(500 * b'\x01')
A Dtest_trace.py279 with open(trace_fg, 'r') as fd:
280 for line in fd:
293 with open(trace_fg, 'r') as fd:
294 for line in fd:
A Dtest_fit_hashes.py105 with open(f'{tempdir}/test-kernel.bin', 'w') as fd:
106 fd.write(500 * chr(0xa5))
A Dtest_ut.py185 with open(conf, 'w', encoding='ascii') as fd:
186 print(script, file=fd)
189 with open(inf, 'wb') as fd:
190 fd.write(gzip.compress(b'vmlinux'))
195 with open(os.path.join(mnt, initrd), 'w', encoding='ascii') as fd:
196 print('initrd', file=fd)
A Dtest_fit_ecdsa.py98 with open(f'{tempdir}/test-kernel.bin', 'w') as fd:
99 fd.write(500 * chr(0))
A Dtest_gpt.py72 fd = os.open(persistent, os.O_RDWR | os.O_CREAT)
73 os.ftruncate(fd, 4194304)
74 os.close(fd)
/test/py/
A Dspawn.py108 (self.pid, self.fd) = pty.fork()
134 new = termios.tcgetattr(self.fd)
140 termios.tcsetattr(self.fd, termios.TCSANOW, new)
143 self.poll.register(self.fd, select.POLLIN | select.POLLPRI | select.POLLERR |
147 termios.tcsetattr(self.fd, termios.TCSANOW, old)
212 os.write(self.fd, data.encode(errors='replace'))
227 c = os.read(self.fd, num_bytes).decode(errors='replace')
331 os.close(self.fd)
/test/py/tests/test_android/
A Dtest_ab.py34 fd = os.open(persistent, os.O_RDWR | os.O_CREAT)
35 os.ftruncate(fd, 524288)
36 os.close(fd)
/test/dm/
A Dhost.c39 ut_asserteq(0, plat->fd); in dm_test_host()
50 ut_assert(plat->fd != 0); in dm_test_host()
66 ut_asserteq(0, plat->fd); in dm_test_host()
A Dvideo.c374 int size, fd; in read_file() local
379 fd = os_open(fname, OS_O_RDONLY); in read_file()
380 ut_assert(fd >= 0); in read_file()
381 size = os_read(fd, buf, buf_size); in read_file()
382 os_close(fd); in read_file()

Completed in 26 milliseconds