Class Overview
This constant should be used to indicate whether a rule is related to input (when device
receives data from the Internet) or output (when device sends data to the Internet).
Summary
Enum Values |
Firewall.Direction |
ALL |
Indicates that the rule is related to data being sent and received. |
Firewall.Direction |
FORWARD |
Indicates that the rule is related to data being sent/received through tethered connection (Mobile Hotspot, Bluetooth or USB). |
Firewall.Direction |
INPUT |
Indicates that the rule is related to data being received. |
Firewall.Direction |
OUTPUT |
Indicates that the rule is related to data being sent. |
[Expand]
Inherited Methods |
From class
java.lang.Enum
final
Object
|
clone()
|
final
int
|
compareTo(E arg0)
|
int
|
compareTo(Object arg0)
|
final
boolean
|
equals(Object arg0)
|
final
void
|
finalize()
|
final
Class<E>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
valueOf(Class<T> arg0, String arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.lang.Comparable
abstract
int
|
compareTo(T arg0)
|
|
Enum Values
Since: API level
Indicates that the rule is related to data being sent and received.
NOTE: Since Android Q, ALL
will behave the same as OUTPUT
,
due to limitations in INPUT
direction.
Since: API level
Indicates that the rule is related to data being sent/received through tethered connection (Mobile Hotspot, Bluetooth or USB).
Package name is not supported, the rules will be applied globally in the device. All tethered interfaces will be affected.
Also, the rule will always be applied to port location ALL
and interface ALL_NETWORKS
.
Since: API level
Indicates that the rule is related to data being received.
NOTE: Due to limitation introduced in Android Q, rules applied to INPUT
direction will affect the device globally, therefore all applications from all users
will be affected.
Since: API level
Indicates that the rule is related to data being sent.
Public Methods