Searched refs:dispatch (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/rs/cpp/
H A DrsCppInternal.h23 #define tryDispatch(rs, dispatch) \
25 dispatch; \
28 #define createDispatch(rs, dispatch) \
29 rs->getError() == RS_SUCCESS ? dispatch : NULL
H A DRenderScript.cpp41 dispatchTable* RS::dispatch = NULL; member in class:RS
62 RS::dispatch->ContextDeinitToClient(mContext);
67 RS::dispatch->ContextDestroy(mContext);
71 RS::dispatch->DeviceDestroy(mDev);
83 RS::dispatch->AllocationGetType = (AllocationGetTypeFnPtr)dlsym(handle, "rsaAllocationGetType");
84 if (RS::dispatch->AllocationGetType == NULL) {
85 ALOGV("Couldn't initialize RS::dispatch->AllocationGetType");
88 RS::dispatch->TypeGetNativeData = (TypeGetNativeDataFnPtr)dlsym(handle, "rsaTypeGetNativeData");
89 if (RS::dispatch->TypeGetNativeData == NULL) {
90 ALOGV("Couldn't initialize RS::dispatch
453 RS::dispatch = new dispatchTable; member in class:RS
[all...]
H A DScript.cpp26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
36 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0));
45 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot));
50 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 : o->getID()));
54 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
H A DBaseObj.cpp48 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
56 RS::dispatch->GetName(mRS->getContext(), mID, &name);
H A DScriptC.cpp27 mID = RS::dispatch->ScriptCCreate(rs->getContext(), cachedName, cachedNameLength,
H A DAllocation.cpp127 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID());
149 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation));
158 tryDispatch(mRS, RS::dispatch->AllocationIoSend(mRS->getContext(), getID()));
168 tryDispatch(mRS, RS::dispatch->AllocationIoReceive(mRS->getContext(), getID()));
180 if (RS::dispatch->AllocationGetPointer == NULL) {
185 p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0,
206 tryDispatch(mRS, RS::dispatch->Allocation1DData(mRS->getContext(), getIDSafe(), off, mSelectedLOD,
221 tryDispatch(mRS, RS::dispatch->Allocation1DRead(mRS->getContext(), getIDSafe(), off, mSelectedLOD,
228 tryDispatch(mRS, RS::dispatch->AllocationCopy2DRange(mRS->getContext(), getIDSafe(), off, 0,
256 tryDispatch(mRS, RS::dispatch
[all...]
H A DType.cpp103 void * id = RS::dispatch->TypeCreate(rs->getContext(), e->getID(), dimX, dimY, dimZ, false, false, 0);
203 void * id = RS::dispatch->TypeCreate(mRS->getContext(), mElement->getID(), mDimX, mDimY, mDimZ,
H A DSampler.cpp54 void* id = RS::dispatch->SamplerCreate(rs->getContext(), min, mag, wrapS, wrapT, RS_SAMPLER_WRAP, anisotropy);
H A DElement.cpp275 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1);
284 void *id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size);
341 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, dk, true, size);
403 void *id = RS::dispatch->ElementCreate2(mRS->getContext(),
/frameworks/base/core/java/android/hardware/camera2/dispatch/
H A DDispatchable.java16 package android.hardware.camera2.dispatch;
21 * Dynamically dispatch a method and its argument to some object.
34 public Object dispatch(Method method, Object[] args) throws Throwable; method in interface:Dispatchable
H A DNullDispatcher.java16 package android.hardware.camera2.dispatch;
35 public Object dispatch(Method method, Object[] args) { method in class:NullDispatcher
H A DArgumentReplacingDispatcher.java16 package android.hardware.camera2.dispatch;
32 * source dispatch type, whose methods with {@link #dispatch} will be called
34 * argument replacement type, args in {@link #dispatch} matching {@code argumentIndex}
54 * @param target destination dispatch type, methods will be redirected to this dispatcher
67 public Object dispatch(Method method, Object[] args) throws Throwable { method in class:ArgumentReplacingDispatcher
74 return mTarget.dispatch(method, args);
H A DBroadcastDispatcher.java16 package android.hardware.camera2.dispatch;
26 * Broadcast a single dispatch into multiple other dispatchables.
28 * <p>Every time {@link #dispatch} is invoked, all the broadcast targets will
29 * see the same dispatch as well. The first target's return value is returned.</p>
38 * Create a broadcast dispatcher from the supplied dispatch targets.
40 * @param dispatchTargets one or more targets to dispatch to
49 public Object dispatch(Method method, Object[] args) throws Throwable { method in class:BroadcastDispatcher
54 Object localResult = dispatchTarget.dispatch(method, args);
H A DDuckTypingDispatcher.java16 package android.hardware.camera2.dispatch;
24 * Duck typing dispatcher; converts dispatch methods calls from one class to another by
31 * @param <TFrom> source dispatch type, whose methods with {@link #dispatch} will be called
32 * @param <T> destination dispatch type, methods will be converted to the class of {@code T}
41 * @param target destination dispatch type, methods will be redirected to this dispatcher
42 * @param targetClass destination dispatch class, methods will be converted to this class's
52 public Object dispatch(Method method, Object[] args) { method in class:DuckTypingDispatcher
H A DInvokeDispatcher.java16 package android.hardware.camera2.dispatch;
37 public Object dispatch(Method method, Object[] args) { method in class:InvokeDispatcher
H A DHandlerDispatcher.java16 package android.hardware.camera2.dispatch;
46 * Create a dispatcher that forwards it's dispatch calls by posting
52 * @return a dispatcher that will forward it's dispatch calls to a handler
60 public Object dispatch(final Method method, final Object[] args) throws Throwable { method in class:HandlerDispatcher
65 mDispatchTarget.dispatch(method, args);
H A DMethodNameInvoker.java16 package android.hardware.camera2.dispatch;
28 * @param <T> destination dispatch type, methods will be looked up in the class of {@code T}
40 * @param target destination dispatch type, invokes will be redirected to this dispatcher
41 * @param targetClass destination dispatch class, the invoked methods will be from this class
88 return (K) mTarget.dispatch(targetMethod, params);
/frameworks/support/v4/eclair/android/support/v4/view/
H A DKeyEventCompatEclair.java28 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, method in class:KeyEventCompatEclair
30 return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target);
/frameworks/support/v4/java/android/support/v4/view/
H A DKeyEventCompat.java37 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, method in interface:KeyEventCompat.KeyEventVersionImpl
112 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, method in class:KeyEventCompat.BaseKeyEventVersionImpl
114 return event.dispatch(receiver);
135 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, method in class:KeyEventCompat.EclairKeyEventVersionImpl
137 return KeyEventCompatEclair.dispatch(event, receiver, state, target);
207 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, method in class:KeyEventCompat
209 return IMPL.dispatch(event, receiver, state, target);
/frameworks/base/core/java/android/nfc/
H A DINfcAdapter.aidl56 void dispatch(in Tag tag);
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraCaptureSessionImpl.java22 import android.hardware.camera2.dispatch.ArgumentReplacingDispatcher;
23 import android.hardware.camera2.dispatch.BroadcastDispatcher;
24 import android.hardware.camera2.dispatch.Dispatchable;
25 import android.hardware.camera2.dispatch.DuckTypingDispatcher;
26 import android.hardware.camera2.dispatch.HandlerDispatcher;
27 import android.hardware.camera2.dispatch.InvokeDispatcher;
28 import android.hardware.camera2.dispatch.NullDispatcher;
412 // also be null in that case. Collapse whole dispatch chain to only call the local
H A DCallbackProxies.java24 import android.hardware.camera2.dispatch.Dispatchable;
25 import android.hardware.camera2.dispatch.MethodNameInvoker;
/frameworks/base/core/java/android/inputmethodservice/
H A DAbstractInputMethodService.java136 boolean handled = event.dispatch(AbstractInputMethodService.this,
/frameworks/base/tests/backup/src/com/android/backuptest/
H A DBackupTestActivity.java156 BackupHelperDispatcher dispatch = new BackupHelperDispatcher();
157 dispatch.addHelper("", new FileBackupHelper(BackupTestActivity.this,
166 dispatch.performRestore(data, 0, state);
/frameworks/support/v4/java/android/support/v4/media/
H A DTransportMediator.java61 key.dispatch(mKeyEventCallback);
200 return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);

Completed in 268 milliseconds

12