Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTunerCallback.java77 private void dispatch(RunnableThrowingRemoteException func) { in dispatch() method in TunerCallback
107 dispatch(() -> mClientCallback.onError(status)); in onError()
118 dispatch(() -> mClientCallback.onConfigurationChanged(config)); in onConfigurationChanged()
123 dispatch(() -> mClientCallback.onCurrentProgramInfoChanged(info)); in onCurrentProgramInfoChanged()
128 dispatch(() -> mClientCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
133 dispatch(() -> mClientCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
138 dispatch(() -> mClientCallback.onAntennaState(connected)); in onAntennaState()
143 dispatch(() -> mClientCallback.onBackgroundScanAvailabilityChange(isAvailable)); in onBackgroundScanAvailabilityChange()
148 dispatch(() -> mClientCallback.onBackgroundScanComplete()); in onBackgroundScanComplete()
153 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 …]
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 …]
DrsCppInternal.h26 #define tryDispatch(rs, dispatch) \ argument
28 dispatch; \
31 #define createDispatch(rs, dispatch) \ argument
32 rs->getError() == RS_SUCCESS ? (dispatch) : nullptr
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; \
527 …return GetData(instance).dispatch.EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysic… in EnumeratePhysicalDevices()
617 return GetData(device).dispatch.GetDeviceProcAddr(device, pName); in GetDeviceProcAddr()
809 return GetData(instance).dispatch.GetInstanceProcAddr(instance, pName); in GetInstanceProcAddr()
813 GetData(physicalDevice).dispatch.GetPhysicalDeviceProperties(physicalDevice, pProperties); in GetPhysicalDeviceProperties()
817 …GetData(physicalDevice).dispatch.GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFami… in GetPhysicalDeviceQueueFamilyProperties()
821 …GetData(physicalDevice).dispatch.GetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperti… in GetPhysicalDeviceMemoryProperties()
825 GetData(physicalDevice).dispatch.GetPhysicalDeviceFeatures(physicalDevice, pFeatures); in GetPhysicalDeviceFeatures()
[all …]
Ddriver.h43 InstanceDispatchTable dispatch; member
55 DeviceDispatchTable dispatch; member
148 hwvulkan_dispatch_t* dispatch = in SetDataInternal() local
151 if (dispatch->magic != HWVULKAN_DISPATCH_MAGIC && dispatch->vtbl != data) { in SetDataInternal()
152 ALOGE("invalid dispatchable object magic 0x%" PRIxPTR, dispatch->magic); in SetDataInternal()
156 dispatch->vtbl = data; in SetDataInternal()
165 const hwvulkan_dispatch_t* dispatch = in GetDataInternal() local
168 return const_cast<void*>(dispatch->vtbl); in GetDataInternal()
Dapi.cpp826 if (data.dispatch.DestroyInstance) in Create()
827 data.dispatch.DestroyInstance(instance, allocator); in Create()
844 data.dispatch.DestroyInstance(instance, allocator); in Create()
860 data.dispatch.DestroyInstance(instance, allocator); in Create()
888 GetData(physical_dev).dispatch.CreateDevice; in Create()
898 if (data.dispatch.DestroyDevice) in Create()
899 data.dispatch.DestroyDevice(dev, allocator); in Create()
1154 data.dispatch.DestroyInstance(instance, allocator); in DestroyInstance()
1164 data.dispatch.DestroyDevice(device, allocator); in DestroyDevice()
1431 VkResult result = data.dispatch.EnumerateDeviceExtensionProperties( in EnumerateDeviceExtensionProperties()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp107 RepeatingCallbackReceiver(VSyncDispatch& dispatch, nsecs_t wl) in RepeatingCallbackReceiver() argument
110 dispatch, [&](auto time, auto) { callback_called(time); }, "repeat0") {} in RepeatingCallbackReceiver()
158 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F() local
163 cb_receiver{RepeatingCallbackReceiver(dispatch, toNs(1500us)), in TEST_F()
164 RepeatingCallbackReceiver(dispatch, toNs(0h)), in TEST_F()
165 RepeatingCallbackReceiver(dispatch, toNs(1ms))}; in TEST_F()
187 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F() local
190 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms)); in TEST_F()
205 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F() local
208 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms)); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java123 mKeyguardLifecyclesDispatcher.dispatch(
131 mKeyguardLifecyclesDispatcher.dispatch(
140 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.STARTED_WAKING_UP);
148 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.FINISHED_WAKING_UP);
157 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNING_ON);
166 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNED_ON);
173 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNING_OFF);
180 mKeyguardLifecyclesDispatcher.dispatch(KeyguardLifecyclesDispatcher.SCREEN_TURNED_OFF);
DScreenLifecycle.java52 dispatch(Observer::onScreenTurningOn); in dispatchScreenTurningOn()
57 dispatch(Observer::onScreenTurnedOn); in dispatchScreenTurnedOn()
62 dispatch(Observer::onScreenTurningOff); in dispatchScreenTurningOff()
67 dispatch(Observer::onScreenTurnedOff); in dispatchScreenTurnedOff()
DWakefulnessLifecycle.java68 dispatch(Observer::onStartedWakingUp); in dispatchStartedWakingUp()
76 dispatch(Observer::onFinishedWakingUp); in dispatchFinishedWakingUp()
84 dispatch(Observer::onStartedGoingToSleep); in dispatchStartedGoingToSleep()
92 dispatch(Observer::onFinishedGoingToSleep); in dispatchFinishedGoingToSleep()
DLifecycle.java37 public void dispatch(Consumer<T> consumer) { in dispatch() method in Lifecycle
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DLifecycleTest.java54 mLifecycle.dispatch(mDispatchedObjects::add); in addObserver_addsObserver()
64 mLifecycle.dispatch(mDispatchedObjects::add); in removeObserver()
70 public void dispatch() throws Exception { in dispatch() method in LifecycleTest
74 mLifecycle.dispatch(mDispatchedObjects::add); in dispatch()
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DTestHandler.java88 dispatch(mMessages.poll()); in timeAdvance()
100 dispatch(msg); in flush()
117 private void dispatch(MsgInfo msg) { in dispatch() method in TestHandler
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiHealthMonitorTest.java333 mAlarmManager.dispatch(WifiHealthMonitor.POST_BOOT_DETECTION_TIMER_TAG); in makeSerializedExample()
375 mAlarmManager.dispatch(WifiHealthMonitor.POST_BOOT_DETECTION_TIMER_TAG); in testReadWriteAndSWChange()
409 mAlarmManager.dispatch(WifiHealthMonitor.POST_BOOT_DETECTION_TIMER_TAG); in testSerializationDeserialization()
449 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testTimerMultiDayRun()
458 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testTimerMultiDayRun()
497 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testTwoDailyDetections()
501 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testTwoDailyDetections()
516 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testBuildProto()
572 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testWifiStatsLogWrite()
597 mAlarmManager.dispatch(WifiHealthMonitor.DAILY_DETECTION_TIMER_TAG); in testAfterSwBuildChange()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp40 PredictedVsyncTracer(VSyncDispatch& dispatch) in PredictedVsyncTracer() argument
41 : mRegistration(dispatch, in PredictedVsyncTracer()
58 VSyncReactor::VSyncReactor(std::unique_ptr<Clock> clock, std::unique_ptr<VSyncDispatch> dispatch, in VSyncReactor() argument
63 mDispatch(std::move(dispatch)), in VSyncReactor()
77 CallbackRepeater(VSyncDispatch& dispatch, DispSync::Callback* cb, const char* name, in CallbackRepeater() argument
81 mRegistration(dispatch, in CallbackRepeater()
/frameworks/av/services/oboeservice/
DAAudioThread.cpp52 void AAudioThread::dispatch() { in dispatch() function in AAudioThread
64 aaudioThread->dispatch(); in AAudioThread_internalThreadProc()
DAAudioThread.h68 void dispatch(); // called internally from 'C' thread wrapper
/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/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);
/frameworks/base/packages/SystemUI/docs/
Dbroadcasts.md9 Having a single `BroadcastReceiver` in SystemUI improves the multi dispatch situation that occurs w…
13 …adcast, giving back control to `system_server`. This improves the total dispatch time for broadcas…
58 * @param receiver A receiver to dispatch the [Intent]
62 * @param executor An executor to dispatch [BroadcastReceiver.onReceive]. Pass null to use an

123