Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 214) sorted by relevance

123456789

/frameworks/base/core/java/android/app/
DApplication.java262 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 …]
DActivity.java1306 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/
DCallbackRegistryTest.java67 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/
DAppPredictionService.java197 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/
Dandroid_app_NativeActivity.cpp121 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/
DIMediaBrowserService.aidl15 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
DMediaBrowserService.java119 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/
DSurfaceCallbackHelper.java46 …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/
DNotifBindPipeline.java141 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/
DSoundTriggerModule.java161 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/
Ddraw_functor.cpp32 AwDrawFnFunctorCallbacks callbacks; member
42 support->callbacks.on_sync(functor, support->data, &params); 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, &params); in draw_gl()
118 support->callbacks.init_vk(functor, support->data, &params); in initializeVk()
155 support->callbacks.draw_vk(functor, support->data, &params); in drawVk()
161 support->callbacks.post_draw_vk(functor, support->data, &params); in postDrawVk()
186 .callbacks = *functor_callbacks, in CreateFunctor()
/frameworks/av/camera/tests/
DCameraBinderTests.cpp378 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/
Ddebug_report.cpp131 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/
DNdkCameraDevice.cpp264 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/
DMediaHostStatesManager.kt31 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/
DAmbientSensor.java267 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/
DChoreographer.java748 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/
DNdkCameraCaptureSession.h473 /*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/
DMagnificationControllerTest.java448 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/
DRecommendationService.java75 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/
DAssistHandleOffBehavior.java35 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/
DControlsListingControllerImpl.kt71 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/
DIPrintSpooler.aidl82 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/
DWebViewFunctorManager.cpp61 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/
DTransactionExecutorHelper.java228 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()

123456789