/hardware/interfaces/nfc/1.0/vts/functional/ |
D | VtsHalNfcV1_0TargetTest.cpp | 106 EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_)); in SetUp() 111 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 121 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in SetUp() 135 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in SetUp() 140 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 142 EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_)); in SetUp() 147 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 151 EXPECT_EQ(NfcStatus::OK, nfc_->close()); in TearDown() 156 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TearDown() 202 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_F() [all …]
|
/hardware/interfaces/oemlock/1.0/vts/functional/ |
D | VtsHalOemLockV1_0TargetTest.cpp | 55 EXPECT_EQ(status, OemLockStatus::OK); in TEST_F() 75 EXPECT_EQ(status, OemLockStatus::OK); in TEST_F() 94 ASSERT_EQ(status, OemLockStatus::OK); in TEST_F() 100 ASSERT_EQ(set_ret, OemLockStatus::OK); in TEST_F() 103 ASSERT_EQ(status, OemLockStatus::OK); in TEST_F() 109 ASSERT_EQ(restore_ret, OemLockStatus::OK); in TEST_F() 112 ASSERT_EQ(status, OemLockStatus::OK); in TEST_F() 132 EXPECT_EQ(status, OemLockStatus::OK); in TEST_F() 156 ASSERT_EQ(status, OemLockStatus::OK); in TEST_F() 170 ASSERT_EQ(status, OemLockStatus::OK); in TEST_F() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/component/ |
D | VtsHalMediaOmxV1_0TargetComponentTest.cpp | 152 ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in SetUp() 257 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 259 EXPECT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 274 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 285 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 291 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 293 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 295 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 297 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 308 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() [all …]
|
/hardware/interfaces/audio/effect/2.0/vts/functional/ |
D | VtsHalAudioEffectV2_0TargetTest.cpp | 91 EXPECT_EQ(Result::OK, retval); in TEST_F() 101 if (r == Result::OK && result.size() > 0) { in TEST_F() 114 if (r == Result::OK) { in TEST_F() 119 EXPECT_EQ(Result::OK, retval); in TEST_F() 130 if (r == Result::OK) { in TEST_F() 139 EXPECT_EQ(r, Result::OK); in TEST_F() 176 ASSERT_EQ(Result::OK, ret); in SetUp() 205 if (r == Result::OK) { in findAndCreateEffect() 216 if (r == Result::OK) { in findEffectInstance() 235 if (r == Result::OK) { in getChannelCount() [all …]
|
/hardware/interfaces/vibrator/1.0/vts/functional/ |
D | VtsHalVibratorV1_0TargetTest.cpp | 56 ASSERT_TRUE(status == Status::OK || status == Status::UNSUPPORTED_OPERATION); in validatePerformEffect() 57 if (status == Status::OK) { in validatePerformEffect() 65 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_F() 67 EXPECT_EQ(Status::OK, vibrator->off()); in TEST_F() 77 EXPECT_EQ(Status::OK, vibrator->setAmplitude(1)); in TEST_F() 78 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_F() 79 EXPECT_EQ(Status::OK, vibrator->setAmplitude(128)); in TEST_F() 81 EXPECT_EQ(Status::OK, vibrator->setAmplitude(255)); in TEST_F()
|
/hardware/interfaces/camera/common/1.0/default/ |
D | CameraMetadata.cpp | 95 return OK; in unlock() 127 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != OK, in acquire() 187 return OK; in checkType() 197 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update() 210 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update() 223 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) { in update() 236 if ( (res = checkType(tag, TYPE_INT64)) != OK) { in update() 249 if ( (res = checkType(tag, TYPE_DOUBLE)) != OK) { in update() 262 if ( (res = checkType(tag, TYPE_RATIONAL)) != OK) { in update() 275 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update() [all …]
|
/hardware/interfaces/broadcastradio/1.0/vts/functional/ |
D | VtsHalBroadcastradioV1_0TargetTest.cpp | 86 ASSERT_EQ(connectResult, Result::OK); in SetUp() 201 : mCallbackCalled(false), mBoolCallbackData(false), mResultCallbackData(Result::OK), in BroadcastRadioHidlTest() 302 if (result == Result::OK) { in getProperties() 308 EXPECT_EQ(Result::OK, halResult); in getProperties() 315 if (hidlReturn.isOk() && halResult == Result::OK) { in getProperties() 331 if (result == Result::OK) { in openTuner() 337 EXPECT_EQ(Result::OK, halResult); in openTuner() 355 if (result == Result::OK) { in checkAntenna() 360 return ((halResult == Result::OK) && (halConfig.antennaConnected == true)); in checkAntenna() 433 if (halResult == Result::OK) { in TEST_P() [all …]
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 478 if (error != ErrorCode::OK) { in GenerateKey() 504 if (error != ErrorCode::OK) { in ImportKey() 529 if (error != ErrorCode::OK) { in ExportKey() 558 EXPECT_TRUE(rc == ErrorCode::OK || rc == ErrorCode::UNIMPLEMENTED); in CheckedDeleteKey() 597 if (error != ErrorCode::OK) { in Begin() 672 if (error != ErrorCode::OK) { in Finish() 685 if (error != ErrorCode::OK) { in Finish() 702 EXPECT_EQ(ErrorCode::OK, Abort(op_handle_)); in AbortIfNeeded() 734 EXPECT_EQ(ErrorCode::OK, in ProcessMessage() 741 EXPECT_EQ(ErrorCode::OK, in ProcessMessage() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/video/ |
D | media_video_hidl_test_common.cpp | 66 if (status != ::android::hardware::media::omx::V1_0::Status::OK) break; in enumerateProfileAndLevel() 87 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupRAWPort() 99 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupRAWPort() 110 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupAVCPort() 125 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupAVCPort() 136 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupHEVCPort() 146 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupHEVCPort() 157 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupMPEG4Port() 174 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupMPEG4Port() 185 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupH263Port() [all …]
|
D | VtsHalMediaOmxV1_0TargetVideoDecTest.cpp | 169 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in SetUp() 375 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in getInputChannelInfo() 376 if (status == ::android::hardware::media::omx::V1_0::Status::OK) { in getInputChannelInfo() 468 ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 481 android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 486 android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 510 android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 524 android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 535 ::android::hardware::media::omx::V1_0::Status::OK); in portReconfiguration() 579 if (status == android::hardware::media::omx::V1_0::Status::OK) { in waitOnInputConsumption() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/audio/ |
D | media_audio_hidl_test_common.cpp | 63 if (status != ::android::hardware::media::omx::V1_0::Status::OK) break; in enumerateProfile() 81 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupPCMPort() 101 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupPCMPort() 110 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupMP3Port() 119 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupMP3Port() 127 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupFLACPort() 132 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupFLACPort() 142 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupOPUSPort() 149 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupOPUSPort() 180 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupAMRPort() [all …]
|
/hardware/interfaces/cas/1.0/vts/functional/ |
D | VtsHalCasV1_0TargetTest.cpp | 194 EXPECT_EQ(Status::OK, returnStatus); in testEventEcho() 268 return ::testing::AssertionResult(returnVoid.isOk() && (Status::OK == sessionStatus)); in openCasSession() 328 if (!returnVoid.isOk() || *descrambleStatus != Status::OK) { in descrambleTestInputBuffer() 403 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 409 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 415 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 421 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 425 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 429 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() 435 EXPECT_EQ(Status::OK, returnStatus); in TEST_F() [all …]
|
/hardware/interfaces/audio/2.0/default/ |
D | service.cpp | 34 using android::OK; 40 LOG_ALWAYS_FATAL_IF(status != OK, "Error while registering audio service: %d", status); in main() 42 LOG_ALWAYS_FATAL_IF(status != OK, "Error while registering audio effects service: %d", status); in main() 45 ALOGE_IF(status != OK, "Error while registering soundtrigger service: %d", status); in main()
|
D | ParametersUtil.cpp | 28 case OK: in getHalStatusToResult() 29 return Result::OK; in getHalStatusToResult() 46 if (retval == Result::OK) { in getParam() 82 ? Result::OK in getParametersImpl() 89 if (status != OK) { in getParametersImpl() 144 if (halStatus == OK) in setParams() 145 return Result::OK; in setParams()
|
/hardware/interfaces/weaver/1.0/vts/functional/ |
D | VtsHalWeaverV1_0TargetTest.cpp | 62 ASSERT_EQ(status, WeaverStatus::OK); in TEST_F() 85 ASSERT_EQ(status, WeaverStatus::OK); in TEST_F() 95 ASSERT_EQ(status, WeaverStatus::OK); in TEST_F() 111 ASSERT_EQ(status, WeaverStatus::OK); in TEST_F() 116 ASSERT_EQ(writeRet, WeaverStatus::OK); in TEST_F() 127 ASSERT_EQ(ret, WeaverStatus::OK); in TEST_F() 141 ASSERT_EQ(status, WeaverReadStatus::OK); in TEST_F() 155 ASSERT_EQ(initialWriteRet, WeaverStatus::OK); in TEST_F() 159 ASSERT_EQ(overwriteRet, WeaverStatus::OK); in TEST_F() 173 ASSERT_EQ(status, WeaverReadStatus::OK); in TEST_F() [all …]
|
/hardware/interfaces/broadcastradio/1.1/vts/functional/ |
D | VtsHalBroadcastradioV1_1TargetTest.cpp | 151 if (ret == Result::OK) mRadioModule = IBroadcastRadio::castFrom(radio); in SetUp() 161 ASSERT_EQ(connectResult, Result::OK); in SetUp() 191 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _); in openTuner() 197 if (result != Result::OK) return; in openTuner() 204 EXPECT_EQ(Result::OK, halResult); in openTuner() 215 EXPECT_EQ(Result::OK, halResult); in openTuner() 247 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _) in nextBand() 250 EXPECT_EQ(Result::OK, hidlResult); in nextBand() 264 if (result != ProgramListResult::OK) return; in getProgramList() 270 EXPECT_TIMEOUT_CALL(*mCallback, backgroundScanComplete, ProgramListResult::OK) in getProgramList() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VehicleHalManager_test.cpp | 55 *outStatus = StatusCode::OK; in get() 89 if (*outStatus == StatusCode::OK && pValue.get() != nullptr) { in get() 105 return StatusCode::OK; in set() 111 return StatusCode::OK; in subscribe() 115 return StatusCode::OK; in unsubscribe() 203 ASSERT_EQ(StatusCode::OK, status); in TEST_F() 214 ASSERT_EQ(StatusCode::OK, status); in TEST_F() 252 ASSERT_EQ(StatusCode::OK, res); in TEST_F() 270 ASSERT_EQ(StatusCode::OK, res); in TEST_F() 319 ASSERT_EQ(StatusCode::OK, res); in TEST_F() [all …]
|
/hardware/interfaces/audio/effect/2.0/default/ |
D | EffectsFactory.cpp | 88 Result retval(Result::OK); in getAllDescriptors() 96 if (status != OK) { in getAllDescriptors() 105 if (status == OK) { in getAllDescriptors() 140 Result retval(Result::OK); in getDescriptor() 141 if (status != OK) { in getDescriptor() 159 Result retval(Result::OK); in createEffect() 163 if (status == OK) { in createEffect() 167 if (status == OK) { in createEffect() 176 if (status != OK) { in createEffect()
|
/hardware/interfaces/broadcastradio/1.1/default/ |
D | Tuner.cpp | 93 mCallback->configChange(Result::OK, mAmfmConfig); in setConfiguration() 97 return Result::OK; in setConfiguration() 105 _hidl_cb(Result::OK, mAmfmConfig); in getConfiguration() 144 mCallback->tuneComplete(Result::OK, mCurrentProgramInfo.base); in tuneInternalLocked() 146 mCallback1_1->tuneComplete_1_1(Result::OK, mCurrentProgramInfo.selector); in tuneInternalLocked() 171 return Result::OK; in scan() 203 return Result::OK; in scan() 244 return Result::OK; in step() 291 return Result::OK; in tuneByProgramSelector() 300 return Result::OK; in cancel() [all …]
|
/hardware/interfaces/nfc/1.0/default/ |
D | Nfc.cpp | 30 return ret == 0 ? NfcStatus::OK : NfcStatus::FAILED; in open() 47 return ret == 0 ? NfcStatus::OK : NfcStatus::FAILED; in coreInitialized() 54 return mDevice->pre_discover(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in prediscover() 62 return mDevice->close(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in close() 69 return mDevice->control_granted(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in controlGranted() 76 return mDevice->power_cycle(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in powerCycle()
|
/hardware/interfaces/sensors/1.0/default/ |
D | Sensors.cpp | 43 case OK: in ResultFromStatus() 44 return Result::OK; in ResultFromStatus() 60 status_t err = OK; in Sensors() 72 if (err != OK) { in Sensors() 85 if (err != OK) { in Sensors() 109 mInitCheck = OK; in Sensors() 229 _hidl_cb(Result::OK, out, dynamicSensorsAdded); in poll() 285 _hidl_cb(Result::OK, channelHandle); in registerDirectChannel() 299 return Result::OK; in unregisterDirectChannel() 326 _hidl_cb(err > 0 ? Result::OK : ResultFromStatus(err), err); in configDirectReport() [all …]
|
/hardware/interfaces/camera/device/3.2/default/ |
D | CameraDevice.cpp | 60 Status status = Status::OK; in initStatus() 89 case 0: return Status::OK; in getHidlStatus() 105 if (status == Status::OK) { in getResourceCost() 113 if (ret == OK) { in getResourceCost() 128 if (status == Status::OK) { in getResourceCost() 145 if (status == Status::OK) { in getCameraCharacteristics() 149 if (ret == OK) { in getCameraCharacteristics() 166 if (status == Status::OK) { in setTorchMode() 184 if (status != Status::OK) { in open() 212 if (res != OK) { in open() [all …]
|
/hardware/libhardware/tests/input/evdev/ |
D | InputHub_test.cpp | 87 auto f = delay_async(100ms, [&]() { EXPECT_EQ(OK, mInputHub->wake()); }); in TEST_F() 90 EXPECT_EQ(OK, mInputHub->poll()); in TEST_F() 105 ASSERT_EQ(OK, mInputHub->registerDevicePath(tempDir->getName())); in TEST_F() 117 EXPECT_EQ(OK, mInputHub->poll()); in TEST_F() 144 ASSERT_EQ(OK, mInputHub->registerDevicePath(tempDir->getName())); in TEST_F() 151 EXPECT_EQ(OK, mInputHub->poll()); in TEST_F() 191 ASSERT_EQ(OK, mInputHub->registerDevicePath(tempDir->getName())); in TEST_F() 194 EXPECT_EQ(OK, mInputHub->poll()); in TEST_F() 227 ASSERT_EQ(OK, mInputHub->registerDevicePath(tempDir->getName())); in TEST_F() 248 EXPECT_EQ(OK, mInputHub->poll()); in TEST_F()
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata.cpp | 60 if (res != android::OK) { in FillStaticMetadata() 85 if (res != android::OK) { in FillStaticMetadata() 92 if (res != android::OK) { in FillStaticMetadata() 99 if (res != android::OK) { in FillStaticMetadata() 153 if (res != android::OK) { in GetRequestTemplate() 200 if (res != android::OK) { in FillResultMetadata()
|
/hardware/interfaces/camera/provider/2.4/vts/functional/ |
D | VtsHalCameraProviderV2_4TargetTest.cpp | 218 case ::android::OK: in mapToStatus() 219 return Status::OK ; in mapToStatus() 267 ASSERT_EQ(android::OK, consumer->acquireBuffer(&buffer, 0)); in onFrameAvailable() 268 ASSERT_EQ(android::OK, consumer->releaseBuffer(buffer)); in onFrameAvailable() 384 if (rc == ::android::OK) { in dequeueBuffer() 435 if (rc == ::android::OK) { in setBufferCount() 445 if (rc == ::android::OK) { in setBuffersGeometry() 450 if (rc == ::android::OK) { in setBuffersGeometry() 462 if (rc == ::android::OK) { in setCrop() 470 if (rc == ::android::OK) { in setUsage() [all …]
|