Home
last modified time | relevance | path

Searched refs:fromStatus (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp203 return HalResultFactory::fromStatus(IInterface::asBinder(getHal())->pingBinder()); in ping()
225 auto ret = HalResultFactory::fromStatus(getHal()->on(timeout.count(), cb)); in on()
234 return HalResultFactory::fromStatus(getHal()->off()); in off()
238 return HalResultFactory::fromStatus(getHal()->setAmplitude(amplitude)); in setAmplitude()
242 return HalResultFactory::fromStatus(getHal()->setExternalControl(enabled)); in setExternalControl()
246 return HalResultFactory::fromStatus(getHal()->alwaysOnEnable(id, effect, strength)); in alwaysOnEnable()
250 return HalResultFactory::fromStatus(getHal()->alwaysOnDisable(id)); in alwaysOnDisable()
264 auto ret = HalResultFactory::fromStatus<milliseconds>(result, length); in performEffect()
291 return HalResultFactory::fromStatus<milliseconds>(getHal()->compose(primitives, cb), duration); in performComposedEffect()
298 return HalResultFactory::fromStatus(getHal()->composePwle(primitives, cb)); in performPwleEffect()
[all …]
DVibratorManagerHalWrapper.cpp81 return HalResultFactory::fromStatus<sp<Aidl::IVibrator>>(result, vibrator); in connectToVibrator()
96 return HalResultFactory::fromStatus(IInterface::asBinder(getHal())->pingBinder()); in ping()
116 auto ret = HalResultFactory::fromStatus<ManagerCapabilities>(result, capabilities); in getCapabilities()
132 auto ret = HalResultFactory::fromStatus<std::vector<int32_t>>(result, ids); in getVibratorIds()
160 auto ret = HalResultFactory::fromStatus(getHal()->prepareSynced(ids)); in prepareSynced()
182 return HalResultFactory::fromStatus(getHal()->triggerSynced(cb)); in triggerSynced()
186 auto ret = HalResultFactory::fromStatus(getHal()->cancelSynced()); in cancelSynced()
/frameworks/native/include/powermanager/
DHalResult.h47 static HalResult<T> fromStatus(const binder::Status& status, T&& data) { in fromStatus() function
57 static HalResult<T> fromStatus(const binder::Status& status, T& data) { in fromStatus() function
58 return HalResult<T>::fromStatus(status, T{data}); in fromStatus()
61 static HalResult<T> fromStatus(const ndk::ScopedAStatus& ndkStatus, T&& data) { in fromStatus() function
71 static HalResult<T> fromStatus(const ndk::ScopedAStatus& ndkStatus, T& data) { in fromStatus() function
72 return HalResult<T>::fromStatus(ndkStatus, T{data}); in fromStatus()
89 return ret.isOk() ? HalResult<T>::fromStatus(status, std::forward<T>(data)) in fromReturn()
125 static HalResult<void> fromStatus(const binder::Status& status) { in fromStatus() function
135 static HalResult<void> fromStatus(const ndk::ScopedAStatus& ndkStatus) { in fromStatus() function
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp206 return HalResult<void>::fromStatus(isSupportedRet); in setBoost()
218 return HalResult<void>::fromStatus(mHandle->setBoost(boost, durationMs)); in setBoost()
246 return HalResult<void>::fromStatus(mHandle->setMode(mode, enabled)); in setMode()
253 fromStatus(mHandle->createHintSession(tgid, uid, threadIds, durationNanos, &appSession), in createHintSession()
262 fromStatus(mHandle->createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, in createHintSessionWithConfig()
270 return HalResult<int64_t>::fromStatus(result, rate); in getHintSessionPreferredRate()
276 return HalResult<Aidl::ChannelConfig>::fromStatus(result, std::move(config)); in getSessionChannel()
280 return HalResult<void>::fromStatus(mHandle->closeSessionChannel(tgid, uid)); in closeSessionChannel()
DPowerHintSessionWrapper.cpp48 return CACHE_SUPPORT(version, HalResult<void>::fromStatus(mSession->name untypedArgs)); \
76 HalResult<SessionConfig>::fromStatus(mSession->getSessionConfig(&config), in getSessionConfig()
/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp106 ByMove(HalResult<int64_t>::fromStatus(ndk::ScopedAStatus::ok(), 16000)))); in SetUp()
131 ByMove(HalResult<ChannelConfig>::fromStatus(Status::ok(), std::move(config))))); in SetUpFmq()
148 fromStatus(binder::Status::ok(), in startPowerHintSession()
153 std::shared_ptr<PowerHintSessionWrapper>>::fromStatus(ndk::ScopedAStatus::ok(), in startPowerHintSession()
520 return HalResult<void>::fromStatus(ndk::ScopedAStatus::fromExceptionCode(-127)); in TEST_F()
524 return HalResult<void>::fromStatus(ndk::ScopedAStatus::fromExceptionCode(-127)); in TEST_F()
529 fromStatus(ndk::ScopedAStatus::fromExceptionCode(-127), nullptr); in TEST_F()
568 fromStatus(ndk::ScopedAStatus::fromExceptionCode( in TEST_F()
575 fromStatus(binder::Status::ok(), mMockPowerHintSession))); in TEST_F()
/frameworks/av/media/libaudiohal/tests/
DEffectHalVersionCompatibility_test.cpp163 ? ndk::ScopedAStatus::fromStatus(STATUS_UNKNOWN_TRANSACTION) in reopen()
191 return ndk::ScopedAStatus::fromStatus(STATUS_BAD_VALUE); in setParameter()
235 return ndk::ScopedAStatus::fromStatus(STATUS_BAD_VALUE); in getParameter()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h101 static HalResult<T> fromStatus(binder::Status status, T data) { in fromStatus() function
106 static HalResult<T> fromStatus(hardware::vibrator::V1_0::Status status, T data) { in fromStatus() function
119 return ret.isOk() ? fromStatus<T>(status, data) : fromFailedReturn<T, R>(ret); in fromReturn()
122 static HalResult<void> fromStatus(status_t status) { in fromStatus() function
126 static HalResult<void> fromStatus(binder::Status status) { in fromStatus() function
130 static HalResult<void> fromStatus(hardware::vibrator::V1_0::Status status) { in fromStatus() function
/frameworks/native/services/inputflinger/
DInputFilterCallbacks.cpp53 return ndk::ScopedAStatus::fromStatus(INVALID_OPERATION); in finish()
/frameworks/av/media/libaudiohal/impl/
DEffectProxy.cpp295 status = ndk::ScopedAStatus::fromStatus(temp.getStatus()); in runWithAllSubEffects()
315 return ndk::ScopedAStatus::fromStatus(effect->dump(fd, args, numArgs)); in dump()
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_auto_utils.h331 static ScopedAStatus fromStatus(binder_status_t status) { in fromStatus() function
/frameworks/av/media/audioaidlconversion/include/media/
DAidlConversionUtil-impl.h464 return statusTFromBinderStatus(::ndk::ScopedAStatus::fromStatus(status));
/frameworks/native/services/powermanager/tests/
DPowerHalWrapperAidlTest.cpp342 testing::ByMove(ndk::ScopedAStatus::fromStatus(STATUS_UNKNOWN_TRANSACTION)))); in TEST_F()
/frameworks/av/media/libstagefright/
DMediaCodec.cpp351 return Status::fromStatus(STATUS_INVALID_OPERATION); in reclaimResource()