/frameworks/base/core/java/android/app/ |
Application.java | 88 Object[] callbacks = collectComponentCallbacks(); local 89 if (callbacks != null) { 90 for (int i=0; i<callbacks.length; i++) { 91 ((ComponentCallbacks)callbacks[i]).onConfigurationChanged(newConfig); 97 Object[] callbacks = collectComponentCallbacks(); local 98 if (callbacks != null) { 99 for (int i=0; i<callbacks.length; i++) { 100 ((ComponentCallbacks)callbacks[i]).onLowMemory(); 106 Object[] callbacks = collectComponentCallbacks(); local 107 if (callbacks != null) 152 Object[] callbacks = collectActivityLifecycleCallbacks(); local 162 Object[] callbacks = collectActivityLifecycleCallbacks(); local 171 Object[] callbacks = collectActivityLifecycleCallbacks(); local 180 Object[] callbacks = collectActivityLifecycleCallbacks(); local 189 Object[] callbacks = collectActivityLifecycleCallbacks(); local 198 Object[] callbacks = collectActivityLifecycleCallbacks(); local 208 Object[] callbacks = collectActivityLifecycleCallbacks(); local 217 Object[] callbacks = null; local 227 Object[] callbacks = null; local [all...] |
/external/chromium/chrome/browser/resources/bookmark_manager/js/ |
bmm_test.html | 40 var callbacks = {}; 44 callbacks[id] = callbacks[id] || []; 45 callbacks[id].push(callback); 46 callbacks[id].$calls = callbacks[id].$calls ? callbacks[id].$calls++ : 1; 54 for (var i = 0; i < callbacks[id].length; i++) { 55 callbacks[id][i].call(null, [node]); 60 callbacks = { [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
WorkerAsyncFileSystemChromium.cpp | 90 void WorkerAsyncFileSystemChromium::move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 92 createWorkerFileSystemCallbacksBridge(callbacks)->postMoveToMainThread(m_webFileSystem, sourcePath, destinationPath, m_modeForCurrentOperation); 95 void WorkerAsyncFileSystemChromium::copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 97 createWorkerFileSystemCallbacksBridge(callbacks)->postCopyToMainThread(m_webFileSystem, sourcePath, destinationPath, m_modeForCurrentOperation); 100 void WorkerAsyncFileSystemChromium::remove(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 102 createWorkerFileSystemCallbacksBridge(callbacks)->postRemoveToMainThread(m_webFileSystem, path, m_modeForCurrentOperation); 105 void WorkerAsyncFileSystemChromium::removeRecursively(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 107 createWorkerFileSystemCallbacksBridge(callbacks)->postRemoveRecursivelyToMainThread(m_webFileSystem, path, m_modeForCurrentOperation); 110 void WorkerAsyncFileSystemChromium::readMetadata(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 112 createWorkerFileSystemCallbacksBridge(callbacks)->postReadMetadataToMainThread(m_webFileSystem, path, m_modeForCurrentOperation) [all...] |
AsyncFileSystemChromium.cpp | 64 void AsyncFileSystemChromium::move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 66 m_webFileSystem->move(sourcePath, destinationPath, new WebKit::WebFileSystemCallbacksImpl(callbacks)); 69 void AsyncFileSystemChromium::copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 71 m_webFileSystem->copy(sourcePath, destinationPath, new WebKit::WebFileSystemCallbacksImpl(callbacks)); 74 void AsyncFileSystemChromium::remove(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 76 m_webFileSystem->remove(path, new WebKit::WebFileSystemCallbacksImpl(callbacks)); 79 void AsyncFileSystemChromium::removeRecursively(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 81 m_webFileSystem->removeRecursively(path, new WebKit::WebFileSystemCallbacksImpl(callbacks)); 84 void AsyncFileSystemChromium::readMetadata(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 86 m_webFileSystem->readMetadata(path, new WebKit::WebFileSystemCallbacksImpl(callbacks)); [all...] |
WebIDBIndexImpl.cpp | 71 void WebIDBIndexImpl::openObjectCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 73 m_backend->openCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 76 void WebIDBIndexImpl::openKeyCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 78 m_backend->openKeyCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 81 void WebIDBIndexImpl::getObject(const WebIDBKey& keyRange, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 83 m_backend->get(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 86 void WebIDBIndexImpl::getKey(const WebIDBKey& keyRange, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 88 m_backend->getKey(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec);
|
WebIDBObjectStoreImpl.cpp | 70 void WebIDBObjectStoreImpl::get(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 72 m_objectStore->get(key, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 75 void WebIDBObjectStoreImpl::put(const WebSerializedScriptValue& value, const WebIDBKey& key, PutMode putMode, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 77 m_objectStore->put(value, key, static_cast<IDBObjectStoreBackendInterface::PutMode>(putMode), IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 80 void WebIDBObjectStoreImpl::deleteFunction(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 82 m_objectStore->deleteFunction(key, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 85 void WebIDBObjectStoreImpl::clear(WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 87 m_objectStore->clear(IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec); 111 void WebIDBObjectStoreImpl::openCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) 113 m_objectStore->openCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec) [all...] |
IDBCursorBackendProxy.cpp | 77 void IDBCursorBackendProxy::update(PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) 79 m_idbCursor->update(value, new WebIDBCallbacksImpl(callbacks), ec); 82 void IDBCursorBackendProxy::continueFunction(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) 84 m_idbCursor->continueFunction(key, new WebIDBCallbacksImpl(callbacks), ec); 87 void IDBCursorBackendProxy::deleteFunction(PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) 89 m_idbCursor->deleteFunction(new WebIDBCallbacksImpl(callbacks), ec);
|
WebIDBCursorImpl.cpp | 70 void WebIDBCursorImpl::update(const WebSerializedScriptValue& value, WebIDBCallbacks* callbacks, WebExceptionCode& ec) 72 m_idbCursorBackend->update(value, IDBCallbacksProxy::create(callbacks), ec); 75 void WebIDBCursorImpl::continueFunction(const WebIDBKey& key, WebIDBCallbacks* callbacks, WebExceptionCode& ec) 77 m_idbCursorBackend->continueFunction(key, IDBCallbacksProxy::create(callbacks), ec); 80 void WebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks, WebExceptionCode& ec) 82 m_idbCursorBackend->deleteFunction(IDBCallbacksProxy::create(callbacks), ec);
|
/frameworks/support/v4/java/android/support/v4/os/ |
ParcelableCompat.java | 31 * @param callbacks Creator callbacks implementation. 35 ParcelableCompatCreatorCallbacks<T> callbacks) { 37 ParcelableCompatCreatorHoneycombMR2Stub.instantiate(callbacks); 39 return new CompatCreator<T>(callbacks); 45 public CompatCreator(ParcelableCompatCreatorCallbacks<T> callbacks) { 46 mCallbacks = callbacks;
|
/sdk/templates/activities/MasterDetailFlow/root/src/app_package/ |
ContentListFragment.java.ftl | 18 * Activities containing this fragment MUST implement the {@link Callbacks} 33 private Callbacks mCallbacks = sDummyCallbacks; 45 public interface Callbacks { 53 * A dummy implementation of the {@link Callbacks} interface that does 56 private static Callbacks sDummyCallbacks = new Callbacks() { 96 // Activities containing this fragment must implement its callbacks. 97 if (!(activity instanceof Callbacks)) { 98 throw new IllegalStateException("Activity must implement fragment's callbacks."); 101 mCallbacks = (Callbacks) activity [all...] |
/external/v8/test/mjsunit/ |
number-string-index-call.js | 28 var callbacks = [ function() {return 'foo'}, "nonobject", /abc/ ]; 29 assertEquals('foo', callbacks['0']()); 30 assertThrows("callbacks['1']()"); 31 assertThrows("callbacks['2']('abcdefg')");
|
/external/webkit/LayoutTests/fast/dom/Geolocation/ |
callback-to-remote-context-expected.txt | 1 Tests that when a Geolocation request is made from a remote frame, callbacks are made as usual.
|
callback-to-remote-context2-expected.txt | 1 Tests that when a Geolocation request is made from a remote frame, and the JavaScript call chain starts from that remote frame, callbacks are made as usual.
|
delayed-permission-allowed-expected.txt | 1 Tests that when a position is available, no callbacks are invoked until permission is allowed.
|
delayed-permission-allowed-for-multiple-requests-expected.txt | 1 Tests that when multiple requests are waiting for permission, no callbacks are invoked until permission is allowed.
|
delayed-permission-denied-expected.txt | 1 Tests that when a position is available, no callbacks are invoked until permission is denied.
|
disconnected-frame-already-expected.txt | 1 Tests that when a request is made on a Geolocation object after its frame has been disconnected, no callbacks are made and no crash occurs.
|
/external/webkit/Source/WebCore/storage/ |
IDBIndexBackendImpl.cpp | 71 void IDBIndexBackendImpl::openCursorInternal(ScriptExecutionContext*, PassRefPtr<IDBIndexBackendImpl> index, PassRefPtr<IDBKeyRange> range, unsigned short untypedDirection, IDBCursorBackendInterface::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks, PassRefPtr<IDBTransactionBackendInterface> transaction) 91 callbacks->onSuccess(SerializedScriptValue::nullValue()); 100 callbacks->onSuccess(cursor.release()); 107 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 109 if (!transaction->scheduleTask(createCallbackTask(&openCursorInternal, index, keyRange, direction, IDBCursorBackendInterface::IndexCursor, callbacks, transaction))) 117 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 119 if (!transaction->scheduleTask(createCallbackTask(&openCursorInternal, index, keyRange, direction, IDBCursorBackendInterface::IndexKeyCursor, callbacks, transaction))) 123 void IDBIndexBackendImpl::getInternal(ScriptExecutionContext*, PassRefPtr<IDBIndexBackendImpl> index, PassRefPtr<IDBKey> key, bool getObject, PassRefPtr<IDBCallbacks> callbacks) 129 callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::NOT_FOUND_ERR, "Key does not exist in the index.")); 132 callbacks->onSuccess(SerializedScriptValue::createFromWire(value)) 147 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 156 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local [all...] |
IDBObjectStoreBackendImpl.cpp | 88 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 89 if (!transaction->scheduleTask(createCallbackTask(&IDBObjectStoreBackendImpl::getInternal, objectStore, key, callbacks))) 93 void IDBObjectStoreBackendImpl::getInternal(ScriptExecutionContext*, PassRefPtr<IDBObjectStoreBackendImpl> objectStore, PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks) 97 callbacks->onSuccess(SerializedScriptValue::undefinedValue()); 101 callbacks->onSuccess(SerializedScriptValue::createFromWire(wireData)); 131 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 135 if (!transaction->scheduleTask(createCallbackTask(&IDBObjectStoreBackendImpl::putInternal, objectStore, value, key, putMode, callbacks, transaction))) 139 PassRefPtr<IDBKey> IDBObjectStoreBackendImpl::selectKeyForPut(IDBObjectStoreBackendImpl* objectStore, IDBKey* key, PutMode putMode, IDBCallbacks* callbacks, RefPtr<SerializedScriptValue>& value) 148 callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::DATA_ERR, "A key was supplied for an objectStore that has a keyPath.")); 171 callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::DATA_ERR, "The generated key could not be (…) 281 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 315 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 456 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local [all...] |
IDBDatabaseBackendImpl.cpp | 44 static PassRefPtr<PendingSetVersionCall> create(const String& version, PassRefPtr<IDBCallbacks> callbacks, PassRefPtr<IDBDatabaseCallbacks> databaseCallbacks) 46 return adoptRef(new PendingSetVersionCall(version, callbacks, databaseCallbacks)); 49 PassRefPtr<IDBCallbacks> callbacks() { return m_callbacks; } function in class:WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall 53 PendingSetVersionCall(const String& version, PassRefPtr<IDBCallbacks> callbacks, PassRefPtr<IDBDatabaseCallbacks> databaseCallbacks) 55 , m_callbacks(callbacks) 167 RefPtr<IDBCallbacks> callbacks = prpCallbacks; local 170 callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::ABORT_ERR, "Connection was closed before set version transaction was created")); 178 callbacks->onBlocked(); 179 RefPtr<PendingSetVersionCall> pendingSetVersionCall = PendingSetVersionCall::create(version, callbacks, databaseCallbacks); 187 if (!transaction->scheduleTask(createCallbackTask(&IDBDatabaseBackendImpl::setVersionInternal, database, version, callbacks, transaction) 226 RefPtr<IDBDatabaseCallbacks> callbacks = prpCallbacks; local [all...] |
/frameworks/support/v4/honeycomb_mr2/android/support/v4/os/ |
ParcelableCompatHoneycombMR2.java | 23 static <T> Parcelable.Creator<T> instantiate(ParcelableCompatCreatorCallbacks<T> callbacks) { 24 return new ParcelableCompatCreatorHoneycombMR2<T>(callbacks); 31 public ParcelableCompatCreatorHoneycombMR2(ParcelableCompatCreatorCallbacks<T> callbacks) { 32 mCallbacks = callbacks;
|
/external/qemu/ |
qemu-aio.h | 23 /* Runs all currently allowed AIO callbacks of completed requests in the 35 * result of executing I/O completion or bh callbacks. */ 39 * Runs all currently allowed AIO callbacks of completed requests. Returns 0 45 /* Register a file descriptor and associated callbacks. Behaves very similarly 46 * to qemu_set_fd_handler2. Unlike qemu_set_fd_handler2, these callbacks will
|
/sdk/swtmenubar/src/com/android/menubar/ |
MenuBarEnhancer.java | 56 * @param callbacks Callbacks called when "About" and "Preferences" menu items are invoked. 65 IMenuBarCallback callbacks) { 67 IMenuBarEnhancer enhancer = getEnhancer(callbacks); 80 final IMenuBarCallback callbacks) { 97 callbacks.onPreferencesMenuSelected(); 110 callbacks.onAboutMenuSelected(); 121 enhancer.setupMenu(appName, swtMenu.getDisplay(), callbacks); 134 IMenuBarCallback callbacks = new IMenuBarCallback() { local 152 IMenuBarEnhancer enhancer = getEnhancer(callbacks); [all...] |
/external/ppp/pppd/ |
fsm.c | 69 #define PROTO_NAME(f) ((f)->callbacks->proto_name) 138 if( f->callbacks->starting ) 139 (*f->callbacks->starting)(f); 156 if( f->callbacks->down ) 157 (*f->callbacks->down)(f); 177 if( f->callbacks->starting ) 178 (*f->callbacks->starting)(f); 217 else if( f->callbacks->down ) 218 (*f->callbacks->down)(f); /* Inform upper layers we're down */ 232 if( f->callbacks->finished [all...] |
/external/webkit/Source/JavaScriptGlue/ |
JSValueWrapper.cpp | 50 void JSValueWrapper::GetJSObectCallBacks(JSObjectCallBacks& callBacks) 52 callBacks.dispose = (JSObjectDisposeProcPtr)JSValueWrapper::JSObjectDispose; 53 callBacks.equal = (JSObjectEqualProcPtr)0; 54 callBacks.copyPropertyNames = (JSObjectCopyPropertyNamesProcPtr)JSValueWrapper::JSObjectCopyPropertyNames; 55 callBacks.copyCFValue = (JSObjectCopyCFValueProcPtr)JSValueWrapper::JSObjectCopyCFValue; 56 callBacks.copyProperty = (JSObjectCopyPropertyProcPtr)JSValueWrapper::JSObjectCopyProperty; 57 callBacks.setProperty = (JSObjectSetPropertyProcPtr)JSValueWrapper::JSObjectSetProperty; 58 callBacks.callFunction = (JSObjectCallFunctionProcPtr)JSValueWrapper::JSObjectCallFunction; 115 JSObjectCallBacks callBacks; 116 GetJSObectCallBacks(callBacks); [all...] |