/system/bt/osi/test/ |
D | semaphore_test.cc | 17 semaphore_t* semaphore; member 26 CHECK(helper->semaphore); in sleep_then_increment_counter() 29 semaphore_post(helper->semaphore); in sleep_then_increment_counter() 36 semaphore_t* semaphore = semaphore_new(0); in TEST_F() local 37 ASSERT_TRUE(semaphore != NULL); in TEST_F() 38 semaphore_free(semaphore); in TEST_F() 42 semaphore_t* semaphore = semaphore_new(3); in TEST_F() local 43 ASSERT_TRUE(semaphore != NULL); in TEST_F() 45 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F() 46 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F() [all …]
|
D | alarm_test.cc | 34 static semaphore_t* semaphore; variable 53 semaphore = semaphore_new(0); in SetUp() 57 semaphore_free(semaphore); in TearDown() 64 semaphore_post(semaphore); in cb() 71 semaphore_post(semaphore); in ordered_cb() 117 semaphore_wait(semaphore); in TEST_F() 134 semaphore_wait(semaphore); in TEST_F() 153 semaphore_wait(semaphore); in TEST_F() 171 semaphore_wait(semaphore); in TEST_F() 189 semaphore_wait(semaphore); in TEST_F() [all …]
|
/system/bt/osi/src/ |
D | semaphore.cc | 54 void semaphore_free(semaphore_t* semaphore) { in semaphore_free() argument 55 if (!semaphore) return; in semaphore_free() 57 if (semaphore->fd != INVALID_FD) close(semaphore->fd); in semaphore_free() 58 osi_free(semaphore); in semaphore_free() 61 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait() argument 62 CHECK(semaphore != NULL); in semaphore_wait() 63 CHECK(semaphore->fd != INVALID_FD); in semaphore_wait() 66 if (eventfd_read(semaphore->fd, &value) == -1) in semaphore_wait() 70 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait() argument 71 CHECK(semaphore != NULL); in semaphore_try_wait() [all …]
|
D | future.cc | 32 semaphore_t* semaphore; // NULL semaphore means immediate future member 41 ret->semaphore = semaphore_new(0); in future_new() 42 if (!ret->semaphore) { in future_new() 68 semaphore_post(future->semaphore); in future_ready() 75 if (future->semaphore) semaphore_wait(future->semaphore); in future_await() 85 semaphore_free(future->semaphore); in future_free()
|
/system/bt/osi/include/ |
D | semaphore.h | 33 void semaphore_free(semaphore_t* semaphore); 37 void semaphore_wait(semaphore_t* semaphore); 42 bool semaphore_try_wait(semaphore_t* semaphore); 45 void semaphore_post(semaphore_t* semaphore); 57 int semaphore_get_fd(const semaphore_t* semaphore);
|
/system/bt/btif/src/ |
D | stack_manager.cc | 112 semaphore_t* semaphore = semaphore_new(0); in init_stack() local 114 base::Bind(event_init_stack, semaphore)); in init_stack() 115 semaphore_wait(semaphore); in init_stack() 116 semaphore_free(semaphore); in init_stack() 132 semaphore_t* semaphore = semaphore_new(0); in clean_up_stack() local 134 base::Bind(event_clean_up_stack, semaphore)); in clean_up_stack() 135 semaphore_wait(semaphore); in clean_up_stack() 136 semaphore_free(semaphore); in clean_up_stack() 198 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack() local 225 if (semaphore) semaphore_post(semaphore); in event_init_stack() [all …]
|
/system/bt/osi/test/fuzzers/alarm/ |
D | fuzz_alarm.cc | 32 static semaphore_t* semaphore; variable 40 semaphore_post(semaphore); in cb() 45 semaphore = semaphore_new(0); in setup() 47 void teardown() { semaphore_free(semaphore); } in teardown() 133 semaphore_wait(semaphore); in LLVMFuzzerTestOneInput()
|
/system/bt/test/stub/ |
D | osi.cc | 608 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait() argument 612 int semaphore_get_fd(const semaphore_t* semaphore) { in semaphore_get_fd() argument 620 void semaphore_free(semaphore_t* semaphore) { in semaphore_free() argument 623 void semaphore_post(semaphore_t* semaphore) { in semaphore_post() argument 626 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait() argument
|
/system/bt/osi/ |
D | BUILD.gn | 35 "src/semaphore.cc",
|
D | Android.bp | 72 "src/semaphore.cc",
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | domain.te | 788 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | domain.te | 795 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/public/ |
D | domain.te | 1075 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/31.0/public/ |
D | domain.te | 1075 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | domain.te | 1091 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | domain.te | 1092 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | domain.te | 1085 # For example, there is no way to automatically release a SysV semaphore
|