/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
StubbableAppWidgetProvider.java | 27 AppWidgetProviderCallbacks callbacks = getCallbacks(); local 28 if (callbacks != null) { 29 callbacks.onUpdate(context, appWidgetManager, appWidgetIds); 36 AppWidgetProviderCallbacks callbacks = getCallbacks(); local 37 if (callbacks != null) { 38 callbacks.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions); 44 AppWidgetProviderCallbacks callbacks = getCallbacks(); local 45 if (callbacks != null) { 46 callbacks.onDeleted(context, appWidgetIds); 52 AppWidgetProviderCallbacks callbacks = getCallbacks() local 60 AppWidgetProviderCallbacks callbacks = getCallbacks(); local 68 AppWidgetProviderCallbacks callbacks = getCallbacks(); local [all...] |
/external/nanopb-c/tests/alltypes_callback/ |
alltypes.options | 1 # Generate all fields as callbacks.
|
/external/nanopb-c/tests/callbacks/ |
SConscript | 5 env.NanopbProto("callbacks") 6 enc = env.Program(["encode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_encode.o"]) 7 dec = env.Program(["decode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_decode.o"]) 12 env.Decode(["encode_callbacks.output", "callbacks.proto"], MESSAGE = "TestMessage")
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
WebStorageQuotaCallbacks.cpp | 19 static PassRefPtr<WebStorageQuotaCallbacksPrivate> create(const PassOwnPtr<WebCore::StorageQuotaCallbacks>& callbacks) 21 return adoptRef(new WebStorageQuotaCallbacksPrivate(callbacks)); 24 WebCore::StorageQuotaCallbacks* callbacks() { return m_callbacks.get(); } function in class:blink::WebStorageQuotaCallbacksPrivate 27 WebStorageQuotaCallbacksPrivate(const PassOwnPtr<WebCore::StorageQuotaCallbacks>& callbacks) : m_callbacks(callbacks) { } 31 WebStorageQuotaCallbacks::WebStorageQuotaCallbacks(const PassOwnPtr<WebCore::StorageQuotaCallbacks>& callbacks) 33 m_private = WebStorageQuotaCallbacksPrivate::create(callbacks); 49 m_private->callbacks()->didQueryStorageUsageAndQuota(usageInBytes, quotaInBytes); 56 m_private->callbacks()->didGrantStorageQuota(usageInBytes, grantedQuotaInBytes); 63 m_private->callbacks()->didFail(error) [all...] |
WebPermissionCallbacks.cpp | 17 static PassRefPtr<WebPermissionCallbacksPrivate> create(const PassOwnPtr<PermissionCallbacks>& callbacks) 19 return adoptRef(new WebPermissionCallbacksPrivate(callbacks)); 22 PermissionCallbacks* callbacks() { return m_callbacks.get(); } function in class:blink::WebPermissionCallbacksPrivate 25 WebPermissionCallbacksPrivate(const PassOwnPtr<PermissionCallbacks>& callbacks) : m_callbacks(callbacks) { } 29 WebPermissionCallbacks::WebPermissionCallbacks(const PassOwnPtr<PermissionCallbacks>& callbacks) 31 m_private = WebPermissionCallbacksPrivate::create(callbacks); 47 m_private->callbacks()->onAllowed(); 54 m_private->callbacks()->onDenied();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
DrawingHandler.java | 22 import com.android.inputmethod.keyboard.internal.DrawingHandler.Callbacks; 27 public class DrawingHandler extends LeakGuardHandlerWrapper<Callbacks> { 28 public interface Callbacks { 37 public DrawingHandler(final Callbacks ownerInstance) { 43 final Callbacks callbacks = getOwnerInstance(); local 44 if (callbacks == null) { 49 callbacks.dismissKeyPreviewWithoutDelay((Key)msg.obj); 52 callbacks.showGestureFloatingPreviewText(SuggestedWords.EMPTY); 63 final Callbacks callbacks = getOwnerInstance() local [all...] |
/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...] |
/frameworks/base/media/java/android/service/media/ |
IMediaBrowserService.aidl | 16 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); 17 void disconnect(IMediaBrowserServiceCallbacks callbacks); 19 void addSubscription(String uri, IMediaBrowserServiceCallbacks callbacks); 20 void removeSubscription(String uri, IMediaBrowserServiceCallbacks callbacks);
|
/cts/tests/tests/print/src/android/print/cts/services/ |
StubbablePrintService.java | 27 PrintServiceCallbacks callbacks = getCallbacks(); local 28 if (callbacks != null) { 37 PrintServiceCallbacks callbacks = getCallbacks(); local 38 if (callbacks != null) { 39 callbacks.onRequestCancelPrintJob(printJob); 45 PrintServiceCallbacks callbacks = getCallbacks(); local 46 if (callbacks != null) { 47 callbacks.onPrintJobQueued(printJob);
|
/external/nanopb-c/tests/multiple_files/ |
SConscript | 8 incpath.NanopbProto("callbacks") 10 test = incpath.Program(["test_multiple_files.c", "callbacks.pb.c", "callbacks2.pb.c"])
|
callbacks2.proto | 2 // callbacks.pb.h still compiles. Used with test_compiles.c. 3 import "callbacks.proto";
|
/external/chromium_org/extensions/renderer/resources/ |
image_util.js | 9 function loadImageData(imageSpec, callbacks) { 12 if (typeof callbacks.onerror === 'function') { 14 callbacks.onerror({ problem: 'could_not_load', path: path }); 21 callbacks.onerror({ problem: 'image_size_invalid', path: path}); 44 if (typeof callbacks.oncomplete === 'function') { 45 callbacks.oncomplete( 49 if (typeof callbacks.onerror === 'function') { 50 callbacks.onerror({ problem: 'data_url_unavailable', path: path }); 57 function on_complete_index(index, err, loading, finished, callbacks) { 62 callbacks.onerror(index) [all...] |
/external/chromium_org/media/audio/ |
fake_audio_consumer_unittest.cc | 57 void TimeCallbacksOnAudioThread(int callbacks) { 60 if (source_.callbacks() == 0) { 65 // Keep going until we've seen the requested number of callbacks. 66 if (source_.callbacks() < callbacks) { 69 base::Unretained(this), callbacks), time_between_callbacks_ / 2); 72 EndTest(callbacks); 76 void EndTest(int callbacks) { 79 EXPECT_LE(callbacks, source_.callbacks()); [all...] |
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/ |
bmm_test.html | 38 var callbacks = {}; 41 callbacks[id] = callbacks[id] || []; 42 callbacks[id].push(callback); 43 callbacks[id].$calls = callbacks[id].$calls ? callbacks[id].$calls++ : 1; 51 for (var i = 0; i < callbacks[id].length; i++) { 52 callbacks[id][i].call(null, [node]); 57 callbacks = { [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/ |
CallbackHelper.java | 30 private List callbacks = new ArrayList(); field in class:CallbackHelper 45 if (i > 0 && ((callbacks.get(i - 1) instanceof Callback) ^ isCallback)) 49 index = new Integer(callbacks.size()); 53 callbacks.add(callback); 61 if (callbacks.size() == 0) 63 if (callbacks.get(0) instanceof Callback) { 64 return (Callback[])callbacks.toArray(new Callback[callbacks.size()]); 66 throw new IllegalStateException("getCallback returned classes, not callbacks; call getCallbackTypes instead"); 72 if (callbacks.size() == 0 [all...] |
Factory.java | 31 * If multiple callbacks are required an exception will be thrown. 39 * @param callbacks the new callbacks(s) to use 42 Object newInstance(Callback[] callbacks); 49 * @param callbacks the new interceptor(s) to use 52 Object newInstance(Class[] types, Object[] args, Callback[] callbacks); 69 * Replace all of the callbacks for this object at once. 70 * @param callbacks the new callbacks(s) to use 72 void setCallbacks(Callback[] 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...] |
/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 54 * allocates a set of netlink callbacks. returns NULL on failure. callbacks will modify retval with <0 meaning failure 58 struct nl_cb *callbacks; local 60 callbacks = nl_cb_alloc(NL_CB_DEFAULT); 61 if(!callbacks) { 64 nl_cb_set(callbacks, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, retval); 65 nl_cb_err(callbacks, NL_CB_CUSTOM, error_handler, retval); 66 return callbacks;
|
/external/chromium_org/content/renderer/ |
push_messaging_dispatcher.cc | 36 blink::WebPushRegistrationCallbacks* callbacks) { 37 DCHECK(callbacks); 38 int callbacks_id = registration_callbacks_.Add(callbacks); 47 blink::WebPushRegistrationCallbacks* callbacks = local 49 CHECK(callbacks); 55 callbacks->onSuccess(registration.release()); 61 blink::WebPushRegistrationCallbacks* callbacks = local 63 CHECK(callbacks); 69 callbacks->onError(error.release());
|
/external/chromium_org/third_party/WebKit/Source/core/dom/custom/ |
CustomElementCallbackInvocation.cpp | 50 AttachedDetachedInvocation::AttachedDetachedInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which) 51 : CustomElementCallbackInvocation(callbacks) 61 callbacks()->attached(element); 64 callbacks()->detached(element); 83 AttributeChangedInvocation::AttributeChangedInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue) 84 : CustomElementCallbackInvocation(callbacks) 93 callbacks()->attributeChanged(element, m_name, m_oldValue, m_newValue); 98 CreatedInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks) 99 : CustomElementCallbackInvocation(callbacks) 111 CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::Attached) [all...] |
/external/chromium_org/v8/test/webkit/fast/js/ |
Promise-then-without-callbacks-expected.txt | 1 Promise.prototype.then should work without callbacks.
|
/external/chromium_org/content/child/indexed_db/ |
webidbfactory_impl.cc | 24 void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks, 28 dispatcher->RequestIDBFactoryGetDatabaseNames(callbacks, 35 WebIDBCallbacks* callbacks, 43 callbacks, 49 WebIDBCallbacks* callbacks, 54 name, callbacks, database_identifier.utf8());
|
indexed_db_dispatcher.cc | 58 // Clear any pending callbacks - which may result in dispatch requests - 181 scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); 183 int32 ipc_callbacks_id = pending_callbacks_.Add(callbacks.release()); 197 scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); 199 int32 ipc_callbacks_id = pending_callbacks_.Add(callbacks.release()); 208 scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); 210 int32 ipc_callbacks_id = pending_callbacks_.Add(callbacks.release()); 229 scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); 235 params.ipc_callbacks_id = pending_callbacks_.Add(callbacks.release()); 248 scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr) 481 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 504 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 516 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 554 WebIDBCallbacks* callbacks = local 570 WebIDBCallbacks* callbacks = local 589 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 599 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 623 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 688 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 698 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 706 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(p.ipc_callbacks_id); local 727 WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id); local 744 WebIDBDatabaseCallbacks* callbacks = local 758 WebIDBDatabaseCallbacks* callbacks = local 768 WebIDBDatabaseCallbacks* callbacks = local 780 WebIDBDatabaseCallbacks* callbacks = local [all...] |
/external/chromium_org/content/child/fileapi/ |
webfilesystem_impl.cc | 134 WebFileSystemCallbacks callbacks = filesystem->GetCallbacks(callbacks_id); 137 DispatchToMethod(&callbacks, method, params); 173 // Callback adapters. Callbacks must be called on the original calling thread, 261 WebFileSystemCallbacks callbacks = filesystem->GetCallbacks(callbacks_id); 265 callbacks.didFail(blink::WebFileErrorInvalidState); 269 callbacks.shouldBlockUntilCompletion() ? 271 callbacks.didCreateFileWriter( 300 WebFileSystemCallbacks callbacks = filesystem->GetCallbacks(callbacks_id); 306 callbacks.didCreateSnapshotFile(web_file_info); 366 WebFileSystemCallbacks callbacks) { [all...] |