Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 28) sorted by relevance

12

/system/chre/platform/include/chre/platform/
Dassert.h47 #define CHRE_ASSERT(condition) ((void)(condition)) argument
70 #define CHRE_ASSERT_LOG(condition, fmt, ...) \ argument
72 if (!(condition)) { \
74 CHRE_ASSERT(condition); \
83 #define CHRE_ASSERT_LOG_IF_NOT_TEST(condition, fmt, ...) argument
84 #define CHRE_ASSERT_IF_NOT_TEST(condition) ((void)(condition)) argument
86 #define CHRE_ASSERT_LOG_IF_NOT_TEST(condition, fmt, ...) \ argument
87 CHRE_ASSERT_LOG(condition, fmt, ##__VA_ARGS__)
88 #define CHRE_ASSERT_IF_NOT_TEST(condition) CHRE_ASSERT(condition) argument
/system/core/fs_mgr/libdm/
Dutility.cpp29 bool WaitForCondition(const std::function<WaitResult()>& condition, in WaitForCondition() argument
33 auto result = condition(); in WaitForCondition()
46 auto condition = [&]() -> WaitResult { in WaitForFile() local
58 return WaitForCondition(condition, timeout_ms); in WaitForFile()
62 auto condition = [&]() -> WaitResult { in WaitForFileDeleted() local
72 return WaitForCondition(condition, timeout_ms); in WaitForFileDeleted()
Dutility.h27 bool WaitForCondition(const std::function<WaitResult()>& condition,
Dloop_control.cpp45 auto condition = [&]() -> WaitResult { in Attach() local
74 if (!WaitForCondition(condition, timeout_ms)) { in Attach()
/system/chre/util/include/chre/util/host/
Dassert.h36 #define CHRE_ASSERT(condition) assert(condition) argument
38 #define CHRE_ASSERT(condition) ((void)(condition)) argument
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/nanoapp/
Dassert.h37 #define CHRE_ASSERT(condition) \ argument
39 if (!(condition)) { \
46 #define CHRE_ASSERT(condition) ((void)(condition)) argument
/system/chre/util/include/chre/util/nanoapp/
Dassert.h37 #define CHRE_ASSERT(condition) \ argument
39 if (!(condition)) { \
46 #define CHRE_ASSERT(condition) ((void)(condition)) argument
/system/chre/platform/shared/include/chre/platform/shared/
Dassert_func.h38 #define CHRE_ASSERT(condition) \ argument
40 if (!(condition)) { \
/system/libziparchive/incfs_support/include/incfs_support/
Dsignal_handling.h111 #define SCOPED_SIGBUS_HANDLER_CONDITIONAL(condition, code) argument
162 #define SCOPED_SIGBUS_HANDLER_CONDITIONAL(condition, code) \ argument
166 const bool condition_macro_val = (condition); \
/system/chre/core/include/chre/core/
Dsystem_health_monitor.h72 static inline void check(bool condition, HealthCheckId id) { in check() argument
73 if (!condition) { in check()
/system/memory/lmkd/tests/
Dlmkd_test.cpp132 pthread_cond_t condition; member
153 pthread_cond_init(&ssync->condition, &cattr); in init_state_sync_obj()
160 pthread_cond_destroy(&ssync->condition); in destroy_state_sync_obj()
168 pthread_cond_signal(&ssync->condition); in signal_state()
175 pthread_cond_wait(&ssync->condition, &ssync->mutex); in wait_for_state()
/system/connectivity/wificond/tests/integration/
Dprocess_utils.cpp95 bool WaitForTrue(std::function<bool()> condition, time_t timeout_seconds) { in WaitForTrue() argument
98 if (condition()) { in WaitForTrue()
Dprocess_utils.h76 bool WaitForTrue(std::function<bool()> condition, time_t timeout_seconds);
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubGeneralTestExecutor.java359 protected void assertTrue(String errorMessage, boolean condition) { in assertTrue() argument
361 Assert.assertTrue(errorMessage, condition); in assertTrue()
362 } else if (!condition) { in assertTrue()
371 protected void assertFalse(String errorMessage, boolean condition) { in assertFalse() argument
372 assertTrue(errorMessage, !condition); in assertFalse()
/system/sepolicy/tools/
Dpost_process_mac_perms64 condition = lambda x: x.endswith('.apk') function
65 apps = [transform(i) for i in files if condition(i)]
/system/extras/libatrace_rust/
DREADME.md26 if condition {
89 if condition {
/system/logging/liblog/
DREADME.md107 `[ASR]LOG[VDIWE]_IF` calls are used to perform thus based on a condition being true.
111 is used to `ALOG` a message if the condition is false; the condition is part of the logged message.
/system/chre/api_parser/
DREADME.md57 the first condition is not met, then conversion is done using field-wise
66 on all fields and placing the optimized path in an if/else condition, the
67 compiler can evaluate condition 1 and prune away code for the less-optimal path.
/system/libvintf/
DAssembleVintf.cpp288 Condition condition = generateCondition(namedStream.name()); in parseFilesForKernelConfigs() local
289 if (condition == nullptr) { in parseFilesForKernelConfigs()
297 out->emplace_back(std::move(condition), std::move(kernelConfigs)); in parseFilesForKernelConfigs()
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp314 std::condition_variable condition; member
329 condition.notify_one(); in onRegistration()
773 notification->condition.wait_for(lock, std::chrono::milliseconds(500), [&notification]() { in TEST_F()
829 notification->condition.wait_for(lock, std::chrono::milliseconds(500), [&notification]() { in TEST_F()
1672 std::condition_variable condition; member
1682 condition.notify_one(); in serviceDied()
1715 recipient->condition.wait_for(lock, std::chrono::milliseconds(100), [&recipient]() { in TEST_F()
1722 recipient2->condition.wait_for(lock2, std::chrono::milliseconds(100), [&recipient2]() { in TEST_F()
/system/tools/hidl/
DCompoundType.cpp1400 std::string condition = (field->type().isScalar() || field->type().isEnum()) in emitJavaTypeDeclarations() local
1404 out.sIf(condition, [&] { in emitJavaTypeDeclarations()
/system/chre/doc/
Dcompatibility.md97 it in a condition that first checks the CHRE version. In
/system/timezone/output_data/icu_overlay/
DLICENSE463 (The condition for the exception is fulfilled because
493 (The condition for the exception is fulfilled because
/system/timezone/testing/data/test3/output_data/icu_overlay/
DLICENSE463 (The condition for the exception is fulfilled because
493 (The condition for the exception is fulfilled because
/system/timezone/testing/data/test1/output_data/icu_overlay/
DLICENSE463 (The condition for the exception is fulfilled because
493 (The condition for the exception is fulfilled because

12