/packages/apps/Email/tests/src/com/android/email/ |
H A D | MockVendorPolicy.java | 27 public static Bundle getPolicy(String policy, Bundle args) { argument 28 passedPolicy = policy;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | PolicyServiceProxy.java | 70 public void setAccountPolicy(final long accountId, final Policy policy, argument 74 mService.setAccountPolicy(accountId, policy, securityKey); 123 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument 126 new PolicyServiceProxy(context).setAccountPolicy(accountId, policy, securityKey);
|
/packages/apps/Email/src/com/android/email/ |
H A D | SecurityPolicy.java | 70 * Get the security policy instance 98 * Compute the aggregate policy for all accounts that require it, and record it. 111 * @return a policy representing the strongest aggregate. If no policy sets are defined, 112 * a lightweight "nothing required" policy will be returned. Never null. 135 Policy policy = new Policy(); 138 policy.restore(c); 140 Log.d(TAG, "Aggregate from: " + policy); 142 ap.mPasswordMinLength = Math.max(policy.mPasswordMinLength, ap.mPasswordMinLength); 143 ap.mPasswordMode = Math.max(policy 242 isSupported(Policy policy) argument 269 clearUnsupportedPolicies(Policy policy) argument 293 isActive(Policy policy) argument 359 getInactiveReasons(Policy policy) argument 541 setAccountPolicy(Context context, Account account, Policy policy, String securitySyncKey) argument 592 setAccountPolicy(long accountId, Policy policy, String securityKey) argument [all...] |
H A D | VendorPolicyLoader.java | 31 * A bridge class to the email vendor policy apk. 33 * <p>Email vendor policy is a system apk named "com.android.email.helper". When exists, it must 34 * contain a class called "com.android.email.policy.EmailPolicy" with a static public method 37 * <p>A vendor policy apk is optional. The email application will operate properly when none is 41 private static final String POLICY_PACKAGE = "com.android.email.policy"; 80 Log.d(Logging.LOG_TAG, String.format("Using policy: package=%s name=%s", 119 // Package not found -- it's okay - there's no policy .apk found, which is OK 141 * Calls the getPolicy method in the policy apk, if one exists. This method never returns null; 142 * It returns an empty {@link Bundle} when there is no policy apk (or even if the inner 146 /* package */ Bundle getPolicy(String policy, Bundl argument [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
H A D | ProvisionParser.java | 89 * policy documents, as all versions of the OS support the policies in xml documents). 91 private void setPolicy(Policy policy) { argument 92 policy.normalize(); 94 if (policy.mDontAllowAttachments) { 97 if (policy.mRequireManualSyncWhenRoaming) { 100 policy.mProtocolPoliciesEnforced = sb.toString(); 101 mPolicy = policy; 112 Policy policy = new Policy(); 123 if (policy.mPasswordMode == Policy.PASSWORD_MODE_NONE) { 124 policy 424 parseSecurityPolicy(XmlPullParser parser, Policy policy) argument 447 parseCharacteristic(XmlPullParser parser, Policy policy) argument 489 parseRegistry(XmlPullParser parser, Policy policy) argument 504 parseWapProvisioningDoc(XmlPullParser parser, Policy policy) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | SetupData.java | 138 static public void setPolicy(Policy policy) { argument 140 data.mPolicy = policy; 141 data.mAccount.mPolicy = policy; 268 sb.append(":policy=" + (data.mPolicy == null ? "none" : "exists"));
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | Policy.java | 44 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/policy"); 48 /* Small offset (2 minutes) added to policy expiration to make user testing easier. */ 163 // We override this method to insure that we never write invalid policy data to the provider 175 * @param policy the new policy for this account 178 Policy policy) { 187 int policyMax = policy.mDontAllowAttachments ? 0 : (policy.mMaxAttachmentSize > 0) ? 188 policy.mMaxAttachmentSize : Integer.MAX_VALUE; 177 setAttachmentFlagsForNewPolicy(Context context, Account account, Policy policy) argument
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartDataUsageView.java | 183 public void bindNetworkPolicy(NetworkPolicy policy) { argument 184 if (policy == null) { 192 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { 195 mSweepLimit.setValue(policy.limitBytes); 202 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { 204 mSweepWarning.setValue(policy.warningBytes); 236 // always show known data and policy lines
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | DataUsageSummary.java | 854 // TODO: deprecate and remove this once enabled flag is on policy 868 private boolean isNetworkPolicyModifiable(NetworkPolicy policy) { argument 869 return policy != null && isBandwidthControlEnabled() && mDataEnabled.isChecked() 925 // TODO: move enabled state directly into policy 932 final NetworkPolicy policy = mPolicyEditor.getPolicy(mTemplate); 933 if (isNetworkPolicyModifiable(policy)) { 935 mDisableAtLimit.setChecked(policy != null && policy.limitBytes != LIMIT_DISABLED); 937 mChart.bindNetworkPolicy(policy); 947 // generate cycle list based on policy an 957 updateCycleList(NetworkPolicy policy) argument [all...] |