/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 20 import android.net.NetworkPolicy 57 private var policy: NetworkPolicy? = mock<NetworkPolicy>() 88 override fun getDataPlanInfo(policy: NetworkPolicy, plans: List<SubscriptionPlan>) = in getCycles() 158 policy = mock<NetworkPolicy>().apply { in <lambda>() 159 warningBytes = NetworkPolicy.WARNING_DISABLED in <lambda>() 160 limitBytes = NetworkPolicy.LIMIT_DISABLED in <lambda>() 173 policy = mock<NetworkPolicy>().apply { in <lambda>() 175 limitBytes = NetworkPolicy.LIMIT_DISABLED in <lambda>() 191 policy = mock<NetworkPolicy>().apply { in onViewCreated_policyLimitOnly() 192 warningBytes = NetworkPolicy.WARNING_DISABLED in onViewCreated_policyLimitOnly() [all …]
|
D | DataPlanRepositoryTest.kt | 19 import android.net.NetworkPolicy 48 private val policy = mock<NetworkPolicy> { in getCycles()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowNetworkPolicyEditor.java | 19 import android.net.NetworkPolicy; 31 private static NetworkPolicy sNetworkPolicy; 34 public NetworkPolicy getPolicy(NetworkTemplate template) { in getPolicy() 38 public static void setNetworkPolicy(NetworkPolicy networkPolicy) { in setNetworkPolicy()
|
D | ShadowNetworkPolicyManager.java | 20 import android.net.NetworkPolicy; 59 NetworkPolicy policy) { in cycleIterator()
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | NetworkCycleDataRepository.kt | 20 import android.net.NetworkPolicy in <lambda>() 29 fun getPolicy(): NetworkPolicy? in <lambda>() 50 override fun getPolicy(): NetworkPolicy? = in queryCyclesAsFourWeeks() 63 fun NetworkPolicy.getCycles() = cycleIterator().asSequence().map { in queryUsage() method
|
/packages/apps/Settings/src/com/android/settings/network/policy/ |
D | NetworkPolicyRepository.kt | 20 import android.net.NetworkPolicy in <lambda>() 31 fun getNetworkPolicy(networkTemplate: NetworkTemplate): NetworkPolicy? = in <lambda>() 34 fun networkPolicyFlow(networkTemplate: NetworkTemplate): Flow<NetworkPolicy?> = flow { in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceController.kt | 20 import android.net.NetworkPolicy in <lambda>() 91 private suspend fun update(policy: NetworkPolicy) { in update() 94 if (dataBarSize > NetworkPolicy.WARNING_DISABLED) { in update() 128 private fun NetworkPolicy.getLimitInfo(): CharSequence? = when { in getLimitInfo() method
|
D | DataPlanRepository.kt | 19 import android.net.NetworkPolicy in <lambda>() 26 fun getDataPlanInfo(policy: NetworkPolicy, plans: List<SubscriptionPlan>): DataPlanInfo in <lambda>() 33 policy: NetworkPolicy, in getDataPlanInfo()
|
D | ChartDataUsagePreference.java | 19 import android.net.NetworkPolicy; 57 @Nullable private NetworkPolicy mPolicy; 253 private void bindNetworkPolicy(UsageView chart, NetworkPolicy policy, int top) { in bindNetworkPolicy() 261 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy() 266 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { in bindNetworkPolicy() 290 public void setNetworkPolicy(@Nullable NetworkPolicy policy) { in setNetworkPolicy()
|
D | BillingCycleSettings.java | 17 import static android.net.NetworkPolicy.LIMIT_DISABLED; 18 import static android.net.NetworkPolicy.WARNING_DISABLED; 25 import android.net.NetworkPolicy; 473 final NetworkPolicy policy = parent.services.mPolicyEditor in show()
|
D | DataUsageList.kt | 20 import android.net.NetworkPolicy in <lambda>()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/policy/ |
D | NetworkPolicyRepositoryTest.kt | 20 import android.net.NetworkPolicy 65 val Policy1 = mock<NetworkPolicy>().apply { in <lambda>() 68 val Policy2 = mock<NetworkPolicy>().apply { in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.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; 55 import android.net.NetworkPolicy; 220 when(mNPM.getNetworkPolicies()).thenReturn(new NetworkPolicy[] { in prepareGetMultipathPreferenceTest() 221 new NetworkPolicy( in prepareGetMultipathPreferenceTest() 242 when(mNPM.getNetworkPolicies()).thenReturn(new NetworkPolicy[0]); in prepareGetMultipathPreferenceTest()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | NetworkCycleDataRepositoryTest.kt | 20 import android.net.NetworkPolicy 66 val policy = mock<NetworkPolicy> { in <lambda>() 82 val policy = mock<NetworkPolicy> { in <lambda>()
|
D | NetworkCycleBucketRepositoryTest.kt | 20 import android.net.NetworkPolicy 54 val policy = mock<NetworkPolicy> { in createRepository() 86 val policy = mock<NetworkPolicy> { in loadCycles_policyHasNoCycle_asFourWeeks()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceController.java | 19 import static android.net.NetworkPolicy.LIMIT_DISABLED; 20 import static android.net.NetworkPolicy.WARNING_DISABLED;
|
D | DataWarningPreferenceController.java | 19 import static android.net.NetworkPolicy.WARNING_DISABLED;
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 790 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;ILjava/lang/String;JJZ)V 791 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJJJJ… 792 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJJJZ… 793 Landroid/net/NetworkPolicy;-><init>(Landroid/os/Parcel;)V 794 Landroid/net/NetworkPolicy;->buildRule(ILjava/time/ZoneId;)Landroid/util/RecurrenceRule; 795 Landroid/net/NetworkPolicy;->cycleIterator()Ljava/util/Iterator; 796 Landroid/net/NetworkPolicy;->cycleRule:Landroid/util/RecurrenceRule; 797 Landroid/net/NetworkPolicy;->CYCLE_NONE:I 798 Landroid/net/NetworkPolicy;->DEFAULT_MTU:J 799 Landroid/net/NetworkPolicy;->getBytesForBackup()[B [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | DataWarningPreferenceControllerTest.java | 19 import static android.net.NetworkPolicy.WARNING_DISABLED;
|
D | DataLimitPreferenceControllerTest.java | 19 import static android.net.NetworkPolicy.LIMIT_DISABLED;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | BillingCycleSettingsTest.java | 18 import static android.net.NetworkPolicy.CYCLE_NONE;
|