Update ANativeWindow clients for sync

This change updates uses of ANativeWindow to use the new ANW functions that
accept and return Sync HAL fence file descriptors.

Change-Id: I8ea699ba0a9b5c4b4316f9428cbd565976899991
diff --git a/tests/camera2/Android.mk b/tests/camera2/Android.mk
index 38d287e..c378e12 100644
--- a/tests/camera2/Android.mk
+++ b/tests/camera2/Android.mk
@@ -11,6 +11,7 @@
 	libhardware \
 	libcamera_metadata \
 	libgui \
+	libsync \
 	libui
 
 LOCAL_STATIC_LIBRARIES := \