Searched refs:limitBytes (Results 1 – 4 of 4) sorted by relevance
97 if (policy != null && policy.limitBytes != LIMIT_DISABLED) { in updatePrefs()98 mDataLimit.setSummary(Formatter.formatFileSize(getContext(), policy.limitBytes)); in updatePrefs()142 private void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument144 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes()322 final long limitBytes; in show() local326 limitBytes = Math.max(5 * GB_IN_BYTES, minLimitBytes); in show()330 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show()355 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local358 target.setPolicyLimitBytes(limitBytes); in onClick()
91 long policyMax = mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop()136 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy()138 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy()
137 if (policy.limitBytes != LIMIT_DISABLED) { in MeteredPreference()
177 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy()180 mSweepLimit.setValue(policy.limitBytes); in bindNetworkPolicy()