/hardware/interfaces/cas/1.2/default/ |
D | TypeConvert.cpp | 29 Status toStatus(status_t legacyStatus) { in toStatus() 30 Status status; in toStatus() 33 status = Status::OK; in toStatus() 36 status = Status::ERROR_CAS_NO_LICENSE; in toStatus() 39 status = Status::ERROR_CAS_LICENSE_EXPIRED; in toStatus() 42 status = Status::ERROR_CAS_SESSION_NOT_OPENED; in toStatus() 45 status = Status::ERROR_CAS_CANNOT_HANDLE; in toStatus() 48 status = Status::ERROR_CAS_INVALID_STATE; in toStatus() 51 status = Status::BAD_VALUE; in toStatus() 54 status = Status::ERROR_CAS_NOT_PROVISIONED; in toStatus() [all …]
|
/hardware/interfaces/drm/1.0/default/ |
D | TypeConvert.cpp | 26 Status toStatus(status_t legacyStatus) { in toStatus() 27 Status status; in toStatus() 30 status = Status::OK; in toStatus() 33 status = Status::ERROR_DRM_NO_LICENSE; in toStatus() 36 status = Status::ERROR_DRM_LICENSE_EXPIRED; in toStatus() 39 status = Status::ERROR_DRM_SESSION_NOT_OPENED; in toStatus() 42 status = Status::ERROR_DRM_CANNOT_HANDLE; in toStatus() 45 status = Status::ERROR_DRM_INVALID_STATE; in toStatus() 48 status = Status::BAD_VALUE; in toStatus() 51 status = Status::ERROR_DRM_NOT_PROVISIONED; in toStatus() [all …]
|
/hardware/google/pixel/usb/ |
D | UsbGadgetUtils.cpp | 81 Status setVidPid(const char *vid, const char *pid) { in setVidPid() 83 return Status::ERROR; in setVidPid() 86 return Status::ERROR; in setVidPid() 88 return Status::SUCCESS; in setVidPid() 115 Status resetGadget() { in resetGadget() 122 return Status::ERROR; in resetGadget() 125 return Status::ERROR; in resetGadget() 128 return Status::ERROR; in resetGadget() 131 return Status::ERROR; in resetGadget() 134 return Status::ERROR; in resetGadget() [all …]
|
/hardware/interfaces/cas/1.1/default/ |
D | TypeConvert.cpp | 29 Status toStatus(status_t legacyStatus) { in toStatus() 30 Status status; in toStatus() 33 status = Status::OK; in toStatus() 36 status = Status::ERROR_CAS_NO_LICENSE; in toStatus() 39 status = Status::ERROR_CAS_LICENSE_EXPIRED; in toStatus() 42 status = Status::ERROR_CAS_SESSION_NOT_OPENED; in toStatus() 45 status = Status::ERROR_CAS_CANNOT_HANDLE; in toStatus() 48 status = Status::ERROR_CAS_INVALID_STATE; in toStatus() 51 status = Status::BAD_VALUE; in toStatus() 54 status = Status::ERROR_CAS_NOT_PROVISIONED; in toStatus() [all …]
|
D | CasImpl.h | 34 using ::android::hardware::cas::V1_0::Status; 56 virtual Return<Status> setPrivateData(const HidlCasData& pvtData) override; 60 virtual Return<Status> closeSession(const HidlCasSessionId& sessionId) override; 62 virtual Return<Status> setSessionPrivateData(const HidlCasSessionId& sessionId, 65 virtual Return<Status> processEcm(const HidlCasSessionId& sessionId, 68 virtual Return<Status> processEmm(const HidlCasData& emm) override; 70 virtual Return<Status> sendEvent(int32_t event, int32_t arg, 73 virtual Return<Status> sendSessionEvent(const HidlCasSessionId& sessionId, int32_t event, 76 virtual Return<Status> provision(const hidl_string& provisionString) override; 78 virtual Return<Status> refreshEntitlements(int32_t refreshType, [all …]
|
/hardware/interfaces/cas/1.0/default/ |
D | TypeConvert.cpp | 29 Status toStatus(status_t legacyStatus) { in toStatus() 30 Status status; in toStatus() 33 status = Status::OK; in toStatus() 36 status = Status::ERROR_CAS_NO_LICENSE; in toStatus() 39 status = Status::ERROR_CAS_LICENSE_EXPIRED; in toStatus() 42 status = Status::ERROR_CAS_SESSION_NOT_OPENED; in toStatus() 45 status = Status::ERROR_CAS_CANNOT_HANDLE; in toStatus() 48 status = Status::ERROR_CAS_INVALID_STATE; in toStatus() 51 status = Status::BAD_VALUE; in toStatus() 54 status = Status::ERROR_CAS_NOT_PROVISIONED; in toStatus() [all …]
|
/hardware/interfaces/drm/1.1/vts/functional/ |
D | drm_hal_clearkey_test.cpp | 43 [&sessionId](Status status, const SessionId& id) { in openSession() 44 EXPECT_EQ(Status::OK, status); in openSession() 59 [&sessionId](Status status, const SessionId& id) { in openSession() 60 EXPECT_EQ(Status::OK, status); in openSession() 117 [&](Status status, const hidl_vec<uint8_t>& request, in loadKeys() 119 EXPECT_EQ(Status::OK, status); in loadKeys() 128 [&](Status status, const hidl_vec<uint8_t>& myKeySetId) { in loadKeys() 129 EXPECT_EQ(Status::OK, status); in loadKeys() 142 [&](Status status, const SessionId& /* id */) { in TEST_P() 143 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() [all …]
|
/hardware/interfaces/biometrics/face/1.0/vts/functional/ |
D | VtsHalBiometricsFaceV1_0TargetTest.cpp | 43 using android::hardware::biometrics::face::V1_0::Status; 137 ASSERT_EQ(Status::OK, res.status); in SetUp() 143 Return<Status> ret2 = mService->setActiveUser(kUserId, kFacedataDir); in SetUp() 144 ASSERT_EQ(Status::OK, static_cast<Status>(ret2)); in SetUp() 160 ASSERT_EQ(Status::OK, res.status); in TEST_P() 177 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_P() 178 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_P() 198 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_P() 199 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_P() 215 Return<Status> ret = mService->setFeature(Feature::REQUIRE_DIVERSITY, false, token, 0); in TEST_P() [all …]
|
/hardware/google/interfaces/light/1.1/default/ |
D | LightExt.cpp | 36 Return<Status> LightExt::applyHBM() { in applyHBM() 37 if (!mHasHbmNode) return Status::UNKNOWN; in applyHBM() 40 if (mRegHBM == mCurHBM && mRegHBMSV == mCurHBMSV) return Status::SUCCESS; in applyHBM() 70 return Status::UNKNOWN; in applyHBM() 79 return Status::SUCCESS; in applyHBM() 83 Return<Status> LightExt::setLight(Type type, const LightState& state) { in setLight() 93 Status status = mLight->setLight(type, state); in setLight() 103 Return<Status> LightExt::setHbm(bool on) { in setHbm() 107 if (mVRMode) return Status::UNKNOWN; in setHbm() 109 Status status = applyHBM(); in setHbm() [all …]
|
/hardware/interfaces/drm/1.0/vts/functional/ |
D | drm_hal_clearkey_test.cpp | 89 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 90 EXPECT_EQ(Status::OK, status); in TEST_P() 103 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 104 EXPECT_EQ(Status::OK, status); in TEST_P() 117 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 118 EXPECT_EQ(Status::OK, status); in TEST_P() 131 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 132 EXPECT_EQ(Status::OK, status); in TEST_P() 145 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 146 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() [all …]
|
D | drm_hal_vendor_test.cpp | 144 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 145 EXPECT_EQ(Status::OK, status); in TEST_P() 159 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 160 EXPECT_EQ(Status::OK, status); in TEST_P() 174 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 175 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() 189 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 190 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() 217 [&](Status status, const hidl_vec<uint8_t>& request, in TEST_P() 219 if (status == Status::OK) { in TEST_P() [all …]
|
/hardware/interfaces/vibrator/1.3/example/ |
D | Vibrator.cpp | 46 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on() 50 Return<Status> Vibrator::off() { in off() 58 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude() 60 return Status::BAD_VALUE; in setAmplitude() 64 return Status::OK; in setAmplitude() 91 Return<Status> Vibrator::setExternalControl(bool enabled) { in setExternalControl() 94 return Status::UNSUPPORTED_OPERATION; in setExternalControl() 99 return Status::OK; in setExternalControl() 112 Status status = Status::OK; in perform() 117 if (status != Status::OK) { in perform() [all …]
|
/hardware/interfaces/camera/device/3.2/default/ |
D | CameraDevice.cpp | 32 using ::android::hardware::camera::common::V1_0::Status; 60 Status CameraDevice::initStatus() const { in initStatus() 62 Status status = Status::OK; in initStatus() 64 status = Status::INTERNAL_ERROR; in initStatus() 66 status = Status::CAMERA_DISCONNECTED; in initStatus() 89 Status CameraDevice::getHidlStatus(int status) { in getHidlStatus() 91 case 0: return Status::OK; in getHidlStatus() 92 case -ENOSYS: return Status::OPERATION_NOT_SUPPORTED; in getHidlStatus() 93 case -EBUSY : return Status::CAMERA_IN_USE; in getHidlStatus() 94 case -EUSERS: return Status::MAX_CAMERAS_IN_USE; in getHidlStatus() [all …]
|
/hardware/google/interfaces/light/1.0/default/ |
D | LightExt.cpp | 29 Return<Status> LightExt::applyHBM(bool on) { in applyHBM() 30 if (!mHasHbmNode) return Status::UNKNOWN; in applyHBM() 33 if (mRegHBM == mCurHBM) return Status::SUCCESS; in applyHBM() 38 return Status::UNKNOWN; in applyHBM() 43 return Status::SUCCESS; in applyHBM() 47 Return<Status> LightExt::setLight(Type type, const LightState& state) { in setLight() 61 Return<Status> LightExt::setHbm(bool on) { in setHbm() 65 if (mVRMode) return Status::UNKNOWN; in setHbm() 67 Status status = applyHBM(mRegHBM); in setHbm()
|
/hardware/interfaces/light/2.0/vts/functional/ |
D | VtsHalLightV2_0TargetTest.cpp | 33 using ::android::hardware::light::V2_0::Status; 96 Return<Status> ret = light->setLight(type, kOff); in TearDown() 98 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TearDown() 105 Return<Status> ret = light->setLight(Type::BACKLIGHT, kWhite); in TearDown() 107 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TearDown() 117 Return<Status> ret = light->setLight(type, kWhite); in TEST_P() 119 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TEST_P() 128 Return<Status> ret = light->setLight(type, kLowPersistance); in TEST_P() 131 Status status = ret; in TEST_P() 132 EXPECT_TRUE(Status::SUCCESS == status || in TEST_P() [all …]
|
/hardware/interfaces/vibrator/1.0/default/ |
D | Vibrator.cpp | 37 Return<Status> Vibrator::on(uint32_t timeout_ms) { in on() 41 return Status::UNKNOWN_ERROR; in on() 43 return Status::OK; in on() 46 Return<Status> Vibrator::off() { in off() 50 return Status::UNKNOWN_ERROR; in off() 52 return Status::OK; in off() 59 Return<Status> Vibrator::setAmplitude(uint8_t) { in setAmplitude() 60 return Status::UNSUPPORTED_OPERATION; in setAmplitude() 64 _hidl_cb(Status::UNSUPPORTED_OPERATION, 0); in perform()
|
/hardware/interfaces/vibrator/1.0/vts/functional/ |
D | VtsHalVibratorV1_0TargetTest.cpp | 35 using ::android::hardware::vibrator::V1_0::Status; 52 static void validatePerformEffect(Status status, uint32_t lengthMs) { in validatePerformEffect() 53 ASSERT_TRUE(status == Status::OK || status == Status::UNSUPPORTED_OPERATION); in validatePerformEffect() 54 if (status == Status::OK) { in validatePerformEffect() 61 static void validatePerformEffectBadInput(Status status, uint32_t lengthMs) { in validatePerformEffectBadInput() 62 ASSERT_EQ(Status::UNSUPPORTED_OPERATION, status); in validatePerformEffectBadInput() 68 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_P() 70 EXPECT_EQ(Status::OK, vibrator->off()); in TEST_P() 116 EXPECT_EQ(Status::OK, vibrator->setAmplitude(1)); in TEST_P() 117 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_P() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/component/ |
D | VtsHalMediaOmxV1_0TargetComponentTest.cpp | 67 android::hardware::media::omx::V1_0::Status status; in SetUp() 74 [&](android::hardware::media::omx::V1_0::Status _s, in SetUp() 80 if (status == android::hardware::media::omx::V1_0::Status::NAME_NOT_FOUND) { in SetUp() 85 ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in SetUp() 123 [&](android::hardware::media::omx::V1_0::Status _s, in SetUp() 126 if (_s == android::hardware::media::omx::V1_0::Status::OK) in SetUp() 194 android::hardware::media::omx::V1_0::Status status; in TEST_P() 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() 219 android::hardware::media::omx::V1_0::Status status; in TEST_P() [all …]
|
/hardware/interfaces/vibrator/aidl/vts/ |
D | VtsHalVibratorTargetTest.cpp | 29 using android::binder::Status; 65 Status onComplete() override { in onComplete() 67 return Status::ok(); in onComplete() 109 EXPECT_EQ(Status::EX_UNSUPPORTED_OPERATION, vibrator->on(250, callback).exceptionCode()); in TEST_P() 123 Status status = vibrator->perform(effect, strength, nullptr /*callback*/, &lengthMs); in TEST_P() 130 EXPECT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION) in TEST_P() 154 Status status = vibrator->perform(effect, strength, callback, &lengthMs); in TEST_P() 160 EXPECT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_P() 179 Status status = vibrator->perform(effect, strength, callback, &lengthMs); in TEST_P() 180 EXPECT_EQ(Status::EX_UNSUPPORTED_OPERATION, status.exceptionCode()); in TEST_P() [all …]
|
/hardware/google/pixel/fastboot/ |
D | Fastboot.cpp | 42 _hidl_cb(FileSystemType::RAW, { Status::SUCCESS, "" }); in getPartitionType() 47 _hidl_cb("MSM USF", {Status::SUCCESS, "" }); in getVariant() 61 { Status::FAILURE_UNKNOWN, "Unable to read off-mode-charge state" }); in getOffModeChargeState() 63 _hidl_cb(off_mode_charge_status != 0, { Status::SUCCESS, "" }); in getOffModeChargeState() 72 _hidl_cb(kMinVoltageForFlashing, { Status::SUCCESS, "" }); in getBatteryVoltageFlashingThreshold() 78 return { Status::INVALID_ARGUMENT, "Brightness level unspecified" }; in SetBrightnessLevel() 84 return { Status::INVALID_ARGUMENT, "Brighness level must be between 0 and 100" }; in SetBrightnessLevel() 93 return { Status::SUCCESS, "" }; in SetBrightnessLevel() 96 return { Status::FAILURE_UNKNOWN, "Unable to set display brightness" }; in SetBrightnessLevel() 107 _hidl_cb({ Status::INVALID_ARGUMENT, "Invalid OEM command" }); in doOemCommand() [all …]
|
/hardware/interfaces/cas/1.0/vts/functional/ |
D | VtsHalCasV1_0TargetTest.cpp | 57 using android::hardware::cas::V1_0::Status; 196 EXPECT_EQ(Status::OK, returnStatus); in testEventEcho() 255 Status* descrambleStatus, 259 Status* descrambleStatus, 292 Status sessionStatus; in openCasSession() 293 auto returnVoid = mMediaCas->openSession([&](Status status, const hidl_vec<uint8_t>& id) { in openCasSession() 297 return ::testing::AssertionResult(returnVoid.isOk() && (Status::OK == sessionStatus)); in openCasSession() 301 const sp<IDescrambler>& descrambler, Status* descrambleStatus, sp<IMemory>* inMemory) { in descrambleTestInputBuffer() 348 [&](Status status, uint32_t bytesWritten, const hidl_string& detailedErr) { in descrambleTestInputBuffer() 353 if (!returnVoid.isOk() || *descrambleStatus != Status::OK) { in descrambleTestInputBuffer() [all …]
|
/hardware/interfaces/media/omx/1.0/ |
D | IGraphicBufferSource.hal | 32 configure(IOmxNode omxNode, Dataspace dataspace) generates (Status status); 34 setSuspend(bool suspend, int64_t timeUs) generates (Status status); 36 setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs) generates (Status status); 38 setMaxFps(float maxFps) generates (Status status); 40 setTimeLapseConfig(double fps, double captureFps) generates (Status status); 42 setStartTimeUs(int64_t startTimeUs) generates (Status status); 44 setStopTimeUs(int64_t stopTimeUs) generates (Status status); 46 getStopTimeOffsetUs() generates (Status status, int64_t stopTimeOffsetUs); 48 setColorAspects(ColorAspects aspects) generates (Status status); 50 setTimeOffsetUs(int64_t timeOffsetUs) generates (Status status); [all …]
|
/hardware/google/av/media/eco/tests/ |
D | FakeECOServiceInfoListener.cpp | 60 Status FakeECOServiceInfoListener::getType(int32_t* /*_aidl_return*/) { in getType() 61 return binder::Status::ok(); in getType() 64 Status FakeECOServiceInfoListener::getName(::android::String16* _aidl_return) { in getName() 66 return binder::Status::ok(); in getName() 69 Status FakeECOServiceInfoListener::getECOSession(sp<::android::IBinder>* _aidl_return) { in getECOSession() 71 return binder::Status::ok(); in getECOSession() 74 Status FakeECOServiceInfoListener::onNewInfo(const ::android::media::eco::ECOData& newInfo) { in onNewInfo() 77 return binder::Status::ok(); in onNewInfo()
|
/hardware/interfaces/drm/1.2/vts/functional/ |
D | drm_hal_test.cpp | 28 using ::android::hardware::drm::V1_0::Status; 150 template <Status S, size_t N> 151 void checkKeySetIds(Status status, const hidl_vec<KeySetId>& keySetIds) { in checkKeySetIds() 153 if (S == Status::OK) { in checkKeySetIds() 158 template <Status S, OfflineLicenseState T> 159 void checkKeySetIdState(Status status, OfflineLicenseState state) { in checkKeySetIdState() 160 if (S == Status::OK) { in checkKeySetIdState() 177 [&](Status status, const hidl_vec<KeySetId>& keySetIds) { in TEST_P() 179 EXPECT_EQ(Status::OK, status); in TEST_P() 190 Status err = drmPlugin->removeOfflineLicense(keySetId); in TEST_P() [all …]
|
/hardware/interfaces/camera/device/1.0/default/ |
D | CameraDevice.cpp | 42 Status CameraDevice::getHidlStatus(const int& status) { in getHidlStatus() 44 case 0: return Status::OK; in getHidlStatus() 45 case -ENOSYS: return Status::OPERATION_NOT_SUPPORTED; in getHidlStatus() 46 case -EBUSY : return Status::CAMERA_IN_USE; in getHidlStatus() 47 case -EUSERS: return Status::MAX_CAMERAS_IN_USE; in getHidlStatus() 48 case -ENODEV: return Status::INTERNAL_ERROR; in getHidlStatus() 49 case -EINVAL: return Status::ILLEGAL_ARGUMENT; in getHidlStatus() 52 return Status::INTERNAL_ERROR; in getHidlStatus() 56 status_t CameraDevice::getStatusT(const Status& s) { in getStatusT() 58 case Status::OK: in getStatusT() [all …]
|