Searched refs:NetworkPolicy (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 32 public class NetworkPolicy implements Parcelable, Comparable<NetworkPolicy> { class 51 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() method in NetworkPolicy 57 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() method in NetworkPolicy 71 public NetworkPolicy(Parcel in) { in NetworkPolicy() method in NetworkPolicy 135 public int compareTo(NetworkPolicy another) { in compareTo() 155 if (obj instanceof NetworkPolicy) { in equals() 156 final NetworkPolicy other = (NetworkPolicy) obj; in equals() 183 public static final Creator<NetworkPolicy> CREATOR = new Creator<NetworkPolicy>() { 185 public NetworkPolicy createFromParcel(Parcel in) { 186 return new NetworkPolicy(in); [all …]
|
D | INetworkPolicyManager.aidl | 20 import android.net.NetworkPolicy; 45 void setNetworkPolicies(in NetworkPolicy[] policies); in setNetworkPolicies() 46 NetworkPolicy[] getNetworkPolicies(String callingPackage); in getNetworkPolicies()
|
D | NetworkPolicyManager.java | 20 import static android.net.NetworkPolicy.CYCLE_NONE; 165 public void setNetworkPolicies(NetworkPolicy[] policies) { in setNetworkPolicies() 172 public NetworkPolicy[] getNetworkPolicies() { in getNetworkPolicies() 215 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() 245 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { in computeNextCycleBoundary()
|
D | NetworkPolicy.aidl | 19 parcelable NetworkPolicy;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 23 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( in testLastCycleBoundaryThisMonth() 463 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonth() 474 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonthFebruary() 485 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonthFebruary() 492 final NetworkPolicy policy = new NetworkPolicy( in testCycleBoundaryLeapYear() 516 final NetworkPolicy policy = new NetworkPolicy( in testNextCycleTimezoneAfterUtc() 524 final NetworkPolicy policy = new NetworkPolicy( in testNextCycleTimezoneBeforeUtc() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 35 import static android.net.NetworkPolicy.CYCLE_NONE; 36 import static android.net.NetworkPolicy.LIMIT_DISABLED; 37 import static android.net.NetworkPolicy.SNOOZE_NEVER; 38 import static android.net.NetworkPolicy.WARNING_DISABLED; 110 import android.net.NetworkPolicy; 274 final ArrayMap<NetworkTemplate, NetworkPolicy> mNetworkPolicy = new ArrayMap<>(); 276 final ArrayMap<NetworkPolicy, String[]> mNetworkRules = new ArrayMap<>(); 732 NetworkPolicy policy = mNetworkPolicy.get(template); 736 policy = new NetworkPolicy(template, CYCLE_NONE, Time.TIMEZONE_UTC, 787 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNotificationsLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileDataControllerImpl.java | 30 import android.net.NetworkPolicy; 119 final NetworkPolicy policy = findNetworkPolicy(template); in getDataUsageInfo() 173 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { in findNetworkPolicy() 175 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy() 179 final NetworkPolicy policy = policies[i]; in findNetworkPolicy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
D | NetworkOverLimitActivity.java | 30 import android.net.NetworkPolicy;
|