/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/biometrics/face/1.0/default/ |
D | BiometricsFace.cpp | 36 _hidl_cb({Status::OK, kDeviceId}); in setCallback() 40 Return<Status> BiometricsFace::setActiveUser(int32_t userId, const hidl_string& storePath) { in setActiveUser() 42 return Status::ILLEGAL_ARGUMENT; in setActiveUser() 46 return Status::OK; in setActiveUser() 52 _hidl_cb({Status::OK, dist(mRandom)}); in generateChallenge() 56 Return<Status> BiometricsFace::enroll(const hidl_vec<uint8_t>& /* hat */, uint32_t /* timeoutSec */, in enroll() 60 return Status::OK; in enroll() 63 Return<Status> BiometricsFace::revokeChallenge() { in revokeChallenge() 64 return Status::OK; in revokeChallenge() 67 Return<Status> BiometricsFace::setFeature(Feature /* feature */, bool /* enabled */, in setFeature() [all …]
|
D | BiometricsFace.h | 35 using ::android::hardware::biometrics::face::V1_0::Status; 45 Return<Status> setActiveUser(int32_t userId, const hidl_string& storePath) override; 50 Return<Status> enroll(const hidl_vec<uint8_t>& hat, uint32_t timeoutSec, 53 Return<Status> revokeChallenge() override; 55 Return<Status> setFeature(Feature feature, bool enabled, const hidl_vec<uint8_t>& hat, 62 Return<Status> cancel() override; 64 Return<Status> enumerate() override; 66 Return<Status> remove(uint32_t faceId) override; 68 Return<Status> authenticate(uint64_t operationId) override; 70 Return<Status> userActivity() override; [all …]
|
/hardware/interfaces/usb/gadget/1.2/default/lib/ |
D | UsbGadgetUtils.cpp | 77 Status setVidPid(const char* vid, const char* pid) { in setVidPid() 78 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid() 80 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid() 82 return Status::SUCCESS; in setVidPid() 108 Status resetGadget() { in resetGadget() 113 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in resetGadget() 115 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in resetGadget() 117 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in resetGadget() 119 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in resetGadget() 121 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in resetGadget() [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/usb/gadget/1.1/default/lib/ |
D | UsbGadgetUtils.cpp | 77 Status setVidPid(const char* vid, const char* pid) { in setVidPid() 78 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid() 80 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid() 82 return Status::SUCCESS; in setVidPid() 108 Status resetGadget() { in resetGadget() 113 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in resetGadget() 115 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in resetGadget() 117 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in resetGadget() 119 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in resetGadget() 121 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in resetGadget() [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 | 44 using android::hardware::biometrics::face::V1_0::Status; 138 ASSERT_EQ(Status::OK, res.status); in SetUp() 144 Return<Status> ret2 = mService->setActiveUser(kUserId, kFacedataDir); in SetUp() 145 ASSERT_EQ(Status::OK, static_cast<Status>(ret2)); in SetUp() 164 ASSERT_EQ(Status::OK, res.status); in TEST_P() 181 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_P() 182 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_P() 202 Return<Status> ret = mService->enroll(token, kTimeoutSec, {}); in TEST_P() 203 ASSERT_EQ(Status::OK, static_cast<Status>(ret)); in TEST_P() 219 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/usb/gadget/1.1/default/ |
D | UsbGadget.cpp | 50 mCurrentUsbFunctions, mCurrentUsbFunctionsApplied ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions() 51 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions() 57 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget() 58 if (resetGadget() != V1_0::Status::SUCCESS) return V1_0::Status::ERROR; in tearDownGadget() 65 return V1_0::Status::SUCCESS; in tearDownGadget() 68 Return<Status> UsbGadget::reset() { in reset() 71 return Status::ERROR; in reset() 74 return Status::SUCCESS; in reset() 77 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() 78 V1_0::Status ret = V1_0::Status::SUCCESS; in validateAndSetVidPid() [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/interfaces/usb/gadget/1.2/default/ |
D | UsbGadget.cpp | 50 mCurrentUsbFunctions, mCurrentUsbFunctionsApplied ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions() 51 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions() 101 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget() 102 if (resetGadget() != V1_0::Status::SUCCESS) return V1_0::Status::ERROR; in tearDownGadget() 109 return V1_0::Status::SUCCESS; in tearDownGadget() 112 Return<Status> UsbGadget::reset() { in reset() 115 return Status::ERROR; in reset() 122 return Status::ERROR; in reset() 125 return Status::SUCCESS; in reset() 128 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() [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/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/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/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/interfaces/cas/1.0/vts/functional/ |
D | VtsHalCasV1_0TargetTest.cpp | 59 using android::hardware::cas::V1_0::Status; 198 EXPECT_EQ(Status::OK, returnStatus); in testEventEcho() 249 Status* descrambleStatus, 253 Status* descrambleStatus, 298 Status sessionStatus; in openCasSession() 299 auto returnVoid = mMediaCas->openSession([&](Status status, const hidl_vec<uint8_t>& id) { in openCasSession() 303 return ::testing::AssertionResult(returnVoid.isOk() && (Status::OK == sessionStatus)); in openCasSession() 307 const sp<IDescrambler>& descrambler, Status* descrambleStatus, sp<IMemory>* inMemory) { in descrambleTestInputBuffer() 354 [&](Status status, uint32_t bytesWritten, const hidl_string& detailedErr) { in descrambleTestInputBuffer() 359 if (!returnVoid.isOk() || *descrambleStatus != Status::OK) { in descrambleTestInputBuffer() [all …]
|