Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 10 of 10) sorted by relevance

/system/chre/chpp/platform/linux/
Dnotifier.c34 void chppPlatformNotifierInit(struct ChppNotifier *notifier) { in chppPlatformNotifierInit() argument
35 chppMutexInit(&notifier->mutex); in chppPlatformNotifierInit()
36 pthread_cond_init(&notifier->cond, NULL); in chppPlatformNotifierInit()
39 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier) { in chppPlatformNotifierDeinit() argument
40 pthread_cond_destroy(&notifier->cond); in chppPlatformNotifierDeinit()
41 chppMutexDeinit(&notifier->mutex); in chppPlatformNotifierDeinit()
44 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier) { in chppPlatformNotifierGetSignal() argument
45 chppMutexLock(&notifier->mutex); in chppPlatformNotifierGetSignal()
47 uint32_t signal = notifier->signal; in chppPlatformNotifierGetSignal()
48 notifier->signal = 0; in chppPlatformNotifierGetSignal()
[all …]
Dlink.c41 uint32_t signal = chppNotifierTimedWait(&params->notifier, CHPP_TIME_MAX); in linkSendThread()
81 chppNotifierInit(&params->notifier); in chppPlatformLinkInit()
91 chppNotifierSignal(&params->notifier, SIGNAL_EXIT); in chppPlatformLinkDeinit()
93 chppNotifierDeinit(&params->notifier); in chppPlatformLinkDeinit()
111 chppNotifierSignal(&params->notifier, SIGNAL_DATA); in chppPlatformLinkSend()
/system/chre/chpp/platform/linux/include/chpp/platform/
Dplatform_notifier.h38 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 …]
Dplatform_link.h52 struct ChppNotifier notifier; member
/system/chre/chpp/include/chpp/
Dnotifier.h45 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);
Dtransport.h438 struct ChppNotifier notifier; // Notifier for main thread member
640 chppNotifierSignal(&context->notifier, in chppWorkThreadSignalFromLink()
/system/bt/gd/cert/
Dchange_waiter.py15 notifier = pyinotify.Notifier(wm, handler) variable
18 notifier.loop()
/system/chre/chpp/
Dtransport.c809 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()
DAndroid.bp91 "platform/linux/notifier.c",
/system/chre/chpp/test/
Dtransport_test.cpp106 while (transportContext->linkParams.notifier.signal == 0 && k > 0) { in WaitForTransport()
109 while (transportContext->linkParams.notifier.signal != 0 && k > 0) { in WaitForTransport()