Snap for 9321750 from efbba954b3 to udc-release

Change-Id: I1b850b6febee7f0c125cb9c63f312d27e1458069
This commit is contained in:
Android Build Coastguard Worker 2022-11-23 02:07:21 +00:00
commit 72062fa586
2 changed files with 4 additions and 1 deletions

View file

@ -408,6 +408,7 @@ ndk::ScopedAStatus Vibrator::off() {
const std::scoped_lock<std::mutex> lock(mActiveId_mutex);
if (mActiveId >= 0) {
ALOGV("Off: Stop the active effect: %d", mActiveId);
/* Stop the active effect. */
if (!mHwApi->setFFPlay(mInputFd, mActiveId, false)) {
ALOGE("Failed to stop effect %d (%d): %s", mActiveId, errno, strerror(errno));
@ -1391,6 +1392,7 @@ void Vibrator::waitForComplete(std::shared_ptr<IVibratorCallback> &&callback) {
}
mSyncedCallback = nullptr;
}
ALOGV("waitForComplete: Done");
}
uint32_t Vibrator::intensityToVolLevel(float intensity, uint32_t effectIndex) {

View file

@ -114,7 +114,8 @@ ndk::ScopedAStatus VibratorManager::prepareSynced(const std::vector<int32_t> &id
if (ext->prepareSynced(callback).isOk()) {
mSyncContext.emplace_back(id, callback->getFuture());
} else {
ALOGV("prepareSynced: Fail");
cancelSynced();
ALOGV("prepareSynced: Fail: %d", id);
return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
}
}