/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/interfaces/biometrics/face/1.0/vts/functional/ |
D | VtsHalBiometricsFaceV1_0TargetTest.cpp | 42 using android::hardware::biometrics::face::V1_0::Status; 142 ASSERT_EQ(Status::OK, res.status); in SetUp() 148 Return<Status> ret2 = mService->setActiveUser(kUserId, kFacedataDir); in SetUp() 149 ASSERT_EQ(Status::OK, static_cast<Status>(ret2)); in SetUp() 165 ASSERT_EQ(Status::OK, res.status); in TEST_F() 182 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_F() 183 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_F() 202 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_F() 203 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_F() 218 Return<Status> ret = mService->setFeature(Feature::REQUIRE_DIVERSITY, false, token, 0); in TEST_F() [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 …]
|
D | CasImpl.h | 55 virtual Return<Status> setPrivateData( 61 virtual Return<Status> closeSession( 64 virtual Return<Status> setSessionPrivateData( 68 virtual Return<Status> processEcm( 72 virtual Return<Status> processEmm( 75 virtual Return<Status> sendEvent( 79 virtual Return<Status> provision( 82 virtual Return<Status> refreshEntitlements( 86 virtual Return<Status> release() override;
|
/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/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/interfaces/drm/1.0/vts/functional/ |
D | drm_hal_clearkey_test.cpp | 51 using ::android::hardware::drm::V1_0::Status; 175 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_F() 176 EXPECT_EQ(Status::OK, status); in TEST_F() 189 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_F() 190 EXPECT_EQ(Status::OK, status); in TEST_F() 203 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_F() 204 EXPECT_EQ(Status::OK, status); in TEST_F() 217 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_F() 218 EXPECT_EQ(Status::OK, status); in TEST_F() 231 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_F() [all …]
|
D | drm_hal_vendor_test.cpp | 58 using ::android::hardware::drm::V1_0::Status; 261 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 262 EXPECT_EQ(Status::OK, status); in TEST_P() 276 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 277 EXPECT_EQ(Status::OK, status); in TEST_P() 291 [&](Status status, const sp<IDrmPlugin>& plugin) { in TEST_P() 292 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() 306 [&](Status status, const sp<ICryptoPlugin>& plugin) { in TEST_P() 307 EXPECT_EQ(Status::ERROR_DRM_CANNOT_HANDLE, status); in TEST_P() 324 [this](Status status, const sp<IDrmPlugin>& plugin) { in SetUp() [all …]
|
/hardware/interfaces/drm/1.1/vts/functional/ |
D | drm_hal_clearkey_test.cpp | 53 using ::android::hardware::drm::V1_0::Status; 180 [&](Status status, const sp<drm::V1_0::IDrmPlugin>& pluginV1_0) { in createDrmPlugin() 181 EXPECT_EQ(Status::OK, status); in createDrmPlugin() 199 [&](Status status, const sp<drm::V1_0::ICryptoPlugin>& pluginV1_0) { in createCryptoPlugin() 200 EXPECT_EQ(Status::OK, status); in createCryptoPlugin() 277 [&sessionId](Status status, const SessionId& id) { in openSession() 278 EXPECT_EQ(Status::OK, status); in openSession() 293 [&sessionId](Status status, const SessionId& id) { in openSession() 294 EXPECT_EQ(Status::OK, status); in openSession() 351 [&](Status status, const hidl_vec<uint8_t>& request, in loadKeys() [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 | 31 using ::android::hardware::light::V2_0::Status; 109 Return<Status> ret = light->setLight(type, kOff); in TearDown() 111 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TearDown() 118 Return<Status> ret = light->setLight(Type::BACKLIGHT, kWhite); in TearDown() 120 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TearDown() 131 Return<Status> ret = light->setLight(type, kWhite); in TEST_F() 133 EXPECT_EQ(Status::SUCCESS, static_cast<Status>(ret)); in TEST_F() 142 Return<Status> ret = light->setLight(type, kLowPersistance); in TEST_F() 145 Status status = ret; in TEST_F() 146 EXPECT_TRUE(Status::SUCCESS == status || in TEST_F() [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/media/omx/1.0/vts/functional/component/ |
D | VtsHalMediaOmxV1_0TargetComponentTest.cpp | 68 android::hardware::media::omx::V1_0::Status status; in SetUp() 77 [&](android::hardware::media::omx::V1_0::Status _s, in SetUp() 83 if (status == android::hardware::media::omx::V1_0::Status::NAME_NOT_FOUND) { in SetUp() 88 ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in SetUp() 129 [&](android::hardware::media::omx::V1_0::Status _s, in SetUp() 132 if (_s == android::hardware::media::omx::V1_0::Status::OK) in SetUp() 197 android::hardware::media::omx::V1_0::Status status; in TEST_F() 207 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 209 EXPECT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); in TEST_F() 222 android::hardware::media::omx::V1_0::Status status; in TEST_F() [all …]
|
/hardware/interfaces/vibrator/1.0/vts/functional/ |
D | VtsHalVibratorV1_0TargetTest.cpp | 34 using ::android::hardware::vibrator::V1_0::Status; 67 static void validatePerformEffect(Status status, uint32_t lengthMs) { in validatePerformEffect() 68 ASSERT_TRUE(status == Status::OK || status == Status::UNSUPPORTED_OPERATION); in validatePerformEffect() 69 if (status == Status::OK) { in validatePerformEffect() 76 static void validatePerformEffectBadInput(Status status, uint32_t lengthMs) { in validatePerformEffectBadInput() 77 ASSERT_EQ(Status::UNSUPPORTED_OPERATION, status); in validatePerformEffectBadInput() 83 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_F() 85 EXPECT_EQ(Status::OK, vibrator->off()); in TEST_F() 131 EXPECT_EQ(Status::OK, vibrator->setAmplitude(1)); in TEST_F() 132 EXPECT_EQ(Status::OK, vibrator->on(2000)); in TEST_F() [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 | 26 using ::android::hardware::drm::V1_0::Status; 124 response, [&](Status status, const hidl_vec<uint8_t>&, in TEST_P() 126 EXPECT_EQ(Status::OK, status); in TEST_P() 166 template <Status S, size_t N> 167 void checkKeySetIds(Status status, const hidl_vec<KeySetId>& keySetIds) { in checkKeySetIds() 169 if (S == Status::OK) { in checkKeySetIds() 174 template <Status S, OfflineLicenseState T> 175 void checkKeySetIdState(Status status, OfflineLicenseState state) { in checkKeySetIdState() 176 if (S == Status::OK) { in checkKeySetIdState() 193 [&](Status status, const hidl_vec<KeySetId>& keySetIds) { in TEST_P() [all …]
|
/hardware/interfaces/camera/device/1.0/default/ |
D | CameraDevice.cpp | 39 Status CameraDevice::getHidlStatus(const int& status) { in getHidlStatus() 41 case 0: return Status::OK; in getHidlStatus() 42 case -ENOSYS: return Status::OPERATION_NOT_SUPPORTED; in getHidlStatus() 43 case -EBUSY : return Status::CAMERA_IN_USE; in getHidlStatus() 44 case -EUSERS: return Status::MAX_CAMERAS_IN_USE; in getHidlStatus() 45 case -ENODEV: return Status::INTERNAL_ERROR; in getHidlStatus() 46 case -EINVAL: return Status::ILLEGAL_ARGUMENT; in getHidlStatus() 49 return Status::INTERNAL_ERROR; in getHidlStatus() 53 status_t CameraDevice::getStatusT(const Status& s) { in getStatusT() 55 case Status::OK: in getStatusT() [all …]
|
/hardware/google/pixel/atrace/ |
D | AtraceDevice.cpp | 28 using ::android::hardware::atrace::V1_0::Status; 78 Return<::android::hardware::atrace::V1_0::Status> AtraceDevice::enableCategories( in enableCategories() 81 return Status::ERROR_INVALID_ARGUMENT; in enableCategories() 91 return Status::ERROR_TRACING_POINT; in enableCategories() 96 return Status::ERROR_INVALID_ARGUMENT; in enableCategories() 99 return Status::SUCCESS; in enableCategories() 102 Return<::android::hardware::atrace::V1_0::Status> AtraceDevice::disableAllCategories() { in disableAllCategories() 103 auto ret = Status::SUCCESS; in disableAllCategories() 109 ret = Status::ERROR_TRACING_POINT; in disableAllCategories()
|
/hardware/interfaces/atrace/1.0/default/ |
D | AtraceDevice.cpp | 28 using ::android::hardware::atrace::V1_0::Status; 68 Return<::android::hardware::atrace::V1_0::Status> AtraceDevice::enableCategories( in enableCategories() 71 return Status::ERROR_INVALID_ARGUMENT; in enableCategories() 81 return Status::ERROR_TRACING_POINT; in enableCategories() 86 return Status::ERROR_INVALID_ARGUMENT; in enableCategories() 89 return Status::SUCCESS; in enableCategories() 92 Return<::android::hardware::atrace::V1_0::Status> AtraceDevice::disableAllCategories() { in disableAllCategories() 93 auto ret = Status::SUCCESS; in disableAllCategories() 99 ret = Status::ERROR_TRACING_POINT; in disableAllCategories()
|