Home
last modified time | relevance | path

Searched refs:handle_ (Results 1 – 25 of 33) sorted by relevance

12

/system/bt/service/common/bluetooth/
Ddescriptor.cc21 handle_ = other.handle_; in Descriptor()
29 handle_ = other.handle_; in operator =()
37 return handle_ == other.handle_ && uuid_ == other.uuid_ && in Equals()
Dcharacteristic.cc21 handle_ = other.handle_; in Characteristic()
31 handle_ = other.handle_; in operator =()
41 return handle_ == other.handle_ && uuid_ == other.uuid_ && in Equals()
Dservice.cc21 handle_ = other.handle_; in Service()
31 handle_ = other.handle_; in operator =()
40 return handle_ == other.handle_ && primary_ == other.primary_ && in Equals()
Ddescriptor.h28 : handle_(handle), uuid_(uuid), permissions_(permissions){}; in Descriptor()
36 uint16_t handle() const { return handle_; } in handle()
41 uint16_t handle_;
Dcharacteristic.h32 : handle_(handle), in Characteristic()
45 uint16_t handle() const { return handle_; } in handle()
53 uint16_t handle_;
Dservice.h32 : handle_(handle), in Service()
45 uint16_t handle() const { return handle_; } in handle()
57 uint16_t handle_;
/system/core/fastboot/
Dusb_osx.cpp72 : handle_(std::move(handle)), ms_timeout_(ms_timeout) {} in OsxUsbTransport()
81 std::unique_ptr<usb_handle> handle_; member in OsxUsbTransport
504 if (handle_ == nullptr) { in Read()
508 if (handle_->interface == nullptr) { in Read()
513 if (handle_->bulkIn == 0) { in Read()
519 result = (*handle_->interface) in Read()
520 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
522 result = (*handle_->interface) in Read()
523 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
543 if (handle_ == NULL) { in Write()
[all …]
Dusb_linux.cpp97 : handle_(std::move(handle)), ms_timeout_(ms_timeout) {} in LinuxUsbTransport()
107 std::unique_ptr<usb_handle> handle_; member in LinuxUsbTransport
401 if (handle_->ep_out == 0 || handle_->desc == -1) { in Write()
409 bulk.ep = handle_->ep_out; in Write()
414 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Write()
436 if (handle_->ep_in == 0 || handle_->desc == -1) { in Read()
443 bulk.ep = handle_->ep_in; in Read()
450 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
451 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Read()
452 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry); in Read()
[all …]
Dusb_windows.cpp71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport()
80 std::unique_ptr<usb_handle> handle_; member in WindowsUsbTransport
163 if (nullptr != handle_) { in Write()
167 ret = AdbWriteEndpointSync(handle_->adb_write_pipe, const_cast<void*>(data), xfer, in Write()
174 usb_kick(handle_.get()); in Write()
201 if (nullptr != handle_) { in Read()
205 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read()
213 usb_kick(handle_.get()); in Read()
260 if (nullptr != handle_) { in Close()
262 usb_cleanup_handle(handle_.get()); in Close()
[all …]
/system/extras/libfec/include/fec/
Dio.h124 io() : handle_(nullptr, fec_close) {} in io()
127 int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) { in handle_() function
132 return !!handle_;
141 handle_.reset(fh);
147 return !fec_close(handle_.release()); in close()
151 return !fec_seek(handle_.get(), offset, whence); in seek()
155 return fec_read(handle_.get(), buf, count); in read()
159 return fec_pread(handle_.get(), buf, count, offset); in pread()
163 return !fec_get_status(handle_.get(), &status); in get_status()
167 return !fec_verity_get_metadata(handle_.get(), &data); in get_verity_metadata()
[all …]
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c33 static int handle_ = 0; variable
41 handle_ = rc; in trusty_gatekeeper_connect()
47 if (handle_ == 0) { in trusty_gatekeeper_call()
57 ssize_t rc = write(handle_, msg, msg_size); in trusty_gatekeeper_call()
66 rc = read(handle_, out, *out_size); in trusty_gatekeeper_call()
90 if (handle_ != 0) { in trusty_gatekeeper_disconnect()
91 tipc_close(handle_); in trusty_gatekeeper_disconnect()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp37 static int handle_ = -1; variable
45 handle_ = rc; in trusty_keymaster_connect()
51 if (handle_ < 0) { in trusty_keymaster_call()
66 ssize_t rc = write(handle_, msg, msg_size); in trusty_keymaster_call()
82 rc = readv(handle_, iov, 2); in trusty_keymaster_call()
108 if (handle_ >= 0) { in trusty_keymaster_disconnect()
109 tipc_close(handle_); in trusty_keymaster_disconnect()
111 handle_ = -1; in trusty_keymaster_disconnect()
/system/core/fastboot/device/
Dusb_client.cpp244 : handle_(std::unique_ptr<usb_handle>(create_usb_handle(kFbFfsNumBufs, kFbFfsBufSize))) { in ClientUsbTransport()
245 if (!InitFunctionFs(handle_.get())) { in ClientUsbTransport()
246 handle_.reset(nullptr); in ClientUsbTransport()
251 if (handle_ == nullptr || len > SSIZE_MAX) { in Read()
259 handle_->read(handle_.get(), char_data, bytes_to_read, true /* allow_partial */); in Read()
273 if (handle_ == nullptr || len > SSIZE_MAX) { in Write()
280 auto bytes_written_now = handle_->write(handle_.get(), data, bytes_to_write); in Write()
294 if (handle_ == nullptr) { in Close()
297 CloseFunctionFs(handle_.get()); in Close()
/system/core/adb/
Dtransport_usb.cpp150 usb_close(handle_); in ~UsbConnection()
154 int rc = remote_read(packet, handle_); in Read()
161 if (usb_write(handle_, &packet->msg, sizeof(packet->msg)) != sizeof(packet->msg)) { in Write()
166 if (packet->msg.data_length != 0 && usb_write(handle_, packet->payload.data(), size) != size) { in Write()
175 usb_reset(handle_); in Reset()
176 usb_kick(handle_); in Reset()
180 usb_kick(handle_); in Close()
/system/bt/service/common/android/bluetooth/
Dbluetooth_gatt_included_service.h38 : handle_(service.handle()), in BluetoothGattIncludedService()
57 uint16_t handle() const { return handle_; } in handle()
62 uint16_t handle_;
Dbluetooth_gatt_included_service.cc35 status = parcel->writeInt32(handle_); in writeToParcel()
51 handle_ = tmp; in readFromParcel()
Dbluetooth_gatt_descriptor.cc34 status = parcel->writeInt32(handle_); in writeToParcel()
50 handle_ = tmp; in readFromParcel()
Dbluetooth_gatt_characteristic.cc32 status_t status = parcel->writeInt32(handle_); in writeToParcel()
57 handle_ = tmp; in readFromParcel()
Dbluetooth_gatt_service.cc32 status_t status = parcel->writeInt32(handle_); in writeToParcel()
59 handle_ = tmp; in readFromParcel()
/system/core/libziparchive/include/ziparchive/
Dzip_archive_stream_entry.h38 ZipArchiveStreamEntry(ZipArchiveHandle handle) : handle_(handle) {} in ZipArchiveStreamEntry()
42 ZipArchiveHandle handle_; variable
/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Dsco_packet_builder.cc29 : handle_(handle), packet_status_flags_(packet_status_flags), payload_(std::move(payload)) {} in ScoPacketBuilder()
36 …insert(static_cast<uint16_t>((handle_ & 0xfff) | (static_cast<uint16_t>(packet_status_flags_) << 1… in Serialize()
Dacl_packet_builder.cc30 …: handle_(handle), packet_boundary_flags_(packet_boundary_flags), broadcast_flags_(broadcast_flags… in AclPacketBuilder()
46 …insert(static_cast<uint16_t>((handle_ & 0xfff) | (static_cast<uint16_t>(packet_boundary_flags_) <<… in Serialize()
/system/core/base/include/android-base/
Dmapped_file.h67 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile()
68 HANDLE handle_; variable
/system/security/keystore/
Doperation_struct.h39 Operation(uint64_t handle_, uint64_t keyid_, KeyPurpose purpose_, const sp<Keymaster>& device_, in Operation()
42 : handle(handle_), keyid(keyid_), purpose(purpose_), device(device_), in Operation()
/system/iorap/src/perfetto/
Drx_producer.cc116 PerfettoConsumer::Handle handle_; member
125 handle_{std::move(handle)} {
134 return handle_; in GetHandle()
138 LOG(VERBOSE) << "PerfettoConsumerHandle::Destroy(" << handle_ << ")"; in ~PerfettoConsumerHandle()
139 consumer_->Destroy(handle_); in ~PerfettoConsumerHandle()
143 return handle_ == other.handle_ && consumer_ == other.consumer_; in operator ==()
216 std::shared_ptr<PerfettoConsumerHandle> handle_; // non-null after bound_ == true. member in iorap::perfetto::StateChangedSubject
330 std::shared_ptr<PerfettoConsumerHandle> handle_ptr = handle_; in OnStateChanged()
388 handle_ = handle; in BindHandle()
438 auto handle_ptr = handle_; in EmitNext()

12