/hardware/google/camera/common/hal/tests/ |
D | internal_stream_manager_tests.cc | 93 ASSERT_EQ(res, OK) << "Set ANDROID_SENSOR_TIMESTAMP failed"; in SetMetadata() 116 OK); in TEST() 119 OK); in TEST() 130 EXPECT_NE(stream_manager->AllocateBuffers(preview_hal_stream), OK) in TEST() 136 OK); in TEST() 137 EXPECT_EQ(stream_manager->AllocateBuffers(preview_hal_stream), OK); in TEST() 141 OK); in TEST() 142 EXPECT_EQ(stream_manager->AllocateBuffers(video_hal_stream), OK); in TEST() 144 EXPECT_NE(stream_manager->AllocateBuffers(preview_hal_stream), OK) in TEST() 148 EXPECT_NE(stream_manager->AllocateBuffers(preview_hal_stream), OK) in TEST() [all …]
|
D | stream_buffer_cache_manager_tests.cc | 57 return OK; in AllocateBufferFunc() 63 return OK; in AllocateBufferFunc() 68 return OK; in ReturnBufferFunc() 140 ASSERT_EQ(res, OK) << " RegisterStream failed!" << strerror(res); in TEST_F() 144 ASSERT_NE(res, OK) << " RegisterStream succeeded when registering the same " in TEST_F() 151 ASSERT_EQ(res, OK) << " RegisterStream another stream failed!" in TEST_F() 160 ASSERT_NE(res, OK) << " NotifyProviderReadiness succeeded without reigstering" in TEST_F() 164 ASSERT_EQ(res, OK) << " RegisterStream failed!" << strerror(res); in TEST_F() 168 ASSERT_EQ(res, OK) << " NotifyProviderReadiness failed!" << strerror(res); in TEST_F() 177 ASSERT_NE(res, OK) << " GetStreamBuffer should fail before stream is " in TEST_F() [all …]
|
D | pipeline_request_id_manager_tests.cc | 54 OK) in TEST() 62 OK) in TEST() 74 OK) in TEST() 83 OK) in TEST() 89 OK) in TEST() 95 OK) in TEST() 109 OK) in TEST() 117 OK) in TEST() 128 OK) in TEST() 134 OK) in TEST()
|
D | mock_device_hwl.h | 47 return OK; in GetResourceCost() 60 return OK; in GetCameraCharacteristics() 70 return OK; in GetSessionCharacteristics() 89 return OK; in GetPhysicalCameraCharacteristics() 93 return OK; in SetTorchMode() 102 return OK; in TurnOnTorchWithStrengthLevel() 107 return OK; in GetTorchStrengthLevel() 113 return OK; in ConstructDefaultRequestSettings() 124 return OK; in DumpState() 141 return OK; in CreateCameraDeviceSessionHwl()
|
D | hal_camera_metadata_tests.cc | 99 ASSERT_EQ(res, OK) << "Set int64 failed"; in SetGetMetadata() 103 ASSERT_EQ(res, OK) << "Get ANDROID_SENSOR_EXPOSURE_TIME failed"; in SetGetMetadata() 111 ASSERT_EQ(res, OK) << "Set int32 failed"; in SetGetMetadata() 114 ASSERT_EQ(res, OK) << "Get ANDROID_SENSOR_SENSITIVITY failed"; in SetGetMetadata() 122 ASSERT_EQ(res, OK) << "Set float failed"; in SetGetMetadata() 125 ASSERT_EQ(res, OK) << "Get ANDROID_LENS_FOCUS_DISTANCE failed"; in SetGetMetadata() 135 ASSERT_EQ(res, OK) << "Set rational failed"; in SetGetMetadata() 138 ASSERT_EQ(res, OK) << "Get ANDROID_CONTROL_AE_COMPENSATION_STEP failed"; in SetGetMetadata() 151 ASSERT_EQ(res, OK) << "Set uint8 failed"; in SetGetMetadata() 154 ASSERT_EQ(res, OK) << "Get ANDROID_CONTROL_AVAILABLE_SCENE_MODES failed"; in SetGetMetadata() [all …]
|
D | process_block_tests.cc | 109 ASSERT_EQ(block->ConfigureStreams(test_config_, test_config_), OK); in TEST_F() 128 block->SetResultProcessor(std::make_unique<MockResultProcessor>()), OK); in TEST_F() 150 ASSERT_EQ(block->ConfigureStreams(test_config_, test_config_), OK); in TEST_F() 151 ASSERT_EQ(session_hwl_->BuildPipelines(), OK); in TEST_F() 152 ASSERT_EQ(block->GetConfiguredHalStreams(&hal_streams), OK); in TEST_F() 164 ASSERT_EQ(block->Flush(), OK); in TEST_F() 165 ASSERT_EQ(block->ConfigureStreams(test_config_, test_config_), OK); in TEST_F() 166 ASSERT_EQ(block->Flush(), OK); in TEST_F() 191 ASSERT_EQ(block->ConfigureStreams(test_config_, test_config_), OK); in TEST_F() 193 ASSERT_EQ(session_hwl_->BuildPipelines(), OK); in TEST_F() [all …]
|
/hardware/interfaces/audio/common/7.0/example/ |
D | Effect.cpp | 37 return Result::OK; in init() 47 return Result::OK; in setConfig() 51 return Result::OK; in reset() 57 return Result::OK; in enable() 66 return Result::OK; in disable() 74 return Result::OK; in setDevice() 80 _hidl_cb(Result::OK, hidl_vec<uint32_t>{}); in setAndGetVolume() 86 return Result::OK; in volumeChangeNotification() 91 return Result::OK; in setAudioMode() 101 return Result::OK; in setConfigReverse() [all …]
|
D | EqualizerEffect.cpp | 50 _hidl_cb(Result::OK, kNumBands); in getNumBands() 55 _hidl_cb(Result::OK, std::numeric_limits<int16_t>::min(), std::numeric_limits<int16_t>::max()); in getLevelRange() 62 return Result::OK; in setBandLevel() 70 _hidl_cb(Result::OK, mProperties.bandLevels[band]); in getBandLevel() 80 _hidl_cb(Result::OK, 0); in getBandCenterFrequency() 87 _hidl_cb(Result::OK, 0, 1); in getBandFrequencyRange() 93 _hidl_cb(Result::OK, 0); in getBandForFrequency() 101 _hidl_cb(Result::OK, presetNames); in getPresetNames() 108 return Result::OK; in setCurrentPreset() 115 _hidl_cb(Result::OK, mProperties.curPreset); in getCurrentPreset() [all …]
|
/hardware/interfaces/biometrics/face/1.0/default/ |
D | BiometricsFace.cpp | 36 _hidl_cb({Status::OK, kDeviceId}); in setCallback() 46 return Status::OK; in setActiveUser() 52 _hidl_cb({Status::OK, dist(mRandom)}); in generateChallenge() 60 return Status::OK; in enroll() 64 return Status::OK; in revokeChallenge() 82 _hidl_cb({Status::OK, kAuthenticatorId}); in getAuthenticatorId() 88 return Status::OK; in cancel() 93 return Status::OK; in enumerate() 97 return Status::OK; in remove() 102 return Status::OK; in authenticate() [all …]
|
/hardware/google/camera/common/hal/google_camera_hal/ |
D | depth_process_block.cc | 60 if (res != OK) { in Create() 67 if (res != OK) { in Create() 99 if (res != OK) { in InitializeBufferManagementStatus() 108 if (res == OK && entry.count > 0) { in InitializeBufferManagementStatus() 117 return OK; in InitializeBufferManagementStatus() 154 return OK; in SetResultProcessor() 177 return OK; in GetStreamBufferSize() 195 return OK; in ConfigureStreams() 217 if (res != OK) { in ConfigureStreams() 234 if (res != OK) { in ConfigureStreams() [all …]
|
D | zsl_snapshot_capture_session.cc | 58 if (request.settings->Get(ANDROID_CONTROL_CAPTURE_INTENT, &entry) != OK || in IsSwDenoiseSnapshotCompatible() 65 if (request.settings->Get(ANDROID_NOISE_REDUCTION_MODE, &entry) != OK || in IsSwDenoiseSnapshotCompatible() 71 if (request.settings->Get(ANDROID_EDGE_MODE, &entry) != OK || in IsSwDenoiseSnapshotCompatible() 77 if (request.settings->Get(ANDROID_CONTROL_EFFECT_MODE, &entry) != OK || in IsSwDenoiseSnapshotCompatible() 83 if (request.settings->Get(ANDROID_TONEMAP_MODE, &entry) != OK || in IsSwDenoiseSnapshotCompatible() 206 if (res != OK) { in IsStreamConfigurationSupported() 213 if (res != OK || entry.data.u8[0] != 1) { in IsStreamConfigurationSupported() 290 if (res != OK) { in Create() 334 if (res != OK) { in BuildPipelines() 348 if (res != OK) { in BuildPipelines() [all …]
|
D | rgbird_capture_session.cc | 67 if (res != OK) { in IsStreamConfigurationSupported() 109 if (res != OK) { in Create() 177 if (res != OK) { in ConfigureStreams() 185 if (res != OK) { in ConfigureStreams() 191 return OK; in ConfigureStreams() 232 return OK; in SetDepthInternalStreamId() 240 if (res != OK) { in ConfigureHdrplusRawStreamId() 249 if (res == OK) { in ConfigureHdrplusRawStreamId() 275 return OK; in ConfigureHdrplusRawStreamId() 283 status_t res = OK; in AllocateInternalBuffers() [all …]
|
D | vendor_tags.cc | 32 return OK; in ModifyDefaultRequestSettings() 45 if (res != OK) { in ModifyCharacteristicsKeys() 55 if (res != OK) { in ModifyCharacteristicsKeys() 65 if (res == OK) { in ModifyCharacteristicsKeys() 74 if (res != OK) { in ModifyCharacteristicsKeys() 84 if (res == OK) { in ModifyCharacteristicsKeys() 117 request_keys.size()) != OK || in ModifyCharacteristicsKeys() 119 result_keys.size()) != OK || in ModifyCharacteristicsKeys() 121 session_keys.size()) != OK || in ModifyCharacteristicsKeys() 124 characteristics_keys.size()) != OK) { in ModifyCharacteristicsKeys() [all …]
|
D | rgbird_result_request_processor.cc | 86 if (res == OK) { in SaveFdForHdrplus() 104 if (res == OK) { in SaveLsForHdrplus() 126 return OK; in HandleLsResultForHdrplus() 131 if (res != OK) { in HandleLsResultForHdrplus() 137 return OK; in HandleLsResultForHdrplus() 178 if (res != OK) { in TryReturnInternalBufferForDepth() 202 return OK; in HandleFdResultForHdrplus() 207 if (res != OK) { in HandleFdResultForHdrplus() 213 return OK; in HandleFdResultForHdrplus() 251 return OK; in AddPendingRequests() [all …]
|
D | hdrplus_capture_session.cc | 59 if (res != OK) { in IsStreamConfigurationSupported() 99 if (res != OK) { in Create() 134 if (res != OK) { in ConfigureStreams() 179 if (res != OK) { in ConfigureStreams() 184 return OK; in ConfigureStreams() 203 if (res != OK) { in ConfigureHdrplusStreams() 235 if (res != OK) { in ConfigureHdrplusStreams() 241 return OK; in ConfigureHdrplusStreams() 255 if (res != OK) { in BuildPipelines() 262 if (res != OK) { in BuildPipelines() [all …]
|
D | dual_ir_capture_session.cc | 58 if (res != OK) { in IsStreamConfigurationSupported() 136 if (res != OK) { in Create() 204 if (res != OK) { in ConfigureStreams() 212 if (res != OK) { in ConfigureStreams() 218 return OK; in ConfigureStreams() 232 if (res != OK) { in ConnectProcessChain() 238 if (res != OK) { in ConnectProcessChain() 244 return OK; in ConnectProcessChain() 268 return OK; in PurgeHalConfiguredStream() 289 return OK; in MakeDepthChainSegmentStreamConfig() [all …]
|
D | camera_provider.cc | 58 if (res != OK) { in Create() 73 if (res != OK) { in Initialize() 81 if (res != OK) { in Initialize() 92 } else if (res != OK) { in Initialize() 101 if (res != OK) { in Initialize() 108 return OK; in Initialize() 114 if (res != OK) { in InitializeVendorTags() 123 if (res != OK) { in InitializeVendorTags() 129 return OK; in InitializeVendorTags() 168 return OK; in SetCallback() [all …]
|
D | rgbird_rt_request_processor.cc | 48 if (res != OK) { in Create() 57 if (res == OK) { in Create() 152 if (res != OK) { in FindSmallestNonWarpedYuvStreamResolution() 158 if (res != OK) { in FindSmallestNonWarpedYuvStreamResolution() 175 return OK; in FindSmallestNonWarpedYuvStreamResolution() 202 if (res != OK) { in FindSmallestResolutionForInternalYuvStream() 209 if (res != OK) { in FindSmallestResolutionForInternalYuvStream() 265 return OK; in FindSmallestResolutionForInternalYuvStream() 292 if (res != OK) { in SetNonWarpedYuvStreamId() 308 status_t result = OK; in CreateDepthInternalStreams() [all …]
|
/hardware/interfaces/nfc/1.0/vts/functional/ |
D | VtsHalNfcV1_0TargetTest.cpp | 108 EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_)); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 123 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in SetUp() 137 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in SetUp() 142 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 144 EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_)); in SetUp() 149 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 153 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in TearDown() 158 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TearDown() 195 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P() [all …]
|
/hardware/interfaces/nfc/1.1/vts/functional/ |
D | VtsHalNfcV1_1TargetTest.cpp | 97 EXPECT_EQ(NfcStatus::OK, nfc_->open_1_1(nfc_cb_)); in SetUp() 102 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 108 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 115 EXPECT_EQ(NfcStatus::OK, nfc_->open_1_1(nfc_cb_)); in SetUp() 120 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 124 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in TearDown() 129 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TearDown() 144 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in TEST_P() 149 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P() [all …]
|
/hardware/google/av/media/eco/tests/ |
D | EcoDataTest.cpp | 64 EXPECT_TRUE(data->findString(ENCODER_TYPE, &testValue) == ECODataStatus::OK); in TEST() 69 EXPECT_EQ(data->findString(ENCODER_TYPE, &testValue), ECODataStatus::OK); in TEST() 87 EXPECT_TRUE(data->findString(it->first, &testValue) == ECODataStatus::OK); in TEST() 96 EXPECT_TRUE(data->findString("encoder-name", nullptr) != ECODataStatus::OK); in TEST() 100 EXPECT_TRUE(data->findString("encoder-name", &testValue) != ECODataStatus::OK); in TEST() 103 EXPECT_TRUE(data->setString("", "avc") != ECODataStatus::OK); in TEST() 106 EXPECT_TRUE(data->findString("", &testValue) != ECODataStatus::OK); in TEST() 114 EXPECT_TRUE(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST() 119 EXPECT_EQ(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue), ECODataStatus::OK); in TEST() 137 EXPECT_TRUE(data->findInt32(it->first, &testValue) == ECODataStatus::OK); in TEST() [all …]
|
/hardware/google/camera/common/hal/utils/ |
D | stream_buffer_cache_manager.cc | 57 if (res != OK) { in StreamBufferCacheManager() 129 if (res != OK) { in RegisterStream() 133 return OK; in RegisterStream() 149 if (result != OK) { in GetStreamBuffer() 155 if (result != OK) { in GetStreamBuffer() 178 return OK; in GetStreamBuffer() 192 if (res != OK) { in NotifyProviderReadiness() 200 return OK; in NotifyProviderReadiness() 221 return OK; in NotifyFlushingAll() 236 if (res != OK) { in IsStreamActive() [all …]
|
D | hal_utils.cc | 58 return OK; in CreateHwlPipelineRequest() 81 if (res != OK) { in CreateHwlPipelineRequests() 90 return OK; in CreateHwlPipelineRequests() 171 if (res != OK || entry.count != 1) { in GetColorFilterArrangement() 178 return OK; in GetColorFilterArrangement() 184 if (res != OK) { in IsIrCamera() 196 if (res != OK) { in IsMonoCamera() 208 if (res != OK) { in IsBayerCamera() 233 if (res != OK || entry.count != 1) { in IsFixedFocusCamera() 249 if (request.settings->Get(ANDROID_CONTROL_CAPTURE_INTENT, &entry) != OK || in IsRequestHdrplusCompatible() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/component/ |
D | VtsHalMediaOmxV1_0TargetComponentTest.cpp | 85 ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in SetUp() 126 if (_s == android::hardware::media::omx::V1_0::Status::OK) in SetUp() 204 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 206 EXPECT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 221 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 232 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 238 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 240 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 242 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() 244 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_P() [all …]
|
/hardware/interfaces/oemlock/1.0/vts/functional/ |
D | VtsHalOemLockV1_0TargetTest.cpp | 55 EXPECT_EQ(status, OemLockStatus::OK); in TEST_P() 75 EXPECT_EQ(status, OemLockStatus::OK); in TEST_P() 94 ASSERT_EQ(status, OemLockStatus::OK); in TEST_P() 100 ASSERT_EQ(set_ret, OemLockStatus::OK); in TEST_P() 103 ASSERT_EQ(status, OemLockStatus::OK); in TEST_P() 109 ASSERT_EQ(restore_ret, OemLockStatus::OK); in TEST_P() 112 ASSERT_EQ(status, OemLockStatus::OK); in TEST_P() 132 EXPECT_EQ(status, OemLockStatus::OK); in TEST_P() 156 ASSERT_EQ(status, OemLockStatus::OK); in TEST_P() 170 ASSERT_EQ(status, OemLockStatus::OK); in TEST_P() [all …]
|