Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ | |
| 6 #define NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 #include <stdint.h> | |
| 10 | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "net/base/net_export.h" | |
| 13 | |
| 14 namespace net { | |
| 15 | |
| 16 namespace android { | |
| 17 | |
| 18 namespace cellular_signal_strength { | |
| 19 | |
| 20 // Returns true if the RSSI (in dbM) of the currently registered cellular | |
| 21 // connection is available, and sets |*rssi| to that value. | |
| 22 NET_EXPORT bool GetRssiDbm(int32_t* rssi) WARN_UNUSED_RESULT; | |
|
bengr
2016/06/10 20:57:37
Does this return false when in airplane mode or wh
tbansal1
2016/06/16 00:58:03
It returns false in both cases.
| |
| 23 | |
| 24 // Returns true if the signal level (between 0 and 4, both inclusive) of the | |
| 25 // currently registered cellular connection is available, and sets | |
| 26 // |*signal_level| to that value with lower value indicating lower signal | |
| 27 // strength. | |
| 28 NET_EXPORT bool GetSignalLevel(int32_t* signal_level) WARN_UNUSED_RESULT; | |
| 29 | |
| 30 bool Register(JNIEnv* env); | |
| 31 | |
| 32 } // namespace cellular_signal_strength | |
| 33 | |
| 34 } // namespace android | |
| 35 | |
| 36 } // namespace net | |
| 37 | |
| 38 #endif // NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ | |
| OLD | NEW |