Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: net/android/cellular_signal_strength.h

Issue 1879743002: Expose cellular signal strength on Android to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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(int64_t* rssi) WARN_UNUSED_RESULT;
pauljensen 2016/04/22 11:54:12 why int64_t? why not int32_t?
tbansal1 2016/04/28 20:12:02 Changed to int*. Done.
pauljensen 2016/05/23 12:25:10 can we change to int32_t so it's more defined?
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.
27 NET_EXPORT bool GetSignalLevel(int64_t* signal_level) WARN_UNUSED_RESULT;
pauljensen 2016/04/22 11:54:12 why not just int?
tbansal1 2016/04/28 20:12:02 Done.
28
29 bool Register(JNIEnv* env);
30
31 } // namespace cellular_signal_strength
32
33 } // namespace android
34
35 } // namespace net
36
37 #endif // NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698