/device/google/cuttlefish/host/libs/allocd/test/ |
D | client.cpp | 53 Json::Value req; in main() local 54 req["request_type"] = "allocate_id"; in main() 55 SendJsonMsg(monitor_socket, req); in main() 73 Json::Value req; in main() local 74 req["request_type"] = "create_interface"; in main() 75 req["uid"] = geteuid(); in main() 76 req["iface_type"] = "mtap"; in main() 77 request_list.append(req); in main() 78 req["iface_type"] = "wtap"; in main() 79 request_list.append(req); in main() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | sensors.c | 80 struct SensorsClientRequest *req = slabAllocatorGetNth(mCliSensMatrix, i); in sensorClientRequestFind() local 82 if (req && req->handle == sensorHandle && req->clientTid == clientTid) in sensorClientRequestFind() 83 return req; in sensorClientRequestFind() 389 struct SensorsClientRequest *req = slabAllocatorGetNth(mCliSensMatrix, i); in sensorCalcHwLatency() local 392 if (!req || req->handle != s->handle) in sensorCalcHwLatency() 395 if (smallestLatency > req->latency) in sensorCalcHwLatency() 396 smallestLatency = req->latency; in sensorCalcHwLatency() 421 struct SensorsClientRequest *req = slabAllocatorGetNth(mCliSensMatrix, i); in sensorCalcHwRate() local 424 if (!req || req->handle != s->handle) in sensorCalcHwRate() 428 if (req->rate == removedRate) { in sensorCalcHwRate() [all …]
|
D | nanohubCommand.c | 149 struct NanohubAppVersionsRequest *req = rx; in getAppVersion() local 153 if (osAppInfoById(le64toh(unaligned_u64(&req->appId)), &appIdx, &appVer, &appSize)) { in getAppVersion() 163 struct NanohubAppInfoRequest *req = rx; in queryAppInfo() local 168 if (osAppInfoByIndex(le32toh(unaligned_u32(&req->appIdx)), &appId, &appVer, &appSize)) { in queryAppInfo() 302 static bool doStartFirmwareUpload(struct NanohubStartFirmwareUploadRequest *req, bool erase) in doStartFirmwareUpload() argument 313 mDownloadState->size = le32toh(req->size); in doStartFirmwareUpload() 314 mDownloadState->crc = le32toh(req->crc); in doStartFirmwareUpload() 321 struct NanohubStartFirmwareUploadRequest *req = rx; in startFirmwareUpload() local 324 resp->accepted = doStartFirmwareUpload(req, true); in startFirmwareUpload() 634 struct NanohubFirmwareChunkRequest *req = rx; in firmwareChunk() local [all …]
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | sap_service.cpp | 204 RIL_SIM_SAP_CONNECT_REQ req; in connectReq() local 205 memset(&req, 0, sizeof(RIL_SIM_SAP_CONNECT_REQ)); in connectReq() 206 req.max_message_size = maxMsgSize; in connectReq() 209 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq() 224 if (!pb_encode(&stream, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq() 245 RIL_SIM_SAP_DISCONNECT_REQ req; in disconnectReq() local 246 memset(&req, 0, sizeof(RIL_SIM_SAP_DISCONNECT_REQ)); in disconnectReq() 249 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq() 265 if (!pb_encode(&stream, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq() 286 RIL_SIM_SAP_APDU_REQ req; in apduReq() local [all …]
|
D | RilSapSocket.cpp | 199 void RilSapSocket::dispatchRequest(MsgHeader *req) { in dispatchRequest() argument 205 free(req); in dispatchRequest() 208 currRequest->token = req->token; in dispatchRequest() 209 currRequest->curr = req; in dispatchRequest() 218 req->token, in dispatchRequest() 219 req->type, in dispatchRequest() 220 req->id, in dispatchRequest() 221 req->error, in dispatchRequest() 225 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id); in dispatchRequest() 227 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest); in dispatchRequest()
|
D | ril_internal.h | 46 #define printRequest(token, req) \ argument 47 RLOGD("[%04d]> %s %s", token, requestToString(req), printBuf) 59 #define printRequest(token, req)
|
/device/google/contexthub/contexthubhal/test/ |
D | main.cpp | 273 apps_enable_request_t req; in main() local 274 req.app_name.id = appId; in main() 275 cli.sendMessageToSystem(CONTEXT_HUB_APPS_ENABLE, &req, sizeof(req)); in main() 280 apps_disable_request_t req; in main() local 281 req.app_name.id = appId; in main() 282 cli.sendMessageToSystem(CONTEXT_HUB_APPS_DISABLE, &req, sizeof(req)); in main() 287 load_app_request_t *req = NULL; in main() local 289 req = (load_app_request_t *)loadFile(appFileName, &fileSize); in main() 290 if (!req || fileSize < sizeof(*req) || req->app_binary.magic != NANOAPP_MAGIC) { in main() 295 cli.sendMessageToSystem(CONTEXT_HUB_LOAD_APP, req, fileSize); in main() [all …]
|
/device/google/contexthub/util/nanotool/ |
D | contexthub.cpp | 189 ConfigureSensorRequest req; in EnableSensor() local 191 req.config.event_type = static_cast<uint32_t>(EventType::ConfigureSensor); in EnableSensor() 192 req.config.sensor_type = static_cast<uint8_t>(spec.sensor_type); in EnableSensor() 193 req.config.command = static_cast<uint8_t>( in EnableSensor() 196 req.config.rate = static_cast<uint32_t>(spec.special_rate); in EnableSensor() 198 req.config.rate = ConfigureSensorRequest::FloatRateToFixedPoint( in EnableSensor() 201 req.config.latency = spec.latency_ns; in EnableSensor() 206 auto result = WriteEvent(req); in EnableSensor() 223 ConfigureSensorRequest req; in DisableSensor() local 225 req.config.event_type = static_cast<uint32_t>(EventType::ConfigureSensor); in DisableSensor() [all …]
|
/device/linaro/dragonboard/shared/utils/rmtfs/ |
D | rmtfs.c | 57 struct rmtfs_open_req req = {}; in rmtfs_open() local 65 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in rmtfs_open() 72 rmtfd = storage_open(pkt->node, req.path); in rmtfs_open() 84 req.path, caller_id, resp.result.result, resp.result.error); in rmtfs_open() 105 struct rmtfs_close_req req = {}; in rmtfs_close() local 112 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in rmtfs_close() 119 rmtfd = storage_get(pkt->node, req.caller_id); in rmtfs_close() 130 req.caller_id, resp.result.result, resp.result.error); in rmtfs_close() 152 struct rmtfs_iovec_req req = {}; in rmtfs_iovec() local 170 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in rmtfs_iovec() [all …]
|
/device/linaro/dragonboard/shared/utils/qrtr/src/ |
D | addr.c | 21 } req; in qrtr_set_address() local 50 memset(&req, 0, sizeof(req)); in qrtr_set_address() 51 req.nh.nlmsg_len = NLMSG_SPACE(sizeof(struct ifaddrmsg)); in qrtr_set_address() 52 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in qrtr_set_address() 53 req.nh.nlmsg_type = RTM_NEWADDR; in qrtr_set_address() 54 req.ifa.ifa_family = AF_QIPCRTR; in qrtr_set_address() 56 rta = (struct rtattr *)(((char *) &req) + req.nh.nlmsg_len); in qrtr_set_address() 61 req.nh.nlmsg_len += rta->rta_len; in qrtr_set_address() 63 ret = send(sock, &req, req.nh.nlmsg_len, 0); in qrtr_set_address()
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | alloc.cc | 66 Json::Value req; in AllocateNetworkInterfaces() local 67 req["request_type"] = "create_interface"; in AllocateNetworkInterfaces() 68 req["uid"] = geteuid(); in AllocateNetworkInterfaces() 69 req["iface_type"] = "mtap"; in AllocateNetworkInterfaces() 70 request_list.append(req); in AllocateNetworkInterfaces() 71 req["iface_type"] = "wtap"; in AllocateNetworkInterfaces() 72 request_list.append(req); in AllocateNetworkInterfaces() 73 req["iface_type"] = "wifiap"; in AllocateNetworkInterfaces() 74 request_list.append(req); in AllocateNetworkInterfaces() 75 req["iface_type"] = "etap"; in AllocateNetworkInterfaces() [all …]
|
/device/google/trout/hal/vehicle/2.0/ |
D | GarageModeServerSideHandler.cpp | 210 auto req = mValueObjectPool->obtain(VehiclePropertyType::INT32_VEC, 2); in CreateApPowerStateReq() local 211 req->prop = toInt(VehicleProperty::AP_POWER_STATE_REQ); in CreateApPowerStateReq() 212 req->areaId = 0; in CreateApPowerStateReq() 213 req->timestamp = elapsedRealtimeNano(); in CreateApPowerStateReq() 214 req->status = VehiclePropertyStatus::AVAILABLE; in CreateApPowerStateReq() 215 req->value.int32Values[0] = toInt(state); in CreateApPowerStateReq() 216 req->value.int32Values[1] = param; in CreateApPowerStateReq() 217 return req; in CreateApPowerStateReq()
|
D | DefaultVehicleHalServer.cpp | 205 auto req = getValuePool()->obtain(VehiclePropertyType::INT32_VEC, 2); in createApPowerStateReq() local 206 req->prop = toInt(VehicleProperty::AP_POWER_STATE_REQ); in createApPowerStateReq() 207 req->areaId = 0; in createApPowerStateReq() 208 req->timestamp = elapsedRealtimeNano(); in createApPowerStateReq() 209 req->status = VehiclePropertyStatus::AVAILABLE; in createApPowerStateReq() 210 req->value.int32Values[0] = toInt(state); in createApPowerStateReq() 211 req->value.int32Values[1] = param; in createApPowerStateReq() 212 return req; in createApPowerStateReq()
|
/device/google/contexthub/contexthubhal/ |
D | NanohubHidlAdapter.cpp | 368 struct apps_disable_request_t req; in unloadNanoApp() local 371 msg.message_len = sizeof(req); in unloadNanoApp() 372 msg.message = &req; in unloadNanoApp() 373 req.app_name.id = appId; in unloadNanoApp() 447 struct apps_enable_request_t req; in enableNanoApp() local 450 msg.message_len = sizeof(req); in enableNanoApp() 451 req.app_name.id = appId; in enableNanoApp() 452 msg.message = &req; in enableNanoApp() 478 struct apps_disable_request_t req; in disableNanoApp() local 481 msg.message_len = sizeof(req); in disableNanoApp() [all …]
|
/device/generic/goldfish/camera/ |
D | CameraDeviceSession.cpp | 510 HwCaptureRequest& req = maybeReq.value(); in captureThreadLoop() local 512 disposeCaptureRequest(std::move(req)); in captureThreadLoop() 514 nextFrameT = captureOneFrame(nextFrameT, std::move(req)); in captureThreadLoop() 523 HwCaptureRequest req) { in captureOneFrame() argument 533 const int32_t frameNumber = req.frameNumber; in captureOneFrame() 537 mHwCamera.processCaptureRequest(std::move(req.metadataUpdate), in captureOneFrame() 538 {req.buffers.begin(), req.buffers.end()}); in captureOneFrame() 584 void CameraDeviceSession::disposeCaptureRequest(HwCaptureRequest req) { in disposeCaptureRequest() argument 585 notifyError(&*mCb, req.frameNumber, -1, ErrorCode::ERROR_REQUEST); in disposeCaptureRequest() 587 const size_t reqBuffersSize = req.buffers.size(); in disposeCaptureRequest() [all …]
|
D | CameraDeviceSession.h | 117 bool popCaptureRequest(HwCaptureRequest* req); 118 struct timespec captureOneFrame(struct timespec nextFrameT, HwCaptureRequest req); 119 void disposeCaptureRequest(HwCaptureRequest req);
|
/device/generic/trusty/secure_dpu/ |
D | EmulatorDPUHandler.cpp | 99 DPUHandler::HandleAllocateBuffer(const secure_dpu_allocate_buffer_req* req) { in HandleAllocateBuffer() argument 100 size_t req_buffer_len = static_cast<size_t>(req->buffer_len); in HandleAllocateBuffer() 145 const secure_dpu_req* req = reinterpret_cast<const secure_dpu_req*>(in_buf); in HandleCmd() local 146 switch (req->cmd) { in HandleCmd() 163 LOG(ERROR) << "Unknown command: " << (uint32_t)req->cmd; in HandleCmd()
|
/device/linaro/dragonboard/shared/utils/pd-mapper/ |
D | pd-mapper.c | 60 struct servreg_loc_get_domain_list_req req = {}; in handle_get_domain_list() local 68 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in handle_get_domain_list() 77 req.name[sizeof(req.name)-1] = '\0'; in handle_get_domain_list() 84 if (!strcmp(pd_map->service, req.name)) { in handle_get_domain_list()
|
/device/google/cuttlefish/guest/hals/keymint/remote/ |
D | remote_keymaster.cpp | 34 const Serializable& req, in ForwardCommand() argument 36 if (!channel_->SendRequest(command, req)) { in ForwardCommand() 60 ConfigureRequest req(message_version()); in Initialize() local 61 req.os_version = GetOsVersion(); in Initialize() 62 req.os_patchlevel = GetOsPatchlevel(); in Initialize() 65 Configure(req, &rsp); in Initialize()
|
/device/google/cuttlefish/host/commands/stop/ |
D | main.cc | 152 Json::Value req; in ReleaseAllocdResources() local 153 req["request_type"] = in ReleaseAllocdResources() 155 req["session_id"] = session_id; in ReleaseAllocdResources() 156 request_list.append(req); in ReleaseAllocdResources()
|
/device/google/gs-common/bootctrl/1.2/ |
D | BootControl.cpp | 192 struct otp_mgr_req_base req = { in blow_otp_AR() local 198 .iov_base = &req, in blow_otp_AR() 199 .iov_len = sizeof(req), in blow_otp_AR() 204 if (rc != sizeof(req)) { in blow_otp_AR()
|
/device/google/gs-common/bootctrl/aidl/ |
D | BootControl.cpp | 189 struct otp_mgr_req_base req = { in blow_otp_AR() local 195 .iov_base = &req, in blow_otp_AR() 196 .iov_len = sizeof(req), in blow_otp_AR() 201 if (rc != sizeof(req)) { in blow_otp_AR()
|
/device/google/cuttlefish/host/frontend/webrtc_operator/certs/ |
D | create_certs.sh | 24 openssl req \ 28 openssl x509 -req -sha256 -days 99999 -in server.csr -signkey server.key -out server.crt
|
/device/google/cuttlefish/host/libs/allocd/ |
D | utils.cpp | 131 RequestType StrToReqTy(const std::string& req) { in StrToReqTy() argument 132 auto it = StrToRequestTyMap.find(req); in StrToReqTy()
|
/device/google/redbull-sepolicy/vendor/qcom/common/ |
D | genfs_contexts | 29 genfscon sysfs /devices/platform/soc/soc:qcom,cam-req-mgr/video4linux/video3/name … 30 genfscon sysfs /devices/platform/soc/soc:qcom,cam-req-mgr/video4linux/video4/name …
|