/aosp12/bionic/tests/ |
H A D | semaphore_test.cpp | 33 TEST(semaphore, sem_init) { in TEST() argument 37 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST() 38 ASSERT_EQ(0, sem_init(&s, 0, 1)); in TEST() 39 ASSERT_EQ(0, sem_init(&s, 0, 123)); in TEST() 43 ASSERT_EQ(-1, sem_init(&s, 0, -1)); in TEST() 61 ASSERT_EQ(0, sem_init(&s, 0, 3)); in TEST() 82 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST() 111 ASSERT_EQ(0, sem_init(&s, 0, 0)); in sem_timedwait_helper() 167 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST_F() 174 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST() [all …]
|
/aosp12/bionic/benchmarks/ |
H A D | semaphore_benchmark.cpp | 28 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_getvalue() 39 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_wait_sem_post()
|
/aosp12/bionic/tests/headers/posix/ |
H A D | semaphore_h.c | 41 FUNCTION(sem_init, int (*f)(sem_t*, int, unsigned)); in semaphore_h()
|
/aosp12/packages/apps/Nfc/nci/jni/ |
H A D | NativeNfcTag.cpp | 384 if (sem_init(&sWriteSem, 0, 0) == -1) { in nativeNfcTag_doWrite() 397 sem_init(&sFormatSem, 0, 0); in nativeNfcTag_doWrite() 415 sem_init(&sFormatSem, 0, 0); in nativeNfcTag_doWrite() 1237 if (sem_init(&sCheckNdefSem, 0, 0) == -1) { in nativeNfcTag_doCheckNdef() 1551 sem_init(&sFormatSem, 0, 0); in nativeNfcTag_makeMifareNdefFormat() 1607 sem_init(&sFormatSem, 0, 0); in nativeNfcTag_doNdefFormat() 1670 if (sem_init(&sMakeReadonlySem, 0, 0) == -1) { in nativeNfcTag_makeMifareReadonly() 1735 if (sem_init(&sMakeReadonlySem, 0, 0) == -1) { in nativeNfcTag_doMakeReadonly()
|
H A D | NativeLlcpConnectionlessSocket.cpp | 190 if (sem_init(&sConnlessRecvSem, 0, 0) == -1) { in nativeLlcpConnectionlessSocket_doReceiveFrom()
|
/aosp12/bionic/libc/include/ |
H A D | semaphore.h | 51 int sem_init(sem_t* __sem, int __shared, unsigned int __value);
|
/aosp12/hardware/nxp/nfc/pn8x/halimpl/tml/ |
H A D | phTmlNfc.cc | 119 } else if (0 != sem_init(&gpphTmlNfc_Context->rxSemaphore, 0, 0)) { in phTmlNfc_Init() 121 } else if (0 != sem_init(&gpphTmlNfc_Context->txSemaphore, 0, 0)) { in phTmlNfc_Init() 123 } else if (0 != sem_init(&gpphTmlNfc_Context->postMsgSemaphore, 0, 0)) { in phTmlNfc_Init()
|
H A D | phDal4Nfc_messageQueueLib.cc | 66 if (sem_init(&pQueue->nProcessSemaphore, 0, 0) == -1) { in phDal4Nfc_msgget()
|
/aosp12/frameworks/native/libs/binderdebug/tests/ |
H A D | binderdebug_test.cpp | 35 Control() {sem_init(&s, 1, 0);}; in Control()
|
/aosp12/hardware/st/nfc/1.0/hal/ |
H A D | halcore.c | 162 if (0 != sem_init(&inst->semaphore, 0, 0)) { in HalCreate() 169 if (0 != sem_init(&inst->bufferResourceSem, 0, NUM_BUFFERS)) { in HalCreate() 177 if (0 != sem_init(&inst->upstreamBlock, 0, 0)) { in HalCreate()
|
/aosp12/hardware/st/nfc/st21nfc/hal/ |
H A D | halcore.cc | 181 if (0 != sem_init(&inst->semaphore, 0, 0)) { in HalCreate() 188 if (0 != sem_init(&inst->bufferResourceSem, 0, NUM_BUFFERS)) { in HalCreate() 196 if (0 != sem_init(&inst->upstreamBlock, 0, 0)) { in HalCreate()
|
/aosp12/hardware/nxp/nfc/snxxx/halimpl/tml/ |
H A D | phTmlNfc.cc | 130 if (0 != sem_init(&gpphTmlNfc_Context->rxSemaphore, 0, 0)) { in phTmlNfc_Init() 134 } else if (0 != sem_init(&gpphTmlNfc_Context->txSemaphore, 0, 0)) { in phTmlNfc_Init() 136 } else if (0 != sem_init(&gpphTmlNfc_Context->postMsgSemaphore, 0, 0)) { in phTmlNfc_Init()
|
H A D | phDal4Nfc_messageQueueLib.cc | 66 if (sem_init(&pQueue->nProcessSemaphore, 0, 0) == -1) { in phDal4Nfc_msgget()
|
/aosp12/bionic/libc/bionic/ |
H A D | pthread_internal.cpp | 135 if (sem_init(&g_sem, 0, 0) != 0) { in android_run_on_all_threads()
|
H A D | semaphore.cpp | 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() function
|
/aosp12/system/core/libsuspend/ |
H A D | autosuspend_wakeup_count.cpp | 147 ret = sem_init(&suspend_lockout, 0, 0); in autosuspend_init()
|
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/ |
H A D | OneShotTimer.cpp | 58 int result = sem_init(&mSemaphore, 0, 0); in start()
|
/aosp12/packages/services/BuiltInPrintService/jni/lib/ |
H A D | wprint_msgq.c | 70 sem_init(msgq->sem_ptr, 0, 0); // PRIVATE, EMPTY in msgQCreate()
|
/aosp12/hardware/nxp/nfc/pn8x/halimpl/utils/ |
H A D | phNxpNciHal_utils.cc | 350 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
|
/aosp12/hardware/nxp/nfc/snxxx/halimpl/libnxpparser/osal/src/ |
H A D | phOsal_Posix.cpp | 160 status = sem_init((sem_t*)*hSemaphore, 0, bInitialValue); in phOsal_SemaphoreCreate()
|
/aosp12/hardware/nxp/nfc/snxxx/halimpl/utils/ |
H A D | phNxpNciHal_utils.cc | 351 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
|
/aosp12/hardware/nxp/nfc/snxxx/halimpl/tml/transport/ |
H A D | NfccI2cTransport.cc | 94 if (0 != sem_init(&mTxRxSemaphore, 0, 1)) { in OpenAndConfigure()
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 138 int ret = sem_init(&wakeup_sem, 0, 0); in nativeWaitWakeup()
|
/aosp12/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/ |
H A D | video_encoder_test.c | 385 sem_init(&queue_ptr->sem_message,0, 0); in init_encoder() 386 sem_init(&init_decode->sem_synchronize,0, 0); in init_encoder()
|
/aosp12/frameworks/native/libs/cputimeinstate/ |
H A D | testtimeinstate.cpp | 589 sem_init(&pingsem, 0, 1); in TEST() 590 sem_init(&pongsem, 0, 0); in TEST()
|