OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:NetworkPolicy
(Results
1 - 10
of
10
) sorted by null
/frameworks/base/core/java/android/net/
NetworkPolicy.aidl
19
parcelable
NetworkPolicy
;
NetworkPolicy.java
32
public class
NetworkPolicy
implements Parcelable, Comparable<
NetworkPolicy
> {
45
public
NetworkPolicy
(NetworkTemplate template, int cycleDay, long warningBytes, long limitBytes,
54
public
NetworkPolicy
(Parcel in) {
88
public int compareTo(
NetworkPolicy
another) {
107
if (obj instanceof
NetworkPolicy
) {
108
final
NetworkPolicy
other = (
NetworkPolicy
) obj;
118
return "
NetworkPolicy
[" + template + "]: cycleDay=" + cycleDay + ", warningBytes="
122
public static final Creator<
NetworkPolicy
> CREATOR = new Creator<NetworkPolicy>()
[
all
...]
INetworkPolicyManager.aidl
20
import android.net.
NetworkPolicy
;
42
void setNetworkPolicies(in
NetworkPolicy
[] policies);
43
NetworkPolicy
[] getNetworkPolicies();
NetworkPolicyManager.java
74
public void setNetworkPolicies(
NetworkPolicy
[] policies) {
82
public
NetworkPolicy
[] getNetworkPolicies() {
126
* Compute the last cycle boundary for the given {@link
NetworkPolicy
}. For
133
public static long computeLastCycleBoundary(long currentTime,
NetworkPolicy
policy) {
159
public static long computeNextCycleBoundary(long currentTime,
NetworkPolicy
policy) {
/packages/apps/Settings/src/com/android/settings/net/
NetworkPolicyEditor.java
19
import static android.net.
NetworkPolicy
.LIMIT_DISABLED;
20
import static android.net.
NetworkPolicy
.SNOOZE_NEVER;
21
import static android.net.
NetworkPolicy
.WARNING_DISABLED;
31
import android.net.
NetworkPolicy
;
45
* Utility class to modify list of {@link
NetworkPolicy
}. Specifically knows
54
private ArrayList<
NetworkPolicy
> mPolicies = Lists.newArrayList();
61
final
NetworkPolicy
[] policies;
70
for (
NetworkPolicy
policy : policies) {
101
final
NetworkPolicy
[] policies = mPolicies.toArray(new
NetworkPolicy
[mPolicies.size()])
[
all
...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkPolicyManagerServiceTest.java
23
import static android.net.
NetworkPolicy
.LIMIT_DISABLED;
24
import static android.net.
NetworkPolicy
.SNOOZE_NEVER;
25
import static android.net.
NetworkPolicy
.WARNING_DISABLED;
62
import android.net.
NetworkPolicy
;
425
final
NetworkPolicy
policy = new
NetworkPolicy
(
436
final
NetworkPolicy
policy = new
NetworkPolicy
(
447
final
NetworkPolicy
policy = new
NetworkPolicy
(
[
all
...]
/frameworks/base/services/java/com/android/server/net/
NetworkPolicyManagerService.java
34
import static android.net.
NetworkPolicy
.LIMIT_DISABLED;
35
import static android.net.
NetworkPolicy
.SNOOZE_NEVER;
36
import static android.net.
NetworkPolicy
.WARNING_DISABLED;
85
import android.net.
NetworkPolicy
;
149
private static final String TAG = "
NetworkPolicy
";
212
private HashMap<NetworkTemplate,
NetworkPolicy
> mNetworkPolicy = Maps.newHashMap();
214
private HashMap<
NetworkPolicy
, String[]> mNetworkRules = Maps.newHashMap();
389
* use to check against {@link
NetworkPolicy
#warningBytes}.
445
* Check {@link
NetworkPolicy
} against current {@link INetworkStatsService}
461
for (
NetworkPolicy
policy : mNetworkPolicy.values())
[
all
...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
NetworkOverLimitActivity.java
30
import android.net.
NetworkPolicy
;
42
* {@link
NetworkPolicy
#limitBytes}, giving them the choice of acknowledging or
/packages/apps/Settings/src/com/android/settings/widget/
ChartDataUsageView.java
21
import android.net.
NetworkPolicy
;
180
public void bindNetworkPolicy(
NetworkPolicy
policy) {
189
if (policy.limitBytes !=
NetworkPolicy
.LIMIT_DISABLED) {
199
if (policy.warningBytes !=
NetworkPolicy
.WARNING_DISABLED) {
214
* and controls from {@link
NetworkPolicy
}.
/packages/apps/Settings/src/com/android/settings/
DataUsageSummary.java
22
import static android.net.
NetworkPolicy
.LIMIT_DISABLED;
23
import static android.net.
NetworkPolicy
.WARNING_DISABLED;
68
import android.net.
NetworkPolicy
;
141
* inspect based on usage cycle and control through {@link
NetworkPolicy
}.
617
* {@link NetworkStatsHistory} and {@link
NetworkPolicy
} from system, and
804
private boolean isNetworkPolicyModifiable(
NetworkPolicy
policy) {
[
all
...]
Completed in 196 milliseconds