Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/app/
DApplication.java109 Object[] callbacks = collectComponentCallbacks(); in onConfigurationChanged() local
110 if (callbacks != null) { in onConfigurationChanged()
111 for (int i=0; i<callbacks.length; i++) { in onConfigurationChanged()
112 ((ComponentCallbacks)callbacks[i]).onConfigurationChanged(newConfig); in onConfigurationChanged()
119 Object[] callbacks = collectComponentCallbacks(); in onLowMemory() local
120 if (callbacks != null) { in onLowMemory()
121 for (int i=0; i<callbacks.length; i++) { in onLowMemory()
122 ((ComponentCallbacks)callbacks[i]).onLowMemory(); in onLowMemory()
129 Object[] callbacks = collectComponentCallbacks(); in onTrimMemory() local
130 if (callbacks != null) { in onTrimMemory()
[all …]
DFragmentController.java47 public static final FragmentController createController(FragmentHostCallback<?> callbacks) { in createController() argument
48 return new FragmentController(callbacks); in createController()
51 private FragmentController(FragmentHostCallback<?> callbacks) { in FragmentController() argument
52 mHost = callbacks; in FragmentController()
/frameworks/base/core/tests/coretests/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/data-binding/compiler/src/test/java/android/databinding/
DCallbackRegistryTest.java66 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/jni/
Dandroid_app_NativeActivity.cpp116 memset(&callbacks, 0, sizeof(callbacks)); in NativeCode()
124 if (callbacks.onDestroy != NULL) { in ~NativeCode()
125 callbacks.onDestroy(this); in ~NativeCode()
152 ANativeActivityCallbacks callbacks; member
320 code->ANativeActivity::callbacks = &code->callbacks; in loadNativeCode_native()
389 if (code->callbacks.onStart != NULL) { in onStart_native()
390 code->callbacks.onStart(code); in onStart_native()
403 if (code->callbacks.onResume != NULL) { in onResume_native()
404 code->callbacks.onResume(code); in onResume_native()
420 if (code->callbacks.onSaveInstanceState != NULL) { in onSaveInstanceState_native()
[all …]
/frameworks/av/camera/tests/
DCameraBinderTests.cpp279 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in TEST() local
281 EXPECT_EQ(OK, service->connectDevice(callbacks, i, String16("meeeeeeeee!"), in TEST()
285 EXPECT_FALSE(callbacks->hadError()); in TEST()
291 /*enabled*/true, callbacks)); in TEST()
295 /*enabled*/false, callbacks)); in TEST()
314 sp<TestCameraDeviceCallbacks> callbacks(new TestCameraDeviceCallbacks()); in openNewDevice() local
318 EXPECT_EQ(OK, service->connectDevice(callbacks, deviceId, String16("meeeeeeeee!"), in openNewDevice()
321 auto p = std::make_pair(callbacks, device); in openNewDevice()
373 sp<TestCameraDeviceCallbacks> callbacks = p.first; in TEST_F() local
399 EXPECT_FALSE(callbacks->hadError()); in TEST_F()
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java96 IMediaBrowserServiceCallbacks callbacks; field in MediaBrowserService.ConnectionRecord
165 final IMediaBrowserServiceCallbacks callbacks) { in connect() argument
176 final IBinder b = callbacks.asBinder(); in connect()
184 connection.callbacks = callbacks; in connect()
193 callbacks.onConnectFailed(); in connect()
202 callbacks.onConnect(connection.root.getRootId(), in connect()
216 public void disconnect(final IMediaBrowserServiceCallbacks callbacks) { in disconnect() argument
220 final IBinder b = callbacks.asBinder(); in disconnect()
233 … public void addSubscription(final String id, final IMediaBrowserServiceCallbacks callbacks) { in addSubscription() argument
237 final IBinder b = callbacks.asBinder(); in addSubscription()
[all …]
DIMediaBrowserService.aidl17 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); in connect() argument
18 void disconnect(IMediaBrowserServiceCallbacks callbacks); in disconnect() argument
20 void addSubscription(String uri, IMediaBrowserServiceCallbacks callbacks); in addSubscription() argument
21 void removeSubscription(String uri, IMediaBrowserServiceCallbacks callbacks); in removeSubscription() argument
/frameworks/support/v4/java/android/support/v4/os/
DParcelableCompat.java35 ParcelableCompatCreatorCallbacks<T> callbacks) { in newCreator() argument
37 return ParcelableCompatCreatorHoneycombMR2Stub.instantiate(callbacks); in newCreator()
39 return new CompatCreator<T>(callbacks); in newCreator()
45 public CompatCreator(ParcelableCompatCreatorCallbacks<T> callbacks) { in CompatCreator() argument
46 mCallbacks = callbacks; in CompatCreator()
/frameworks/support/v4/honeycomb_mr2/android/support/v4/os/
DParcelableCompatHoneycombMR2.java23 static <T> Parcelable.Creator<T> instantiate(ParcelableCompatCreatorCallbacks<T> callbacks) { in instantiate() argument
24 return new ParcelableCompatCreatorHoneycombMR2<T>(callbacks); in instantiate()
31 public ParcelableCompatCreatorHoneycombMR2(ParcelableCompatCreatorCallbacks<T> callbacks) { in ParcelableCompatCreatorHoneycombMR2() argument
32 mCallbacks = callbacks; in ParcelableCompatCreatorHoneycombMR2()
/frameworks/base/core/java/android/view/
DChoreographer.java622 CallbackRecord callbacks; in doCallbacks() local
628 callbacks = mCallbackQueues[callbackType].extractDueCallbacksLocked( in doCallbacks()
630 if (callbacks == null) { in doCallbacks()
664 for (CallbackRecord c = callbacks; c != null; c = c.next) { in doCallbacks()
676 final CallbackRecord next = callbacks.next; in doCallbacks()
677 recycleCallbackLocked(callbacks); in doCallbacks()
678 callbacks = next; in doCallbacks()
679 } while (callbacks != null); in doCallbacks()
871 CallbackRecord callbacks = mHead; in extractDueCallbacksLocked() local
872 if (callbacks == null || callbacks.dueTime > now) { in extractDueCallbacksLocked()
[all …]
DSurfaceView.java557 SurfaceHolder.Callback callbacks[] = null; in updateWindow() local
565 callbacks = getSurfaceCallbacks(); in updateWindow()
566 for (SurfaceHolder.Callback c : callbacks) { in updateWindow()
579 if (callbacks == null) { in updateWindow()
580 callbacks = getSurfaceCallbacks(); in updateWindow()
582 for (SurfaceHolder.Callback c : callbacks) { in updateWindow()
590 if (callbacks == null) { in updateWindow()
591 callbacks = getSurfaceCallbacks(); in updateWindow()
593 for (SurfaceHolder.Callback c : callbacks) { in updateWindow()
599 if (callbacks == null) { in updateWindow()
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java151 public TransportMediator(Activity activity, TransportPerformer callbacks) { in TransportMediator() argument
152 this(activity, null, callbacks); in TransportMediator()
155 public TransportMediator(View view, TransportPerformer callbacks) { in TransportMediator() argument
156 this(null, view, callbacks); in TransportMediator()
159 private TransportMediator(Activity activity, View view, TransportPerformer callbacks) { in TransportMediator() argument
161 mCallbacks = callbacks; in TransportMediator()
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DCallbackRegistry.java310 ArrayList<C> callbacks = new ArrayList<C>(mCallbacks.size()); in copyCallbacks() local
314 callbacks.add(mCallbacks.get(i)); in copyCallbacks()
317 return callbacks; in copyCallbacks()
325 public synchronized void copyCallbacks(List<C> callbacks) { in copyCallbacks() argument
326 callbacks.clear(); in copyCallbacks()
330 callbacks.add(mCallbacks.get(i)); in copyCallbacks()
/frameworks/base/core/java/android/os/
DSystemProperties.java148 ArrayList<Runnable> callbacks = new ArrayList<Runnable>(sChangeCallbacks); in callChangeCallbacks() local
149 for (int i=0; i<callbacks.size(); i++) { in callChangeCallbacks()
150 callbacks.get(i).run(); in callChangeCallbacks()
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.h56 const camera_module_callbacks_t& callbacks);
108 const camera_module_callbacks_t& callbacks);
127 const camera_module_callbacks_t& callbacks);
181 const camera_module_callbacks_t& callbacks);
/frameworks/support/v4/java/android/support/v4/app/
DFragmentController.java46 public static final FragmentController createController(FragmentHostCallback<?> callbacks) { in createController() argument
47 return new FragmentController(callbacks); in createController()
50 private FragmentController(FragmentHostCallback<?> callbacks) { in FragmentController() argument
51 mHost = callbacks; in FragmentController()
/frameworks/av/media/libmedia/
DAudioSystem.cpp471 Vector < sp<AudioDeviceCallback> > callbacks; in ioConfigChanged() local
491 callbacks = mAudioDeviceCallbacks.valueAt(ioIndex); in ioConfigChanged()
528 callbacks = mAudioDeviceCallbacks.valueAt(ioIndex); in ioConfigChanged()
541 for (size_t i = 0; i < callbacks.size(); i++) { in ioConfigChanged()
542 callbacks[i]->onAudioDeviceUpdate(ioDesc->mIoHandle, deviceId); in ioConfigChanged()
598 Vector < sp<AudioDeviceCallback> > callbacks; in addAudioDeviceCallback() local
601 callbacks = mAudioDeviceCallbacks.valueAt(ioIndex); in addAudioDeviceCallback()
604 for (size_t cbIndex = 0; cbIndex < callbacks.size(); cbIndex++) { in addAudioDeviceCallback()
605 if (callbacks[cbIndex] == callback) { in addAudioDeviceCallback()
609 callbacks.add(callback); in addAudioDeviceCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java515 ArrayList<Callback> callbacks = mOpModeWatchers.get(code); in setUidMode() local
516 if (callbacks != null) { in setUidMode()
517 final int callbackCount = callbacks.size(); in setUidMode()
519 Callback callback = callbacks.get(i); in setUidMode()
528 callbacks = mPackageModeWatchers.get(uidPackageName); in setUidMode()
529 if (callbacks != null) { in setUidMode()
533 final int callbackCount = callbacks.size(); in setUidMode()
535 Callback callback = callbacks.get(i); in setUidMode()
634 HashMap<Callback, ArrayList<Pair<String, Integer>>> callbacks, in addCallbacks() argument
637 return callbacks; in addCallbacks()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp33 const OMX_CALLBACKTYPE *callbacks, in SoftVPX() argument
39 320 /* width */, 240 /* height */, callbacks, appData, component), in SoftVPX()
305 const char *name, const OMX_CALLBACKTYPE *callbacks, in createSoftOMXComponent() argument
310 callbacks, appData, component); in createSoftOMXComponent()
314 callbacks, appData, component); in createSoftOMXComponent()
/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp39 const OMX_CALLBACKTYPE *callbacks, in SoftRaw() argument
42 : SimpleSoftOMXComponent(name, callbacks, appData, component), in SoftRaw()
222 const char *name, const OMX_CALLBACKTYPE *callbacks, in createSoftOMXComponent() argument
224 return new android::SoftRaw(name, callbacks, appData, component); in createSoftOMXComponent()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp238 std::set<IFrameCallback*> callbacks; in dispatchFrameCallbacks() local
239 mFrameCallbacks.swap(callbacks); in dispatchFrameCallbacks()
241 if (callbacks.size()) { in dispatchFrameCallbacks()
245 … for (std::set<IFrameCallback*>::iterator it = callbacks.begin(); it != callbacks.end(); it++) { in dispatchFrameCallbacks()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.cpp58 const OMX_CALLBACKTYPE *callbacks, in SoftMPEG4() argument
63 352 /* width */, 288 /* height */, callbacks, appData, component), in SoftMPEG4()
385 const char *name, const OMX_CALLBACKTYPE *callbacks, in createSoftOMXComponent() argument
392 callbacks, appData, component); in createSoftOMXComponent()
397 callbacks, appData, component); in createSoftOMXComponent()
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp42 const OMX_CALLBACKTYPE *callbacks, in SoftGSM() argument
45 : SimpleSoftOMXComponent(name, callbacks, appData, component), in SoftGSM()
307 const char *name, const OMX_CALLBACKTYPE *callbacks, in createSoftOMXComponent() argument
309 return new android::SoftGSM(name, callbacks, appData, component); in createSoftOMXComponent()
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp39 const OMX_CALLBACKTYPE *callbacks, in SoftG711() argument
42 : SimpleSoftOMXComponent(name, callbacks, appData, component), in SoftG711()
331 const char *name, const OMX_CALLBACKTYPE *callbacks, in createSoftOMXComponent() argument
333 return new android::SoftG711(name, callbacks, appData, component); in createSoftOMXComponent()

12345678