/frameworks/base/services/core/java/com/android/server/cpu/ |
D | CpuMonitorService.java | 111 CpuAvailabilityCallbackInfo callbackInfo; 117 callbackInfo = mAvailabilityCallbackInfosByCallbacksByCpuset.delete(cpuset, 119 if (callbackInfo != null) { 120 Slogf.i(TAG, "Overwriting the existing %s", callbackInfo); 123 callbackInfo = newCallbackInfoLocked(config, callback, executor); 125 asyncNotifyMonitoringIntervalChangeToClient(callbackInfo); 127 Slogf.d(TAG, "Successfully added %s", callbackInfo); 136 CpuAvailabilityCallbackInfo callbackInfo = 138 if (callbackInfo != null) { 140 Slogf.d(TAG, "Successfully removed %s", callbackInfo); [all …]
|
/frameworks/base/media/jni/audioeffect/ |
D | android_media_Visualizer.cpp | 172 visualizer_callback_cookie *callbackInfo = (visualizer_callback_cookie *)user; in captureCallback() local 182 if (sVisualizerCallBackCookies.count(callbackInfo) == 0) { in captureCallback() 185 callbackInfo->busy_count++; in captureCallback() 188 callbackInfo, in captureCallback() 189 callbackInfo->visualizer_ref, in captureCallback() 190 callbackInfo->visualizer_class); in captureCallback() 193 AutoMutex lock(&callbackInfo->callback_data_lock); in captureCallback() 198 ensureArraySize(env, &callbackInfo->waveform_data, waveformSize); in captureCallback() 199 jArray = callbackInfo->waveform_data; in captureCallback() 206 callbackInfo->visualizer_class, in captureCallback() [all …]
|
D | android_media_AudioEffect.cpp | 114 effect_callback_cookie *callbackInfo = (effect_callback_cookie *)user; in effectCallback() local 123 if (sAudioEffectCallBackCookies.count(callbackInfo) == 0) { in effectCallback() 126 callbackInfo->busy = true; in effectCallback() 129 callbackInfo, in effectCallback() 130 callbackInfo->audioEffect_ref, in effectCallback() 131 callbackInfo->audioEffect_class); in effectCallback() 181 callbackInfo->audioEffect_class, in effectCallback() 183 callbackInfo->audioEffect_ref, event, arg1, arg2, obj); in effectCallback() 196 callbackInfo->busy = false; in effectCallback() 197 callbackInfo->cond.broadcast(); in effectCallback()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | WindowOnBackInvokedDispatcherTest.java | 290 OnBackInvokedCallbackInfo callbackInfo = assertSetCallbackInfo(); in propagatesTopCallback_differentPriority() local 293 assertEquals(callbackInfo.getPriority(), PRIORITY_OVERLAY); in propagatesTopCallback_differentPriority() 295 callbackInfo.getCallback().onBackStarted(mBackEvent); in propagatesTopCallback_differentPriority() 345 OnBackInvokedCallbackInfo callbackInfo = assertSetCallbackInfo(); in onUnregisterWhileBackInProgress_callOnBackCancelled() local 347 callbackInfo.getCallback().onBackStarted(mBackEvent); in onUnregisterWhileBackInProgress_callOnBackCancelled() 362 OnBackInvokedCallbackInfo callbackInfo = assertSetCallbackInfo(); in onBackInvoked_calledAfterOnBackStarted() local 364 callbackInfo.getCallback().onBackStarted(mBackEvent); in onBackInvoked_calledAfterOnBackStarted() 369 callbackInfo.getCallback().onBackInvoked(); in onBackInvoked_calledAfterOnBackStarted() 379 OnBackInvokedCallbackInfo callbackInfo = assertSetCallbackInfo(); in onBackCancelled_calledBeforeOnBackStartedOfNewGesture() local 381 callbackInfo.getCallback().onBackStarted(mBackEvent); in onBackCancelled_calledBeforeOnBackStartedOfNewGesture() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ScreenRecordingCallbackController.java | 141 Callback callbackInfo = new Callback(callback, uid); in register() local 143 binder.linkToDeath(callbackInfo, 0); in register() 148 boolean uidInRecording = uidHasRecordedActivity(callbackInfo.mUid); in register() 149 mLastInvokedStateByUid.put(callbackInfo.mUid, uidInRecording); in register() 150 mCallbacks.put(binder, callbackInfo); in register() 158 Callback callbackInfo = mCallbacks.remove(binder); in unregister() local 159 if (callbackInfo == null) { in unregister() 162 binder.unlinkToDeath(callbackInfo, 0); in unregister() 166 if (mCallbacks.valueAt(i).mUid == callbackInfo.mUid) { in unregister() 172 mLastInvokedStateByUid.remove(callbackInfo.mUid); in unregister()
|
D | BackNavigationController.java | 194 final OnBackInvokedCallbackInfo callbackInfo = window.getOnBackInvokedCallbackInfo(); in startBackNavigation() local 195 if (callbackInfo == null) { in startBackNavigation() 199 if (!callbackInfo.isSystemCallback()) { in startBackNavigation() 202 infoBuilder.setOnBackInvokedCallback(callbackInfo.getCallback()); in startBackNavigation() 203 infoBuilder.setAnimationCallback(callbackInfo.isAnimationCallback()); in startBackNavigation() 211 currentTask, currentActivity, callbackInfo, window); in startBackNavigation()
|
D | Session.java | 1018 OnBackInvokedCallbackInfo callbackInfo) { in setOnBackInvokedCallbackInfo() argument 1025 windowState.setOnBackInvokedCallbackInfo(callbackInfo); in setOnBackInvokedCallbackInfo()
|
D | WindowState.java | 1071 @Nullable OnBackInvokedCallbackInfo callbackInfo) { in setOnBackInvokedCallbackInfo() 1073 this, callbackInfo); in setOnBackInvokedCallbackInfo() 1074 mOnBackInvokedCallbackInfo = callbackInfo; in setOnBackInvokedCallbackInfo()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 1291 GestureResultCallbackInfo callbackInfo = new GestureResultCallbackInfo(gesture, in dispatchGesture() local 1293 mGestureStatusCallbackInfos.put(mGestureStatusCallbackSequence, callbackInfo); in dispatchGesture() 1332 GestureResultCallbackInfo callbackInfo; in onPerformGestureResult() local 1334 callbackInfo = mGestureStatusCallbackInfos.get(sequence); in onPerformGestureResult() 1337 final GestureResultCallbackInfo finalCallbackInfo = callbackInfo; in onPerformGestureResult() 1338 if ((callbackInfo != null) && (callbackInfo.gestureDescription != null) in onPerformGestureResult() 1339 && (callbackInfo.callback != null)) { in onPerformGestureResult() 1340 if (callbackInfo.handler != null) { in onPerformGestureResult() 1341 callbackInfo.handler.post(new Runnable() { in onPerformGestureResult() 1356 callbackInfo.callback.onCompleted(callbackInfo.gestureDescription); in onPerformGestureResult() [all …]
|
/frameworks/base/core/java/android/window/ |
D | WindowOnBackInvokedDispatcher.java | 308 OnBackInvokedCallbackInfo callbackInfo = null; in setTopOnBackInvokedCallback() local 313 callbackInfo = new OnBackInvokedCallbackInfo( in setTopOnBackInvokedCallback() 318 mWindowSession.setOnBackInvokedCallbackInfo(mWindow, callbackInfo); in setTopOnBackInvokedCallback()
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 328 SurfaceComposerClient::CallbackInfo& callbackInfo, in addSurfaceControlToCallbacks() argument 333 for (auto callbackId : callbackInfo.callbackIds) { in addSurfaceControlToCallbacks() 345 addCallbackFunctionLocked(&emptyCallback, callbackInfo.surfaceControls, in addSurfaceControlToCallbacks() 347 callbackInfo.callbackIds.emplace(callbackId); in addSurfaceControlToCallbacks() 899 for (auto const& [listener, callbackInfo] : mListenerCallbacks) { in writeToParcel() 901 parcel->writeUint32(static_cast<uint32_t>(callbackInfo.callbackIds.size())); in writeToParcel() 902 for (auto callbackId : callbackInfo.callbackIds) { in writeToParcel() 905 parcel->writeUint32(static_cast<uint32_t>(callbackInfo.surfaceControls.size())); in writeToParcel() 906 for (auto surfaceControl : callbackInfo.surfaceControls) { in writeToParcel() 990 for (const auto& [listener, callbackInfo] : other.mListenerCallbacks) { in merge() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1313 UidStateCallbackInfo callbackInfo = mUidStateCallbackInfos.get(uid); 1314 if (callbackInfo == null) { 1315 callbackInfo = new UidStateCallbackInfo(); 1316 mUidStateCallbackInfos.put(uid, callbackInfo); 1318 if (isUidStateChangeRelevant(callbackInfo, procState, procStateSeq, capability)) { 1319 callbackInfo.update(uid, procState, procStateSeq, capability); 1320 if (!callbackInfo.isPending) { 1323 callbackInfo.isPending = true; 4299 final UidStateCallbackInfo callbackInfo = mUidStateCallbackInfos.get(uid); 4302 fout.print("callback_info", callbackInfo); [all …]
|
/frameworks/base/core/java/android/view/ |
D | IWindowSession.aidl | 373 IWindow window, in OnBackInvokedCallbackInfo callbackInfo); in setOnBackInvokedCallbackInfo() argument
|
D | WindowlessWindowManager.java | 658 OnBackInvokedCallbackInfo callbackInfo) throws RemoteException { } in setOnBackInvokedCallbackInfo() argument
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 936 void addSurfaceControlToCallbacks(SurfaceComposerClient::CallbackInfo& callbackInfo,
|