Searched refs:notifier (Results 1 – 10 of 10) sorted by relevance
/system/chre/chpp/platform/linux/ |
D | notifier.c | 34 void chppPlatformNotifierInit(struct ChppNotifier *notifier) { in chppPlatformNotifierInit() argument 35 chppMutexInit(¬ifier->mutex); in chppPlatformNotifierInit() 36 pthread_cond_init(¬ifier->cond, NULL); in chppPlatformNotifierInit() 39 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier) { in chppPlatformNotifierDeinit() argument 40 pthread_cond_destroy(¬ifier->cond); in chppPlatformNotifierDeinit() 41 chppMutexDeinit(¬ifier->mutex); in chppPlatformNotifierDeinit() 44 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier) { in chppPlatformNotifierGetSignal() argument 45 chppMutexLock(¬ifier->mutex); in chppPlatformNotifierGetSignal() 47 uint32_t signal = notifier->signal; in chppPlatformNotifierGetSignal() 48 notifier->signal = 0; in chppPlatformNotifierGetSignal() [all …]
|
D | link.c | 41 uint32_t signal = chppNotifierTimedWait(¶ms->notifier, CHPP_TIME_MAX); in linkSendThread() 81 chppNotifierInit(¶ms->notifier); in chppPlatformLinkInit() 91 chppNotifierSignal(¶ms->notifier, SIGNAL_EXIT); in chppPlatformLinkDeinit() 93 chppNotifierDeinit(¶ms->notifier); in chppPlatformLinkDeinit() 111 chppNotifierSignal(¶ms->notifier, SIGNAL_DATA); in chppPlatformLinkSend()
|
/system/chre/chpp/platform/linux/include/chpp/platform/ |
D | platform_notifier.h | 38 void chppPlatformNotifierInit(struct ChppNotifier *notifier); 43 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier); 48 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier); 53 uint32_t chppPlatformNotifierWait(struct ChppNotifier *notifier); 58 uint32_t chppPlatformNotifierTimedWait(struct ChppNotifier *notifier, 64 void chppPlatformNotifierSignal(struct ChppNotifier *notifier, uint32_t signal); 66 static inline void chppNotifierInit(struct ChppNotifier *notifier) { in chppNotifierInit() argument 67 chppPlatformNotifierInit(notifier); in chppNotifierInit() 70 static inline void chppNotifierDeinit(struct ChppNotifier *notifier) { in chppNotifierDeinit() argument 71 chppPlatformNotifierDeinit(notifier); in chppNotifierDeinit() [all …]
|
D | platform_link.h | 52 struct ChppNotifier notifier; member
|
/system/chre/chpp/include/chpp/ |
D | notifier.h | 45 static void chppNotifierInit(struct ChppNotifier *notifier); 52 static void chppNotifierDeinit(struct ChppNotifier *notifier); 62 static uint32_t chppNotifierGetSignal(struct ChppNotifier *notifier); 73 static uint32_t chppNotifierWait(struct ChppNotifier *notifier); 87 static uint32_t chppNotifierTimedWait(struct ChppNotifier *notifier, 100 static void chppNotifierSignal(struct ChppNotifier *notifier, uint32_t signal);
|
D | transport.h | 438 struct ChppNotifier notifier; // Notifier for main thread member 640 chppNotifierSignal(&context->notifier, in chppWorkThreadSignalFromLink()
|
/system/bt/gd/cert/ |
D | change_waiter.py | 15 notifier = pyinotify.Notifier(wm, handler) variable 18 notifier.loop()
|
/system/chre/chpp/ |
D | transport.c | 809 chppNotifierSignal(&context->notifier, CHPP_TRANSPORT_SIGNAL_EVENT); in chppEnqueueTxPacket() 1351 chppNotifierInit(&transportContext->notifier); in chppTransportInit() 1367 chppNotifierDeinit(&transportContext->notifier); in chppTransportDeinit() 1548 signals = chppNotifierGetSignal(&context->notifier); in chppWorkThreadStart() 1550 signals = chppNotifierWait(&context->notifier); in chppWorkThreadStart() 1552 signals = chppNotifierTimedWait(&context->notifier, timeout); in chppWorkThreadStart() 1604 chppNotifierSignal(&context->notifier, CHPP_TRANSPORT_SIGNAL_EXIT); in chppWorkThreadStop()
|
D | Android.bp | 91 "platform/linux/notifier.c",
|
/system/chre/chpp/test/ |
D | transport_test.cpp | 106 while (transportContext->linkParams.notifier.signal == 0 && k > 0) { in WaitForTransport() 109 while (transportContext->linkParams.notifier.signal != 0 && k > 0) { in WaitForTransport()
|