Home
last modified time | relevance | path

Searched defs:observer (Results 1 – 25 of 249) sorted by relevance

12345678910

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java79 public void addObserver(androidx.lifecycle.LifecycleObserver observer) { in addObserver()
89 public void removeObserver(androidx.lifecycle.LifecycleObserver observer) { in removeObserver()
102 final LifecycleObserver observer = mObservers.get(i); in onAttach() local
113 final LifecycleObserver observer = mObservers.get(i); in onCreate() local
122 final LifecycleObserver observer = mObservers.get(i); in onStart() local
131 final LifecycleObserver observer = mObservers.get(i); in setPreferenceScreen() local
140 final LifecycleObserver observer = mObservers.get(i); in onResume() local
149 final LifecycleObserver observer = mObservers.get(i); in onPause() local
158 final LifecycleObserver observer = mObservers.get(i); in onSaveInstanceState() local
167 final LifecycleObserver observer = mObservers.get(i); in onStop() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DLifecycleFragmentTest.java54 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testCreateLifecycle() local
66 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testResumeLifecycle() local
78 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testStartLifecycle() local
90 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testStopLifecycle() local
104 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testPauseLifecycle() local
118 LifecycleEventObserver observer = mock(LifecycleEventObserver.class); in testDestroyLifecycle() local
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDockObserverTest.java51 BroadcastInterceptingContext.FutureIntent updateExtconDockState(DockObserver observer, in updateExtconDockState()
68 void assertDockEventIntentWithExtraThenUndock(DockObserver observer, String extconDockState, in assertDockEventIntentWithExtraThenUndock()
93 DockObserver observer = new DockObserver(mInterceptingContext); in testDockIntentBroadcast_onlyAfterBootReady() local
107 DockObserver observer = observerWithMappingConfig( in testDockIntentBroadcast_customConfigResource() local
131 DockObserver observer = observerWithMappingConfig(new String[] { in testDockIntentBroadcast_customConfigResourceWithWildcard() local
144 DockObserver observer = new DockObserver(mInterceptingContext); in testDockIntentBroadcast_deviceNotProvisioned() local
/frameworks/base/services/core/java/com/android/server/utils/
DWatchable.java37 public void registerObserver(@NonNull Watcher observer); in registerObserver()
45 public void unregisterObserver(@NonNull Watcher observer); in unregisterObserver()
52 public boolean isRegisteredObserver(@NonNull Watcher observer); in isRegisteredObserver()
71 static void verifyWatchedAttributes(Object base, Watcher observer, boolean logOnly) { in verifyWatchedAttributes()
114 static void verifyWatchedAttributes(Object base, Watcher observer) { in verifyWatchedAttributes()
DWatchableImpl.java45 public void registerObserver(@NonNull Watcher observer) { in registerObserver()
61 public void unregisterObserver(@NonNull Watcher observer) { in unregisterObserver()
74 public boolean isRegisteredObserver(@NonNull Watcher observer) { in isRegisteredObserver()
/frameworks/base/core/java/android/app/backup/
DRestoreSession.java55 public int getAvailableRestoreSets(RestoreObserver observer, BackupManagerMonitor monitor) { in getAvailableRestoreSets()
79 public int getAvailableRestoreSets(RestoreObserver observer) { in getAvailableRestoreSets()
98 public int restoreAll(long token, RestoreObserver observer, BackupManagerMonitor monitor) { in restoreAll()
129 public int restoreAll(long token, RestoreObserver observer) { in restoreAll()
153 public int restorePackages(long token, @Nullable RestoreObserver observer, in restorePackages()
190 public int restorePackages(long token, @Nullable RestoreObserver observer, in restorePackages()
219 public int restoreSome(long token, RestoreObserver observer, BackupManagerMonitor monitor, in restoreSome()
246 public int restoreSome(long token, RestoreObserver observer, String[] packages) { in restoreSome()
272 public int restorePackage(String packageName, RestoreObserver observer, in restorePackage()
307 public int restorePackage(String packageName, RestoreObserver observer) { in restorePackage()
DIRestoreSession.aidl38 int getAvailableRestoreSets(IRestoreObserver observer, IBackupManagerMonitor monitor); in getAvailableRestoreSets()
54 int restoreAll(long token, IRestoreObserver observer, IBackupManagerMonitor monitor); in restoreAll()
74 int restorePackages(long token, IRestoreObserver observer, in String[] packages, in restorePackages()
93 int restorePackage(in String packageName, IRestoreObserver observer, in restorePackage()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DFullBackupRestoreObserverUtils.java36 public static IFullBackupRestoreObserver sendStartRestore(IFullBackupRestoreObserver observer) { in sendStartRestore()
57 IFullBackupRestoreObserver observer, String name) { in sendOnRestorePackage()
77 public static IFullBackupRestoreObserver sendEndRestore(IFullBackupRestoreObserver observer) { in sendEndRestore()
DBackupObserverUtils.java35 public static void sendBackupOnUpdate(IBackupObserver observer, String packageName, in sendBackupOnUpdate()
52 public static void sendBackupOnPackageResult(IBackupObserver observer, String packageName, in sendBackupOnPackageResult()
69 public static void sendBackupFinished(IBackupObserver observer, int status) { in sendBackupFinished()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationHostViewControllerTest.java136 final Observer<Collection<ComplicationViewModel>> observer = in testViewModelObservation() local
155 final Observer<Collection<ComplicationViewModel>> observer = in testMalformedComplicationAddition() local
170 final Observer<Collection<ComplicationViewModel>> observer = in testNewComplicationsBeforeEntryAnimationsFinishSetToInvisible() local
184 final Observer<Collection<ComplicationViewModel>> observer = in testNewComplicationsAfterEntryAnimationsFinishNotSetToInvisible() local
204 final Observer<Collection<ComplicationViewModel>> observer = in testAnimationsDisabled_ComplicationsNeverSetToInvisible() local
/frameworks/base/services/backup/java/com/android/server/backup/params/
DRestoreParams.java30 public final IRestoreObserver observer; field in RestoreParams
45 IRestoreObserver observer, in createForSinglePackage()
69 IRestoreObserver observer, in createForRestoreAtInstall()
95 IRestoreObserver observer, in createForRestoreAll()
118 IRestoreObserver observer, in createForRestorePackages()
140 IRestoreObserver observer, in RestoreParams()
/frameworks/av/services/mediaresourcemanager/aidl_api/resourceobserver_aidl_interface/1/android/media/
DIResourceObserverService.aidl37 …void registerObserver(android.media.IResourceObserver observer, in android.media.MediaObservableFi… in registerObserver()
38 void unregisterObserver(android.media.IResourceObserver observer); in unregisterObserver()
/frameworks/av/services/mediaresourcemanager/aidl_api/resourceobserver_aidl_interface/current/android/media/
DIResourceObserverService.aidl21 …void registerObserver(android.media.IResourceObserver observer, in android.media.MediaObservableFi… in registerObserver()
22 void unregisterObserver(android.media.IResourceObserver observer); in unregisterObserver()
/frameworks/av/services/mediaresourcemanager/aidl/android/media/
DIResourceObserverService.aidl39 IResourceObserver observer, in registerObserver()
48 void unregisterObserver(IResourceObserver observer); in unregisterObserver()
/frameworks/base/core/java/android/view/
DIWindowId.aidl23 void registerFocusObserver(IWindowFocusObserver observer); in registerFocusObserver()
24 void unregisterFocusObserver(IWindowFocusObserver observer); in unregisterFocusObserver()
/frameworks/base/libs/hwui/
DRenderNode.cpp72 ImmediateRemoved observer(nullptr); in ~RenderNode() local
130 MarkAndSweepRemoved observer(&info); in prepareTree() local
220 void RenderNode::prepareTreeImpl(TreeObserver& observer, TreeInfo& info, bool functorsNeedLayer) { in prepareTreeImpl()
269 bool functorsNeedLayer) { in prepareTreeImpl()
375 void RenderNode::syncDisplayList(TreeObserver& observer, TreeInfo* info) { in syncDisplayList()
432 void RenderNode::pushStagingDisplayListChanges(TreeObserver& observer, TreeInfo& info) { in pushStagingDisplayListChanges()
443 void RenderNode::deleteDisplayList(TreeObserver& observer, TreeInfo* info) { in deleteDisplayList()
457 ImmediateRemoved observer(info); in destroyHardwareResources() local
471 void RenderNode::decParentRefCount(TreeObserver& observer, TreeInfo* info) { in decParentRefCount()
490 ImmediateRemoved observer(nullptr); in clearRoot() local
DFrameMetricsReporter.h38 void addObserver(FrameMetricsObserver* observer) { in addObserver()
43 bool removeObserver(FrameMetricsObserver* observer) { in removeObserver()
/frameworks/base/libs/hwui/tests/unit/
DFrameMetricsReporterTests.cpp42 auto observer = sp<TestFrameMetricsObserver>::make(false /*waitForPresentTime*/); in TEST() local
74 auto observer = sp<TestFrameMetricsObserver>::make(hasPresentTime); in TEST() local
95 auto observer = sp<TestFrameMetricsObserver>::make(hasPresentTime); in TEST() local
118 auto observer = in TEST() local
150 auto observer = in TEST() local
175 auto observer = sp<TestFrameMetricsObserver>::make(hasPresentTime /*waitForPresentTime*/); in TEST() local
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DRollbackPackageHealthObserverTest.java123 RollbackPackageHealthObserver observer = in testHealthCheckLevels() local
167 RollbackPackageHealthObserver observer = in testIsPersistent() local
174 RollbackPackageHealthObserver observer = in testMayObservePackage_withoutAnyRollback() local
184 RollbackPackageHealthObserver observer = in testMayObservePackage_forPersistentApp() local
199 RollbackPackageHealthObserver observer = in testMayObservePackage_forNonPersistentApp() local
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentResolver.java85 ContentObserver observer) { in registerContentObserver()
94 ContentObserver observer, int userHandle) { in registerContentObserver()
102 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver()
110 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { in notifyChange()
/frameworks/base/test-mock/src/android/test/mock/
DMockContentResolver.java141 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer) { in notifyChange()
156 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer, in notifyChange()
166 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer, in notifyChange()
176 public void notifyChange(@NonNull Collection<Uri> uris, @Nullable ContentObserver observer, in notifyChange()
/frameworks/base/core/java/android/database/
DObservable.java43 public void registerObserver(T observer) { in registerObserver()
62 public void unregisterObserver(T observer) { in unregisterObserver()
/frameworks/base/services/core/java/com/android/server/pm/
DWatchedIntentResolver.java56 public void registerObserver(@NonNull Watcher observer) { in registerObserver()
65 public void unregisterObserver(@NonNull Watcher observer) { in unregisterObserver()
75 public boolean isRegisteredObserver(@NonNull Watcher observer) { in isRegisteredObserver()
DSettingBase.java50 public void registerObserver(@NonNull Watcher observer) { in registerObserver()
61 public void unregisterObserver(@NonNull Watcher observer) { in unregisterObserver()
71 public boolean isRegisteredObserver(@NonNull Watcher observer) { in isRegisteredObserver()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java238 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testBootLoopDetectionWithExecutionForAllRescueLevels() local
320 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testNonPersistentAppCrashDetectionWithScopedResets() local
377 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testNonDeviceConfigSettingsOnlyResetOncePerLevel() local
566 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testHealthCheckLevels() local
592 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testBootLoopLevels() local
610 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testResetDeviceConfigForPackagesOnlyRuntimeMap() local
661 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testResetDeviceConfigForPackagesBothMaps() local
697 RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); in testResetDeviceConfigNoExceptionWhenFlagMalformed() local

12345678910