Home
last modified time | relevance | path

Searched refs:promise (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/keystore/java/android/security/
DKeyStore.java481 KeystoreResultPromise promise = new KeystoreResultPromise(); in addRngEntropy() local
483 mBinder.asBinder().linkToDeath(promise, 0); in addRngEntropy()
484 int errorCode = mBinder.addRngEntropy(promise, data, flags); in addRngEntropy()
486 return interruptedPreservingGet(promise.getFuture()).getErrorCode() == NO_ERROR; in addRngEntropy()
497 mBinder.asBinder().unlinkToDeath(promise, 0); in addRngEntropy()
552 KeyCharacteristicsPromise promise = new KeyCharacteristicsPromise(); in generateKeyInternal() local
556 mBinder.asBinder().linkToDeath(promise, 0); in generateKeyInternal()
557 error = mBinder.generateKey(promise, alias, args, entropy, uid, flags); in generateKeyInternal()
562 result = interruptedPreservingGet(promise.getFuture()); in generateKeyInternal()
564 mBinder.asBinder().unlinkToDeath(promise, 0); in generateKeyInternal()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DPromiseTest.cpp40 EXPECT_EQ(42, promise::yield(42).get()); in TEST()
43 auto future = promise::yield(std::move(ptr)); in TEST()
56 [](Bytes bytes) { return promise::defer(decrement, std::move(bytes)); }); in TEST()
64 promise::chain(std::move(fetch)) in TEST()
/frameworks/native/services/surfaceflinger/
DPromise.h23 namespace android::promise {
DSurfaceFlinger.cpp1520 return promise::chain(schedule([=]() MAIN_THREAD { in setDisplayBrightness()
1525 return promise::yield<status_t>(NAME_NOT_FOUND); in setDisplayBrightness()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp594 std::promise<void> go_barrier_promise; in ClientCommand()
598 std::promise<void> done_barrier_promise; in ClientCommand()
607 std::promise<BenchmarkResult> result_promise; in ClientCommand()
610 std::promise<void> ready_barrier_promise; in ClientCommand()
615 std::promise<BenchmarkResult> result, std::promise<void> ready) { in ClientCommand()
/frameworks/base/libs/hwui/tests/unit/
DThreadBaseTests.cpp55 std::promise<nsecs_t> ranAtPromise; in TEST()
/frameworks/base/media/jni/soundpool/
DStreamManager.h88 std::promise<void> mPromise;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp802 RETURN_IF_INVALID_DISPLAY(displayId, promise::yield<status_t>(BAD_INDEX)); in setDisplayBrightness()
805 return promise::chain(display->setDisplayBrightness(brightness)) in setDisplayBrightness()
DHWC2.cpp650 return promise::defer([composer = &mComposer, id = mId, brightness] { in setDisplayBrightness()