/frameworks/base/core/java/android/app/ |
D | Application.java | 111 Object[] callbacks = collectComponentCallbacks(); in onConfigurationChanged() local 112 if (callbacks != null) { in onConfigurationChanged() 113 for (int i=0; i<callbacks.length; i++) { in onConfigurationChanged() 114 ((ComponentCallbacks)callbacks[i]).onConfigurationChanged(newConfig); in onConfigurationChanged() 121 Object[] callbacks = collectComponentCallbacks(); in onLowMemory() local 122 if (callbacks != null) { in onLowMemory() 123 for (int i=0; i<callbacks.length; i++) { in onLowMemory() 124 ((ComponentCallbacks)callbacks[i]).onLowMemory(); in onLowMemory() 131 Object[] callbacks = collectComponentCallbacks(); in onTrimMemory() local 132 if (callbacks != null) { in onTrimMemory() [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/data-binding/compiler/src/test/java/android/databinding/ |
D | CallbackRegistryTest.java | 66 ArrayList<Integer> callbacks = registry.copyCallbacks(); in testAddListener() local 67 assertEquals(1, callbacks.size()); in testAddListener() 68 assertEquals(callback, callbacks.get(0)); in testAddListener() 71 callbacks = registry.copyCallbacks(); in testAddListener() 72 assertEquals(1, callbacks.size()); in testAddListener() 73 assertEquals(callback, callbacks.get(0)); in testAddListener() 77 callbacks = registry.copyCallbacks(); in testAddListener() 78 assertEquals(2, callbacks.size()); in testAddListener() 79 assertEquals(callback, callbacks.get(0)); in testAddListener() 80 assertEquals(otherListener, callbacks.get(1)); in testAddListener() [all …]
|
/frameworks/base/core/tests/coretests/src/android/print/mockservice/ |
D | StubbablePrintService.java | 27 PrintServiceCallbacks callbacks = getCallbacks(); in onCreatePrinterDiscoverySession() local 28 if (callbacks != null) { in onCreatePrinterDiscoverySession() 37 PrintServiceCallbacks callbacks = getCallbacks(); in onRequestCancelPrintJob() local 38 if (callbacks != null) { in onRequestCancelPrintJob() 39 callbacks.onRequestCancelPrintJob(printJob); in onRequestCancelPrintJob() 45 PrintServiceCallbacks callbacks = getCallbacks(); in onPrintJobQueued() local 46 if (callbacks != null) { in onPrintJobQueued() 47 callbacks.onPrintJobQueued(printJob); in onPrintJobQueued()
|
D | MockPrintService.java | 25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument 27 sCallbacks = callbacks; in setCallbacks()
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/mockservice/ |
D | StubbablePrintService.java | 27 PrintServiceCallbacks callbacks = getCallbacks(); in onCreatePrinterDiscoverySession() local 28 if (callbacks != null) { in onCreatePrinterDiscoverySession() 37 PrintServiceCallbacks callbacks = getCallbacks(); in onRequestCancelPrintJob() local 38 if (callbacks != null) { in onRequestCancelPrintJob() 39 callbacks.onRequestCancelPrintJob(printJob); in onRequestCancelPrintJob() 45 PrintServiceCallbacks callbacks = getCallbacks(); in onPrintJobQueued() local 46 if (callbacks != null) { in onPrintJobQueued() 47 callbacks.onPrintJobQueued(printJob); in onPrintJobQueued()
|
/frameworks/base/core/jni/ |
D | android_app_NativeActivity.cpp | 120 memset(&callbacks, 0, sizeof(callbacks)); in NativeCode() 128 if (callbacks.onDestroy != NULL) { in ~NativeCode() 129 callbacks.onDestroy(this); in ~NativeCode() 161 ANativeActivityCallbacks callbacks; member 335 code->ANativeActivity::callbacks = &code->callbacks; in loadNativeCode_native() 407 if (code->callbacks.onStart != NULL) { in onStart_native() 408 code->callbacks.onStart(code); in onStart_native() 421 if (code->callbacks.onResume != NULL) { in onResume_native() 422 code->callbacks.onResume(code); in onResume_native() 438 if (code->callbacks.onSaveInstanceState != NULL) { in onSaveInstanceState_native() [all …]
|
/frameworks/base/media/java/android/service/media/ |
D | IMediaBrowserService.aidl | 17 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); in connect() argument 18 void disconnect(IMediaBrowserServiceCallbacks callbacks); in disconnect() argument 20 void addSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); in addSubscriptionDeprecated() argument 21 void removeSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); in removeSubscriptionDeprecated() argument 23 void getMediaItem(String uri, in ResultReceiver cb, IMediaBrowserServiceCallbacks callbacks); in getMediaItem() argument 25 IMediaBrowserServiceCallbacks callbacks); in addSubscription() argument 26 void removeSubscription(String uri, in IBinder token, IMediaBrowserServiceCallbacks callbacks); in removeSubscription() argument
|
D | MediaBrowserService.java | 116 IMediaBrowserServiceCallbacks callbacks; field in MediaBrowserService.ConnectionRecord 190 final IMediaBrowserServiceCallbacks callbacks) { in connect() argument 201 final IBinder b = callbacks.asBinder(); in connect() 209 connection.callbacks = callbacks; in connect() 218 callbacks.onConnectFailed(); in connect() 227 callbacks.onConnect(connection.root.getRootId(), in connect() 241 public void disconnect(final IMediaBrowserServiceCallbacks callbacks) { in disconnect() argument 245 final IBinder b = callbacks.asBinder(); in disconnect() 257 public void addSubscriptionDeprecated(String id, IMediaBrowserServiceCallbacks callbacks) { in addSubscriptionDeprecated() argument 263 final IMediaBrowserServiceCallbacks callbacks) { in addSubscription() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | Recents.java | 271 IRecentsNonSystemUserCallbacks callbacks = in showRecentApps() local 273 if (callbacks != null) { in showRecentApps() 275 callbacks.showRecents(triggeredFromAltTab, false /* draggingInRecents */, in showRecentApps() 308 IRecentsNonSystemUserCallbacks callbacks = in hideRecentApps() local 310 if (callbacks != null) { in hideRecentApps() 312 callbacks.hideRecents(triggeredFromAltTab, triggeredFromHomeKey); in hideRecentApps() 345 IRecentsNonSystemUserCallbacks callbacks = in toggleRecentApps() local 347 if (callbacks != null) { in toggleRecentApps() 349 callbacks.toggleRecents(growTarget); in toggleRecentApps() 376 IRecentsNonSystemUserCallbacks callbacks = in preloadRecentApps() local [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/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
D | BasePrintTest.java | 153 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local 155 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks() 156 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks() 159 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks() 163 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks() 166 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks() 170 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 174 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks() 179 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 183 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks() [all …]
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 345 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in TEST() local 347 res = service->connectDevice(callbacks, cameraId, String16("meeeeeeeee!"), in TEST() 352 EXPECT_FALSE(callbacks->hadError()); in TEST() 358 /*enabled*/true, callbacks); in TEST() 363 /*enabled*/false, callbacks); in TEST() 385 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in openNewDevice() local 389 … binder::Status res = service->connectDevice(callbacks, deviceId, String16("meeeeeeeee!"), in openNewDevice() 393 auto p = std::make_pair(callbacks, device); in openNewDevice() 449 sp<TestCameraDeviceCallbacks> callbacks = p.first; in TEST_F() local 479 EXPECT_FALSE(callbacks->hadError()); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | BasePrintTest.java | 222 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local 224 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks() 225 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks() 228 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks() 232 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks() 235 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks() 239 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 243 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks() 248 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 252 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/media/ |
D | PlaybackBaseControlGlue.java | 420 List<PlayerCallback> callbacks = getPlayerCallbacks(); in onPreparedStateChanged() local 421 if (callbacks != null) { in onPreparedStateChanged() 422 for (int i = 0, size = callbacks.size(); i < size; i++) { in onPreparedStateChanged() 423 callbacks.get(i).onPreparedStateChanged(this); in onPreparedStateChanged() 519 List<PlayerCallback> callbacks = getPlayerCallbacks(); in onPlayStateChanged() local 520 if (callbacks != null) { in onPlayStateChanged() 521 for (int i = 0, size = callbacks.size(); i < size; i++) { in onPlayStateChanged() 522 callbacks.get(i).onPlayStateChanged(this); in onPlayStateChanged() 532 List<PlayerCallback> callbacks = getPlayerCallbacks(); in onPlayCompleted() local 533 if (callbacks != null) { in onPlayCompleted() [all …]
|
/frameworks/support/compat/java/android/support/v4/os/ |
D | ParcelableCompat.java | 40 ParcelableCompatCreatorCallbacks<T> callbacks) { in newCreator() argument 41 return new ParcelableCompatCreatorHoneycombMR2<T>(callbacks); in newCreator() 48 ParcelableCompatCreatorHoneycombMR2(ParcelableCompatCreatorCallbacks<T> callbacks) { in ParcelableCompatCreatorHoneycombMR2() argument 49 mCallbacks = callbacks; in ParcelableCompatCreatorHoneycombMR2()
|
/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/support/media-compat/java/android/support/v4/media/ |
D | MediaBrowserServiceCompat.java | 197 connection.callbacks.onConnect(connection.root.getRootId(), token, in setSessionToken() 557 ServiceCallbacks callbacks; field in MediaBrowserServiceCompat.ConnectionRecord 715 final ServiceCallbacks callbacks) { in connect() argument 725 final IBinder b = callbacks.asBinder(); in connect() 733 connection.callbacks = callbacks; in connect() 743 callbacks.onConnectFailed(); in connect() 752 callbacks.onConnect(connection.root.getRootId(), in connect() 765 public void disconnect(final ServiceCallbacks callbacks) { in disconnect() argument 769 final IBinder b = callbacks.asBinder(); in disconnect() 781 final ServiceCallbacks callbacks) { in addSubscription() argument [all …]
|
/frameworks/support/wear/src/android/support/wear/widget/ |
D | SwipeDismissFrameLayout.java | 242 Callback callbacks = mCallbacks.get(i); in onDismissed() 243 callbacks.onDismissed(SwipeDismissFrameLayout.this); in onDismissed() 263 Callback callbacks = mCallbacks.get(i); in onSwipeProgressChanged() local 264 callbacks.onSwipeStarted(SwipeDismissFrameLayout.this); in onSwipeProgressChanged() 286 Callback callbacks = mCallbacks.get(i); in onSwipeCanceled() 287 callbacks.onSwipeCanceled(SwipeDismissFrameLayout.this); in onSwipeCanceled()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 375 MagnificationCallbacks callbacks = getMagnificationCallbacks(); 376 callbacks.onMagnificationRegionChanged(OTHER_REGION); 501 MagnificationCallbacks callbacks = getMagnificationCallbacks(); 503 callbacks.onUserContextChanged(); 511 MagnificationCallbacks callbacks = getMagnificationCallbacks(); 515 callbacks.onRotationChanged(0); 526 MagnificationCallbacks callbacks = getMagnificationCallbacks(); 528 callbacks.onMagnificationRegionChanged(OTHER_REGION); 541 MagnificationCallbacks callbacks = getMagnificationCallbacks(); 543 callbacks.onMagnificationRegionChanged(OTHER_REGION); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | ImsServiceController.java | 229 ImsServiceControllerCallbacks callbacks) { in ImsServiceController() argument 232 mCallbacks = callbacks; in ImsServiceController() 242 ImsServiceControllerCallbacks callbacks, Handler testHandler) { in ImsServiceController() argument 245 mCallbacks = callbacks; in ImsServiceController() 391 IImsServiceFeatureListener callbacks = i.next(); in sendImsFeatureCreatedCallback() local 393 callbacks.imsFeatureCreated(slot, feature); in sendImsFeatureCreatedCallback() 408 IImsServiceFeatureListener callbacks = i.next(); in sendImsFeatureRemovedCallback() local 410 callbacks.imsFeatureRemoved(slot, feature); in sendImsFeatureRemovedCallback() 425 IImsServiceFeatureListener callbacks = i.next(); in sendImsFeatureStatusChanged() local 427 callbacks.imsStatusChanged(slot, feature, status); in sendImsFeatureStatusChanged()
|
/frameworks/base/core/java/android/view/ |
D | Choreographer.java | 675 CallbackRecord callbacks; in doCallbacks() local 681 callbacks = mCallbackQueues[callbackType].extractDueCallbacksLocked( in doCallbacks() 683 if (callbacks == null) { in doCallbacks() 717 for (CallbackRecord c = callbacks; c != null; c = c.next) { in doCallbacks() 729 final CallbackRecord next = callbacks.next; in doCallbacks() 730 recycleCallbackLocked(callbacks); in doCallbacks() 731 callbacks = next; in doCallbacks() 732 } while (callbacks != null); in doCallbacks() 924 CallbackRecord callbacks = mHead; in extractDueCallbacksLocked() local 925 if (callbacks == null || callbacks.dueTime > now) { in extractDueCallbacksLocked() [all …]
|
D | SurfaceView.java | 611 SurfaceHolder.Callback callbacks[] = null; in updateSurface() local 619 callbacks = getSurfaceCallbacks(); in updateSurface() 620 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 660 if (callbacks == null) { in updateSurface() 661 callbacks = getSurfaceCallbacks(); in updateSurface() 663 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 672 if (callbacks == null) { in updateSurface() 673 callbacks = getSurfaceCallbacks(); in updateSurface() 675 for (SurfaceHolder.Callback c : callbacks) { in updateSurface() 682 if (callbacks == null) { in updateSurface() [all …]
|
/frameworks/av/camera/ndk/ |
D | NdkCameraDevice.cpp | 152 const ACameraCaptureSession_stateCallbacks* callbacks, in ACameraDevice_createCaptureSession() argument 155 if (device == nullptr || outputs == nullptr || callbacks == nullptr || session == nullptr) { in ACameraDevice_createCaptureSession() 157 __FUNCTION__, device, outputs, callbacks, session); in ACameraDevice_createCaptureSession() 160 return device->createCaptureSession(outputs, callbacks, session); in ACameraDevice_createCaptureSession()
|
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/ |
D | CallbackRegistry.java | 313 ArrayList<C> callbacks = new ArrayList<C>(mCallbacks.size()); in copyCallbacks() local 317 callbacks.add(mCallbacks.get(i)); in copyCallbacks() 320 return callbacks; in copyCallbacks() 328 public synchronized void copyCallbacks(List<C> callbacks) { in copyCallbacks() argument 329 callbacks.clear(); in copyCallbacks() 333 callbacks.add(mCallbacks.get(i)); in copyCallbacks()
|