Home
last modified time | relevance | path

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

123

/aosp12/system/chre/chpp/platform/linux/
H A Dnotifier.c35 chppMutexInit(&notifier->mutex); in chppPlatformNotifierInit()
45 chppMutexLock(&notifier->mutex); in chppPlatformNotifierGetSignal()
48 notifier->signal = 0; in chppPlatformNotifierGetSignal()
55 chppMutexLock(&notifier->mutex); in chppPlatformNotifierWait()
57 while (notifier->signal == 0) { in chppPlatformNotifierWait()
58 pthread_cond_wait(&notifier->cond, &notifier->mutex.lock); in chppPlatformNotifierWait()
61 notifier->signal = 0; in chppPlatformNotifierWait()
86 pthread_cond_timedwait(&notifier->cond, &notifier->mutex.lock, &absTime); in chppPlatformNotifierTimedWait()
90 notifier->signal = 0; in chppPlatformNotifierTimedWait()
99 chppMutexLock(&notifier->mutex); in chppPlatformNotifierSignal()
[all …]
H A 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()
/aosp12/system/chre/chpp/platform/linux/include/chpp/platform/
H A Dplatform_notifier.h38 void chppPlatformNotifierInit(struct ChppNotifier *notifier);
43 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier);
53 uint32_t chppPlatformNotifierWait(struct ChppNotifier *notifier);
58 uint32_t chppPlatformNotifierTimedWait(struct ChppNotifier *notifier,
66 static inline void chppNotifierInit(struct ChppNotifier *notifier) { in chppNotifierInit() argument
67 chppPlatformNotifierInit(notifier); in chppNotifierInit()
71 chppPlatformNotifierDeinit(notifier); in chppNotifierDeinit()
75 return chppPlatformNotifierGetSignal(notifier); in chppNotifierGetSignal()
79 return chppPlatformNotifierWait(notifier); in chppNotifierWait()
84 return chppPlatformNotifierTimedWait(notifier, timeoutNs); in chppNotifierTimedWait()
[all …]
H A Dplatform_link.h52 struct ChppNotifier notifier; member
/aosp12/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DCallbackRegistryTest.java53 CallbackRegistry.NotifierCallback<Integer, CallbackRegistryTest, Integer> notifier = in testAddListener() local
60 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testAddListener()
92 CallbackRegistry.NotifierCallback<Integer, CallbackRegistryTest, Integer> notifier = in testSimpleNotify() local
102 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testSimpleNotify()
111 CallbackRegistry.NotifierCallback<Integer, CallbackRegistryTest, Integer> notifier = in testRemoveWhileNotifying() local
123 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testRemoveWhileNotifying()
148 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testDeepRemoveWhileNotifying()
176 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testAddRemovedListener()
209 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testVeryDeepRemoveWhileNotifying()
232 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testClear()
[all …]
/aosp12/system/chre/chpp/include/chpp/
H A 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);
H A Dtransport.h439 struct ChppNotifier notifier; // Notifier for main thread member
645 chppNotifierSignal(&context->notifier, in chppWorkThreadSignalFromLink()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DDisconnectedCallNotifierTest.java81 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationShownAfterEmergencyCall() local
82 notifier.onCallStateChanged(call, CallState.NEW, CallState.DIALING); in testNotificationShownAfterEmergencyCall()
83 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationShownAfterEmergencyCall()
88 notifier.onCallRemoved(call); in testNotificationShownAfterEmergencyCall()
104 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationShownForDisconnectedEmergencyCall() local
105 notifier.onCallStateChanged(call, CallState.NEW, CallState.DIALING); in testNotificationShownForDisconnectedEmergencyCall()
106 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationShownForDisconnectedEmergencyCall()
111 notifier.onCallRemoved(call); in testNotificationShownForDisconnectedEmergencyCall()
128 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationNotShownAfterCall()
133 notifier.onCallRemoved(call); in testNotificationNotShownAfterCall()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBatteryStateNotifierTest.kt53 private lateinit var notifier: BatteryStateNotifier
58 notifier = BatteryStateNotifier(batteryController, noMan, executor, context)
59 notifier.startListening()
66 notifier.onBatteryUnknownStateChanged(true)
72 notifier.onBatteryUnknownStateChanged(true)
73 notifier.onBatteryUnknownStateChanged(false)
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/library/
H A DOptionalClassRunner.java76 public void run(RunNotifier notifier) { in run() argument
77 mDelegate.run(notifier); in run()
111 protected void runChild(Runner child, RunNotifier notifier) { in runChild() argument
112 child.run(notifier); in runChild()
132 public void run(RunNotifier notifier) { in run() argument
138 }, getDescription(), notifier); in run()
/aosp12/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
H A DDevSdkIgnoreRunner.kt52 override fun run(notifier: RunNotifier) {
54 baseRunner.run(notifier)
60 notifier.fireTestIgnored(
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/provider/
H A DBaseLocalQCProviderTest.java69 BaseLocalQCProvider.Notifier notifier = mock(BaseLocalQCProvider.Notifier.class); in notifyChange_updateNotified() local
70 mProvider.setNotifier(notifier); in notifyChange_updateNotified()
72 verify(notifier).notifyUpdate(); in notifyChange_updateNotified()
/aosp12/frameworks/av/media/libmedia/
H A DIMediaDeathNotifier.cpp94 sp<IMediaDeathNotifier> notifier = list[iter].promote(); in binderDied() local
95 if (notifier != 0) { in binderDied()
96 notifier->died(); in binderDied()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDataManager.java301 public void registerChangeNotifier(Uri uri, ChangeNotifier notifier) { in registerChangeNotifier() argument
312 broker.registerNotifier(notifier); in registerChangeNotifier()
339 public synchronized void registerNotifier(ChangeNotifier notifier) { in registerNotifier() argument
340 mNotifiers.put(notifier, null); in registerNotifier()
345 for(ChangeNotifier notifier : mNotifiers.keySet()) { in onChange()
346 notifier.onChange(selfChange); in onChange()
/aosp12/system/bt/gd/cert/
H A Dchange_waiter.py15 notifier = pyinotify.Notifier(wm, handler) variable
18 notifier.loop()
/aosp12/packages/apps/Car/libs/car-qc-lib/src/com/android/car/qc/provider/
H A DBaseLocalQCProvider.java50 public void setNotifier(Notifier notifier) { in setNotifier() argument
51 mNotifier = notifier; in setNotifier()
/aosp12/frameworks/av/services/audiopolicy/service/
H A DCaptureStateNotifier.cpp15 DeathRecipient(CaptureStateNotifier* notifier) : mNotifier(notifier) {} in DeathRecipient() argument
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
H A DPerformanceRunner.java69 public void run(RunNotifier notifier) { in run() argument
70 super.run(notifier); in run()
/aosp12/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java459 for (EditStyledTextNotifier notifier : mESTNotifiers) { in sendOnTouchEvent()
460 notifier.sendOnTouchEvent(event); in sendOnTouchEvent()
468 for (EditStyledTextNotifier notifier : mESTNotifiers) { in isButtonsFocused()
469 retval |= notifier.isButtonsFocused(); in isButtonsFocused()
477 for (EditStyledTextNotifier notifier : mESTNotifiers) { in showPreview()
478 if (notifier.showPreview()) { in showPreview()
488 notifier.cancelViewManager(); in cancelViewManagers()
496 if (notifier.showInsertImageSelectAlertDialog()) { in showInsertImageSelectAlertDialog()
506 if (notifier.showMenuAlertDialog()) { in showMenuAlertDialog()
521 notifier.sendHintMsg(msgId); in sendHintMessage()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/
H A DCallLogComponent.java19 import com.android.dialer.calllog.notifier.RefreshAnnotatedCallLogNotifier;
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DCallbackRegistry.java77 public CallbackRegistry(NotifierCallback<C, T, A> notifier) { in CallbackRegistry() argument
78 mNotifier = notifier; in CallbackRegistry()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/observer/
H A DMarkDirtyObserver.java23 import com.android.dialer.calllog.notifier.RefreshAnnotatedCallLogNotifier;
/aosp12/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.cpp75 sp<DeathNotifier> notifier; in BinderDiedCallback() local
83 notifier = it->second; in BinderDiedCallback()
85 if (notifier.get() != nullptr) { in BinderDiedCallback()
86 notifier->binderDied(); in BinderDiedCallback()
803 ::ndk::SpAIBinder binder, const sp<DeathNotifier>& notifier) { in addCookieAndLink_l() argument
811 sCookieToDeathNotifierMap.emplace(cookie, notifier); in addCookieAndLink_l()
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/
H A DLingerMonitor.java92 public LingerMonitor(Context context, NetworkNotificationManager notifier, in LingerMonitor() argument
96 mNotifier = notifier; in LingerMonitor()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/
H A DRefreshAnnotatedCallLogNotifier.java17 package com.android.dialer.calllog.notifier;

123