Home
last modified time | relevance | path

Searched refs:control (Results 1 – 25 of 158) sorted by relevance

1234567

/system/core/adb/daemon/
Dusb.cpp122 struct iocb control = {}; member
125 TransferId id() const { return TransferId::from_value(control.aio_data); } in id()
172 UsbFfsConnection(unique_fd control, unique_fd read, unique_fd write, in UsbFfsConnection()
177 control_fd_(std::move(control)), in UsbFfsConnection()
470 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
471 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload->data()); in PrepareReadBlock()
472 block->control.aio_nbytes = block->payload->size(); in PrepareReadBlock()
478 block.control.aio_rw_flags = 0; in CreateReadBlock()
479 block.control.aio_lio_opcode = IOCB_CMD_PREAD; in CreateReadBlock()
480 block.control.aio_reqprio = 0; in CreateReadBlock()
[all …]
Djdwp_service.cpp305 static int jdwp_control_init(JdwpControl* control, const char* sockname, int socknamelen) { in jdwp_control_init() argument
338 control->listen_socket = s.release(); in jdwp_control_init()
339 control->fde = fdevent_create(control->listen_socket, jdwp_control_event, control); in jdwp_control_init()
340 if (control->fde == nullptr) { in jdwp_control_init()
346 fdevent_add(control->fde, FDE_READ); in jdwp_control_init()
348 D("jdwp control socket started (%d)", control->listen_socket); in jdwp_control_init()
353 JdwpControl* control = (JdwpControl*)_control; in jdwp_control_event() local
355 CHECK_EQ(fd, control->listen_socket); in jdwp_control_event()
357 int s = adb_socket_accept(control->listen_socket, nullptr, nullptr); in jdwp_control_event()
Dusb_ffs.cpp213 unique_fd control, bulk_out, bulk_in; in open_functionfs() local
233 control.reset(adb_open(USB_FFS_ADB_EP0, O_RDWR)); in open_functionfs()
234 if (control < 0) { in open_functionfs()
239 if (adb_write(control.get(), &v2_descriptor, sizeof(v2_descriptor)) < 0) { in open_functionfs()
248 if (adb_write(control.get(), &v1_descriptor, sizeof(v1_descriptor)) < 0) { in open_functionfs()
254 if (adb_write(control.get(), &strings, sizeof(strings)) < 0) { in open_functionfs()
274 *out_control = std::move(control); in open_functionfs()
/system/core/fastboot/device/
Dusb_client.cpp192 h->control.reset(); in CloseFunctionFs()
198 if (h->control < 0) { // might have already done this before in InitFunctionFs()
200 h->control.reset(open(kUsbFfsFastbootEp0, O_RDWR)); in InitFunctionFs()
201 if (h->control < 0) { in InitFunctionFs()
206 auto ret = write(h->control.get(), &v2_descriptor, sizeof(v2_descriptor)); in InitFunctionFs()
212 ret = write(h->control.get(), &strings, sizeof(strings)); in InitFunctionFs()
/system/core/libcutils/
Duevent.cpp56 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_kernel_recv() local
58 &addr, sizeof(addr), &iov, 1, control, sizeof(control), 0, in uevent_kernel_recv()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_utils.cc51 std::bitset<8> control; in GetControlField() local
52 control |= frame_type; in GetControlField()
53 control.set(4, pf); in GetControlField()
54 return static_cast<uint8_t>(control.to_ulong()); in GetControlField()
111 std::vector<uint8_t> CreateRfcommPacket(uint8_t address, uint8_t control, in CreateRfcommPacket() argument
117 result.push_back(control); in CreateRfcommPacket()
133 if (GetFrameTypeFromControlField(control) == RFCOMM_UIH) { in CreateRfcommPacket()
Dstack_rfcomm_test_utils.h128 std::vector<uint8_t> CreateRfcommPacket(uint8_t address, uint8_t control,
/system/core/adb/daemon/include/adbd/
Dusb.h51 android::base::unique_fd control; member
65 bool open_functionfs(android::base::unique_fd* control, android::base::unique_fd* bulk_out,
/system/nvram/core/include/nvram/core/
Dpersistence.h108 bool HasControl(uint32_t control) const { in HasControl()
109 return (controls & (1 << control)) != 0; in HasControl()
/system/core/logd/
DLogListener.cpp51 alignas(4) char control[CMSG_SPACE(sizeof(struct ucred))]; in onDataAvailable() local
53 nullptr, 0, &iov, 1, control, sizeof(control), 0, in onDataAvailable()
/system/nvram/client/
Dnvram_client.c64 nvram_control_t control; member
77 static const char* ControlToString(nvram_control_t control) { in ControlToString() argument
79 if (kControlNameTable[i].control == control) { in ControlToString()
90 static int StringToControl(const char* name, nvram_control_t* control) { in StringToControl() argument
93 *control = kControlNameTable[i].control; in StringToControl()
/system/sepolicy/vendor/
Dhal_bootctl_default.te1 # Boot control subsystem
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp122 sp<IBinder> control = in SetUp() local
124 ASSERT_NE(control, nullptr) << "failed to get the suspend control service"; in SetUp()
125 sp<ISuspendControlService> controlService = interface_cast<ISuspendControlService>(control); in SetUp()
144 sp<IBinder> control = in SetUp() local
146 ASSERT_NE(control, nullptr) << "failed to get the suspend control service"; in SetUp()
147 controlService = interface_cast<ISuspendControlService>(control); in SetUp()
/system/nvram/core/
Dnvram_manager.cpp52 for (size_t control = 0; control < sizeof(uint32_t) * 8; ++control) { in GetControlsVector() local
53 if (space.HasControl(control)) { in GetControlsVector()
58 (*controls)[controls->size() - 1] = static_cast<nvram_control_t>(control); in GetControlsVector()
226 for (uint32_t control : request.controls) { in CreateSpace() local
227 controls |= (1 << control); in CreateSpace()
/system/extras/simpleperf/demo/JavaApi/app/
Dproguard-rules.pro2 # You can control the set of applied configuration files using the
/system/extras/simpleperf/demo/CppApi/app/
Dproguard-rules.pro2 # You can control the set of applied configuration files using the
/system/bt/gd/os/linux_generic/
Dreactor.cc135 auto control = eventfd_write(control_fd_, 1); in Stop() local
136 ASSERT(control != -1) in Stop()
/system/bt/stack/include/
Davct_api.h118 uint8_t control; /* Control role (Control/Target) */ member
/system/extras/ANRdaemon/
DANRdaemon.cpp198 const char* control = (enable?"1":"0"); in dfs_enable() local
199 ssize_t len = strlen(control); in dfs_enable()
201 while (write(fd, control, len) != len) { in dfs_enable()
/system/bt/stack/avrc/
Davrc_api.cc681 if (((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD)) || in avrc_msg_cback()
682 ((avrc_cb.ccb[handle].control & AVRC_CT_CONTROL) && (cr == AVCT_RSP))) { in avrc_msg_cback()
859 if ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && in avrc_msg_cback()
894 avrc_cb.ccb[handle].control, cr, opcode); in avrc_msg_cback()
1008 cc.control = p_ccb->control; /* Control role (Control/Target) */ in AVRC_Open()
1020 cc.role, cc.control, status, *p_handle); in AVRC_Open()
/system/bt/stack/avct/
Davct_l2c.cc81 AVCT_TRACE_DEBUG("avct_l2c_is_ct control:x%x", p_ccb->cc.control); in avct_l2c_is_passive()
82 if (p_ccb->cc.control & AVCT_PASSIVE) { in avct_l2c_is_passive()
/system/core/trusty/gatekeeper/
DAndroid.bp21 // are responsible for having their own logic, for fine-grained control.
/system/sepolicy/prebuilts/api/27.0/public/
Dproperty.te62 # control rules written.
/system/sepolicy/prebuilts/api/26.0/public/
Dproperty.te62 # control rules written.
Dhal_neverallows.te11 # Unless a HAL's job is to communicate over the network, or control network

1234567