Searched refs:NetworkPolicy (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.aidl19 parcelable NetworkPolicy;
H A DINetworkPolicyManager.aidl20 import android.net.NetworkPolicy;
43 void setNetworkPolicies(in NetworkPolicy[] policies);
44 NetworkPolicy[] getNetworkPolicies();
H A DNetworkPolicy.java32 public class NetworkPolicy implements Parcelable, Comparable<NetworkPolicy> { class in inherits:Parcelable,Comparable
51 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, method in class:NetworkPolicy
57 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, method in class:NetworkPolicy
71 public NetworkPolicy(Parcel in) { method in class:NetworkPolicy
135 public int compareTo(NetworkPolicy another) {
155 if (obj instanceof NetworkPolicy) {
156 final NetworkPolicy other = (NetworkPolicy) obj;
170 final StringBuilder builder = new StringBuilder("NetworkPolicy");
[all...]
H A DNetworkPolicyManager.java20 import static android.net.NetworkPolicy.CYCLE_NONE;
118 public void setNetworkPolicies(NetworkPolicy[] policies) {
125 public NetworkPolicy[] getNetworkPolicies() {
149 * Compute the last cycle boundary for the given {@link NetworkPolicy}. For
156 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) {
186 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) {
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
24 import static android.net.NetworkPolicy.WARNING_DISABLED;
65 import android.net.NetworkPolicy;
452 final NetworkPolicy policy = new NetworkPolicy(
463 final NetworkPolicy policy = new NetworkPolicy(
474 final NetworkPolicy policy = new NetworkPolicy(
485 final NetworkPolicy polic
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkPolicyManagerService.java36 import static android.net.NetworkPolicy.CYCLE_NONE;
37 import static android.net.NetworkPolicy.LIMIT_DISABLED;
38 import static android.net.NetworkPolicy.SNOOZE_NEVER;
39 import static android.net.NetworkPolicy.WARNING_DISABLED;
100 import android.net.NetworkPolicy;
171 private static final String TAG = "NetworkPolicy";
252 private HashMap<NetworkTemplate, NetworkPolicy> mNetworkPolicy = Maps.newHashMap();
254 private HashMap<NetworkPolicy, String[]> mNetworkRules = Maps.newHashMap();
495 * use to check against {@link NetworkPolicy#warningBytes}.
527 * {@link NetworkPolicy#lastWarningSnooz
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
H A DNetworkOverLimitActivity.java30 import android.net.NetworkPolicy;
42 * {@link NetworkPolicy#limitBytes}, giving them the choice of acknowledging or

Completed in 63 milliseconds