/frameworks/base/core/java/android/app/ |
D | Application.java | 262 Object[] callbacks = collectComponentCallbacks(); in onConfigurationChanged() local 263 if (callbacks != null) { in onConfigurationChanged() 264 for (int i=0; i<callbacks.length; i++) { in onConfigurationChanged() 265 ((ComponentCallbacks)callbacks[i]).onConfigurationChanged(newConfig); in onConfigurationChanged() 272 Object[] callbacks = collectComponentCallbacks(); in onLowMemory() local 273 if (callbacks != null) { in onLowMemory() 274 for (int i=0; i<callbacks.length; i++) { in onLowMemory() 275 ((ComponentCallbacks)callbacks[i]).onLowMemory(); in onLowMemory() 282 Object[] callbacks = collectComponentCallbacks(); in onTrimMemory() local 283 if (callbacks != null) { in onTrimMemory() [all …]
|
D | Activity.java | 1306 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityPreCreated() local 1307 if (callbacks != null) { in dispatchActivityPreCreated() 1308 for (int i = 0; i < callbacks.length; i++) { in dispatchActivityPreCreated() 1309 ((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityPreCreated(this, in dispatchActivityPreCreated() 1317 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityCreated() local 1318 if (callbacks != null) { in dispatchActivityCreated() 1319 for (int i = 0; i < callbacks.length; i++) { in dispatchActivityCreated() 1320 ((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityCreated(this, in dispatchActivityCreated() 1327 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityPostCreated() local 1328 if (callbacks != null) { in dispatchActivityPostCreated() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 67 ArrayList<Integer> callbacks = registry.copyListeners(); in testAddListener() local 68 assertEquals(1, callbacks.size()); in testAddListener() 69 assertEquals(callback, callbacks.get(0)); in testAddListener() 72 callbacks = registry.copyListeners(); in testAddListener() 73 assertEquals(1, callbacks.size()); in testAddListener() 74 assertEquals(callback, callbacks.get(0)); in testAddListener() 78 callbacks = registry.copyListeners(); in testAddListener() 79 assertEquals(2, callbacks.size()); in testAddListener() 80 assertEquals(callback, callbacks.get(0)); in testAddListener() 81 assertEquals(otherListener, callbacks.get(1)); in testAddListener() [all …]
|
/frameworks/base/core/java/android/service/appprediction/ |
D | AppPredictionService.java | 197 final ArrayList<CallbackWrapper> callbacks = mSessionCallbacks.get(sessionId); in doRegisterPredictionUpdates() local 198 if (callbacks == null) { in doRegisterPredictionUpdates() 203 final CallbackWrapper wrapper = findCallbackWrapper(callbacks, callback); in doRegisterPredictionUpdates() 205 callbacks.add(new CallbackWrapper(callback, in doRegisterPredictionUpdates() 207 mHandler.post(() -> removeCallbackWrapper(callbacks, callbackWrapper)))); in doRegisterPredictionUpdates() 208 if (callbacks.size() == 1) { in doRegisterPredictionUpdates() 222 final ArrayList<CallbackWrapper> callbacks = mSessionCallbacks.get(sessionId); in doUnregisterPredictionUpdates() local 223 if (callbacks == null) { in doUnregisterPredictionUpdates() 228 final CallbackWrapper wrapper = findCallbackWrapper(callbacks, callback); in doUnregisterPredictionUpdates() 230 removeCallbackWrapper(callbacks, wrapper); in doUnregisterPredictionUpdates() [all …]
|
/frameworks/base/core/jni/ |
D | android_app_NativeActivity.cpp | 121 memset(&callbacks, 0, sizeof(callbacks)); in NativeCode() 129 if (callbacks.onDestroy != NULL) { in ~NativeCode() 130 callbacks.onDestroy(this); in ~NativeCode() 162 ANativeActivityCallbacks callbacks; member 344 code->ANativeActivity::callbacks = &code->callbacks; in loadNativeCode_native() 419 if (code->callbacks.onStart != NULL) { in onStart_native() 420 code->callbacks.onStart(code); in onStart_native() 433 if (code->callbacks.onResume != NULL) { in onResume_native() 434 code->callbacks.onResume(code); in onResume_native() 450 if (code->callbacks.onSaveInstanceState != NULL) { in onSaveInstanceState_native() [all …]
|
/frameworks/base/media/java/android/service/media/ |
D | IMediaBrowserService.aidl | 15 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); in connect() argument 16 void disconnect(IMediaBrowserServiceCallbacks callbacks); in disconnect() argument 18 void addSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); in addSubscriptionDeprecated() argument 19 void removeSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); in removeSubscriptionDeprecated() argument 21 void getMediaItem(String uri, in ResultReceiver cb, IMediaBrowserServiceCallbacks callbacks); in getMediaItem() argument 23 IMediaBrowserServiceCallbacks callbacks); in addSubscription() argument 24 void removeSubscription(String uri, in IBinder token, IMediaBrowserServiceCallbacks callbacks); in removeSubscription() argument
|
D | MediaBrowserService.java | 119 IMediaBrowserServiceCallbacks callbacks; field in MediaBrowserService.ConnectionRecord 128 mConnections.remove(callbacks.asBinder()); in binderDied() 204 final IMediaBrowserServiceCallbacks callbacks) { in connect() argument 216 final IBinder b = callbacks.asBinder(); in connect() 226 connection.callbacks = callbacks; in connect() 237 callbacks.onConnectFailed(); in connect() 247 callbacks.onConnect(connection.root.getRootId(), in connect() 261 public void disconnect(final IMediaBrowserServiceCallbacks callbacks) { in disconnect() argument 265 final IBinder b = callbacks.asBinder(); in disconnect() 271 old.callbacks.asBinder().unlinkToDeath(old, 0); in disconnect() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | SurfaceCallbackHelper.java | 46 …c void dispatchSurfaceRedrawNeededAsync(SurfaceHolder holder, SurfaceHolder.Callback callbacks[]) { in dispatchSurfaceRedrawNeededAsync() argument 47 if (callbacks == null || callbacks.length == 0) { in dispatchSurfaceRedrawNeededAsync() 53 mFinishDrawingExpected = callbacks.length; in dispatchSurfaceRedrawNeededAsync() 57 for (SurfaceHolder.Callback c : callbacks) { in dispatchSurfaceRedrawNeededAsync()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipeline.java | 141 final Set<BindCallback> callbacks = bindEntry.callbacks; in onBindRequested() local 142 callbacks.add(callback); in onBindRequested() 143 signal.setOnCancelListener(() -> callbacks.remove(callback)); in onBindRequested() 194 final Set<BindCallback> callbacks = bindEntry.callbacks; in onPipelineComplete() local 196 mLogger.logFinishedPipeline(entry.getKey(), callbacks.size()); in onPipelineComplete() 202 mScratchCallbacksList.addAll(callbacks); in onPipelineComplete() 203 callbacks.clear(); in onPipelineComplete() 246 public final Set<BindCallback> callbacks = new ArraySet<>(); field in NotifBindPipeline.BindEntry
|
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerModule.java | 161 List<Runnable> callbacks = new LinkedList<>(); in setExternalCaptureState() local 173 session.abortActiveRecognitions(callbacks); in setExternalCaptureState() 177 for (Runnable callback : callbacks) { in setExternalCaptureState() 188 List<ISoundTriggerCallback> callbacks = new ArrayList<>(mActiveSessions.size()); in serviceDied() local 191 callbacks.add(session.moduleDied()); in serviceDied() 196 for (ISoundTriggerCallback callback : callbacks) { in serviceDied() 346 List<Runnable> callbacks = new LinkedList<>(); in startRecognition() local 350 mLoadedModels.get(modelHandle).startRecognition(config, callbacks); in startRecognition() 353 for (Runnable callback : callbacks) { in startRecognition() 403 private void abortActiveRecognitions(@NonNull List<Runnable> callbacks) { in abortActiveRecognitions() argument [all …]
|
/frameworks/base/native/webview/plat_support/ |
D | draw_functor.cpp | 32 AwDrawFnFunctorCallbacks callbacks; member 42 support->callbacks.on_sync(functor, support->data, ¶ms); in onSync() 47 support->callbacks.on_context_destroyed(functor, support->data); in onContextDestroyed() 52 support->callbacks.on_destroyed(functor, support->data); in onDestroyed() 88 support->callbacks.draw_gl(functor, support->data, ¶ms); in draw_gl() 118 support->callbacks.init_vk(functor, support->data, ¶ms); in initializeVk() 155 support->callbacks.draw_vk(functor, support->data, ¶ms); in drawVk() 161 support->callbacks.post_draw_vk(functor, support->data, ¶ms); in postDrawVk() 186 .callbacks = *functor_callbacks, in CreateFunctor()
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 378 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in TEST() local 380 res = service->connectDevice(callbacks, cameraId, String16("meeeeeeeee!"), in TEST() 386 EXPECT_FALSE(callbacks->hadError()); in TEST() 392 /*enabled*/true, callbacks); in TEST() 397 /*enabled*/false, callbacks); in TEST() 419 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in openNewDevice() local 423 … binder::Status res = service->connectDevice(callbacks, deviceId, String16("meeeeeeeee!"), in openNewDevice() 428 auto p = std::make_pair(callbacks, device); in openNewDevice() 488 sp<TestCameraDeviceCallbacks> callbacks = p.first; in TEST_F() local 522 EXPECT_FALSE(callbacks->hadError()); in TEST_F() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.cpp | 131 auto& callbacks = GetData(instance).debug_report_callbacks; in CreateDebugReportCallbackEXT() local 132 auto node = callbacks.AddCallback( in CreateDebugReportCallbackEXT() 144 *callback = callbacks.GetHandle(node); in CreateDebugReportCallbackEXT() 155 auto& callbacks = GetData(instance).debug_report_callbacks; in DestroyDebugReportCallbackEXT() local 156 auto node = callbacks.FromHandle(callback); in DestroyDebugReportCallbackEXT() 157 auto driver_handle = callbacks.GetDriverHandle(node); in DestroyDebugReportCallbackEXT() 159 callbacks.RemoveCallback( in DestroyDebugReportCallbackEXT()
|
/frameworks/av/camera/ndk/ |
D | NdkCameraDevice.cpp | 264 const ACameraCaptureSession_stateCallbacks* callbacks, in ACameraDevice_createCaptureSession() argument 267 if (device == nullptr || outputs == nullptr || callbacks == nullptr || session == nullptr) { in ACameraDevice_createCaptureSession() 269 __FUNCTION__, device, outputs, callbacks, session); in ACameraDevice_createCaptureSession() 272 return device->createCaptureSession(outputs, nullptr, callbacks, session); in ACameraDevice_createCaptureSession() 280 const ACameraCaptureSession_stateCallbacks* callbacks, in ACameraDevice_createCaptureSessionWithSessionParameters() argument 283 if (device == nullptr || outputs == nullptr || callbacks == nullptr || session == nullptr) { in ACameraDevice_createCaptureSessionWithSessionParameters() 285 __FUNCTION__, device, outputs, callbacks, session); in ACameraDevice_createCaptureSessionWithSessionParameters() 288 return device->createCaptureSession(outputs, sessionParameters, callbacks, session); in ACameraDevice_createCaptureSessionWithSessionParameters()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaHostStatesManager.kt | 31 private val callbacks: MutableSet<Callback> = mutableSetOf() constant in com.android.systemui.media.MediaHostStatesManager 61 for (callback in callbacks) { in updateHostState() 95 callbacks.add(callback) in addCallback() 102 callbacks.remove(callback) in removeCallback()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 267 public boolean setCallbacks(Callbacks callbacks) { in setCallbacks() argument 268 if (mCallbacks == callbacks) { in setCallbacks() 271 mCallbacks = callbacks; in setCallbacks() 352 public boolean setCallbacks(Callbacks callbacks) { in setCallbacks() argument 353 if (mCallbacks == callbacks) { in setCallbacks() 356 mCallbacks = callbacks; in setCallbacks()
|
/frameworks/base/core/java/android/view/ |
D | Choreographer.java | 748 CallbackRecord callbacks; in doCallbacks() local 754 callbacks = mCallbackQueues[callbackType].extractDueCallbacksLocked( in doCallbacks() 756 if (callbacks == null) { in doCallbacks() 790 for (CallbackRecord c = callbacks; c != null; c = c.next) { in doCallbacks() 802 final CallbackRecord next = callbacks.next; in doCallbacks() 803 recycleCallbackLocked(callbacks); in doCallbacks() 804 callbacks = next; in doCallbacks() 805 } while (callbacks != null); in doCallbacks() 985 CallbackRecord callbacks = mHead; in extractDueCallbacksLocked() local 986 if (callbacks == null || callbacks.dueTime > now) { in extractDueCallbacksLocked() [all …]
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraCaptureSession.h | 473 /*optional*/ACameraCaptureSession_captureCallbacks* callbacks, 527 /*optional*/ACameraCaptureSession_captureCallbacks* callbacks, 776 /*optional*/ACameraCaptureSession_logicalCamera_captureCallbacks* callbacks, 787 /*optional*/ACameraCaptureSession_logicalCamera_captureCallbacks* callbacks,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 448 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 449 callbacks.onMagnificationRegionChanged(OTHER_REGION); 663 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 666 callbacks.onUserContextChanged(); 681 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 685 callbacks.onRotationChanged(0); 704 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 706 callbacks.onMagnificationRegionChanged(OTHER_REGION_COMPAT); 728 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 730 callbacks.onMagnificationRegionChanged(OTHER_REGION_COMPAT); [all …]
|
/frameworks/base/core/java/android/printservice/recommendation/ |
D | RecommendationService.java | 75 public void registerCallbacks(IRecommendationServiceCallbacks callbacks) { in onBind() 82 if (callbacks != null) { in onBind() 83 mHandler.obtainMessage(MyHandler.MSG_CONNECT, callbacks).sendToTarget(); in onBind()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistHandleOffBehavior.java | 35 public void onModeActivated(Context context, AssistHandleCallbacks callbacks) { in onModeActivated() argument 36 callbacks.hide(); in onModeActivated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImpl.kt | 71 private val callbacks = mutableSetOf<ControlsListingController.ControlsListingCallback>() constant in com.android.systemui.controls.management.ControlsListingControllerImpl 96 callbacks.forEach { in <lambda>() 143 callbacks.add(listener) in addCallback() 157 callbacks.remove(listener) in removeCallback()
|
/frameworks/base/core/java/android/print/ |
D | IPrintSpooler.aidl | 82 in IPrintSpoolerCallbacks callbacks, in int sequence); in onCustomPrinterIconLoaded() argument 94 in IPrintSpoolerCallbacks callbacks, in int sequence); in getCustomPrinterIcon() argument 102 void clearCustomPrinterIconCache(in IPrintSpoolerCallbacks callbacks, in clearCustomPrinterIconCache() argument
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 61 WebViewFunctor::WebViewFunctor(void* data, const WebViewFunctorCallbacks& callbacks, in WebViewFunctor() argument 65 mCallbacks = callbacks; in WebViewFunctor() 126 int WebViewFunctorManager::createFunctor(void* data, const WebViewFunctorCallbacks& callbacks, in createFunctor() argument 128 auto object = std::make_unique<WebViewFunctor>(data, callbacks, functorMode); in createFunctor()
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | TransactionExecutorHelper.java | 228 final List<ClientTransactionItem> callbacks = transaction.getCallbacks(); in lastCallbackRequestingState() local 229 if (callbacks == null || callbacks.size() == 0) { in lastCallbackRequestingState() 237 for (int i = callbacks.size() - 1; i >= 0; i--) { in lastCallbackRequestingState() 238 final ClientTransactionItem callback = callbacks.get(i); in lastCallbackRequestingState()
|