/external/chromium_org/base/android/java/src/org/chromium/base/ |
D | ObserverList.java | 46 public final List<E> mObservers = new ArrayList<E>(); field in ObserverList 62 if (obs == null || mObservers.contains(obs)) { in addObserver() 68 boolean result = mObservers.add(obs); in addObserver() 85 int index = mObservers.indexOf(obs); in removeObserver() 92 mObservers.remove(index); in removeObserver() 94 mObservers.set(index, null); in removeObserver() 103 return mObservers.contains(obs); in hasObserver() 110 mObservers.clear(); in clear() 114 int size = mObservers.size(); in clear() 116 mObservers.set(i, null); in clear() [all …]
|
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/ |
D | MockSyncContentResolverDelegate.java | 38 private final Set<AsyncSyncStatusObserver> mObservers; field in MockSyncContentResolverDelegate 48 mObservers = new HashSet<AsyncSyncStatusObserver>(); in MockSyncContentResolverDelegate() 58 synchronized (mObservers) { in addStatusChangeListener() 59 mObservers.add(asyncSyncStatusObserver); in addStatusChangeListener() 66 synchronized (mObservers) { in removeStatusChangeListener() 67 mObservers.remove(handle); in removeStatusChangeListener() 157 synchronized (mObservers) { in notifyObservers() 158 mPendingObserverCount = new Semaphore(1 - mObservers.size()); in notifyObservers() 159 for (AsyncSyncStatusObserver observer : mObservers) { in notifyObservers()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | PasswordUIView.java | 60 private ObserverList<PasswordListObserver> mObservers = field in PasswordUIView 75 for (PasswordListObserver observer : mObservers) { in passwordListAvailable() 82 for (PasswordListObserver observer : mObservers) { in passwordExceptionListAvailable() 88 mObservers.addObserver(observer); in addObserver() 92 mObservers.removeObserver(observer); in removeObserver() 149 mObservers.clear(); in destroy()
|
D | Tab.java | 119 private final ObserverList<TabObserver> mObservers = new ObserverList<TabObserver>(); field in Tab 181 for (TabObserver observer : mObservers) { in onLoadProgressChanged() 188 for (TabObserver observer : mObservers) observer.onLoadStarted(Tab.this); in onLoadStarted() 193 for (TabObserver observer : mObservers) observer.onLoadStopped(Tab.this); in onLoadStopped() 198 for (TabObserver observer : mObservers) observer.onUpdateUrl(Tab.this, url); in onUpdateUrl() 221 for (TabObserver observer : mObservers) { in toggleFullscreenModeForTab() 229 for (TabObserver observer : mObservers) observer.onTitleUpdated(Tab.this); in navigationStateChanged() 232 for (TabObserver observer : mObservers) observer.onUrlUpdated(Tab.this); in navigationStateChanged() 238 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(Tab.this); in visibleSSLStateChanged() 250 for (TabObserver observer : mObservers) observer.onContextMenuShown(Tab.this, menu); in buildContextMenu() [all …]
|
D | BookmarksBridge.java | 35 private final ObserverList<BookmarkModelObserver> mObservers = field in BookmarksBridge 142 mObservers.clear(); in destroy() 150 mObservers.addObserver(observer); in addObserver() 158 mObservers.removeObserver(observer); in removeObserver() 236 for (BookmarkModelObserver observer : mObservers) { in bookmarkNodeMoved() 243 for (BookmarkModelObserver observer : mObservers) { in bookmarkNodeAdded() 250 for (BookmarkModelObserver observer : mObservers) { in bookmarkNodeRemoved() 257 for (BookmarkModelObserver observer : mObservers) { in bookmarkNodeChanged() 264 for (BookmarkModelObserver observer : mObservers) { in bookmarkNodeChildrenReordered() 271 for (BookmarkModelObserver observer : mObservers) { in extensiveBookmarkChangesBeginning() [all …]
|
/external/chromium_org/chrome/android/shell/java/src/org/chromium/chrome/shell/ |
D | ChromeShellApplication.java | 43 ArrayList<ChromeShellApplicationObserver> mObservers; field in ChromeShellApplication 54 mObservers = new ArrayList<ChromeShellApplicationObserver>(); in onCreate() 63 for (ChromeShellApplicationObserver observer : mObservers) { in sendBroadcast() 71 mObservers.add(observer); in addObserver() 75 mObservers.remove(observer); in removeObserver()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/ |
D | AppMenuHandler.java | 31 private final ArrayList<AppMenuObserver> mObservers; field in AppMenuHandler 48 mObservers = new ArrayList<AppMenuObserver>(); in AppMenuHandler() 139 mObservers.add(observer); in addObserver() 147 mObservers.remove(observer); in removeObserver() 159 for (int i = 0; i < mObservers.size(); ++i) { in onMenuVisibilityChanged() 160 mObservers.get(i).onMenuVisibilityChanged(isVisible); in onMenuVisibilityChanged()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | ScreenOrientationListener.java | 146 private final ObserverList<ScreenOrientationObserver> mObservers = field in ScreenOrientationListener 206 if (!mObservers.addObserver(observer)) { in addObserver() 212 if (mObservers.size() == 1) { in addObserver() 235 if (!mObservers.removeObserver(observer)) { in removeObserver() 240 if (mObservers.isEmpty()) { in removeObserver() 261 for (ScreenOrientationObserver observer : mObservers) { in notifyObservers()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ |
D | TabModelBase.java | 37 private final ObserverList<TabModelObserver> mObservers; field in TabModelBase 63 mObservers = new ObserverList<TabModelObserver>(); in TabModelBase() 92 mObservers.addObserver(observer); in addObserver() 97 mObservers.removeObserver(observer); in removeObserver() 108 for (TabModelObserver obs : mObservers) obs.willAddTab(tab, type); in addTab() 144 for (TabModelObserver obs : mObservers) obs.didAddTab(tab, type); in addTab() 183 for (TabModelObserver obs : mObservers) obs.didMoveTab(tab, newIndex, curIndex); in moveTab() 282 for (TabModelObserver obs : mObservers) obs.tabClosureUndone(tab); in cancelTabClosure() 294 for (TabModelObserver obs : mObservers) obs.tabClosureCommitted(tab); in commitTabClosure() 321 for (TabModelObserver obs : mObservers) obs.tabPendingClosure(tabToClose); in closeTab() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/ |
D | OAuth2TokenService.java | 58 private final ObserverList<OAuth2TokenServiceObserver> mObservers; field in OAuth2TokenService 62 mObservers = new ObserverList<OAuth2TokenServiceObserver>(); in OAuth2TokenService() 78 mObservers.addObserver(observer); in addObserver() 83 mObservers.removeObserver(observer); in removeObserver() 258 for (OAuth2TokenServiceObserver observer : mObservers) { in notifyRefreshTokenAvailable() 277 for (OAuth2TokenServiceObserver observer : mObservers) { in notifyRefreshTokenRevoked() 293 for (OAuth2TokenServiceObserver observer : mObservers) { in notifyRefreshTokensLoaded()
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/ |
D | SyncStatusHelper.java | 159 private final ObserverList<SyncSettingsChangedObserver> mObservers = field in SyncStatusHelper 261 mObservers.addObserver(observer); in registerSyncSettingsChangedObserver() 268 mObservers.removeObserver(observer); in unregisterSyncSettingsChangedObserver() 433 for (SyncSettingsChangedObserver observer : mObservers) { in notifyObservers()
|
/external/chromium_org/base/android/javatests/src/org/chromium/base/ |
D | ObserverListTest.java | 206 assertEquals(5, (int) observerList.mObservers.get(0)); in testRewindableIterator() 208 assertEquals(null, observerList.mObservers.get(0)); in testRewindableIterator() 212 assertEquals(10, (int) observerList.mObservers.get(0)); in testRewindableIterator()
|