blob: 82d734a79690fd7a96fe832d1ce9075d9fe589d0 [file]
/*
* Copyright (C) 2026 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#undef LOG_TAG
#define LOG_TAG "FocusNavigator"
#include "FocusNavigator.h"
#include <inttypes.h>
#include <log/log.h>
#include "../BackgroundExecutor.h"
namespace android {
FocusNavigator::FocusNavigator() {} // Default constructor.
FocusNavigator::~FocusNavigator() = default;
void FocusNavigator::onWindowInfosChanged(const gui::WindowInfosUpdate& update) {
ALOGV("onWindowInfosChangedInternal: vsyncId=%" PRId64
", windowInfos.size=%zu, displayInfos.size=%zu",
update.vsyncId, update.windowInfos.size(), update.displayInfos.size());
// TODO(b/515579379): Provide implementation.
}
void FocusNavigator::traverseFocusGroup(android::os::FocusDirection direction) {
BackgroundExecutor::getInstance().sendCallbacks(
{[this, direction]() { traverseFocusGroupInternal(direction); }});
}
void FocusNavigator::traverseFocusGroupInternal(android::os::FocusDirection direction) {
ALOGV("traverseFocusGroupInternal: direction=%s", android::os::toString(direction).c_str());
// TODO(b/515579379): Provide implementation.
}
void FocusNavigator::requestFocus(const gui::WindowInfo& window) {
ALOGV("requestFocus: %s", window.name.c_str());
// TODO(b/515579379): Provide implementation.
}
} // namespace android