void QAndroidCameraFocusControl::setCameraFocusArea()
{
    QList<QRect> areas;
    if (m_focusPointMode != QCameraFocus::FocusPointAuto) {
        // in FocusPointAuto mode, leave the area list empty
        // to let the driver choose the focus point.

        for (int i = 0; i < m_focusZones.size(); ++i)
            areas.append(adjustedArea(m_focusZones.at(i).area()));

    }
    m_session->camera()->setFocusAreas(areas);
}
void QAndroidCameraFocusControl::setCameraFocusArea()
{
    QList<QRect> areas;
    if (m_focusPointMode != QCameraFocus::FocusPointAuto) {
        // in FocusPointAuto mode, leave the area list empty
        // to let the driver choose the focus point.

        for (int i = 0; i < m_focusZones.size(); ++i) {
            // The area passed to Android should be in sensor orientation.
            // What we have in m_focusZones is in viewport orientation, so revert the rotation set
            // on the viewport to get sensor coordinates.
            areas.append(adjustedArea(m_focusZones.at(i).area(),
                                      m_session->camera()->getDisplayOrientation()));
        }

    }
    m_session->camera()->setFocusAreas(areas);
}