Searched refs:promise (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 481 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/ |
D | PromiseTest.cpp | 40 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/ |
D | Promise.h | 23 namespace android::promise {
|
D | SurfaceFlinger.cpp | 1520 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/ |
D | pdx_benchmarks.cpp | 594 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/ |
D | ThreadBaseTests.cpp | 55 std::promise<nsecs_t> ranAtPromise; in TEST()
|
/frameworks/base/media/jni/soundpool/ |
D | StreamManager.h | 88 std::promise<void> mPromise;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.cpp | 802 RETURN_IF_INVALID_DISPLAY(displayId, promise::yield<status_t>(BAD_INDEX)); in setDisplayBrightness() 805 return promise::chain(display->setDisplayBrightness(brightness)) in setDisplayBrightness()
|
D | HWC2.cpp | 650 return promise::defer([composer = &mComposer, id = mId, brightness] { in setDisplayBrightness()
|