HomeSort by relevance Sort by last modified time
    Searched full:observer (Results 26 - 50 of 874) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/chromium/chrome/browser/policy/
device_token_fetcher_unittest.cc 30 class MockTokenAvailableObserver : public DeviceTokenFetcher::Observer {
76 MockTokenAvailableObserver observer; local
77 EXPECT_CALL(observer, OnDeviceTokenAvailable());
78 fetcher.AddObserver(&observer);
84 Mock::VerifyAndClearExpectations(&observer);
91 EXPECT_CALL(observer, OnDeviceTokenAvailable());
96 Mock::VerifyAndClearExpectations(&observer);
100 fetcher.RemoveObserver(&observer);
110 MockTokenAvailableObserver observer; local
111 EXPECT_CALL(observer, OnDeviceTokenAvailable())
128 MockTokenAvailableObserver observer; local
    [all...]
configuration_policy_store_interface_unittest.cc 13 TEST(ConfigurationPolicyStoreInterfaceTest, Observer) {
16 ObservingPolicyStoreInterface observer(&store);
18 EXPECT_FALSE(observer.IsProxyPolicyApplied());
19 observer.Apply(kPolicyJavascriptEnabled, Value::CreateBooleanValue(true));
20 EXPECT_FALSE(observer.IsProxyPolicyApplied());
21 observer.Apply(kPolicyProxyMode, Value::CreateStringValue("direct"));
22 EXPECT_TRUE(observer.IsProxyPolicyApplied());
23 observer.Apply(kPolicyIncognitoEnabled, Value::CreateBooleanValue(true));
24 EXPECT_TRUE(observer.IsProxyPolicyApplied());
mock_configuration_policy_provider.h 36 virtual void AddObserver(ConfigurationPolicyProvider::Observer* observer) {}
38 ConfigurationPolicyProvider::Observer* observer) {}
policy_notifier.h 34 // state and triggers observer notifications as necessary.
51 void AddObserver(CloudPolicySubsystem::Observer* observer);
52 void RemoveObserver(CloudPolicySubsystem::Observer* observer);
62 ObserverList<CloudPolicySubsystem::Observer, true> observer_list_;
  /external/chromium/chrome/browser/chromeos/cros/
mock_mount_library.h 25 MOCK_METHOD1(AddObserver, void(MountLibrary::Observer*));
26 MOCK_METHOD1(RemoveObserver, void(MountLibrary::Observer*));
37 void AddObserverInternal(MountLibrary::Observer* observer);
38 void RemoveObserverInternal(MountLibrary::Observer* observer);
47 ObserverList<MountLibrary::Observer> observers_;
update_library.cc 31 void AddObserver(Observer* observer) {
32 observers_.AddObserver(observer);
35 void RemoveObserver(Observer* observer) {
36 observers_.RemoveObserver(observer);
39 bool HasObserver(Observer* observer) {
40 return observers_.HasObserver(observer);
91 FOR_EACH_OBSERVER(Observer, observers_, UpdateStatusChanged(this))
    [all...]
screen_lock_library.h 18 class Observer {
20 virtual ~Observer() {}
27 virtual void AddObserver(Observer* observer) = 0;
28 virtual void RemoveObserver(Observer* observer) = 0;
  /external/chromium/net/proxy/
proxy_config_service_android.cc 11 void ProxyConfigServiceAndroid::AddObserver(Observer* observer) {
12 observers_.AddObserver(observer);
15 void ProxyConfigServiceAndroid::RemoveObserver(Observer* observer) {
16 observers_.RemoveObserver(observer);
47 FOR_EACH_OBSERVER(Observer, observers_,
  /external/chromium/chrome/browser/chromeos/
brightness_observer.h 14 // This observer displays a bubble at the bottom of the screen showing the
16 class BrightnessObserver : public BrightnessLibrary::Observer {
22 // BrightnessLibrary::Observer implementation.
mock_system_access.h 22 MOCK_METHOD1(AddObserver, void(Observer* observer));
23 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
  /libcore/luni/src/test/java/tests/api/java/util/
ObservableTest.java 21 import java.util.Observer;
26 static class TestObserver implements Observer {
42 static class DeleteTestObserver implements Observer {
75 Observer observer; field in class:ObservableTest
94 * java.util.Observable#addObserver(java.util.Observer)
98 // java.util.Observable.addObserver(java.util.Observer)
101 assertEquals("Failed to add observer", 1, observable.countObservers());
103 assertEquals("Duplicate observer", 1, observable.countObservers());
108 fail("Expected adding a null observer to throw a NPE.")
    [all...]
  /external/chromium/chrome/browser/ui/cocoa/location_bar/
autocomplete_text_field_editor.mm 63 AutocompleteTextFieldObserver* observer = [self observer];
64 DCHECK(observer);
65 if (observer && observer->CanCopy()) {
67 observer->CopyToPasteboard(pboard);
87 AutocompleteTextFieldObserver* observer = [self observer];
88 DCHECK(observer);
89 if (observer && observer->CanCopy()
    [all...]
  /external/clang/test/CodeGenObjC/
block-6.m 14 // CHECK-NEXT: [[OBSERVER:%.*]] = getelementptr inbounds [[OBSERVER_T]]* [[T0]], i32 0, i32 6
15 // CHECK-NEXT: store i8* [[T1]], i8** [[OBSERVER]]
16 __block id observer = ^{ return observer; };
  /external/chromium/chrome/browser/prefs/
overlay_persistent_pref_store.cc 22 void OverlayPersistentPrefStore::AddObserver(PrefStore::Observer* observer) {
23 observers_.AddObserver(observer);
26 void OverlayPersistentPrefStore::RemoveObserver(PrefStore::Observer* observer) {
27 observers_.RemoveObserver(observer);
64 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key));
74 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key));
100 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key));
105 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key))
    [all...]
  /external/chromium/chrome/browser/status_icons/
status_icon.h 41 class Observer {
43 virtual ~Observer() {}
46 // in the context menu being displayed will not be passed to this observer
53 // Adds/Removes an observer for clicks on the status icon. If an observer is
54 // registered, then left clicks on the status icon will result in the observer
57 void AddObserver(Observer* observer);
58 void RemoveObserver(Observer* observer);
    [all...]
  /external/chromium/net/base/
network_change_notifier.cc 61 void NetworkChangeNotifier::AddIPAddressObserver(IPAddressObserver* observer) {
63 g_network_change_notifier->ip_address_observer_list_->AddObserver(observer);
67 OnlineStateObserver* observer) {
70 observer);
75 IPAddressObserver* observer) {
78 observer);
83 OnlineStateObserver* observer) {
86 observer);
mapped_host_resolver.cc 38 void MappedHostResolver::AddObserver(Observer* observer) {
39 impl_->AddObserver(observer);
42 void MappedHostResolver::RemoveObserver(Observer* observer) {
43 impl_->RemoveObserver(observer);
  /dalvik/dx/src/com/android/dx/cf/direct/
StdAttributeFactory.java 81 int offset, int length, ParseObserver observer) {
85 return deprecated(cf, offset, length, observer);
88 return enclosingMethod(cf, offset, length, observer);
91 return innerClasses(cf, offset, length, observer);
95 observer);
99 observer);
102 return synthetic(cf, offset, length, observer);
105 return signature(cf, offset, length, observer);
108 return sourceFile(cf, offset, length, observer);
114 return constantValue(cf, offset, length, observer);
    [all...]
  /external/chromium/chrome/browser/ui/gtk/status_icons/
status_tray_gtk_unittest.cc 17 class MockStatusIconObserver : public StatusIcon::Observer {
42 // Create an icon, send a fake click event, make sure observer is called.
45 MockStatusIconObserver observer; local
46 icon->AddObserver(&observer);
47 EXPECT_CALL(observer, OnClicked());
50 icon->RemoveObserver(&observer);
  /external/chromium/chrome/browser/ui/webui/options/
font_settings_fonts_list_loader.cc 10 FontSettingsFontsListLoader::FontSettingsFontsListLoader(Observer* observer)
11 : observer_(observer) {
29 void FontSettingsFontsListLoader::SetObserver(Observer* observer) {
30 observer_ = observer;
  /libcore/luni/src/test/java/libcore/java/util/
OldObserverTest.java 20 import java.util.Observer;
25 class Mock_Observer implements Observer {
45 Mock_Observer observer = null; local
46 observable.addObserver(observer = new Mock_Observer());
48 assertEquals(0, observer.getUpdateCount());
51 assertEquals(1, observer.getUpdateCount());
  /packages/apps/Browser/tests/src/com/android/browser/tests/utils/
MockObserverNode.java 26 public final ContentObserver observer; field in class:MockObserverNode.MockObserverEntry
30 observer = o;
66 public void addObserver(Uri uri, ContentObserver observer,
68 addObserver(uri, 0, observer, notifyForDescendents);
71 private void addObserver(Uri uri, int index, ContentObserver observer,
73 // If this is the leaf node add the observer
75 mObservers.add(new MockObserverEntry(observer, notifyForDescendents));
82 throw new IllegalArgumentException("Invalid Uri (" + uri + ") used for observer");
88 node.addObserver(uri, index + 1, observer, notifyForDescendents);
96 node.addObserver(uri, index + 1, observer, notifyForDescendents)
    [all...]
  /external/chromium/chrome/browser/net/
chrome_net_log.cc 105 void ChromeNetLog::AddObserver(ThreadSafeObserver* observer) {
107 AddObserverWhileLockHeld(observer);
110 void ChromeNetLog::RemoveObserver(ThreadSafeObserver* observer) {
112 DCHECK_EQ(observer->net_log_, this);
113 observer->net_log_ = NULL;
114 observers_.RemoveObserver(observer);
119 ThreadSafeObserver* observer, EntryList* passive_entries) {
121 AddObserverWhileLockHeld(observer);
142 ThreadSafeObserver* observer; local
143 while ((observer = it.GetNext()) != NULL)
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ObservableTest.java 21 import java.util.Observer;
26 static class TestObserver implements Observer {
42 static class DeleteTestObserver implements Observer {
71 Observer observer; field in class:ObservableTest
86 * @tests java.util.Observable#addObserver(java.util.Observer)
90 // java.util.Observable.addObserver(java.util.Observer)
93 assertEquals("Failed to add observer", 1, observable.countObservers());
95 assertEquals("Duplicate observer", 1, observable.countObservers());
100 fail("Expected adding a null observer to throw a NPE.")
    [all...]
  /external/chromium/chrome/browser/
command_updater_unittest.cc 63 // Create an observer for the command 2 and add it to the controller, then
65 TestingCommandObserverMock observer; local
66 command_updater.AddCommandObserver(2, &observer);
68 EXPECT_TRUE(observer.enabled());
70 EXPECT_FALSE(observer.enabled());
72 // Remove the observer and update the command.
73 command_updater.RemoveCommandObserver(2, &observer);
75 EXPECT_FALSE(observer.enabled());
84 // removed observer still thinks all commands are true and the one left
99 // Remove one observer and update the command. Check the states, whic
    [all...]

Completed in 1149 milliseconds

12 3 4 5 6 7 8 91011>>