Home
last modified time | relevance | path

Searched refs:dispatch (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTunerCallback.java76 private void dispatch(RunnableThrowingRemoteException func) { in dispatch() method in TunerCallback
106 dispatch(() -> mClientCallback.onError(status)); in onError()
117 dispatch(() -> mClientCallback.onConfigurationChanged(config)); in onConfigurationChanged()
122 dispatch(() -> mClientCallback.onCurrentProgramInfoChanged(info)); in onCurrentProgramInfoChanged()
127 dispatch(() -> mClientCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
132 dispatch(() -> mClientCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
137 dispatch(() -> mClientCallback.onAntennaState(connected)); in onAntennaState()
142 dispatch(() -> mClientCallback.onBackgroundScanAvailabilityChange(isAvailable)); in onBackgroundScanAvailabilityChange()
147 dispatch(() -> mClientCallback.onBackgroundScanComplete()); in onBackgroundScanComplete()
152 dispatch(() -> mClientCallback.onProgramListChanged()); in onProgramListChanged()
[all …]
/frameworks/rs/cpp/
DRenderScript.cpp34 dispatchTable* RS::dispatch = nullptr; member in RS
55 RS::dispatch->ContextDeinitToClient(mContext); in ~RS()
60 RS::dispatch->ContextDestroy(mContext); in ~RS()
79 if (loadSymbols(handle, *RS::dispatch, targetApi) == false) { in loadSO()
105 RS::dispatch = new dispatchTable; in initDispatch()
155 RsDevice device = RS::dispatch->DeviceCreate(); in init()
167 mContext = RS::dispatch->ContextCreate(device, 0, targetApi, RS_CONTEXT_TYPE_NORMAL, flags); in init()
209 RS::dispatch->ContextInitToClient(rs->mContext); in threadProc()
216 RsMessageToClientType r = RS::dispatch->ContextPeekMessage(rs->mContext, in threadProc()
234 … RS::dispatch->ContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen), in threadProc()
[all …]
DrsCppInternal.h26 #define tryDispatch(rs, dispatch) \ argument
28 dispatch; \
31 #define createDispatch(rs, dispatch) \ argument
32 rs->getError() == RS_SUCCESS ? (dispatch) : nullptr
DAllocation.cpp144 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); in updateFromNative()
165 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); in syncAll()
176 if (RS::dispatch->AllocationGetPointer == nullptr) { in getPointer()
181 p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0, in getPointer()
232 … tryDispatch(mRS, RS::dispatch->Allocation1DData(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeFrom()
236 … tryDispatch(mRS, RS::dispatch->Allocation1DData(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeFrom()
254 … tryDispatch(mRS, RS::dispatch->Allocation1DRead(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeTo()
259 … tryDispatch(mRS, RS::dispatch->Allocation1DRead(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeTo()
267 tryDispatch(mRS, RS::dispatch->AllocationCopy2DRange(mRS->getContext(), getIDSafe(), off, 0, in copy1DRangeFrom()
299 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, in copy2DRangeFrom()
[all …]
DScript.cpp25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke()
35 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach()
43 …tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(… in bindAllocation()
48 …tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ?… in setVar()
52 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)); in setVar()
DBaseObj.cpp47 RS::dispatch->ObjDestroy(mRS->getContext(), mID); in ~BaseObj()
55 RS::dispatch->GetName(mRS->getContext(), mID, &name); in updateFromNative()
DType.cpp94 RS::dispatch->TypeGetNativeData(mRS->getContext(), getID(), dataBuffer, 6); in updateFromNative()
113 …void * id = RS::dispatch->TypeCreate(rs->getContext(), e->getID(), dimX, dimY, dimZ, false, false,… in create()
222 void * id = RS::dispatch->TypeCreate(mRS->getContext(), mElement->getID(), mDimX, mDimY, mDimZ, in create()
DScriptC.cpp27 mID = RS::dispatch->ScriptCCreate(rs->getContext(), cachedName, cachedNameLength, in ScriptC()
/frameworks/native/vulkan/libvulkan/
Dapi_gen.cpp35 data.dispatch.proc = \
37 if (UNLIKELY(required && !data.dispatch.proc)) { \
50 data.dispatch.proc = disabled##proc; \
627 …return GetData(instance).dispatch.EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysic… in EnumeratePhysicalDevices()
726 return GetData(device).dispatch.GetDeviceProcAddr(device, pName); in GetDeviceProcAddr()
967 return GetData(instance).dispatch.GetInstanceProcAddr(instance, pName); in GetInstanceProcAddr()
971 GetData(physicalDevice).dispatch.GetPhysicalDeviceProperties(physicalDevice, pProperties); in GetPhysicalDeviceProperties()
975 …GetData(physicalDevice).dispatch.GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFami… in GetPhysicalDeviceQueueFamilyProperties()
979 …GetData(physicalDevice).dispatch.GetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperti… in GetPhysicalDeviceMemoryProperties()
983 GetData(physicalDevice).dispatch.GetPhysicalDeviceFeatures(physicalDevice, pFeatures); in GetPhysicalDeviceFeatures()
[all …]
Ddriver.h43 InstanceDispatchTable dispatch; member
55 DeviceDispatchTable dispatch; member
216 hwvulkan_dispatch_t* dispatch = in SetDataInternal() local
219 if (dispatch->magic != HWVULKAN_DISPATCH_MAGIC && dispatch->vtbl != data) { in SetDataInternal()
220 ALOGE("invalid dispatchable object magic 0x%" PRIxPTR, dispatch->magic); in SetDataInternal()
224 dispatch->vtbl = data; in SetDataInternal()
233 const hwvulkan_dispatch_t* dispatch = in GetDataInternal() local
236 return const_cast<void*>(dispatch->vtbl); in GetDataInternal()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp109 RepeatingCallbackReceiver(std::shared_ptr<VSyncDispatch> dispatch, nsecs_t workload, in RepeatingCallbackReceiver() argument
114 dispatch, [&](auto time, auto, auto) { callback_called(time); }, "repeat0") {} in RepeatingCallbackReceiver()
168 auto dispatch = in TEST_F() local
174 cb_receiver{RepeatingCallbackReceiver(dispatch, toNs(1500us), toNs(2500us)), in TEST_F()
175 RepeatingCallbackReceiver(dispatch, toNs(0h), toNs(0h)), in TEST_F()
176 RepeatingCallbackReceiver(dispatch, toNs(1ms), toNs(3ms))}; in TEST_F()
198 auto dispatch = in TEST_F() local
202 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F()
217 auto dispatch = in TEST_F() local
221 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DLifecycleTest.java53 mLifecycle.dispatch(mDispatchedObjects::add); in addObserver_addsObserver()
62 mLifecycle.dispatch(mDispatchedObjects::add); in removeObserver()
68 public void dispatch() throws Exception { in dispatch() method in LifecycleTest
72 mLifecycle.dispatch(mDispatchedObjects::add); in dispatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java57 dispatch(Observer::onScreenTurningOn); in dispatchScreenTurningOn()
62 dispatch(Observer::onScreenTurnedOn); in dispatchScreenTurnedOn()
67 dispatch(Observer::onScreenTurningOff); in dispatchScreenTurningOff()
72 dispatch(Observer::onScreenTurnedOff); in dispatchScreenTurnedOff()
DWakefulnessLifecycle.java151 dispatch(Observer::onStartedWakingUp); in dispatchStartedWakingUp()
159 dispatch(Observer::onFinishedWakingUp); in dispatchFinishedWakingUp()
160 dispatch(Observer::onPostFinishedWakingUp); in dispatchFinishedWakingUp()
180 dispatch(Observer::onStartedGoingToSleep); in dispatchStartedGoingToSleep()
188 dispatch(Observer::onFinishedGoingToSleep); in dispatchFinishedGoingToSleep()
DKeyguardLifecyclesDispatcher.java88 protected void dispatch(@KeyguardLifecycleMessageType int what) { in dispatch() method
97 protected void dispatch(@KeyguardLifecycleMessageType int what, int pmReason) { in dispatch() method
107 protected void dispatch(@KeyguardLifecycleMessageType int what, Object object) { in dispatch() method
DLifecycle.java45 public void dispatch(Consumer<T> consumer) { in dispatch() method in Lifecycle
58 public <U> void dispatch(BiConsumer<T, U> biConsumer, U arg) { in dispatch() method in Lifecycle
DKeyguardService.java500 mKeyguardLifecyclesDispatcher.dispatch(
514 mKeyguardLifecyclesDispatcher.dispatch(
527 mKeyguardLifecyclesDispatcher.dispatch(
538 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.FINISHED_WAKING_UP);
548 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNING_ON,
584 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNED_ON);
594 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNING_OFF);
603 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNED_OFF);
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp77 void MessageQueue::initVsyncInternal(std::shared_ptr<scheduler::VSyncDispatch> dispatch, in initVsyncInternal() argument
85 oldRegistration = onNewVsyncScheduleLocked(std::move(dispatch)); in initVsyncInternal()
94 void MessageQueue::onNewVsyncSchedule(std::shared_ptr<scheduler::VSyncDispatch> dispatch) { in onNewVsyncSchedule() argument
98 oldRegistration = onNewVsyncScheduleLocked(std::move(dispatch)); in onNewVsyncSchedule()
112 std::shared_ptr<scheduler::VSyncDispatch> dispatch) { in onNewVsyncScheduleLocked() argument
117 scheduler::VSyncCallbackRegistration>(std::move(dispatch), in onNewVsyncScheduleLocked()
DVsyncSchedule.cpp47 explicit PredictedVsyncTracer(std::shared_ptr<VsyncDispatch> dispatch) in PredictedVsyncTracer() argument
48 : mRegistration(std::move(dispatch), makeVsyncCallback(), __func__) { in PredictedVsyncTracer()
70 VsyncSchedule::VsyncSchedule(PhysicalDisplayId id, TrackerPtr tracker, DispatchPtr dispatch, in VsyncSchedule() argument
75 mDispatch(std::move(dispatch)), in VsyncSchedule()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.md12 then retained internally for immediate dispatch to any future receivers. (This
41 * Which broadcasts are pending dispatch to a given process. For example, an
52 only dispatch a single broadcast at a time to each process to ensure developers
57 ## Parallel dispatch
63 longest-waiting process first, which aims to reduce overall broadcast dispatch
75 any additional pending broadcasts to that process, aimed at batching dispatch
92 "non-urgent" broadcasts can risk large dispatch latencies. This is mitigated
94 prefer to dispatch before the normal `mPending` queue.
/frameworks/av/services/oboeservice/
DAAudioThread.cpp56 void AAudioThread::dispatch() { in dispatch() function in AAudioThread
72 mThread = std::thread(&AAudioThread::dispatch, this); in start()
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DTestHandler.java94 dispatch(mMessages.poll()); in timeAdvance()
106 dispatch(msg); in flush()
130 private void dispatch(MsgInfo msg) { in dispatch() method in TestHandler
/frameworks/base/tests/utils/testutils/java/android/app/test/
DTestAlarmManager.java67 public boolean dispatch(String tag) { in dispatch() method in TestAlarmManager
72 alarm.dispatch(); in dispatch()
119 public void dispatch() { in dispatch() method in TestAlarmManager.PendingAlarm
/frameworks/native/services/inputflinger/docs/
Danr.md18 Every dispatch cycle, InputDispatcher will check all connections to see if any are unresponsive. To…
23 When a dispatch entry is sent to the app, its `deliveryTime` and `timeoutTime` fields are populated…
31 Looping through `waitQueue`s of all connections on every dispatch cycle could be costly. To improve…
33 … (a set that allows duplicate entries) to keep track of the next time a dispatch entry would becom…
35 On each dispatch cycle, InputDispatcher checks `AnrTracker` for the nearest timeout value. If the n…
37 When an application sends a response for a particular dispatch entry, that entry is removed from th…
71 If the policy wants to abort dispatch, it returns a timeout value of 0. In this case, InputDispatch…
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java156 BackupHelperDispatcher dispatch = new BackupHelperDispatcher();
157 dispatch.addHelper("", new FileBackupHelper(BackupTestActivity.this,
166 dispatch.performRestore(data, 0, state);

123