blob: 367161c5a09025c66bf6eb385fbdf7739b9c5a74 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <jni.h>
#include <stdint.h>
#include "base/optional.h"
#include "net/base/net_export.h"
namespace net {
namespace android {
namespace cellular_signal_strength {
// Returns the signal strength level (between 0 and 4, both inclusive) of the
// currently registered cellular connection. If the value is unavailable, an
// empty value is returned. If the signal strength value returned by platform
// API is less than 0, this method returns 0. If the platform API returns a
// value larger than 4, then this method returns 4.
NET_EXPORT_PRIVATE base::Optional<int32_t> GetSignalStrengthLevel();
} // namespace cellular_signal_strength
} // namespace android
} // namespace net