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 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "net/base/net_export.h" | |
| 12 | |
| 13 namespace net { | |
| 14 | |
| 15 namespace android { | |
| 16 | |
| 17 namespace cellular_signal_strength { | |
| 18 | |
| 19 // Returns true if the RSSI (in dbM) of the currently registered cellular | |
| 20 // connection is available, and sets |rssi| to that value. | |
|
pauljensen
2016/05/23 12:25:10
|rssi|->|*rssi|
tbansal1
2016/06/09 17:50:30
Done.
| |
| 21 NET_EXPORT bool GetRssiDbm(int* rssi) WARN_UNUSED_RESULT; | |
| 22 | |
| 23 // Returns true if the signal level (between 0 and 4, both inclusive) of the | |
|
pauljensen
2016/05/23 12:25:10
mention which of 0 or 4 is the highest and lowest
tbansal1
2016/06/09 17:50:30
Done.
| |
| 24 // currently registered cellular connection is available, and sets | |
| 25 // |signal_level| to that value. | |
|
pauljensen
2016/05/23 12:25:10
|signal_level|->|*signal_level|
tbansal1
2016/06/09 17:50:30
Done.
| |
| 26 NET_EXPORT bool GetSignalLevel(int* signal_level) WARN_UNUSED_RESULT; | |
| 27 | |
| 28 bool Register(JNIEnv* env); | |
| 29 | |
| 30 } // namespace cellular_signal_strength | |
| 31 | |
| 32 } // namespace android | |
| 33 | |
| 34 } // namespace net | |
| 35 | |
| 36 #endif // NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ | |
| OLD | NEW |