/hardware/libhardware/modules/camera/3_4/ |
D | request_tracker.cpp | 46 std::set<camera3_stream_t*> RequestStreams(const CaptureRequest& request) { in RequestStreams() argument 48 if (request.input_buffer) { in RequestStreams() 49 result.insert(request.input_buffer->stream); in RequestStreams() 51 for (const auto& output_buffer : request.output_buffers) { in RequestStreams() 57 bool RequestTracker::Add(std::shared_ptr<CaptureRequest> request) { in Add() argument 58 if (!CanAddRequest(*request)) { in Add() 63 for (const auto stream : RequestStreams(*request)) { in Add() 68 frames_in_flight_[request->frame_number] = request; in Add() 73 bool RequestTracker::Remove(std::shared_ptr<CaptureRequest> request) { in Remove() argument 74 if (!request) { in Remove() [all …]
|
D | capture_request.cpp | 23 CaptureRequest::CaptureRequest(const camera3_capture_request_t* request) { in CaptureRequest() argument 24 if (!request) { in CaptureRequest() 28 frame_number = request->frame_number; in CaptureRequest() 33 settings = request->settings; in CaptureRequest() 39 if (request->input_buffer) { in CaptureRequest() 41 std::make_unique<camera3_stream_buffer_t>(*request->input_buffer); in CaptureRequest() 45 uint32_t num_output_buffers = request->num_output_buffers; in CaptureRequest() 46 if (num_output_buffers < 0 || !request->output_buffers) { in CaptureRequest() 50 request->output_buffers, in CaptureRequest() 51 request->output_buffers + num_output_buffers); in CaptureRequest()
|
D | camera.cpp | 313 std::shared_ptr<CaptureRequest> request = std::make_shared<CaptureRequest>(temp_request); in processCaptureRequest() local 315 ALOGV("%s:%d: frame: %d", __func__, mId, request->frame_number); in processCaptureRequest() 317 if (!mInFlightTracker->CanAddRequest(*request)) { in processCaptureRequest() 324 if (request->settings.isEmpty() && !mSettingsSet) { in processCaptureRequest() 326 __func__, mId, request->frame_number); in processCaptureRequest() 330 if (request->input_buffer != NULL) { in processCaptureRequest() 332 request->input_buffer.get()); in processCaptureRequest() 337 if (!isValidRequestSettings(request->settings)) { in processCaptureRequest() 343 if (request->output_buffers.size() <= 0) { in processCaptureRequest() 345 request->output_buffers.size()); in processCaptureRequest() [all …]
|
/hardware/nxp/weaver/libese_weaver/src/ |
D | weaver-parser-impl.cpp | 108 bool WeaverParserImpl::FrameOpenCmd(std::vector<uint8_t> &request) { in FrameOpenCmd() argument 110 UNUSED(request); in FrameOpenCmd() 123 bool WeaverParserImpl::FrameGetSlotCmd(std::vector<uint8_t> &request) { in FrameGetSlotCmd() argument 125 request.clear(); in FrameGetSlotCmd() 126 request.push_back(CLA); in FrameGetSlotCmd() 127 request.push_back(INS_GET_SLOT); in FrameGetSlotCmd() 128 request.push_back(P1); in FrameGetSlotCmd() 129 request.push_back(P2); in FrameGetSlotCmd() 130 request.push_back(LE); in FrameGetSlotCmd() 147 std::vector<uint8_t> &request) { in FrameReadCmd() argument [all …]
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | ValidateRequest.cpp | 40 Request request = originalRequest; in validate() local 41 mutate(&request); in validate() 45 Return<ErrorStatus> executeLaunchStatus = preparedModel->execute(request, executionCallback); in validate() 56 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 57 for (size_t input = 0; input < request.inputs.size(); ++input) { in removeInputTest() 59 validate(preparedModel, message, request, in removeInputTest() 60 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() argument 66 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 67 for (size_t output = 0; output < request.outputs.size(); ++output) { in removeOutputTest() 69 validate(preparedModel, message, request, in removeOutputTest() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | gscan.cpp | 353 int createFeatureRequest(WifiRequest& request, int subcmd, int enable) { in createFeatureRequest() argument 355 int result = request.create(GOOGLE_OUI, subcmd); in createFeatureRequest() 360 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createFeatureRequest() 361 result = request.put_u32(GSCAN_ATTRIBUTE_ENABLE_FEATURE, enable); in createFeatureRequest() 366 request.attr_end(data); in createFeatureRequest() 381 int createRequest(WifiRequest& request, int subcmd, int enable) { in createRequest() argument 382 int result = request.create(GOOGLE_OUI, subcmd); in createRequest() 387 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest() 388 result = request.put_u32(GSCAN_ENABLE_FULL_SCAN_RESULTS, enable); in createRequest() 393 request.attr_end(data); in createRequest() [all …]
|
D | wifi_offload.cpp | 104 int createRequest(WifiRequest &request) { in createRequest() argument 110 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest() 116 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest() 118 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest() 124 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest() 130 result = request.put(MKEEP_ALIVE_ATTRIBUTE_IP_PKT, (u8*)mIpPkt, mIpPktLen); in createRequest() 136 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR, mSrcMacAddr); in createRequest() 142 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR, mDstMacAddr); in createRequest() 148 result = request.put_u32(MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC, mPeriodMsec); in createRequest() 153 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_ETHER_TYPE, mEther_type); in createRequest() [all …]
|
/hardware/synaptics/wlan/synadhd/wifi_hal/ |
D | gscan.cpp | 349 int createFeatureRequest(WifiRequest& request, int subcmd, int enable) { in createFeatureRequest() argument 351 int result = request.create(GOOGLE_OUI, subcmd); in createFeatureRequest() 356 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createFeatureRequest() 357 result = request.put_u32(GSCAN_ATTRIBUTE_ENABLE_FEATURE, enable); in createFeatureRequest() 362 request.attr_end(data); in createFeatureRequest() 377 int createRequest(WifiRequest& request, int subcmd, int enable) { in createRequest() argument 378 int result = request.create(GOOGLE_OUI, subcmd); in createRequest() 383 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest() 384 result = request.put_u32(GSCAN_ENABLE_FULL_SCAN_RESULTS, enable); in createRequest() 389 request.attr_end(data); in createRequest() [all …]
|
D | wifi_offload.cpp | 104 int createRequest(WifiRequest &request) { in createRequest() argument 110 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest() 116 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest() 118 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest() 124 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest() 130 result = request.put(MKEEP_ALIVE_ATTRIBUTE_IP_PKT, (u8*)mIpPkt, mIpPktLen); in createRequest() 136 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR, mSrcMacAddr); in createRequest() 142 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR, mDstMacAddr); in createRequest() 148 result = request.put_u32(MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC, mPeriodMsec); in createRequest() 153 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_ETHER_TYPE, mEther_type); in createRequest() [all …]
|
D | nan.cpp | 619 int createRequest(WifiRequest& request) in createRequest() argument 623 return createSubscribeRequest(request, in createRequest() 626 return createSubscribeCancelRequest(request, in createRequest() 629 return createPublishRequest(request, in createRequest() 632 return createPublishCancelRequest(request, in createRequest() 635 return createTransmitFollowupRequest(request, in createRequest() 638 return getCapabilitiesRequest(request); in createRequest() 645 int createPublishRequest(WifiRequest& request, NanPublishRequest *mParams) in createPublishRequest() argument 649 int result = request.create(GOOGLE_OUI, NAN_SUBCMD_PUBLISH); in createPublishRequest() 659 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createPublishRequest() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | ValidateRequest.cpp | 36 Request request = originalRequest; in validate() local 37 mutate(&request); in validate() 41 Return<ErrorStatus> executeLaunchStatus = preparedModel->execute(request, executionCallback); in validate() 72 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 73 for (size_t input = 0; input < request.inputs.size(); ++input) { in removeInputTest() 75 validate(preparedModel, message, request, in removeInputTest() 76 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() argument 82 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 83 for (size_t output = 0; output < request.outputs.size(); ++output) { in removeOutputTest() 85 validate(preparedModel, message, request, in removeOutputTest() [all …]
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | ValidateRequest.cpp | 41 const std::string& message, const Request& request, in validateReusableExecution() argument 48 request, {measure, kOmittedTimeoutDuration, {}, {}}, &execution); in validateReusableExecution() 90 Request request = utils::clone(originalRequest).value(); in validate() local 91 mutate(&request); in validate() 108 request, measure, kNoDeadline, kOmittedTimeoutDuration, &executionResult); in validate() 119 const auto executeStatus = preparedModel->executeFenced(request, {}, false, kNoDeadline, in validate() 139 const std::vector<int64_t> slots(request.pools.size(), -1); in validate() 143 request, slots, measure, kNoDeadline, kOmittedTimeoutDuration, &executionResult); in validate() 157 validateReusableExecution(preparedModel, message, request, measure); in validate() 164 request, {measure, kOmittedTimeoutDuration, {}, {}}, kNoDeadline, &executionResult); in validate() [all …]
|
/hardware/google/gfxstream/guest/GoldfishAddressSpace/include/ |
D | goldfish_address_space_android.impl | 75 long ioctl_allocate(int fd, struct goldfish_address_space_allocate_block *request) 77 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_ALLOCATE_BLOCK, request); 85 long ioctl_ping(int fd, struct address_space_ping *request) 87 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_PING, request); 92 struct address_space_ping request; 93 ::memset(&request, 0, sizeof(request)); 94 request.resourceId = sizeof(request); 95 request.metadata = type; 97 long ret = ioctl_ping(fd, &request); 102 return request.metadata; [all …]
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | ValidateRequest.cpp | 46 Request request = originalRequest; in validate() local 47 mutate(&request); in validate() 65 preparedModel->execute_1_2(request, measure, executionCallback); in validate() 83 request, measure, in validate() 104 std::vector<intptr_t> keys(request.pools.size()); in validate() 106 keys[i] = reinterpret_cast<intptr_t>(&request.pools[i]); in validate() 110 const auto [n, outputShapes, timing, fallback] = burst->compute(request, measure, keys); in validate() 118 if (request.pools.size() > 0) { in validate() 133 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 134 for (size_t input = 0; input < request.inputs.size(); ++input) { in removeInputTest() [all …]
|
/hardware/interfaces/automotive/remoteaccess/hal/default/fuzzer/ |
D | fuzzer.cpp | 44 [[maybe_unused]] const GetRemoteTasksRequest& request) override { in GetRemoteTasksRaw() argument 53 [[maybe_unused]] const NotifyWakeupRequiredRequest& request, in NotifyWakeupRequired() argument 58 Status ScheduleTask(ClientContext* context, const ScheduleTaskRequest& request, in ScheduleTask() argument 63 Status UnscheduleTask(ClientContext* context, const UnscheduleTaskRequest& request, in UnscheduleTask() argument 68 Status UnscheduleAllTasks(ClientContext* context, const UnscheduleAllTasksRequest& request, in UnscheduleAllTasks() argument 73 Status IsTaskScheduled(ClientContext* context, const IsTaskScheduledRequest& request, in IsTaskScheduled() argument 79 const GetAllPendingScheduledTasksRequest& request, in GetAllPendingScheduledTasks() argument 87 [[maybe_unused]] const GetRemoteTasksRequest& request, in AsyncGetRemoteTasksRaw() argument 94 [[maybe_unused]] const GetRemoteTasksRequest& request, in PrepareAsyncGetRemoteTasksRaw() argument 101 [[maybe_unused]] const NotifyWakeupRequiredRequest& request, in AsyncNotifyWakeupRequiredRaw() argument [all …]
|
/hardware/interfaces/automotive/remoteaccess/test_grpc_server/impl/test/ |
D | TestWakeupClientServiceImplUnitTest.cpp | 135 ScheduleTaskRequest request; in scheduleTask() local 140 request.mutable_scheduleinfo()->set_clientid(kTestClientId); in scheduleTask() 141 request.mutable_scheduleinfo()->set_tasktype(ScheduleTaskType::CUSTOM); in scheduleTask() 142 request.mutable_scheduleinfo()->set_scheduleid(scheduleId); in scheduleTask() 143 request.mutable_scheduleinfo()->set_data(kTestData.data(), kTestData.size()); in scheduleTask() 144 request.mutable_scheduleinfo()->set_count(count); in scheduleTask() 145 request.mutable_scheduleinfo()->set_starttimeinepochseconds(startTimeInEpochSeconds); in scheduleTask() 146 request.mutable_scheduleinfo()->set_periodicinseconds(periodicInSeconds); in scheduleTask() 148 return getStub()->ScheduleTask(&context, request, &response); in scheduleTask() 171 ScheduleTaskRequest request = {}; in TEST_F() local [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | ValidateRequest.cpp | 50 Request request = originalRequest; in validate() local 51 mutate(&request); in validate() 69 preparedModel->execute_1_3(request, measure, {}, {}, executionCallback); in validate() 87 request, measure, {}, {}, in validate() 102 ASSERT_TRUE(nn::compliantWithV1_0(request)); in validate() 103 V1_0::Request request10 = nn::convertToV1_0(request); in validate() 142 preparedModel->executeFenced(request, {}, MeasureTiming::NO, {}, {}, {}, in validate() 155 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 156 for (size_t input = 0; input < request.inputs.size(); ++input) { in removeInputTest() 158 validate(preparedModel, message, request, in removeInputTest() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/utils/ |
D | UserHalHelper.cpp | 168 InitialUserInfoRequest request; in toInitialUserInfoRequest() local 169 request.requestId = propValue.value.int32Values[0]; in toInitialUserInfoRequest() 174 request.requestType = *requestType; in toInitialUserInfoRequest() 175 ret = parseUsersInfo(propValue.value.int32Values, 2, &request.usersInfo); in toInitialUserInfoRequest() 179 return request; in toInitialUserInfoRequest() 187 SwitchUserRequest request; in toSwitchUserRequest() local 198 request.requestId = propValue.value.int32Values[0]; in toSwitchUserRequest() 199 request.messageType = *messageType; in toSwitchUserRequest() 200 ret = parseUserInfo(propValue.value.int32Values, 2, &request.targetUser); in toSwitchUserRequest() 204 ret = parseUsersInfo(propValue.value.int32Values, 4, &request.usersInfo); in toSwitchUserRequest() [all …]
|
/hardware/interfaces/automotive/remoteaccess/test_grpc_server/impl/include/ |
D | TestWakeupClientServiceImpl.h | 126 grpc::Status GetRemoteTasks(grpc::ServerContext* context, const GetRemoteTasksRequest* request, 130 const NotifyWakeupRequiredRequest* request, 133 grpc::Status ScheduleTask(grpc::ServerContext* context, const ScheduleTaskRequest* request, 136 grpc::Status UnscheduleTask(grpc::ServerContext* context, const UnscheduleTaskRequest* request, 140 const UnscheduleAllTasksRequest* request, 144 const IsTaskScheduledRequest* request, 148 const GetAllPendingScheduledTasksRequest* request, 151 grpc::Status IsVehicleInUse(grpc::ServerContext* context, const IsVehicleInUseRequest* request, 155 const GetApPowerBootupReasonRequest* request, 263 grpc::Status GetRemoteTasks(grpc::ServerContext* context, const GetRemoteTasksRequest* request, in GetRemoteTasks() argument [all …]
|
/hardware/google/gfxstream/guest/GoldfishAddressSpace/ |
D | GoldfishAddressSpaceStream.cpp | 33 struct address_space_ping request; in createGoldfishAddressSpaceStream() local 34 request.metadata = ASG_GET_RING; in createGoldfishAddressSpaceStream() 35 if (!goldfish_address_space_ping(child_device_handle, &request)) { in createGoldfishAddressSpaceStream() 41 uint64_t ringOffset = request.metadata; in createGoldfishAddressSpaceStream() 43 request.metadata = ASG_GET_BUFFER; in createGoldfishAddressSpaceStream() 44 if (!goldfish_address_space_ping(child_device_handle, &request)) { in createGoldfishAddressSpaceStream() 50 uint64_t bufferOffset = request.metadata; in createGoldfishAddressSpaceStream() 51 uint64_t bufferSize = request.size; in createGoldfishAddressSpaceStream() 95 request.metadata = ASG_SET_VERSION; in createGoldfishAddressSpaceStream() 96 request.size = 1; // version 1 in createGoldfishAddressSpaceStream() [all …]
|
/hardware/nxp/keymint/KM200/ |
D | JavacardKeyMintDevice.cpp | 113 cppbor::Array request; in addRngEntropy() local 115 request.add(Bstr(data)); in addRngEntropy() 116 auto [item, err] = card_->sendRequest(Instruction::INS_ADD_RNG_ENTROPY_CMD, request); in addRngEntropy() 129 cppbor::Array request; in importKey() local 131 cbor_.addKeyparameters(request, keyParams); in importKey() 133 request.add(Uint(static_cast<uint8_t>(keyFormat))); in importKey() 135 request.add(Bstr(keyData)); in importKey() 137 cbor_.addAttestationKey(request, attestationKey); in importKey() 139 auto [item, err] = card_->sendRequest(Instruction::INS_IMPORT_KEY_CMD, request); in importKey() 160 cppbor::Array request; in importWrappedKey() local [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/src/ |
D | UserHalHelper.cpp | 187 InitialUserInfoRequest request; in toInitialUserInfoRequest() local 188 request.requestId = propValue.value.int32Values[0]; in toInitialUserInfoRequest() 193 request.requestType = *requestType; in toInitialUserInfoRequest() 194 ret = parseUsersInfo(propValue.value.int32Values, 2, &request.usersInfo); in toInitialUserInfoRequest() 198 return request; in toInitialUserInfoRequest() 206 SwitchUserRequest request; in toSwitchUserRequest() local 217 request.requestId = propValue.value.int32Values[0]; in toSwitchUserRequest() 218 request.messageType = *messageType; in toSwitchUserRequest() 219 ret = parseUserInfo(propValue.value.int32Values, /*startPos=*/2, &request.targetUser); in toSwitchUserRequest() 223 ret = parseUsersInfo(propValue.value.int32Values, /*startPos=*/4, &request.usersInfo); in toSwitchUserRequest() [all …]
|
/hardware/google/camera/common/hal/google_camera_hal/ |
D | basic_request_processor.cc | 87 status_t BasicRequestProcessor::ProcessRequest(const CaptureRequest& request) { in ProcessRequest() argument 96 block_request.frame_number = request.frame_number; in ProcessRequest() 97 block_request.settings = HalCameraMetadata::Clone(request.settings.get()); in ProcessRequest() 98 block_request.input_buffers = request.input_buffers; in ProcessRequest() 99 block_request.input_width = request.input_width; in ProcessRequest() 100 block_request.input_height = request.input_height; in ProcessRequest() 102 for (auto& metadata : request.input_buffer_metadata) { in ProcessRequest() 107 block_request.output_buffers = request.output_buffers; in ProcessRequest() 108 for (auto& [camera_id, physical_metadata] : request.physical_camera_settings) { in ProcessRequest() 114 block_requests[0].request = std::move(block_request); in ProcessRequest() [all …]
|
D | capture_session_wrapper_process_block.cc | 168 CaptureRequest request; in ProcessRequests() local 169 request.frame_number = remaining_session_request.frame_number; in ProcessRequests() 170 for (auto& metadata : request.input_buffer_metadata) { in ProcessRequests() 171 request.input_buffer_metadata.push_back( in ProcessRequests() 174 request.input_buffers = remaining_session_request.input_buffers; in ProcessRequests() 175 request.input_height = remaining_session_request.input_height; in ProcessRequests() 176 request.input_width = remaining_session_request.input_width; in ProcessRequests() 179 request.physical_camera_settings[camera_id] = in ProcessRequests() 182 request.settings = in ProcessRequests() 185 request.output_buffers = process_block_requests[0].request.output_buffers; in ProcessRequests() [all …]
|
/hardware/nxp/keymint/KM300/ |
D | JavacardKeyMintDevice.cpp | 131 cppbor::Array request; in addRngEntropy() local 133 request.add(Bstr(data)); in addRngEntropy() 134 auto [item, err] = card_->sendRequest(Instruction::INS_ADD_RNG_ENTROPY_CMD, request); in addRngEntropy() 147 cppbor::Array request; in importKey() local 149 cbor_.addKeyparameters(request, keyParams); in importKey() 151 request.add(Uint(static_cast<uint8_t>(keyFormat))); in importKey() 153 request.add(Bstr(keyData)); in importKey() 155 cbor_.addAttestationKey(request, attestationKey); in importKey() 157 auto [item, err] = card_->sendRequest(Instruction::INS_IMPORT_KEY_CMD, request); in importKey() 183 cppbor::Array request; in importWrappedKey() local [all …]
|