Home
last modified time | relevance | path

Searched refs:Observer (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/av/media/module/bufferpool/2.0/
DObserver.cpp26 Observer::Observer() { in Observer() function in android::hardware::media::bufferpool::V2_0::implementation::Observer
29 Observer::~Observer() { in ~Observer()
33 Return<void> Observer::onMessage(int64_t connectionId, uint32_t msgId) { in onMessage()
48 void Observer::addClient(ConnectionId connectionId, in addClient()
62 void Observer::delClient(ConnectionId connectionId) { in delClient()
DObserver.h40 struct Observer : public IObserver { struct
44 ~Observer();
52 Observer();
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/
DObserver.kt29 fun interface Observer { in interface() interface
58 fun addObserver(observer: Observer, executor: Executor) in addObserver()
61 fun removeObserver(observer: Observer) in addObserver()
75 @GuardedBy("itself") private val observers = WeakHashMap<Observer, Executor>() in addObserver()
77 override fun addObserver(observer: Observer, executor: Executor) { in addObserver()
84 override fun removeObserver(observer: Observer) { in addObserver()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DAbstractItemHierarchy.java35 private final ArrayList<Observer> observers = new ArrayList<>();
59 public void registerObserver(Observer observer) { in registerObserver()
64 public void unregisterObserver(Observer observer) { in unregisterObserver()
70 for (Observer observer : observers) { in notifyChanged()
86 for (Observer observer : observers) { in notifyItemRangeChanged()
102 for (Observer observer : observers) { in notifyItemRangeInserted()
122 for (Observer observer : observers) { in notifyItemRangeMoved()
138 for (Observer observer : observers) { in notifyItemRangeRemoved()
DItemHierarchy.java33 interface Observer { interface
62 void registerObserver(Observer observer); in registerObserver()
65 void unregisterObserver(Observer observer); in unregisterObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java37 public class ScreenLifecycle extends Lifecycle<ScreenLifecycle.Observer> implements Dumpable {
57 dispatch(Observer::onScreenTurningOn); in dispatchScreenTurningOn()
62 dispatch(Observer::onScreenTurnedOn); in dispatchScreenTurnedOn()
67 dispatch(Observer::onScreenTurningOff); in dispatchScreenTurningOff()
72 dispatch(Observer::onScreenTurnedOff); in dispatchScreenTurnedOff()
86 public interface Observer { interface in ScreenLifecycle
DWakefulnessLifecycle.java52 public class WakefulnessLifecycle extends Lifecycle<WakefulnessLifecycle.Observer> implements
151 dispatch(Observer::onStartedWakingUp); in dispatchStartedWakingUp()
159 dispatch(Observer::onFinishedWakingUp); in dispatchFinishedWakingUp()
160 dispatch(Observer::onPostFinishedWakingUp); in dispatchFinishedWakingUp()
180 dispatch(Observer::onStartedGoingToSleep); in dispatchStartedGoingToSleep()
188 dispatch(Observer::onFinishedGoingToSleep); in dispatchFinishedGoingToSleep()
256 public interface Observer { interface in WakefulnessLifecycle
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifLiveDataStore.kt19 import androidx.lifecycle.Observer
46 fun addSyncObserver(observer: Observer<T>)
48 fun addAsyncObserver(observer: Observer<T>)
50 fun removeObserver(observer: Observer<T>)
DNotifLiveDataStoreImpl.kt19 import androidx.lifecycle.Observer in <lambda>()
82 private val syncObservers = ListenerSet<Observer<T>>()
83 private val asyncObservers = ListenerSet<Observer<T>>()
130 override fun addSyncObserver(observer: Observer<T>) { in addSyncObserver()
134 override fun addAsyncObserver(observer: Observer<T>) { in addAsyncObserver()
138 override fun removeObserver(observer: Observer<T>) { in removeObserver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationHostViewControllerTest.java32 import androidx.lifecycle.Observer;
93 private ArgumentCaptor<Observer<Collection<ComplicationViewModel>>> mObserverCaptor;
136 final Observer<Collection<ComplicationViewModel>> observer = in testViewModelObservation()
155 final Observer<Collection<ComplicationViewModel>> observer = in testMalformedComplicationAddition()
170 final Observer<Collection<ComplicationViewModel>> observer = in testNewComplicationsBeforeEntryAnimationsFinishSetToInvisible()
184 final Observer<Collection<ComplicationViewModel>> observer = in testNewComplicationsAfterEntryAnimationsFinishNotSetToInvisible()
204 final Observer<Collection<ComplicationViewModel>> observer = in testAnimationsDisabled_ComplicationsNeverSetToInvisible()
216 private Observer<Collection<ComplicationViewModel>> captureComplicationViewModelsObserver() { in captureComplicationViewModelsObserver()
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DObserverTest.kt34 private val observer1 = mock<Observer>()
35 private val observer2 = mock<Observer>()
58 var observer: Observer? = Observer { counter.incrementAndGet() } in addObserver_weaklyReferenced()
94 val observer = Observer { observable.addObserver(observer1, executor1) } in notifyChange_addObserverWithinCallback()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DSingleStateQueue.h33 class Observer; variable
45 friend class Observer; member
114 class Observer {
116 Observer(Shared *shared) in Observer() function
/frameworks/native/libs/ftl/
Dfunction_test.cpp259 struct Observer { in TEST() struct
264 auto f = ftl::make_function<&Observer::setCalled>(&observer); in TEST()
270 EXPECT_TRUE(f == ftl::Function<void()>::make<&Observer::setCalled>(&observer)); in TEST()
274 struct Observer { in TEST() struct
279 const auto f = ftl::make_function<&Observer::setCalled>(&observer); in TEST()
285 EXPECT_TRUE(f == ftl::Function<void()>::make<&Observer::setCalled>(&observer)); in TEST()
289 const struct Observer { in TEST() struct
294 const auto f = ftl::make_function<&Observer::setCalled>(&observer); in TEST()
300 EXPECT_TRUE(f == ftl::Function<void()>::make<&Observer::setCalled>(&observer)); in TEST()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/ui/widgets/
DCommunalAppWidgetHostTest.kt109 val observer = mock<CommunalAppWidgetHost.Observer>() in observer_onHostStartListeningTriggeredWhileObserverActive()
135 val observer = mock<CommunalAppWidgetHost.Observer>() in observer_onHostStopListeningTriggeredWhileObserverActive()
161 val observer = mock<CommunalAppWidgetHost.Observer>() in observer_onAllocateAppWidgetIdTriggeredWhileObserverActive()
187 val observer = mock<CommunalAppWidgetHost.Observer>() in observer_onDeleteAppWidgetIdTriggeredWhileObserverActive()
213 val observer1 = mock<CommunalAppWidgetHost.Observer>() in observer_multipleObservers()
214 val observer2 = mock<CommunalAppWidgetHost.Observer>() in observer_multipleObservers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHost.kt51 @GuardedBy("observers") private val observers = mutableSetOf<Observer>() in <lambda>()
120 fun addObserver(observer: Observer) { in <lambda>()
124 fun removeObserver(observer: Observer) { in <lambda>()
136 interface Observer { in <lambda>() interface
/frameworks/base/core/tests/coretests/src/android/os/
DFileObserverTest.java50 private Observer mObserver;
53 private static class Observer extends FileObserver { class in FileObserverTest
57 public Observer(String path) { in Observer() method in FileObserverTest.Observer
95 mObserver = new Observer(mTestFile.getParent()); in testRun()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuView.java33 import androidx.lifecycle.Observer;
61 private final Observer<MenuFadeEffectInfo> mFadeEffectInfoObserver =
63 private final Observer<Boolean> mMoveToTuckedObserver = this::onMoveToTucked;
64 private final Observer<Position> mPercentagePositionObserver = this::onPercentagePosition;
65 private final Observer<Integer> mSizeTypeObserver = this::onSizeTypeChanged;
66 private final Observer<List<AccessibilityTarget>> mTargetFeaturesObserver =
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifLiveDataImplTest.kt20 import androidx.lifecycle.Observer in <lambda>()
43 private val syncObserver: Observer<Int> = mock() in <lambda>()
44 private val asyncObserver: Observer<Int> = mock() in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/
DSpaSliceProvider.kt21 import androidx.lifecycle.Observer
32 class SpaSliceProvider : SliceProvider(), Observer<Slice?> {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DPersistentConnectionManagerTest.java56 private Observer mObserver;
157 ArgumentCaptor<Observer.Callback> callbackCaptor = in testAttemptOnPackageChange()
158 ArgumentCaptor.forClass(Observer.Callback.class); in testAttemptOnPackageChange()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java36 private final Observer mObserver;
43 public interface Observer { interface in ServiceResolver
47 …public ServiceResolver(Context context, Observer observer, VendorInfo vendorInfo, String[] service… in ServiceResolver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceCoreStartable.kt22 import androidx.lifecycle.Observer in <lambda>()
51 private val observer = Observer(this::updateLastNonSilentRingerMode) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/content/
DContentQueryMapTest.java29 import java.util.Observer;
78 cqm.addObserver(new Observer() { in testContentQueryMap()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DScreenLifecycleTest.java43 private ScreenLifecycle.Observer mScreenObserverMock;
48 mScreenObserverMock = mock(ScreenLifecycle.Observer.class); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/service/
DPersistentConnectionManager.java55 private final Observer mObserver;
72 private final Observer.Callback mObserverCallback = () -> initiateConnectionAttempt();
108 @Named(OBSERVER) Observer observer) { in PersistentConnectionManager()

12345