/system/update_engine/common/ |
fake_prefs.cc | 102 for (ObserverInterface* observer : copy_observers) 103 observer->OnPrefDeleted(key); 135 for (ObserverInterface* observer : copy_observers) 136 observer->OnPrefSet(key); 151 void FakePrefs::AddObserver(const string& key, ObserverInterface* observer) { 152 observers_[key].push_back(observer); 155 void FakePrefs::RemoveObserver(const string& key, ObserverInterface* observer) { 158 std::find(observers_for_key.begin(), observers_for_key.end(), observer); 160 << "Trying to remove an observer instance not watching the key "
|
prefs.cc | 41 for (ObserverInterface* observer : copy_observers) 42 observer->OnPrefSet(key); 89 for (ObserverInterface* observer : copy_observers) 90 observer->OnPrefDeleted(key); 95 void PrefsBase::AddObserver(const string& key, ObserverInterface* observer) { 96 observers_[key].push_back(observer); 99 void PrefsBase::RemoveObserver(const string& key, ObserverInterface* observer) { 102 std::find(observers_for_key.begin(), observers_for_key.end(), observer);
|
/system/update_engine/ |
daemon_state_android.cc | 80 void DaemonStateAndroid::AddObserver(ServiceObserverInterface* observer) { 81 service_observers_.insert(observer); 84 void DaemonStateAndroid::RemoveObserver(ServiceObserverInterface* observer) { 85 service_observers_.erase(observer);
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
AsecTests.java | 564 StorageListener observer = new StorageListener(); local 566 sm.registerListener(observer); 568 // Wait on observer 569 synchronized(observer) { 572 while((!observer.isDone()) && (waitTime < MAX_WAIT_TIME) ) { 573 observer.wait(WAIT_TIME_INCR); 576 if(!observer.isDone()) { 581 sm.unregisterListener(observer); 626 MultipleStorageLis observer = new MultipleStorageLis(); local 633 sm.registerListener(observer); 687 ShutdownObserver observer = new ShutdownObserver(); local 735 ShutdownObserver observer = new ShutdownObserver(); local [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
ContentService.java | 181 pw.println("Observer tree:"); 283 * Register a content observer tied to a specific user's view of the provider. 292 IContentObserver observer, int userHandle) { 293 if (observer == null || uri == null) { 294 throw new IllegalArgumentException("You must pass a valid uri and observer"); 300 // Registering an observer for any user other than the calling user requires uri grant or 320 mRootNode.addObserverLocked(uri, observer, notifyForDescendants, mRootNode, 322 if (false) Log.v(TAG, "Registered observer " + observer + " at " + uri + 328 IContentObserver observer) { 1170 public final IContentObserver observer; field in class:ContentService.ObserverNode.ObserverEntry [all...] |
/frameworks/base/core/java/android/os/ |
FileObserver.java | 88 public int startWatching(String path, int mask, FileObserver observer) { 94 m_observers.put(i, new WeakReference(observer)); 106 // look up our observer, fixing up the map if necessary... 107 FileObserver observer = null; local 112 observer = (FileObserver) weak.get(); 113 if (observer == null) { 119 // ...then call out to the observer without the sync lock held 120 if (observer != null) { 122 observer.onEvent(mask, path); 124 Log.wtf(LOG_TAG, "Unhandled exception in FileObserver " + observer, throwable) [all...] |
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
DynamicXYPlotActivity.java | 30 import java.util.Observer; 35 private class MyPlotUpdater implements Observer { 211 public void addObserver(Observer observer) { 212 notifier.addObserver(observer); 215 public void removeObserver(Observer observer) { 216 notifier.deleteObserver(observer);
|
/external/webrtc/talk/app/webrtc/ |
webrtcsessiondescriptionfactory.h | 72 CreateSessionDescriptionObserver* observer, 75 observer(observer), 79 rtc::scoped_refptr<CreateSessionDescriptionObserver> observer; member in struct:webrtc::CreateSessionDescriptionRequest 121 CreateSessionDescriptionObserver* observer, 124 void CreateAnswer(CreateSessionDescriptionObserver* observer, 165 CreateSessionDescriptionObserver* observer, 168 CreateSessionDescriptionObserver* observer,
|
dtlsidentitystore.h | 74 // The |observer| will be called when the requested identity is ready, or when 80 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer) { 82 RequestIdentity(rtc::KeyParams(key_type), observer); local 90 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer) { 92 RequestIdentity(key_params.type(), observer); 110 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer) override; 121 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer);
|
/external/webrtc/webrtc/voice_engine/ |
monitor_module.cc | 32 MonitorModule::RegisterObserver(MonitorObserver& observer) 39 _observerPtr = &observer;
|
/frameworks/base/core/java/android/database/ |
MergeCursor.java | 181 public void registerContentObserver(ContentObserver observer) { 185 mCursors[i].registerContentObserver(observer); 190 public void unregisterContentObserver(ContentObserver observer) { 194 mCursors[i].unregisterContentObserver(observer); 200 public void registerDataSetObserver(DataSetObserver observer) { 204 mCursors[i].registerDataSetObserver(observer); 210 public void unregisterDataSetObserver(DataSetObserver observer) { 214 mCursors[i].unregisterDataSetObserver(observer);
|
/frameworks/base/libs/hwui/renderthread/ |
CanvasContext.h | 96 void destroy(TreeObserver* observer); 102 void buildLayer(RenderNode* node, TreeObserver* observer); 106 void destroyHardwareResources(TreeObserver* observer); 149 void addFrameMetricsObserver(FrameMetricsObserver* observer) { 154 mFrameMetricsReporter->addObserver(observer); 157 void removeFrameMetricsObserver(FrameMetricsObserver* observer) { 159 mFrameMetricsReporter->removeObserver(observer); 179 void freePrefetchedLayers(TreeObserver* observer);
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/ |
test_observer.hpp | 12 // Description : defines abstract interface for test observer 37 // test observer interface
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
ProfileObserver.java | 56 public AdapterStateObserver(ProfileObserver observer) { 57 mProfileObserver = observer;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
AccountImageChangeObserver.java | 139 ContactChangeContentObserver observer; local 142 observer = mObserverMap.get(thisAccount.name); 143 if (observer != null) { 144 observer.addUriToNotifyList(changeNotifUri); 151 observer = new ContactChangeContentObserver(context, thisAccount); 152 mObserverMap.put(thisAccount.name, observer); 153 observer.addUriToNotifyList(changeNotifUri); 155 observer);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
FolderController.java | 33 void registerFolderObserver(DataSetObserver observer); 34 void unregisterFolderObserver(DataSetObserver observer);
|
RecentFolderController.java | 31 void registerRecentFolderObserver(DataSetObserver observer); 36 void unregisterRecentFolderObserver(DataSetObserver observer);
|
/system/bt/service/test/ |
mock_adapter.h | 31 MOCK_METHOD1(AddObserver, void(Observer*)); 32 MOCK_METHOD1(RemoveObserver, void(Observer*));
|
/system/update_engine/update_manager/ |
generic_variables_unittest.cc | 197 CallCounterObserver observer; local 198 var.AddObserver(&observer); 199 EXPECT_EQ(0, observer.calls_count_); 204 EXPECT_EQ(1, observer.calls_count_); 209 EXPECT_EQ(1, observer.calls_count_); 214 EXPECT_EQ(2, observer.calls_count_); 219 EXPECT_EQ(2, observer.calls_count_); 221 var.RemoveObserver(&observer);
|
/system/bt/service/ |
adapter.cpp | 59 void Adapter::Observer::OnAdapterStateChanged(Adapter* adapter, 65 void Adapter::Observer::OnDeviceConnectionStateChanged( 72 public hal::BluetoothInterface::Observer { 90 void AddObserver(Adapter::Observer* observer) override { 92 observers_.AddObserver(observer); 95 void RemoveObserver(Adapter::Observer* observer) override { 97 observers_.RemoveObserver(observer); 228 // hal::BluetoothInterface::Observer overrides [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
EventFacade.java | 204 Log.v(String.format("Removeing observer (%s) got event (%s)", 233 EventObserver observer; local 238 observer = new EventObserver() { 240 public void onEventReceived(Event event) { // set up observer for any events. 250 addGlobalEventObserver(observer); 261 Log.v(String.format("Removeing observer (%s) got event (%s)", observer, result)); 262 if (observer != null) { 263 removeEventObserver(observer); // Make quite sure this goes away. 309 for (EventObserver observer : mNamedEventObservers.get(name)) [all...] |
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/ |
ServiceResolver.java | 33 private final Observer mObserver; 40 public interface Observer { 44 public ServiceResolver(Context context, Observer observer, VendorInfo vendorInfo, String[] serviceTypes, String[] pdls) { 46 mObserver = observer;
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
DirectClassFile.java | 148 /** {@code null-ok;} parse observer, if any */ 149 private ParseObserver observer; field in class:DirectClassFile 210 * Sets the parse observer for this instance. 212 * @param observer {@code null-ok;} the observer 214 public void setObserver(ParseObserver observer) { 215 this.observer = observer; 349 return new DcfTypeList(bytes, offset, size, pool, observer); 465 if (observer != null) [all...] |
/external/webrtc/talk/app/webrtc/objc/ |
RTCPeerConnection.mm | 175 observer(new rtc::RefCountedObject< 177 self.peerConnection->CreateAnswer(observer, constraints.constraints); 183 observer(new rtc::RefCountedObject< 185 self.peerConnection->CreateOffer(observer, constraints.constraints); 196 rtc::scoped_refptr<webrtc::RTCSetSessionDescriptionObserver> observer( 199 self.peerConnection->SetLocalDescription(observer, sdp.sessionDescription); 205 rtc::scoped_refptr<webrtc::RTCSetSessionDescriptionObserver> observer( 208 self.peerConnection->SetRemoteDescription(observer, sdp.sessionDescription); 258 rtc::scoped_refptr<webrtc::RTCStatsObserver> observer( 264 observer, mediaStreamTrack.mediaTrack, nativeOutputLevel) [all...] |
/external/libweave/src/commands/ |
command_instance.h | 30 class Observer { 39 virtual ~Observer() {} 87 void AddObserver(Observer* observer); 88 void RemoveObserver(Observer* observer); 122 base::ObserverList<Observer> observers_;
|