Home
last modified time | relevance | path

Searched refs:addObserver (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DLifecycleFragmentTest.java55 fragment.getLifecycle().addObserver(observer); in testCreateLifecycle()
67 fragment.getLifecycle().addObserver(observer); in testResumeLifecycle()
79 fragment.getLifecycle().addObserver(observer); in testStartLifecycle()
91 fragment.getLifecycle().addObserver(observer); in testStopLifecycle()
105 fragment.getLifecycle().addObserver(observer); in testPauseLifecycle()
119 fragment.getLifecycle().addObserver(observer); in testDestroyLifecycle()
DSysuiLifecycleTest.java57 lifecycle.getLifecycle().addObserver(observer); in testAttach()
75 lifecycle.getLifecycle().addObserver(observer); in testDetach()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DLifecycleTest.java52 mLifecycle.addObserver(mObj1); in addObserver_addsObserver()
61 mLifecycle.addObserver(mObj1); in removeObserver()
71 mLifecycle.addObserver(mObj1); in dispatch()
72 mLifecycle.addObserver(mObj2); in dispatch()
DScreenLifecycleTest.java48 mScreen.addObserver(mScreenObserverMock); in setUp()
DWakefulnessLifecycleTest.java49 mWakefulness.addObserver(mWakefulnessObserver); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java61 mLifecycle.addObserver(mFragObserver); in TestDialogFragment()
71 getSettingsLifecycle().addObserver(mFragObserver); in TestFragment()
81 getSettingsLifecycle().addObserver(mActObserver); in TestActivity()
234 mLifecycle.addObserver(new OnStartObserver(mLifecycle)); in addObserverDuringObserve_shoudNotCrash()
254 fragment.getLifecycle().addObserver(accepter); in onOptionItemSelectedShortCircuitsIfAnObserverHandlesTheMenuItem()
274 mLifecycle.addObserver(new LifecycleObserver() { in onStart()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallEventReceiver.java61 static int addObserver(@NonNull Context context, int id, in addObserver() method in InstallEventReceiver
64 return getReceiver(context).addObserver(id, observer); in addObserver()
DUninstallEventReceiver.java61 static int addObserver(@NonNull Context context, int id, in addObserver() method in UninstallEventReceiver
64 return getReceiver(context).addObserver(id, observer); in addObserver()
DUninstallUninstalling.java89 mUninstallId = UninstallEventReceiver.addObserver(this, in onCreate()
114 UninstallEventReceiver.addObserver(this, mUninstallId, this); in onCreate()
DInstallInstalling.java125 InstallEventReceiver.addObserver(this, mInstallId, in onCreate()
163 .addObserver(this, EventResultPersister.GENERATE_NEW_ID, in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java54 verify(lifecycle).addObserver(observer.capture()); in testAddCallback()
72 verify(lifecycle).addObserver(observer.capture()); in testRemoveCallback()
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/
DActionBarShadowController.java67 lifecycle.addObserver(this); in ActionBarShadowController()
74 lifecycle.addObserver(this); in ActionBarShadowController()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java71 addObserver(mProxy); in Lifecycle()
79 public void addObserver(androidx.lifecycle.LifecycleObserver observer) { in addObserver() method in Lifecycle
81 super.addObserver(observer); in addObserver()
/frameworks/base/core/java/android/os/
DUEventObserver.java105 t.addObserver(match, this); in startObserving()
223 public void addObserver(String match, UEventObserver observer) { in addObserver() method in UEventObserver.UEventThread
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DLifecycle.java29 public void addObserver(T observer) { in addObserver() method in Lifecycle
/frameworks/base/libs/hwui/
DFrameMetricsReporter.h35 void addObserver(FrameMetricsObserver* observer) { mObservers.push_back(observer); } in addObserver() function
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java40 lifecycle.addObserver((LifecycleEventObserver) (lifecycleOwner, event) -> { in observe()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
DFooterPreferenceMixinCompat.java35 lifecycle.addObserver(this); in FooterPreferenceMixinCompat()
DFooterPreferenceMixin.java41 lifecycle.addObserver(this); in FooterPreferenceMixin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractConnectivityPreferenceController.java58 lifecycle.addObserver(this); in AbstractConnectivityPreferenceController()
DAbstractUptimePreferenceController.java53 lifecycle.addObserver(this); in AbstractUptimePreferenceController()
/frameworks/base/core/tests/coretests/src/android/content/
DContentQueryMapTest.java78 cqm.addObserver(new Observer() { in testContentQueryMap()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionControllerMixin.java73 lifecycle.addObserver(this); in SuggestionControllerMixin()
DSuggestionControllerMixinCompat.java72 lifecycle.addObserver(this); in SuggestionControllerMixinCompat()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java180 Dependency.get(WakefulnessLifecycle.class).addObserver(mWakefulnessObserver); in BiometricUnlockController()
181 Dependency.get(ScreenLifecycle.class).addObserver(mScreenObserver); in BiometricUnlockController()

12