/external/sl4a/Common/src/com/googlecode/android_scripting/trigger/ |
TriggerRepository.java | 122 for (TriggerRepositoryObserver observer : mTriggerObservers) { 123 observer.onPut(trigger); 129 for (TriggerRepositoryObserver observer : mTriggerObservers) { 130 observer.onRemove(trigger); 180 public void addObserver(TriggerRepositoryObserver observer) { 181 mTriggerObservers.add(observer); 188 * @param observer 189 * The observer to add. 191 public synchronized void bootstrapObserver(TriggerRepositoryObserver observer) { 192 addObserver(observer); [all...] |
/frameworks/base/core/java/android/view/ |
WindowId.java | 99 * Construct a new observer. This observer will be configured so that all 131 public void registerFocusObserver(FocusObserver observer) { 132 synchronized (observer.mRegistrations) { 133 if (observer.mRegistrations.containsKey(mToken.asBinder())) { 135 "Focus observer already registered with input token"); 137 observer.mRegistrations.put(mToken.asBinder(), this); 139 mToken.registerFocusObserver(observer.mIObserver); 148 public void unregisterFocusObserver(FocusObserver observer) { 149 synchronized (observer.mRegistrations) [all...] |
IWindowId.aidl | 23 void registerFocusObserver(IWindowFocusObserver observer); 24 void unregisterFocusObserver(IWindowFocusObserver observer);
|
/system/update_engine/update_manager/ |
variable_unittest.cc | 100 BaseVariableObserver observer; local 101 var.AddObserver(&observer); 103 var.AddObserver(&observer); 105 var.RemoveObserver(&observer); 107 var.RemoveObserver(&observer); 121 // Check that the observer is called with the right argument. 142 for (auto& observer : remove_observers_) { 143 variable->RemoveObserver(observer); 148 void OnCallRemoveObserver(BaseVariable::ObserverInterface* observer) { 149 remove_observers_.push_back(observer); [all...] |
/system/bt/service/hal/ |
bluetooth_interface.cpp | 53 // Helper for obtaining the observer list. This is forward declared here and 55 base::ObserverList<BluetoothInterface::Observer>* GetObservers(); 58 FOR_EACH_OBSERVER(BluetoothInterface::Observer, *GetObservers(), func) 236 void AddObserver(Observer* observer) override { 238 observers_.AddObserver(observer); 241 void RemoveObserver(Observer* observer) override { 243 observers_.RemoveObserver(observer); 293 base::ObserverList<Observer>* observers() { return &observers_; [all...] |
bluetooth_interface.h | 41 // variables. The Observer interface is to redirect these events to interested 45 class Observer { 47 virtual ~Observer() = default; 100 // Add or remove an observer that is interested in notifications from us. 101 virtual void AddObserver(Observer* observer) = 0; 102 virtual void RemoveObserver(Observer* observer) = 0;
|
/external/webrtc/webrtc/video/ |
encoded_frame_callback_adapter.cc | 20 EncodedFrameObserver* observer) : observer_(observer) {
|
call_stats.h | 43 // Registers/deregisters a new observer to receive statistics updates. 44 void RegisterStatsObserver(CallStatsObserver* observer); 45 void DeregisterStatsObserver(CallStatsObserver* observer); 64 // Observer receiving statistics updates.
|
/frameworks/base/core/java/android/database/ |
CursorWrapper.java | 216 public void registerContentObserver(ContentObserver observer) { 217 mCursor.registerContentObserver(observer); 221 public void registerDataSetObserver(DataSetObserver observer) { 222 mCursor.registerDataSetObserver(observer); 247 public void unregisterContentObserver(ContentObserver observer) { 248 mCursor.unregisterContentObserver(observer); 252 public void unregisterDataSetObserver(DataSetObserver observer) { 253 mCursor.unregisterDataSetObserver(observer);
|
CursorToBulkCursorAdaptor.java | 88 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, 98 createAndRegisterObserverProxyLocked(observer); 219 public int requery(IContentObserver observer) { 237 createAndRegisterObserverProxyLocked(observer); 243 * Create a ContentObserver from the observer and register it as an observer on the 245 * @param observer the IContentObserver that wants to monitor the cursor 246 * @throws IllegalStateException if an observer is already registered 248 private void createAndRegisterObserverProxyLocked(IContentObserver observer) { 250 throw new IllegalStateException("an observer is already registered") [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
ContactInfoSource.java | 30 void registerObserver(DataSetObserver observer); 31 void unregisterObserver(DataSetObserver observer);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
FolderSettingsObservable.java | 27 void registerObserver(FolderSettingsObserver observer); 28 void unregisterObserver(FolderSettingsObserver observer);
|
/external/libchrome/base/ |
observer_list_threadsafe.h | 33 // Callbacks to the observer will occur on the same thread where 34 // the observer initially called AddObserver() from. 36 // * Observers can remove themselves from the observer list inside 38 // * If one thread is notifying observers concurrently with an observer 39 // removing itself from the observer list, the notifications will 42 // The drawback of the threadsafe observer list is that notifications 112 // Add an observer to the list. An observer should not be added to 116 // so do not add the observer. 131 // Remove an observer from the list if it is in the list [all...] |
/external/webrtc/talk/app/webrtc/ |
dtlsidentitystore.cc | 143 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& observer) { 145 RTC_DCHECK(observer); 147 GenerateIdentity(key_type, observer); 171 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& observer) { 174 // Enqueue observer to be informed when generation of |key_type| is completed. 175 if (observer.get()) { 176 request_info_[key_type].request_observers_.push(observer); 194 // observer in a MSG_GENERATE_IDENTITY_RESULT. 215 rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver> observer; local 217 observer = request_info_[key_type].request_observers_.front() [all...] |
/frameworks/base/core/java/android/app/backup/ |
RestoreSession.java | 45 * @param observer a RestoreObserver object whose restoreSetsAvailable() method will 49 * @return Zero on success, nonzero on error. The observer's restoreSetsAvailable() 52 public int getAvailableRestoreSets(RestoreObserver observer) { 54 RestoreObserverWrapper obsWrapper = new RestoreObserverWrapper(mContext, observer); 69 * @return Zero on success; nonzero on error. The observer will only receive 73 * @param observer If non-null, this binder points to an object that will receive 76 public int restoreAll(long token, RestoreObserver observer) { 82 mObserver = new RestoreObserverWrapper(mContext, observer); 98 * @return Zero on success, nonzero on error. The observer will only receive 102 * @param observer If non-null, this binder points to an object that will receiv [all...] |
IRestoreSession.aidl | 32 * @param observer This binder points to an object whose onRestoreSetsAvailable() 34 * @return Zero on success; nonzero on error. The observer will only receive a 37 int getAvailableRestoreSets(IRestoreObserver observer); 45 * @return Zero on success; nonzero on error. The observer will only receive 49 * @param observer If non-null, this binder points to an object that will receive 52 int restoreAll(long token, IRestoreObserver observer); 61 * @return Zero on success, nonzero on error. The observer will only receive 65 * @param observer If non-null, this binder points to an object that will receive 71 int restoreSome(long token, IRestoreObserver observer, in String[] packages); 80 * @return Zero on success; nonzero on error. The observer will only receiv [all...] |
/frameworks/base/core/java/android/printservice/ |
CustomPrinterIconCallback.java | 40 * @param observer The observer that needs to be notified about the update. 42 CustomPrinterIconCallback(@NonNull PrinterId printerId, @NonNull IPrintServiceClient observer) { 44 mObserver = observer;
|
/frameworks/base/core/java/android/widget/ |
BaseAdapter.java | 37 public void registerDataSetObserver(DataSetObserver observer) { 38 mDataSetObservable.registerObserver(observer); 41 public void unregisterDataSetObserver(DataSetObserver observer) { 42 mDataSetObservable.unregisterObserver(observer);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
MountServiceTests.java | 132 final ObbObserver observer = new ObbObserver(); local 134 sm.mountObb(file.getPath(), null, observer)); 137 observer.waitForCompletion()); 144 file.getPath(), observer.getPath()); 146 assertEquals(expectedState, observer.getState()); 153 final ObbObserver observer = new ObbObserver(); local 155 .getPath(), null, observer)); 157 return observer; 161 final ObbObserver observer, int expectedState, boolean checkPath) { 162 assertTrue("Mount should have completed", observer.waitForCompletion()) 183 final ObbObserver observer = new ObbObserver(); local [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
CompositeListAdapterTest.java | 215 TestDataSetObserver observer = new TestDataSetObserver(); local 216 adapter.registerDataSetObserver(observer); 219 assertEquals(1, observer.changeCount); 220 assertEquals(0, observer.invalidationCount); 227 assertEquals(2, observer.changeCount); 228 assertEquals(0, observer.invalidationCount); 241 TestDataSetObserver observer = new TestDataSetObserver(); local 242 adapter.registerDataSetObserver(observer); 245 assertEquals(1, observer.changeCount); 246 assertEquals(0, observer.invalidationCount) 259 TestDataSetObserver observer = new TestDataSetObserver(); local [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
AnnotationParser.java | 60 /** {@code null-ok;} parse observer, if any */ 61 private final ParseObserver observer; field in class:AnnotationParser 67 * {@code non-null;} cursor for use when informing the observer of what 78 * @param observer {@code null-ok;} parse observer to notify, if any 81 ParseObserver observer) { 88 this.observer = observer; 176 if (observer != null) { 183 if (observer != null) [all...] |
AttributeFactory.java | 66 * @param observer {@code null-ok;} parse observer to report to, if any 70 ParseObserver observer) { 89 if (observer != null) { 90 observer.parsed(bytes, offset, 2, 92 observer.parsed(bytes, offset + 2, 4, 97 observer); 118 * @param observer {@code null-ok;} parse observer to report to, if any 123 ParseObserver observer) { [all...] |
/external/libchrome/base/power_monitor/ |
power_monitor.h | 29 // Add and remove an observer. 32 void AddObserver(PowerObserver* observer); 33 void RemoveObserver(PowerObserver* observer);
|
/system/update_engine/ |
certificate_checker.h | 92 class Observer { 94 virtual ~Observer() = default; 118 // Set the certificate observer to the passed instance. To remove the 119 // observer, pass a nullptr. The |observer| instance must be valid while this 121 void SetObserver(Observer* observer) { observer_ = observer; } 148 // certificate check is passed to the observer, if any. Returns true on 154 // Notifies the observer, if any, of a certificate checking [all...] |
daemon_state_interface.h | 35 // Add and remove an observer. All the registered observers will be called 37 virtual void AddObserver(ServiceObserverInterface* observer) = 0; 38 virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
|