/frameworks/base/core/java/android/app/ |
Application.java | 105 Object[] callbacks = collectComponentCallbacks(); local 106 if (callbacks != null) { 107 for (int i=0; i<callbacks.length; i++) { 108 ((ComponentCallbacks)callbacks[i]).onConfigurationChanged(newConfig); 114 Object[] callbacks = collectComponentCallbacks(); local 115 if (callbacks != null) { 116 for (int i=0; i<callbacks.length; i++) { 117 ((ComponentCallbacks)callbacks[i]).onLowMemory(); 123 Object[] callbacks = collectComponentCallbacks(); local 124 if (callbacks != null) 186 Object[] callbacks = collectActivityLifecycleCallbacks(); local 196 Object[] callbacks = collectActivityLifecycleCallbacks(); local 205 Object[] callbacks = collectActivityLifecycleCallbacks(); local 214 Object[] callbacks = collectActivityLifecycleCallbacks(); local 223 Object[] callbacks = collectActivityLifecycleCallbacks(); local 232 Object[] callbacks = collectActivityLifecycleCallbacks(); local 242 Object[] callbacks = collectActivityLifecycleCallbacks(); local 251 Object[] callbacks = null; local 261 Object[] callbacks = null; local 271 Object[] callbacks; 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/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowRemoteCallbackList.java | 15 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.clear() [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...] |
/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;
|
/external/android-clat/ |
netlink_callbacks.c | 16 * 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;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
BitmapTask.java | 27 private Callbacks<T> mCallbacks; 30 public BitmapTask(Callbacks<T> callbacks) { 31 mCallbacks = callbacks; 59 * Callbacks for the asynchronous task. 61 public interface Callbacks<P> {
|
/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...] |
/frameworks/base/core/jni/ |
android_app_NativeActivity.cpp | 107 memset(&callbacks, 0, sizeof(callbacks)); 115 if (callbacks.onDestroy != NULL) { 116 callbacks.onDestroy(this); 143 ANativeActivityCallbacks callbacks; member in struct:android::NativeCode 295 code->ANativeActivity::callbacks = &code->callbacks; 356 if (code->callbacks.onStart != NULL) { 357 code->callbacks.onStart(code); 368 if (code->callbacks.onResume != NULL) [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...] |
/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;
|
/hardware/libhardware/include/hardware/ |
bt_gatt.h | 27 /** BT-GATT callbacks */ 32 /** GATT Client callbacks */ 35 /** GATT Server callbacks */ 47 bt_status_t (*init)( const btgatt_callbacks_t* callbacks );
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
TestListFragment.java | 29 private Callbacks mCallbacks = sDummyCallbacks; 32 public interface Callbacks { 37 private static Callbacks sDummyCallbacks = new Callbacks() { 64 if (!(activity instanceof Callbacks)) { 65 throw new IllegalStateException("Activity must implement fragment's callbacks."); 68 mCallbacks = (Callbacks) activity;
|
/external/smack/src/org/apache/qpid/management/common/sasl/ |
UserPasswordCallbackHandler.java | 40 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException 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]);
|
UsernameHashedPasswordCallbackHandler.java | 45 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException 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]);
|