/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 | 1196 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityPreCreated() local 1197 if (callbacks != null) { in dispatchActivityPreCreated() 1198 for (int i = 0; i < callbacks.length; i++) { in dispatchActivityPreCreated() 1199 ((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityPreCreated(this, in dispatchActivityPreCreated() 1207 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityCreated() local 1208 if (callbacks != null) { in dispatchActivityCreated() 1209 for (int i = 0; i < callbacks.length; i++) { in dispatchActivityCreated() 1210 ((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityCreated(this, in dispatchActivityCreated() 1217 Object[] callbacks = collectActivityLifecycleCallbacks(); in dispatchActivityPostCreated() local 1218 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/legacy/recents/src/com/android/systemui/recents/ |
D | LegacyRecentsImpl.java | 255 IRecentsNonSystemUserCallbacks callbacks = in showRecentApps() local 257 if (callbacks != null) { in showRecentApps() 259 callbacks.showRecents(triggeredFromAltTab, false /* draggingInRecents */, in showRecentApps() 281 IRecentsNonSystemUserCallbacks callbacks = in hideRecentApps() local 283 if (callbacks != null) { in hideRecentApps() 285 callbacks.hideRecents(triggeredFromAltTab, triggeredFromHomeKey); in hideRecentApps() 307 IRecentsNonSystemUserCallbacks callbacks = in toggleRecentApps() local 309 if (callbacks != null) { in toggleRecentApps() 311 callbacks.toggleRecents(growTarget); in toggleRecentApps() 332 IRecentsNonSystemUserCallbacks callbacks = in preloadRecentApps() local [all …]
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 372 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in TEST() local 374 res = service->connectDevice(callbacks, cameraId, String16("meeeeeeeee!"), in TEST() 379 EXPECT_FALSE(callbacks->hadError()); in TEST() 385 /*enabled*/true, callbacks); in TEST() 390 /*enabled*/false, callbacks); in TEST() 412 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in openNewDevice() local 416 … binder::Status res = service->connectDevice(callbacks, deviceId, String16("meeeeeeeee!"), in openNewDevice() 420 auto p = std::make_pair(callbacks, device); in openNewDevice() 480 sp<TestCameraDeviceCallbacks> callbacks = p.first; in TEST_F() local 512 EXPECT_FALSE(callbacks->hadError()); in TEST_F() [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/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/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 266 public boolean setCallbacks(Callbacks callbacks) { in setCallbacks() argument 267 if (mCallbacks == callbacks) { in setCallbacks() 270 mCallbacks = callbacks; in setCallbacks() 351 public boolean setCallbacks(Callbacks callbacks) { in setCallbacks() argument 352 if (mCallbacks == callbacks) { in setCallbacks() 355 mCallbacks = callbacks; in setCallbacks()
|
/frameworks/base/core/java/android/view/ |
D | Choreographer.java | 746 CallbackRecord callbacks; in doCallbacks() local 752 callbacks = mCallbackQueues[callbackType].extractDueCallbacksLocked( in doCallbacks() 754 if (callbacks == null) { in doCallbacks() 788 for (CallbackRecord c = callbacks; c != null; c = c.next) { in doCallbacks() 800 final CallbackRecord next = callbacks.next; in doCallbacks() 801 recycleCallbackLocked(callbacks); in doCallbacks() 802 callbacks = next; in doCallbacks() 803 } while (callbacks != null); in doCallbacks() 983 CallbackRecord callbacks = mHead; in extractDueCallbacksLocked() local 984 if (callbacks == null || callbacks.dueTime > now) { in extractDueCallbacksLocked() [all …]
|
D | SurfaceView.java | 851 SurfaceHolder.Callback[] callbacks = null; in updateSurface() local 859 callbacks = getSurfaceCallbacks(); in updateSurface() 860 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 900 if (callbacks == null) { in updateSurface() 901 callbacks = getSurfaceCallbacks(); in updateSurface() 903 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 912 if (callbacks == null) { in updateSurface() 913 callbacks = getSurfaceCallbacks(); in updateSurface() 915 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 922 if (callbacks == null) { in updateSurface() [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 | 447 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 448 callbacks.onMagnificationRegionChanged(OTHER_REGION); 662 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 665 callbacks.onUserContextChanged(); 680 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 684 callbacks.onRotationChanged(0); 703 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 705 callbacks.onMagnificationRegionChanged(OTHER_REGION_COMPAT); 727 MagnificationCallbacks callbacks = getMagnificationCallbacks(displayId); 729 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/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/core/java/android/app/servertransaction/ |
D | TransactionExecutorHelper.java | 223 final List<ClientTransactionItem> callbacks = transaction.getCallbacks(); in lastCallbackRequestingState() local 224 if (callbacks == null || callbacks.size() == 0) { in lastCallbackRequestingState() 232 for (int i = callbacks.size() - 1; i >= 0; i--) { in lastCallbackRequestingState() 233 final ClientTransactionItem callback = callbacks.get(i); in lastCallbackRequestingState()
|
D | TransactionExecutor.java | 105 final List<ClientTransactionItem> callbacks = transaction.getCallbacks(); in executeCallbacks() local 106 if (callbacks == null || callbacks.isEmpty()) { in executeCallbacks() 124 final int size = callbacks.size(); in executeCallbacks() 126 final ClientTransactionItem item = callbacks.get(i); in executeCallbacks()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentController.java | 291 final RemoteCallbackList<IResultReceiver> callbacks = rec.detachCancelListenersLocked(); in makeIntentSenderCanceled() local 292 if (callbacks != null) { in makeIntentSenderCanceled() 294 PendingIntentController::handlePendingIntentCancelled, this, callbacks); in makeIntentSenderCanceled() 301 private void handlePendingIntentCancelled(RemoteCallbackList<IResultReceiver> callbacks) { in handlePendingIntentCancelled() argument 302 int N = callbacks.beginBroadcast(); in handlePendingIntentCancelled() 305 callbacks.getBroadcastItem(i).send(Activity.RESULT_CANCELED, null); in handlePendingIntentCancelled() 310 callbacks.finishBroadcast(); in handlePendingIntentCancelled() 313 callbacks.kill(); in handlePendingIntentCancelled()
|
/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/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()
|