Home
last modified time | relevance | path

Searched refs:NetworkPolicy (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.kt20 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 …]
DDataPlanRepositoryTest.kt19 import android.net.NetworkPolicy
48 private val policy = mock<NetworkPolicy> { in getCycles()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowNetworkPolicyEditor.java19 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()
DShadowNetworkPolicyManager.java20 import android.net.NetworkPolicy;
59 NetworkPolicy policy) { in cycleIterator()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleDataRepository.kt20 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/
DNetworkPolicyRepository.kt20 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/
DDataUsageSummaryPreferenceController.kt20 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
DDataPlanRepository.kt19 import android.net.NetworkPolicy in <lambda>()
26 fun getDataPlanInfo(policy: NetworkPolicy, plans: List<SubscriptionPlan>): DataPlanInfo in <lambda>()
33 policy: NetworkPolicy, in getDataPlanInfo()
DChartDataUsagePreference.java19 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()
DBillingCycleSettings.java17 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()
DDataUsageList.kt20 import android.net.NetworkPolicy in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/policy/
DNetworkPolicyRepositoryTest.kt20 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/
DMultipathPolicyTrackerTest.java23 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/
DNetworkCycleDataRepositoryTest.kt20 import android.net.NetworkPolicy
66 val policy = mock<NetworkPolicy> { in <lambda>()
82 val policy = mock<NetworkPolicy> { in <lambda>()
DNetworkCycleBucketRepositoryTest.kt20 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/
DDataLimitPreferenceController.java19 import static android.net.NetworkPolicy.LIMIT_DISABLED;
20 import static android.net.NetworkPolicy.WARNING_DISABLED;
DDataWarningPreferenceController.java19 import static android.net.NetworkPolicy.WARNING_DISABLED;
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt790 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/
DDataWarningPreferenceControllerTest.java19 import static android.net.NetworkPolicy.WARNING_DISABLED;
DDataLimitPreferenceControllerTest.java19 import static android.net.NetworkPolicy.LIMIT_DISABLED;
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DBillingCycleSettingsTest.java18 import static android.net.NetworkPolicy.CYCLE_NONE;