Lines Matching refs:callback

71         ACameraManager* manager, const ACameraManager_AvailabilityCallbacks* callback) {  in ACameraManager_registerAvailabilityCallback()  argument
73 if (callback == nullptr) { in ACameraManager_registerAvailabilityCallback()
77 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_registerAvailabilityCallback()
80 __FUNCTION__, callback, in ACameraManager_registerAvailabilityCallback()
81 callback->onCameraAvailable, callback->onCameraUnavailable); in ACameraManager_registerAvailabilityCallback()
84 manager->registerAvailabilityCallback(callback); in ACameraManager_registerAvailabilityCallback()
90 ACameraManager* manager, const ACameraManager_AvailabilityCallbacks* callback) { in ACameraManager_unregisterAvailabilityCallback() argument
92 if (callback == nullptr) { in ACameraManager_unregisterAvailabilityCallback()
96 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_unregisterAvailabilityCallback()
99 __FUNCTION__, callback, in ACameraManager_unregisterAvailabilityCallback()
100 callback->onCameraAvailable, callback->onCameraUnavailable); in ACameraManager_unregisterAvailabilityCallback()
103 manager->unregisterAvailabilityCallback(callback); in ACameraManager_unregisterAvailabilityCallback()
109 ACameraManager* manager, const ACameraManager_ExtendedAvailabilityCallbacks* callback) { in ACameraManager_registerExtendedAvailabilityCallback() argument
111 if (callback == nullptr) { in ACameraManager_registerExtendedAvailabilityCallback()
115 if ((callback->availabilityCallbacks.onCameraAvailable == nullptr) || in ACameraManager_registerExtendedAvailabilityCallback()
116 (callback->availabilityCallbacks.onCameraUnavailable == nullptr) || in ACameraManager_registerExtendedAvailabilityCallback()
117 (callback->onCameraAccessPrioritiesChanged == nullptr)) { in ACameraManager_registerExtendedAvailabilityCallback()
120 __FUNCTION__, callback, in ACameraManager_registerExtendedAvailabilityCallback()
121 callback->availabilityCallbacks.onCameraAvailable, in ACameraManager_registerExtendedAvailabilityCallback()
122 callback->availabilityCallbacks.onCameraUnavailable, in ACameraManager_registerExtendedAvailabilityCallback()
123 callback->onCameraAccessPrioritiesChanged); in ACameraManager_registerExtendedAvailabilityCallback()
126 auto reservedEntriesCount = sizeof(callback->reserved) / sizeof(callback->reserved[0]); in ACameraManager_registerExtendedAvailabilityCallback()
128 if (callback->reserved[i] != nullptr) { in ACameraManager_registerExtendedAvailabilityCallback()
134 manager->registerExtendedAvailabilityCallback(callback); in ACameraManager_registerExtendedAvailabilityCallback()
140 ACameraManager* manager, const ACameraManager_ExtendedAvailabilityCallbacks* callback) { in ACameraManager_unregisterExtendedAvailabilityCallback() argument
142 if (callback == nullptr) { in ACameraManager_unregisterExtendedAvailabilityCallback()
146 if ((callback->availabilityCallbacks.onCameraAvailable == nullptr) || in ACameraManager_unregisterExtendedAvailabilityCallback()
147 (callback->availabilityCallbacks.onCameraUnavailable == nullptr) || in ACameraManager_unregisterExtendedAvailabilityCallback()
148 (callback->onCameraAccessPrioritiesChanged == nullptr)) { in ACameraManager_unregisterExtendedAvailabilityCallback()
151 __FUNCTION__, callback, in ACameraManager_unregisterExtendedAvailabilityCallback()
152 callback->availabilityCallbacks.onCameraAvailable, in ACameraManager_unregisterExtendedAvailabilityCallback()
153 callback->availabilityCallbacks.onCameraUnavailable, in ACameraManager_unregisterExtendedAvailabilityCallback()
154 callback->onCameraAccessPrioritiesChanged); in ACameraManager_unregisterExtendedAvailabilityCallback()
157 manager->unregisterExtendedAvailabilityCallback(callback); in ACameraManager_unregisterExtendedAvailabilityCallback()
183 ACameraDevice_StateCallbacks* callback, in ACameraManager_openCamera() argument
186 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) { in ACameraManager_openCamera()
188 __FUNCTION__, mgr, cameraId, callback, device); in ACameraManager_openCamera()
191 return mgr->openCamera(cameraId, callback, device); in ACameraManager_openCamera()