/system/tpm/trunks/ |
D | scoped_key_handle.cc | 33 handle_(kInvalidHandle) {} in ScopedKeyHandle() 38 handle_(handle) {} in ScopedKeyHandle() 41 if (handle_ != kInvalidHandle) { in ~ScopedKeyHandle() 42 FlushHandleContext(handle_); in ~ScopedKeyHandle() 47 TPM_HANDLE tmp_handle = handle_; in release() 48 handle_ = kInvalidHandle; in release() 53 TPM_HANDLE tmp_handle = handle_; in reset() 54 handle_ = new_handle; in reset() 65 return &handle_; in ptr() 69 return handle_; in get()
|
D | scoped_key_handle.h | 63 TPM_HANDLE handle_; variable
|
/system/extras/libfec/include/fec/ |
D | io.h | 123 io() : handle_(nullptr, fec_close) {} in io() 126 int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) { in handle_() function 131 return !!handle_; 140 handle_.reset(fh); 146 return !fec_close(handle_.release()); in close() 150 return !fec_seek(handle_.get(), offset, whence); in seek() 154 return fec_read(handle_.get(), buf, count); in read() 158 return fec_pread(handle_.get(), buf, count, offset); in pread() 162 return !fec_get_status(handle_.get(), &status); in get_status() 166 return !fec_verity_get_metadata(handle_.get(), &data); in get_verity_metadata() [all …]
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper_ipc.c | 30 static int handle_ = 0; variable 38 handle_ = rc; in trusty_gatekeeper_connect() 44 if (handle_ == 0) { in trusty_gatekeeper_call() 54 ssize_t rc = write(handle_, msg, msg_size); in trusty_gatekeeper_call() 63 rc = read(handle_, out, *out_size); in trusty_gatekeeper_call() 87 if (handle_ != 0) { in trusty_gatekeeper_disconnect() 88 tipc_close(handle_); in trusty_gatekeeper_disconnect()
|
/system/core/fastboot/ |
D | usb_osx.cpp | 70 OsxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in OsxUsbTransport() 78 std::unique_ptr<usb_handle> handle_; member in OsxUsbTransport 507 if (handle_ == nullptr) { in Read() 511 if (handle_->interface == nullptr) { in Read() 516 if (handle_->bulkIn == 0) { in Read() 521 result = (*handle_->interface)->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read() 539 if (handle_ == NULL) { in Write() 543 if (handle_->interface == NULL) { in Write() 548 if (handle_->bulkOut == 0) { in Write() 554 result = (*handle_->interface)->WritePipe( in Write() [all …]
|
D | usb_linux.cpp | 92 LinuxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in LinuxUsbTransport() 101 std::unique_ptr<usb_handle> handle_; member in LinuxUsbTransport 392 if (handle_->ep_out == 0 || handle_->desc == -1) { in Write() 400 bulk.ep = handle_->ep_out; in Write() 405 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Write() 427 if (handle_->ep_in == 0 || handle_->desc == -1) { in Read() 434 bulk.ep = handle_->ep_in; in Read() 441 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read() 442 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Read() 443 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry); in Read() [all …]
|
D | usb_windows.cpp | 71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() 79 std::unique_ptr<usb_handle> handle_; member in WindowsUsbTransport 161 if (nullptr != handle_) { in Write() 165 ret = AdbWriteEndpointSync(handle_->adb_write_pipe, const_cast<void*>(data), xfer, in Write() 172 usb_kick(handle_.get()); in Write() 199 if (nullptr != handle_) { in Read() 203 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read() 211 usb_kick(handle_.get()); in Read() 254 if (nullptr != handle_) { in Close() 256 usb_cleanup_handle(handle_.get()); in Close() [all …]
|
/system/core/include/ziparchive/ |
D | zip_archive_stream_entry.h | 37 ZipArchiveStreamEntry(ZipArchiveHandle handle) : handle_(handle) {} in ZipArchiveStreamEntry() 41 ZipArchiveHandle handle_; variable
|
/system/extras/simpleperf/ |
D | utils.h | 95 return handle_; in archive_handle() 99 ZipArchiveHandle handle_;
|
D | utils.cpp | 76 int rc = OpenArchiveFd(fd, "", &handle_, false); in ArchiveHelper() 86 CloseArchive(handle_); in ~ArchiveHelper()
|
/system/core/libziparchive/ |
D | zip_archive_stream_entry.cc | 39 ZipArchive* archive = reinterpret_cast<ZipArchive*>(handle_); in Init() 87 ZipArchive* archive = reinterpret_cast<ZipArchive*>(handle_); in Read() 207 ZipArchive* archive = reinterpret_cast<ZipArchive*>(handle_); in Read()
|
/system/tpm/attestation/server/ |
D | pkcs11_key_store.cc | 58 explicit ScopedSession(CK_SLOT_ID slot) : handle_(CK_INVALID_HANDLE) { in ScopedSession() 66 if (C_OpenSession(slot, flags, nullptr, nullptr, &handle_) != CKR_OK) { in ScopedSession() 73 if (IsValid() && (C_CloseSession(handle_) != CKR_OK)) { in ~ScopedSession() 75 handle_ = CK_INVALID_HANDLE; in ~ScopedSession() 80 return handle_; in handle() 84 return (handle_ != CK_INVALID_HANDLE); in IsValid() 88 CK_SESSION_HANDLE handle_; member in attestation::ScopedSession
|
/system/security/keystore/ |
D | operation.cpp | 147 OperationMap::Operation::Operation(keymaster_operation_handle_t handle_, uint64_t keyid_, in Operation() argument 151 : handle(handle_), keyid(keyid_), purpose(purpose_), device(device_), in Operation()
|
/system/core/libbacktrace/ |
D | BacktraceOffline.cpp | 668 ScopedZiparchiveHandle(ZipArchiveHandle handle) : handle_(handle) { in ScopedZiparchiveHandle() 672 CloseArchive(handle_); in ~ScopedZiparchiveHandle() 676 ZipArchiveHandle handle_; member in ScopedZiparchiveHandle
|