Exposed Adapter types for Android
This avoids the need of hard coding the values to use networkIgnoreMask on Android platform. Bug: None Change-Id: Ib5e860913cec2c6d41cfa1b778cb122d0bfe1300 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311780 Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40541}
This commit is contained in:
parent
721b9083d2
commit
b9876488e9
1
AUTHORS
1
AUTHORS
@ -88,6 +88,7 @@ Mike Wei <Mike.WeiB@gmail.com>
|
|||||||
Min Wang <mingewang@gmail.com>
|
Min Wang <mingewang@gmail.com>
|
||||||
Mike Woodworth <mike@divergentmedia.com>
|
Mike Woodworth <mike@divergentmedia.com>
|
||||||
Mo Zanaty <mzanaty@cisco.com>
|
Mo Zanaty <mzanaty@cisco.com>
|
||||||
|
Mohamed Risaldar UT <mohamed.ut@travancoreanalytics.com>
|
||||||
Nico Schlumprecht <me@github.nico.onl>
|
Nico Schlumprecht <me@github.nico.onl>
|
||||||
Niek van der Maas <mail@niekvandermaas.nl>
|
Niek van der Maas <mail@niekvandermaas.nl>
|
||||||
Olivier Crête <olivier.crete@ocrete.ca>
|
Olivier Crête <olivier.crete@ocrete.ca>
|
||||||
|
|||||||
@ -136,13 +136,13 @@ public class PeerConnectionFactory {
|
|||||||
// Keep in sync with webrtc/rtc_base/network.h!
|
// Keep in sync with webrtc/rtc_base/network.h!
|
||||||
//
|
//
|
||||||
// These bit fields are defined for `networkIgnoreMask` below.
|
// These bit fields are defined for `networkIgnoreMask` below.
|
||||||
static final int ADAPTER_TYPE_UNKNOWN = 0;
|
public static final int ADAPTER_TYPE_UNKNOWN = 0;
|
||||||
static final int ADAPTER_TYPE_ETHERNET = 1 << 0;
|
public static final int ADAPTER_TYPE_ETHERNET = 1 << 0;
|
||||||
static final int ADAPTER_TYPE_WIFI = 1 << 1;
|
public static final int ADAPTER_TYPE_WIFI = 1 << 1;
|
||||||
static final int ADAPTER_TYPE_CELLULAR = 1 << 2;
|
public static final int ADAPTER_TYPE_CELLULAR = 1 << 2;
|
||||||
static final int ADAPTER_TYPE_VPN = 1 << 3;
|
public static final int ADAPTER_TYPE_VPN = 1 << 3;
|
||||||
static final int ADAPTER_TYPE_LOOPBACK = 1 << 4;
|
public static final int ADAPTER_TYPE_LOOPBACK = 1 << 4;
|
||||||
static final int ADAPTER_TYPE_ANY = 1 << 5;
|
public static final int ADAPTER_TYPE_ANY = 1 << 5;
|
||||||
|
|
||||||
public int networkIgnoreMask;
|
public int networkIgnoreMask;
|
||||||
public boolean disableEncryption;
|
public boolean disableEncryption;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user