/hardware/google/camera/common/hal/tests/ |
D | stream_buffer_cache_manager_tests.cc | 139 status_t res = cache_manager_->RegisterStream(kDummyCacheRegInfo); in TEST_F() local 140 ASSERT_EQ(res, OK) << " RegisterStream failed!" << strerror(res); in TEST_F() 143 res = cache_manager_->RegisterStream(kDummyCacheRegInfo); in TEST_F() 144 ASSERT_NE(res, OK) << " RegisterStream succeeded when registering the same " in TEST_F() 150 res = cache_manager_->RegisterStream(another_reg_info); in TEST_F() 151 ASSERT_EQ(res, OK) << " RegisterStream another stream failed!" in TEST_F() 152 << strerror(res); in TEST_F() 158 status_t res = in TEST_F() local 160 ASSERT_NE(res, OK) << " NotifyProviderReadiness succeeded without reigstering" in TEST_F() 163 res = cache_manager_->RegisterStream(kDummyCacheRegInfo); in TEST_F() [all …]
|
D | hal_camera_metadata_tests.cc | 97 status_t res = in SetGetMetadata() local 99 ASSERT_EQ(res, OK) << "Set int64 failed"; in SetGetMetadata() 102 res = hal_metadata->Get(ANDROID_SENSOR_EXPOSURE_TIME, &entry); in SetGetMetadata() 103 ASSERT_EQ(res, OK) << "Get ANDROID_SENSOR_EXPOSURE_TIME failed"; in SetGetMetadata() 110 res = hal_metadata->Set(ANDROID_SENSOR_SENSITIVITY, &sensitivity, 1); in SetGetMetadata() 111 ASSERT_EQ(res, OK) << "Set int32 failed"; in SetGetMetadata() 113 res = hal_metadata->Get(ANDROID_SENSOR_SENSITIVITY, &entry); in SetGetMetadata() 114 ASSERT_EQ(res, OK) << "Get ANDROID_SENSOR_SENSITIVITY failed"; in SetGetMetadata() 121 res = hal_metadata->Set(ANDROID_LENS_FOCUS_DISTANCE, &focus_distance, 1); in SetGetMetadata() 122 ASSERT_EQ(res, OK) << "Set float failed"; in SetGetMetadata() [all …]
|
D | zsl_buffer_manager_tests.cc | 44 status_t res = in SetMetadata() local 46 ASSERT_EQ(res, OK) << "Set ANDROID_SENSOR_TIMESTAMP failed"; in SetMetadata() 55 status_t res = manager->AllocateBuffers(kRawBufferDescriptor); in TEST() local 56 ASSERT_EQ(res, OK) << "AllocateBuffers failed: " << strerror(res); in TEST() 64 status_t res = manager->AllocateBuffers(kRawBufferDescriptor); in TEST() local 65 ASSERT_EQ(res, OK) << "AllocateBuffers failed: " << strerror(res); in TEST() 84 status_t res = manager->AllocateBuffers(kRawBufferDescriptor); in TEST() local 85 ASSERT_EQ(res, OK) << "AllocateBuffers failed: " << strerror(res); in TEST() 97 res = manager->ReturnFilledBuffer(i, stream_buffer); in TEST() 98 ASSERT_EQ(res, OK) << "ReturnFilledBuffer failed: " << strerror(res); in TEST() [all …]
|
/hardware/interfaces/nfc/1.0/vts/functional/ |
D | VtsHalNfcV1_0TargetTest.cpp | 110 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local 111 EXPECT_TRUE(res.no_timeout); in SetUp() 112 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 120 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in SetUp() 121 EXPECT_TRUE(res.no_timeout); in SetUp() 122 EXPECT_GE(6ul, res.args->last_data_.size()); in SetUp() 123 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in SetUp() 124 if (res.args->last_data_.size() == 6) { in SetUp() 125 nci_version = res.args->last_data_[4]; in SetUp() [all …]
|
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/ |
D | HAL.cpp | 262 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd1)"); in setHandles() local 263 hidl_cb(res.success, res.errMsg); in setHandles() 264 fl.setResult(res.success, res.errMsg); in setHandles() 271 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd2)"); in setHandles() local 272 hidl_cb(res.success, res.errMsg); in setHandles() 273 fl.setResult(res.success, res.errMsg); in setHandles() 319 BoolResult res = ipaResultToBoolResult(ipaReturn); in setHandles() local 320 hidl_cb(res.success, res.errMsg); in setHandles() 322 fl.setResult(res.success, res.errMsg); in setHandles() 337 BoolResult res = makeInputCheckFailure("Already initialized"); in initOffload() local [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/ |
D | HAL.cpp | 260 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd1)"); in setHandles() local 261 hidl_cb(res.success, res.errMsg); in setHandles() 262 fl.setResult(res.success, res.errMsg); in setHandles() 269 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd2)"); in setHandles() local 270 hidl_cb(res.success, res.errMsg); in setHandles() 271 fl.setResult(res.success, res.errMsg); in setHandles() 317 BoolResult res = ipaResultToBoolResult(ipaReturn); in setHandles() local 318 hidl_cb(res.success, res.errMsg); in setHandles() 320 fl.setResult(res.success, res.errMsg); in setHandles() 335 BoolResult res = makeInputCheckFailure("Already initialized"); in initOffload() local [all …]
|
/hardware/google/gfxstream/guest/vulkan_enc/ |
D | Resources.cpp | 33 #define SET_HWVULKAN_DISPATCH_MAGIC res->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; 35 #define SET_HWVULKAN_DISPATCH_MAGIC res->loaderData.loaderMagic = ICD_LOADER_MAGIC; 42 struct goldfish_##type* res = \ 44 if (!res) { \ 49 res->underlying = (uint64_t)underlying; \ 50 res->lastUsedEncoder = nullptr; \ 51 res->sequenceNumber = 0; \ 52 res->privateEncoder = 0; \ 53 res->privateStream = 0; \ 54 res->flags = 0; \ [all …]
|
/hardware/google/camera/common/hal/google_camera_hal/ |
D | rgbird_capture_session.cc | 64 status_t res = device_session_hwl->GetPhysicalCameraCharacteristics( in IsStreamConfigurationSupported() local 67 if (res != OK) { in IsStreamConfigurationSupported() 106 status_t res = session->Initialize( in Create() local 109 if (res != OK) { in Create() 111 __FUNCTION__, strerror(-res), res); in Create() 174 status_t res = request_processor->ConfigureStreams( in ConfigureStreams() local 177 if (res != OK) { in ConfigureStreams() 179 __FUNCTION__, strerror(-res), res); in ConfigureStreams() 180 return res; in ConfigureStreams() 183 res = process_block->ConfigureStreams(*process_block_stream_config, in ConfigureStreams() [all …]
|
D | hdrplus_capture_session.cc | 58 status_t res = device_session_hwl->GetCameraCharacteristics(&characteristics); in IsStreamConfigurationSupported() local 59 if (res != OK) { in IsStreamConfigurationSupported() 96 status_t res = session->Initialize(device_session_hwl, stream_config, in Create() local 99 if (res != OK) { in Create() 101 __FUNCTION__, strerror(-res), res); in Create() 131 status_t res = request_processor->ConfigureStreams( in ConfigureStreams() local 134 if (res != OK) { in ConfigureStreams() 136 return res; in ConfigureStreams() 177 res = process_block->ConfigureStreams(process_block_stream_config, in ConfigureStreams() 179 if (res != OK) { in ConfigureStreams() [all …]
|
D | dual_ir_capture_session.cc | 56 status_t res = device_session_hwl->GetPhysicalCameraCharacteristics( in IsStreamConfigurationSupported() local 58 if (res != OK) { in IsStreamConfigurationSupported() 133 status_t res = session->Initialize(device_session_hwl, stream_config, in Create() local 136 if (res != OK) { in Create() 138 __FUNCTION__, strerror(-res), res); in Create() 201 status_t res = request_processor->ConfigureStreams( in ConfigureStreams() local 204 if (res != OK) { in ConfigureStreams() 206 __FUNCTION__, strerror(-res), res); in ConfigureStreams() 207 return res; in ConfigureStreams() 210 res = process_block->ConfigureStreams(*process_block_stream_config, in ConfigureStreams() [all …]
|
D | zsl_snapshot_capture_session.cc | 205 status_t res = device_session_hwl->GetCameraCharacteristics(&characteristics); in IsStreamConfigurationSupported() local 206 if (res != OK) { in IsStreamConfigurationSupported() 212 res = characteristics->Get(VendorTagIds::kSwDenoiseEnabled, &entry); in IsStreamConfigurationSupported() 213 if (res != OK || entry.data.u8[0] != 1) { in IsStreamConfigurationSupported() 287 status_t res = session->Initialize(camera_device_session_hwl, stream_config, in Create() local 290 if (res != OK) { in Create() 292 __FUNCTION__, strerror(-res), res); in Create() 329 status_t res; in BuildPipelines() local 332 res = snapshot_process_block->GetConfiguredHalStreams( in BuildPipelines() 334 if (res != OK) { in BuildPipelines() [all …]
|
D | basic_capture_session.cc | 61 status_t res = session->Initialize( in Create() local 64 if (res != OK) { in Create() 66 strerror(-res), res); in Create() 91 status_t res = request_processor->ConfigureStreams( in ConfigureStreams() local 94 if (res != OK) { in ConfigureStreams() 96 return res; in ConfigureStreams() 125 res = process_block->ConfigureStreams(process_block_stream_config, in ConfigureStreams() 127 if (res != OK) { in ConfigureStreams() 129 return res; in ConfigureStreams() 145 status_t res = device_session_hwl_->BuildPipelines(); in BuildPipelines() local [all …]
|
D | camera_provider.cc | 57 status_t res = provider->Initialize(std::move(camera_provider_hwl)); in Create() local 58 if (res != OK) { in Create() 60 strerror(-res), res); in Create() 72 status_t res = VendorTagManager::GetInstance().AddTags(kHalVendorTagSections); in Initialize() local 73 if (res != OK) { in Initialize() 75 strerror(-res), res); in Initialize() 76 return res; in Initialize() 80 status_t res = CreateHwl(&camera_provider_hwl); in Initialize() local 81 if (res != OK) { in Initialize() 87 res = camera_provider_hwl->CreateBufferAllocatorHwl(&camera_allocator_hwl_); in Initialize() [all …]
|
D | camera_device.cc | 137 status_t res = in Create() local 139 if (res != OK) { in Create() 141 strerror(-res), res); in Create() 164 status_t res = LoadExternalCaptureSession(); in Initialize() local 165 if (res != OK) { in Initialize() 167 strerror(-res), res); in Initialize() 168 return res; in Initialize() 172 res = camera_device_hwl_->GetCameraCharacteristics(&static_metadata); in Initialize() 173 if (res != OK) { in Initialize() 175 strerror(-res), res); in Initialize() [all …]
|
/hardware/libhardware/modules/usbcamera/ |
D | UsbCamera.cpp | 202 int res = sync_wait(in->acquire_fence, CAMERA_SYNC_TIMEOUT_MS); in processCaptureBuffer() local 203 if (res == -ETIME) { in processCaptureBuffer() 206 return res; in processCaptureBuffer() 207 } else if (res) { in processCaptureBuffer() 209 __func__, mId, strerror(-res), res); in processCaptureBuffer() 210 return res; in processCaptureBuffer() 226 int res; in initDevice() local 230 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 231 if (res) in initDevice() 232 return res; in initDevice() [all …]
|
/hardware/nxp/secure_element/snxxx/libese-spi/src/adaptation/ |
D | Mutex.cpp | 42 int res = pthread_mutex_init(&mMutex, NULL); in Mutex() local 43 if (res != 0) { in Mutex() 44 LOG(ERROR) << StringPrintf("Mutex::Mutex: fail init; error=0x%X", res); in Mutex() 58 int res = pthread_mutex_destroy(&mMutex); in ~Mutex() local 59 if (res != 0) { in ~Mutex() 60 LOG(ERROR) << StringPrintf("Mutex::~Mutex: fail destroy; error=0x%X", res); in ~Mutex() 74 int res = pthread_mutex_lock(&mMutex); in lock() local 75 if (res != 0) { in lock() 76 LOG(ERROR) << StringPrintf("Mutex::lock: fail lock; error=0x%X", res); in lock() 90 int res = pthread_mutex_unlock(&mMutex); in unlock() local [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata.cpp | 47 int res = 0; in FillStaticMetadata() local 53 res = component->PopulateStaticFields(&additional_metadata); in FillStaticMetadata() 54 if (res) { in FillStaticMetadata() 56 return res; in FillStaticMetadata() 60 res = metadata->append(additional_metadata); in FillStaticMetadata() 61 if (res != android::OK) { in FillStaticMetadata() 63 return res; in FillStaticMetadata() 84 res = UpdateMetadata( in FillStaticMetadata() 86 if (res != android::OK) { in FillStaticMetadata() 91 res = UpdateMetadata( in FillStaticMetadata() [all …]
|
/hardware/libhardware/modules/camera/3_0/ |
D | ExampleCamera.cpp | 183 int res; in initDevice() local 188 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 189 if (res) in initDevice() 190 return res; in initDevice() 193 res = setPreviewTemplate(base); in initDevice() 194 if (res) in initDevice() 195 return res; in initDevice() 196 res = setStillTemplate(base); in initDevice() 197 if (res) in initDevice() 198 return res; in initDevice() [all …]
|
/hardware/interfaces/usb/1.2/vts/functional/ |
D | VtsHalUsbV1_2TargetTest.cpp | 191 auto res = usb_cb_2->WaitForCallback(kCallbackNameNotifyPortStatusChange_1_2); in TEST_P() local 192 EXPECT_TRUE(res.no_timeout); in TEST_P() 193 EXPECT_EQ(kCallbackIdentifier, res.args->last_usb_cookie); in TEST_P() 194 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.currentMode); in TEST_P() 195 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.supportedModes); in TEST_P() 196 EXPECT_EQ(Status::SUCCESS, res.args->usb_last_status); in TEST_P() 207 auto res = usb_cb_2->WaitForCallback(kCallbackNameNotifyPortStatusChange_1_2); in TEST_P() local 208 EXPECT_TRUE(res.no_timeout); in TEST_P() 209 EXPECT_EQ(kCallbackIdentifier, res.args->last_usb_cookie); in TEST_P() 210 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.currentMode); in TEST_P() [all …]
|
/hardware/interfaces/radio/aidl/vts/ |
D | radio_imsmedia_test.cpp | 59 ndk::ScopedAStatus res = radio_imsmedia->setListener(radio_imsmedialistener); in TEST_P() local 60 ASSERT_OK(res); in TEST_P() 63 res = triggerOpenSession(sessionId); in TEST_P() 64 ASSERT_OK(res); in TEST_P() 71 ASSERT_OK(res); in TEST_P() 74 res = radio_imsmediasession->modifySession(modifyRtpConfig); in TEST_P() 75 ASSERT_OK(res); in TEST_P() 81 res = radio_imsmedia->closeSession(sessionId); in TEST_P() 82 ASSERT_OK(res); in TEST_P() 107 ndk::ScopedAStatus res = radio_imsmedia->setListener(radio_imsmedialistener); in TEST_P() local [all …]
|
/hardware/interfaces/nfc/1.1/vts/functional/ |
D | VtsHalNfcV1_1TargetTest.cpp | 99 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local 100 EXPECT_TRUE(res.no_timeout); in SetUp() 101 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp() 102 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 110 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 111 EXPECT_TRUE(res.no_timeout); in SetUp() 112 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 117 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 118 EXPECT_TRUE(res.no_timeout); in SetUp() [all …]
|
/hardware/libhardware/modules/camera/3_4/ |
D | v4l2_camera.cpp | 50 int res = GetV4L2Metadata(v4l2_wrapper, &metadata); in NewV4L2Camera() local 51 if (res) { in NewV4L2Camera() 52 HAL_LOGE("Failed to initialize V4L2 metadata: %d", res); in NewV4L2Camera() 121 int res = metadata_->FillStaticMetadata(out); in initStaticInfo() local 122 if (res) { in initStaticInfo() 124 return res; in initStaticInfo() 128 res = SingleTagValue( in initStaticInfo() 130 if (res) { in initStaticInfo() 132 return res; in initStaticInfo() 134 res = SingleTagValue( in initStaticInfo() [all …]
|
/hardware/interfaces/biometrics/common/config/ |
D | Config.cpp | 31 OptBool res; in parseBool() local 33 res.emplace(true); in parseBool() 35 res.emplace(false); in parseBool() 38 return res; in parseBool() 42 OptString res; in parseString() local 43 if (!value.empty()) res.emplace(value); in parseString() 44 return res; in parseString() 48 OptInt32 res; in parseInt32() local 52 res.emplace(val); in parseInt32() 57 return res; in parseInt32() [all …]
|
/hardware/google/camera/common/hal/utils/ |
D | multicam_realtime_process_block.cc | 145 status_t res = in ConfigureStreams() local 147 if (res != OK) { in ConfigureStreams() 149 strerror(-res), res); in ConfigureStreams() 150 return res; in ConfigureStreams() 159 res = device_session_hwl_->ConfigurePipeline( in ConfigureStreams() 161 if (res != OK) { in ConfigureStreams() 163 camera_id, strerror(-res), res); in ConfigureStreams() 164 return res; in ConfigureStreams() 197 status_t res = device_session_hwl_->GetConfiguredHalStream( in GetConfiguredHalStreams() local 199 if (res != OK) { in GetConfiguredHalStreams() [all …]
|
/hardware/google/graphics/common/libhwc2.1/libdisplayinterface/ |
D | ExynosDeviceInterface.cpp | 32 void ExynosDeviceInterface::printDppRestriction(struct hwc_dpp_ch_restriction res) in printDppRestriction() argument 35 ALOGD("id: %d", res.id); in printDppRestriction() 37 …ALOGD("src_f_w (%d, %d, %d)", res.restriction.src_f_w.min, res.restriction.src_f_w.max, res.restri… in printDppRestriction() 38 …ALOGD("src_f_h (%d, %d, %d)", res.restriction.src_f_h.min, res.restriction.src_f_h.max, res.restri… in printDppRestriction() 39 …ALOGD("src_w (%d, %d, %d)", res.restriction.src_w.min, res.restriction.src_w.max, res.restriction.… in printDppRestriction() 40 …ALOGD("src_h (%d, %d, %d)", res.restriction.src_h.min, res.restriction.src_h.max, res.restriction.… in printDppRestriction() 41 …ALOGD("src_x_align(%d), src_y_align(%d)", res.restriction.src_x_align, res.restriction.src_y_align… in printDppRestriction() 43 …ALOGD("dst_f_w (%d, %d, %d)", res.restriction.dst_f_w.min, res.restriction.dst_f_w.max, res.restri… in printDppRestriction() 44 …ALOGD("dst_f_h (%d, %d, %d)", res.restriction.dst_f_h.min, res.restriction.dst_f_h.max, res.restri… in printDppRestriction() 45 …ALOGD("dst_w (%d, %d, %d)", res.restriction.dst_w.min, res.restriction.dst_w.max, res.restriction.… in printDppRestriction() [all …]
|