Searched refs:observers (Results 1 - 25 of 74) sorted by relevance

123

/external/chromium_org/ash/shelf/
H A Dscoped_observer_with_duplicated_sources_unittest.cc47 observers(&observer);
49 EXPECT_FALSE(observers.IsObserving(&source1));
51 EXPECT_FALSE(observers.IsObserving(&source2));
54 observers.Add(&source1);
56 EXPECT_TRUE(observers.IsObserving(&source1));
58 observers.Add(&source1);
60 EXPECT_TRUE(observers.IsObserving(&source1));
63 observers.Add(&source2);
65 EXPECT_TRUE(observers.IsObserving(&source2));
68 observers
[all...]
/external/chromium_org/base/power_monitor/
H A Dpower_monitor_unittest.cc35 PowerMonitorTestObserver observers[kObservers]; local
37 monitor()->AddObserver(&observers[index]);
41 EXPECT_EQ(observers[0].resumes(), 0);
45 // Ensure all observers were notified of the event
47 EXPECT_EQ(observers[index].suspends(), 1);
51 EXPECT_EQ(observers[0].suspends(), 1);
55 EXPECT_EQ(observers[0].resumes(), 1);
59 EXPECT_EQ(observers[0].resumes(), 1);
63 EXPECT_EQ(observers[0].power_state_changes(), 1);
64 EXPECT_EQ(observers[
[all...]
/external/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/
H A DAndroid.mk17 test_makefile := external/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/Android.mk
19 test_name := diagnostics/syserr/syserr.errcode/syserr.errcode.observers/bool
23 test_name := diagnostics/syserr/syserr.errcode/syserr.errcode.observers/default_error_condition
27 test_name := diagnostics/syserr/syserr.errcode/syserr.errcode.observers/category
31 test_name := diagnostics/syserr/syserr.errcode/syserr.errcode.observers/message
35 test_name := diagnostics/syserr/syserr.errcode/syserr.errcode.observers/value
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DMutationObserverInterestGroup.cpp42 WillBeHeapHashMap<RawPtrWillBeMember<MutationObserver>, MutationRecordDeliveryOptions> observers; local
43 target.getRegisteredMutationObserversOfType(observers, type, attributeName);
44 if (observers.isEmpty())
47 return adoptPtrWillBeNoop(new MutationObserverInterestGroup(observers, oldValueFlag));
50 MutationObserverInterestGroup::MutationObserverInterestGroup(WillBeHeapHashMap<RawPtrWillBeMember<MutationObserver>, MutationRecordDeliveryOptions>& observers, MutationRecordDeliveryOptions oldValueFlag) argument
53 ASSERT(!observers.isEmpty());
54 m_observers.swap(observers);
H A DMutationObserver.cpp259 MutationObserverVector observers; local
260 copyToVector(activeMutationObservers(), observers); local
262 std::sort(observers.begin(), observers.end(), ObserverLessThan());
263 for (size_t i = 0; i < observers.size(); ++i) {
264 if (observers[i]->canDeliver())
265 observers[i]->deliver();
267 suspendedMutationObservers().add(observers[i]);
/external/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/
H A DAndroid.mk17 test_makefile := external/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/Android.mk
19 test_name := diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/bool
23 test_name := diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/category
27 test_name := diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/message
31 test_name := diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/value
/external/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/
H A DAndroid.mk17 test_makefile := external/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/Android.mk
19 test_name := utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/get
23 test_name := utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/explicit_bool
27 test_name := utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/index
31 test_name := utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/get_deleter
/external/chromium_org/base/system_monitor/
H A Dsystem_monitor_unittest.cc34 MockDevicesChangedObserver observers[kObservers]; local
36 system_monitor_->AddDevicesChangedObserver(&observers[index]);
38 EXPECT_CALL(observers[index],
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
H A Dnotifier.h61 // Copy the list of observers to avoid a crash if the observer object
64 std::list<ObserverInterface*> observers = observers_; local
65 for (std::list<ObserverInterface*>::iterator it = observers.begin();
66 it != observers.end(); ++it) {
/external/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/
H A DAndroid.mk17 test_makefile := external/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/Android.mk
19 test_name := utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/dereference
23 test_name := utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/get
27 test_name := utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/explicit_bool
31 test_name := utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/op_arrow
35 test_name := utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/get_deleter
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DNetworkStateNotifier.cpp95 ASSERT(result.storedValue->value->observers.find(observer) == kNotFound);
96 result.storedValue->value->observers.append(observer);
108 Vector<NetworkStateObserver*>& observers = observerList->observers;
109 size_t index = observers.find(observer);
111 observers[index] = 0;
144 for (size_t i = 0; i < observerList->observers.size(); ++i) {
146 if (observerList->observers[i])
147 observerList->observers[i]->connectionTypeChange(type);
168 // If any observers wer
[all...]
/external/chromium_org/chrome/browser/
H A Dcommand_updater.cc18 ObserverList<CommandObserver> observers; member in class:CommandUpdater::Command
57 GetCommand(id, true)->observers.AddObserver(observer);
61 GetCommand(id, false)->observers.RemoveObserver(observer);
70 command->observers.RemoveObserver(observer);
79 FOR_EACH_OBSERVER(CommandObserver, command->observers,
/external/chromium_org/chrome/browser/extensions/api/storage/
H A Dsync_value_store_cache.cc41 const scoped_refptr<SettingsObserverList>& observers,
53 factory, observers, profile_path));
94 const scoped_refptr<SettingsObserverList>& observers,
102 observers,
109 observers,
39 SyncValueStoreCache( const scoped_refptr<SettingsStorageFactory>& factory, const scoped_refptr<SettingsObserverList>& observers, const base::FilePath& profile_path) argument
92 InitOnFileThread( const scoped_refptr<SettingsStorageFactory>& factory, const scoped_refptr<SettingsObserverList>& observers, const base::FilePath& profile_path) argument
H A Dsync_value_store_cache.h35 const scoped_refptr<SettingsObserverList>& observers,
49 const scoped_refptr<SettingsObserverList>& observers,
/external/chromium_org/storage/browser/fileapi/
H A Dtask_runner_bound_observer_list.h43 // Creates a new list with given |observers|.
45 const ObserversListMap& observers)
46 : observers_(observers) {}
58 ObserversListMap observers = observers_; local
59 observers.insert(std::make_pair(observer, runner_to_notify));
60 return TaskRunnerBoundObserverList<Observer, ObserverStoreType>(observers);
44 TaskRunnerBoundObserverList( const ObserversListMap& observers) argument
/external/chromium_org/sync/sessions/
H A Ddirectory_type_debug_info_emitter.h40 // The |directory| and |observers| arguments are not owned. Both may be
46 ObserverList<TypeDebugInfoObserver>* observers);
51 ObserverList<TypeDebugInfoObserver>* observers);
64 // Triggerss a commit counters update to registered observers.
73 // Triggers an update counters update to registered observers.
76 // Triggers a status counters update to registered observers.
H A Ddirectory_type_debug_info_emitter.cc17 ObserverList<TypeDebugInfoObserver>* observers)
20 type_debug_info_observers_(observers) {}
24 ObserverList<TypeDebugInfoObserver>* observers)
27 type_debug_info_observers_(observers) {}
14 DirectoryTypeDebugInfoEmitter( syncable::Directory* directory, syncer::ModelType type, ObserverList<TypeDebugInfoObserver>* observers) argument
22 DirectoryTypeDebugInfoEmitter( ModelType type, ObserverList<TypeDebugInfoObserver>* observers) argument
/external/chromium_org/ui/v2/src/
H A Dview_private.h26 ObserverList<ViewObserver>* observers() { return &view_->observers_; } function in class:v2::ViewPrivate
/external/chromium_org/chrome/browser/extensions/api/
H A Dchrome_extensions_api_client.cc35 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
39 new SyncValueStoreCache(factory, observers, context->GetPath());
44 new ManagedValueStoreCache(context, factory, observers);
32 AddAdditionalValueStoreCaches( content::BrowserContext* context, const scoped_refptr<SettingsStorageFactory>& factory, const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) argument
/external/chromium_org/chrome/browser/resources/chromeos/login/
H A Dscreen_context.js87 var observers = this.cloneObservers_();
89 if (observers.hasOwnProperty(key)) {
90 var keyObservers = observers[key];
126 * Creates deep copy of observers lists.
/external/chromium_org/chrome/browser/ui/
H A Dbrowser_instant_controller_unittest.cc95 ScopedVector<FakeWebContentsObserver> observers; local
109 observers.push_back(new FakeWebContentsObserver(contents));
115 FakeWebContentsObserver* observer = observers[i];
134 ScopedVector<FakeWebContentsObserver> observers; local
148 observers.push_back(new FakeWebContentsObserver(contents));
155 FakeWebContentsObserver* observer = observers[i];
/external/chromium_org/base/prefs/
H A Dpref_notifier_impl.cc22 // Verify that there are no pref observers when we shut down.
31 // Same for initialization observers.
85 // observers, or we can end up in this method re-entrantly before
86 // clearing the observers list.
87 PrefInitObserverList observers(init_observers_);
90 for (PrefInitObserverList::iterator it = observers.begin();
91 it != observers.end();
/external/chromium_org/ash/first_run/
H A Dfirst_run_helper.h74 ObserverList<Observer>& observers() { return observers_; } function in class:ash::FirstRunHelper
/external/chromium_org/base/
H A Dobserver_list.h20 // A container for a list of observers. Unlike a normal STL vector or list,
23 // or other observers from the list while observers are being notified.
67 // Enumeration of which observers are notified.
69 // Specifies that any observers added during notification are notified.
73 // Specifies that observers added while sending out notification are not
78 // An iterator class that can be used to access the list of observers. See
147 ListType& observers = list_->observers_;
149 size_t max_index = std::min(max_index_, observers.size());
150 while (index_ < max_index && !observers[index
[all...]
/external/chromium_org/mojo/services/public/cpp/view_manager/lib/
H A Dview_private.h21 ObserverList<ViewObserver>* observers() { return &view_->observers_; } function in class:mojo::ViewPrivate

Completed in 6464 milliseconds

123