Searched refs:callbacks (Results 1 - 25 of 154) sorted by relevance

1234567

/external/v8/test/mjsunit/
H A Dnumber-string-index-call.js28 var callbacks = [ function() {return 'foo'}, "nonobject", /abc/ ];
29 assertEquals('foo', callbacks['0']());
30 assertThrows("callbacks['1']()");
31 assertThrows("callbacks['2']('abcdefg')");
/external/webkit/Source/WebKit/chromium/src/
H A DIDBDatabaseCallbacksProxy.cpp37 PassRefPtr<IDBDatabaseCallbacksProxy> IDBDatabaseCallbacksProxy::create(PassOwnPtr<WebIDBDatabaseCallbacks> callbacks) argument
39 return adoptRef(new IDBDatabaseCallbacksProxy(callbacks));
42 IDBDatabaseCallbacksProxy::IDBDatabaseCallbacksProxy(PassOwnPtr<WebIDBDatabaseCallbacks> callbacks) argument
43 : m_callbacks(callbacks)
H A DIDBTransactionCallbacksProxy.cpp40 PassRefPtr<IDBTransactionCallbacksProxy> IDBTransactionCallbacksProxy::create(PassOwnPtr<WebIDBTransactionCallbacks> callbacks) argument
42 return adoptRef(new IDBTransactionCallbacksProxy(callbacks));
45 IDBTransactionCallbacksProxy::IDBTransactionCallbacksProxy(PassOwnPtr<WebIDBTransactionCallbacks> callbacks) argument
46 : m_callbacks(callbacks)
H A DWebIDBDatabaseCallbacksImpl.cpp38 WebIDBDatabaseCallbacksImpl::WebIDBDatabaseCallbacksImpl(PassRefPtr<IDBDatabaseCallbacks> callbacks) argument
39 : m_callbacks(callbacks)
H A DAsyncFileSystemChromium.cpp64 void AsyncFileSystemChromium::move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
66 m_webFileSystem->move(sourcePath, destinationPath, new WebKit::WebFileSystemCallbacksImpl(callbacks));
69 void AsyncFileSystemChromium::copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
71 m_webFileSystem->copy(sourcePath, destinationPath, new WebKit::WebFileSystemCallbacksImpl(callbacks));
74 void AsyncFileSystemChromium::remove(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
76 m_webFileSystem->remove(path, new WebKit::WebFileSystemCallbacksImpl(callbacks));
79 void AsyncFileSystemChromium::removeRecursively(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
81 m_webFileSystem->removeRecursively(path, new WebKit::WebFileSystemCallbacksImpl(callbacks));
84 void AsyncFileSystemChromium::readMetadata(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
86 m_webFileSystem->readMetadata(path, new WebKit::WebFileSystemCallbacksImpl(callbacks));
89 createFile(const String& path, bool exclusive, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
94 createDirectory(const String& path, bool exclusive, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
99 fileExists(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
104 directoryExists(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
109 readDirectory(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
116 FileWriterHelperCallbacks(AsyncFileWriterClient* client, const String& path, WebKit::WebFileSystem* webFileSystem, PassOwnPtr<WebCore::AsyncFileSystemCallbacks> callbacks) argument
168 createWriter(AsyncFileWriterClient* client, const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
[all...]
H A DWebIDBCursorImpl.cpp70 void WebIDBCursorImpl::update(const WebSerializedScriptValue& value, WebIDBCallbacks* callbacks, WebExceptionCode& ec) argument
72 m_idbCursorBackend->update(value, IDBCallbacksProxy::create(callbacks), ec);
75 void WebIDBCursorImpl::continueFunction(const WebIDBKey& key, WebIDBCallbacks* callbacks, WebExceptionCode& ec) argument
77 m_idbCursorBackend->continueFunction(key, IDBCallbacksProxy::create(callbacks), ec);
80 void WebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks, WebExceptionCode& ec) argument
82 m_idbCursorBackend->deleteFunction(IDBCallbacksProxy::create(callbacks), ec);
H A DWebIDBIndexImpl.cpp71 void WebIDBIndexImpl::openObjectCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) argument
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) argument
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) argument
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) argument
88 m_backend->getKey(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec);
H A DWebIDBTransactionCallbacksImpl.cpp37 WebIDBTransactionCallbacksImpl::WebIDBTransactionCallbacksImpl(PassRefPtr<IDBTransactionCallbacks> callbacks) argument
38 : m_callbacks(callbacks)
H A DLocalFileSystemChromium.cpp69 static void openFileSystemHelper(ScriptExecutionContext* context, AsyncFileSystem::Type type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, bool synchronous, long long size, CreationFlag create) argument
75 webFrame->client()->openFileSystem(webFrame, static_cast<WebFileSystem::Type>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks, type));
80 webWorker->openFileSystemForWorker(static_cast<WebFileSystem::Type>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks, type, context, synchronous), synchronous);
84 void LocalFileSystem::readFileSystem(ScriptExecutionContext* context, AsyncFileSystem::Type type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, bool synchronous) argument
86 openFileSystemHelper(context, type, callbacks, synchronous, 0, OpenExisting);
89 void LocalFileSystem::requestFileSystem(ScriptExecutionContext* context, AsyncFileSystem::Type type, long long size, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, bool synchronous) argument
91 openFileSystemHelper(context, type, callbacks, synchronous, size, CreateIfNotPresent);
H A DWorkerAsyncFileSystemChromium.cpp90 void WorkerAsyncFileSystemChromium::move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
92 createWorkerFileSystemCallbacksBridge(callbacks)->postMoveToMainThread(m_webFileSystem, sourcePath, destinationPath, m_modeForCurrentOperation);
95 void WorkerAsyncFileSystemChromium::copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
97 createWorkerFileSystemCallbacksBridge(callbacks)->postCopyToMainThread(m_webFileSystem, sourcePath, destinationPath, m_modeForCurrentOperation);
100 void WorkerAsyncFileSystemChromium::remove(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
102 createWorkerFileSystemCallbacksBridge(callbacks)->postRemoveToMainThread(m_webFileSystem, path, m_modeForCurrentOperation);
105 void WorkerAsyncFileSystemChromium::removeRecursively(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
107 createWorkerFileSystemCallbacksBridge(callbacks)->postRemoveRecursivelyToMainThread(m_webFileSystem, path, m_modeForCurrentOperation);
110 void WorkerAsyncFileSystemChromium::readMetadata(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
112 createWorkerFileSystemCallbacksBridge(callbacks)
115 createFile(const String& path, bool exclusive, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
120 createDirectory(const String& path, bool exclusive, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
125 fileExists(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
130 directoryExists(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
135 readDirectory(const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
142 create(AsyncFileWriterClient* client, const String& path, WebKit::WebFileSystem* webFileSystem, PassOwnPtr<WebCore::AsyncFileSystemCallbacks> callbacks, WorkerContext* workerContext) argument
191 WorkerFileWriterHelperCallbacks(AsyncFileWriterClient* client, const String& path, WebKit::WebFileSystem* webFileSystem, PassOwnPtr<WebCore::AsyncFileSystemCallbacks> callbacks, WorkerContext* workerContext) argument
207 createWriter(AsyncFileWriterClient* client, const String& path, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
212 createWorkerFileSystemCallbacksBridge(PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
[all...]
H A DIDBCallbacksProxy.cpp48 PassRefPtr<IDBCallbacksProxy> IDBCallbacksProxy::create(PassOwnPtr<WebIDBCallbacks> callbacks) argument
50 return adoptRef(new IDBCallbacksProxy(callbacks));
53 IDBCallbacksProxy::IDBCallbacksProxy(PassOwnPtr<WebIDBCallbacks> callbacks) argument
54 : m_callbacks(callbacks)
H A DIDBIndexBackendProxy.cpp78 void IDBIndexBackendProxy::openCursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) argument
83 m_webIDBIndex->openObjectCursor(keyRange, direction, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), ec);
86 void IDBIndexBackendProxy::openKeyCursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) argument
91 m_webIDBIndex->openKeyCursor(keyRange, direction, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), ec);
94 void IDBIndexBackendProxy::get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) argument
99 m_webIDBIndex->getObject(key, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), ec);
102 void IDBIndexBackendProxy::getKey(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) argument
107 m_webIDBIndex->getKey(key, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), ec);
H A DIDBCursorBackendProxy.cpp77 void IDBCursorBackendProxy::update(PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) argument
79 m_idbCursor->update(value, new WebIDBCallbacksImpl(callbacks), ec);
82 void IDBCursorBackendProxy::continueFunction(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) argument
84 m_idbCursor->continueFunction(key, new WebIDBCallbacksImpl(callbacks), ec);
87 void IDBCursorBackendProxy::deleteFunction(PassRefPtr<IDBCallbacks> callbacks, ExceptionCode& ec) argument
89 m_idbCursor->deleteFunction(new WebIDBCallbacksImpl(callbacks), ec);
H A DWebIDBObjectStoreImpl.cpp70 void WebIDBObjectStoreImpl::get(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) argument
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) argument
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) argument
82 m_objectStore->deleteFunction(key, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface(), ec);
85 void WebIDBObjectStoreImpl::clear(WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) argument
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) argument
113 m_objectStore->openCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transactio
[all...]
/external/elfutils/libdwfl/
H A Ddwfl_begin.c53 dwfl_begin (const Dwfl_Callbacks *callbacks) argument
66 dwfl->callbacks = callbacks;
/external/ceres-solver/internal/ceres/
H A Dminimizer_test.cc52 solver_options.callbacks.push_back(&callback0);
53 solver_options.callbacks.push_back(&callback1);
56 ASSERT_EQ(2, minimizer_options.callbacks.size());
58 EXPECT_EQ(minimizer_options.callbacks[0], &callback0);
59 EXPECT_EQ(minimizer_options.callbacks[1], &callback1);
/external/android-clat/
H A Dnetlink_callbacks.c16 * netlink_callbacks.c - generic callbacks for netlink responses
53 * allocates a set of netlink callbacks. returns NULL on failure. callbacks will modify retval with <0 meaning failure
57 struct nl_cb *callbacks; local
59 callbacks = nl_cb_alloc(NL_CB_DEFAULT);
60 if(!callbacks) {
63 nl_cb_set(callbacks, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, retval);
64 nl_cb_err(callbacks, NL_CB_CUSTOM, error_handler, retval);
65 return callbacks;
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowRemoteCallbackList.java15 private HashMap<IBinder, Callback> callbacks = new HashMap<IBinder, Callback>(); field in class:ShadowRemoteCallbackList
30 synchronized (callbacks) {
31 callbacks.remove(callback.asBinder());
44 synchronized (callbacks) {
52 callbacks.put(binder, cb);
62 synchronized (callbacks) {
63 Callback cb = callbacks.remove(callback.asBinder());
74 synchronized (callbacks) {
75 for (Callback cb : callbacks.values()) {
78 callbacks
[all...]
/external/smack/src/org/apache/qpid/management/common/sasl/
H A DUserPasswordCallbackHandler.java40 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException argument
42 for (int i = 0; i < callbacks.length; i++)
44 if (callbacks[i] instanceof NameCallback)
46 NameCallback ncb = (NameCallback) callbacks[i];
49 else if (callbacks[i] instanceof PasswordCallback)
51 PasswordCallback pcb = (PasswordCallback) callbacks[i];
56 throw new UnsupportedCallbackException(callbacks[i]);
H A DUsernameHashedPasswordCallbackHandler.java45 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException argument
47 for (int i = 0; i < callbacks.length; i++)
49 if (callbacks[i] instanceof NameCallback)
51 NameCallback ncb = (NameCallback) callbacks[i];
54 else if (callbacks[i] instanceof PasswordCallback)
56 PasswordCallback pcb = (PasswordCallback) callbacks[i];
61 throw new UnsupportedCallbackException(callbacks[i]);
/external/smack/src/org/apache/harmony/javax/security/auth/callback/
H A DCallbackHandler.java44 * @param callbacks
52 void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException; argument
/external/webkit/Source/WebKit/chromium/public/
H A DWebIDBCursor.h79 virtual void remove(WebIDBCallbacks* callbacks, WebExceptionCode& ec) { deleteFunction(callbacks, ec); } argument
80 virtual void deleteFunction(WebIDBCallbacks* callbacks, WebExceptionCode& ec) { remove(callbacks, ec); } argument
/external/elfutils/tests/
H A Ddwfl-bug-report.c35 static const Dwfl_Callbacks callbacks = variable
44 Dwfl *dwfl = dwfl_begin (&callbacks);
/external/webkit/Source/WebCore/fileapi/
H A DLocalFileSystem.cpp79 static void openFileSystem(ScriptExecutionContext*, const String& basePath, const String& identifier, AsyncFileSystem::Type type, bool create, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) argument
81 AsyncFileSystem::openFileSystem(basePath, identifier, type, create, callbacks);
84 void LocalFileSystem::readFileSystem(ScriptExecutionContext* context, AsyncFileSystem::Type type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, bool) argument
86 // AsyncFileSystem::openFileSystem calls callbacks synchronously, so the method needs to be called asynchronously.
87 context->postTask(createCallbackTask(&openFileSystem, fileSystemBasePath(), context->securityOrigin()->databaseIdentifier(), type, false, callbacks));
90 void LocalFileSystem::requestFileSystem(ScriptExecutionContext* context, AsyncFileSystem::Type type, long long, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, bool) argument
92 // AsyncFileSystem::openFileSystem calls callbacks synchronously, so the method needs to be called asynchronously.
93 context->postTask(createCallbackTask(&openFileSystem, fileSystemBasePath(), context->securityOrigin()->databaseIdentifier(), type, true, callbacks));
/external/ppp/pppd/
H A Dfsm.c69 #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
[all...]

Completed in 479 milliseconds

1234567