Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 18 of 18) sorted by relevance

/system/core/trusty/storage/lib/
Dstorage.c37 static inline storage_session_t _to_session(file_handle_t fh) in _to_session() argument
39 return (storage_session_t)(fh >> 32); in _to_session()
42 static inline uint32_t _to_handle(file_handle_t fh) in _to_handle() argument
44 return (uint32_t) fh; in _to_handle()
166 void storage_close_file(file_handle_t fh) in storage_close_file() argument
169 struct storage_file_close_req req = { .handle = _to_handle(fh)}; in storage_close_file()
173 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 1); in storage_close_file()
191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) in _read_chunk() argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk()
198 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 2); in _read_chunk()
[all …]
/system/extras/simpleperf/scripts/
Dtest_monitor.py127 with open(os.path.join(self.test_dir, 'tests.txt'), 'w') as fh:
128 fh.write('\n'.join(not_started_tests) + '\n')
165 with open(self.progress_file, 'r', encoding='utf-8') as fh:
166 for line in fh.readlines():
241 with open('test_summary.txt', 'w') as fh:
243 fh.write('%s\n' % config_name)
247 fh.write('\t%s: %s\n' % (test_name, result))
249 with open('failed_test_summary.txt', 'w') as fh:
255 fh.write('%s\n' % config_name)
259 fh.write('\t%s: %s\n' % (test_name, result))
Dreport.py271 fh = open(report_file, 'r')
272 lines = fh.readlines()
273 fh.close()
Dtest.py251 with open(filename, 'r') as fh:
252 self.check_strings_in_content(fh.read(), strings)
361 with open(summary_file, 'r') as fh:
362 summary = fh.read()
379 with open(filename, 'r') as fh:
380 data = fh.read()
1356 with open('not_elf', 'wb') as fh:
1357 fh.write(b'\x90123')
1412 with open('build_id_list', 'rb') as fh:
1413 self.assertEqual(bytes_to_str(fh.read()),
[all …]
Dapp_profiler.py137 with open(self.build_id_list_file, 'rb') as fh:
138 for line in fh.readlines():
159 with open(self.build_id_list_file, 'wb') as fh:
162 fh.write(s)
Dreport_html.py35 self.fh = open(output_path, 'w')
39 self.fh.close()
45 self.fh.write('<%s%s>' % (tag, attr_str))
52 self.fh.write('</%s>\n' % self.tag_stack.pop())
55 self.fh.write(text)
Dutils.py379 with open(path, 'rb') as fh:
380 return fh.read(4) == b'\x7fELF'
/system/extras/simpleperf/
Dgenerate_event_type_table.py303 fh = open('event_type_table.h', 'w') variable
304 fh.write(generated_str)
305 fh.close()
/system/core/set-verity-state/
Dset-verity-state.cpp70 fec::io fh(block_device, O_RDWR); in set_verity_enabled_state() local
72 if (!fh) { in set_verity_enabled_state()
80 if (!fh.get_verity_metadata(metadata)) { in set_verity_enabled_state()
95 if (!fh.set_verity_status(enable)) { in set_verity_enabled_state()
/system/extras/libfec/include/fec/
Dio.h138 fec_handle *fh = nullptr; variable
139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
141 handle_.reset(fh);
/system/core/adb/
Dsysdeps_win32.cpp220 void operator()(struct FHRec_* fh) { in operator ()() argument
226 _fh_close(fh); in operator ()()
613 FH fh = _fh_from_int(fds[i].fd, __func__); in adb_poll() local
614 if (!fh || !fh->used || fh->clazz != &_fh_socket_class) { in adb_poll()
620 .fd = fh->u.socket, in adb_poll()
1072 unique_fh fh(_fh_alloc(&_fh_socket_class)); in adb_socket_accept() local
1073 if (!fh) { in adb_socket_accept()
1079 fh->fh_socket = accept(serverfh->fh_socket, addr, addrlen); in adb_socket_accept()
1080 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()
1088 const int fd = _fh_to_int(fh.get()); in adb_socket_accept()
[all …]
Dtest_device.py1390 fh = open(file_path, 'w')
1391 fh.write('\0' * (100 * 1024 * 1024))
1392 fh.close()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc172 fec::io fh(part.path, O_RDONLY, FEC_VERITY_DISABLE); in LoadVerityConfig() local
173 TEST_AND_RETURN_FALSE(fh); in LoadVerityConfig()
175 if (fh.get_verity_metadata(verity_data)) { in LoadVerityConfig()
210 if (!part.disable_fec_computation && fh.get_ecc_metadata(ecc_data) && in LoadVerityConfig()
/system/extras/verity/fec/
Dmain.cpp145 fec::io fh(filename, O_RDONLY, FEC_VERITY_DISABLE); in get_start() local
147 if (!fh) { in get_start()
154 if (!fh.get_ecc_metadata(data)) { in get_start()
162 if (!fh.get_verity_metadata(data)) { in get_start()
/system/core/libappfuse/
DFuseAppLoop.cc177 bool FuseAppLoop::ReplyOpen(uint64_t unique, uint64_t fh) { in ReplyOpen() argument
180 response.open_out.fh = fh; in ReplyOpen()
/system/core/libappfuse/include/libappfuse/
DFuseAppLoop.h55 bool ReplyOpen(uint64_t unique, uint64_t fh);
/system/core/fs_mgr/
Dfs_mgr_remount.cpp308 fec::io fh(entry.blk_device.c_str(), O_RDWR); in do_remount() local
309 ret = fh && fh.set_verity_status(false); in do_remount()
/system/extras/simpleperf/runtest/
Druntest.py383 fh = open(report_file, 'r')
384 lines = fh.readlines()
385 fh.close()