/packages/apps/Settings/src/com/android/settings/datausage/ |
H A D | DataUsageInfoController.java | 27 public void updateDataLimit(DataUsageInfo info, NetworkPolicy policy) { argument 28 if (info == null || policy == null) { 31 if (policy.warningBytes >= 0) { 32 info.warningLevel = policy.warningBytes; 34 if (policy.limitBytes >= 0) { 35 info.limitLevel = policy.limitBytes;
|
H A D | DataUsageBase.java | 72 protected boolean isNetworkPolicyModifiable(NetworkPolicy policy, int subId) { argument 73 return policy != null && isBandwidthControlEnabled() && services.mUserManager.isAdminUser()
|
H A D | ChartDataUsagePreference.java | 125 private void bindNetworkPolicy(UsageView chart, NetworkPolicy policy, int top) { argument 129 if (policy == null) { 133 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { 135 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); 138 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { 139 chart.setDividerLoc((int) (policy.warningBytes / RESOLUTION)); 140 float weight = policy.warningBytes / RESOLUTION / (float) top; 144 labels[1] = getLabel(policy.warningBytes, R.string.data_usage_sweep_warning, 160 public void setNetworkPolicy(NetworkPolicy policy) { argument 161 mPolicy = policy; [all...] |
H A D | CycleAdapter.java | 68 public boolean updateCycleList(NetworkPolicy policy, ChartData chartData) { argument 89 if (policy != null) { 91 long cycleEnd = computeNextCycleBoundary(historyEnd, policy); 95 final long cycleStart = computeLastCycleBoundary(cycleEnd, policy); 114 // no policy defined cycles; show entry for each four-week period
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | MockVendorPolicy.java | 29 public static Bundle getPolicy(String policy, Bundle args) { argument 30 passedPolicy = policy;
|
H A D | SecurityPolicyTests.java | 112 Policy policy = new Policy(); 113 policy.mPasswordMinLength = minPasswordLength; 114 policy.mPasswordMode = passwordMode; 115 policy.mPasswordMaxFails = maxPasswordFails; 116 policy.mMaxScreenLockTime = maxScreenLockTime; 117 policy.mRequireRemoteWipe = requireRemoteWipe; 118 policy.mPasswordExpirationDays = passwordExpirationDays; 119 policy.mPasswordHistory = passwordHistory; 120 policy.mPasswordComplexChars = passwordComplexChars; 121 policy 479 policySetEqualsPolicy(PolicySet ps, Policy policy) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
H A D | edit_distance.h | 30 AK_FORCE_INLINE static float getEditDistance(const EditDistancePolicy *const policy) { argument 31 const int beforeLength = policy->getString0Length(); 32 const int afterLength = policy->getString1Length(); 35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1); 38 dp[i] = i * policy->getDeletionCost(-1, i - 1); 44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), 46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), 47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j))); 48 if (policy->allowTransposition(i, j)) { 52 + policy [all...] |
/packages/services/Car/car-lib/src/android/car/content/pm/ |
H A D | CarPackageManager.java | 40 * flag is set, the call will be blocked until policy is set to system. This can take time 48 * flag is set, passed policy is added to existing policy set from the current package. 50 * policy is replaced. Note that policy per each package is always replaced and will not be 58 * flag is set, passed policy is removed from existing policy set from the current package. 60 * policy is replaced. 88 * Set Application blocking policy for system app. {@link #FLAG_SET_POLICY_ADD} or 89 * {@link #FLAG_SET_POLICY_REMOVE} flag allows adding or removing from already set policy 108 setAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, @SetPolicyFlags int flags) argument [all...] |
/packages/services/Car/service/src/com/android/car/ |
H A D | AudioRoutingPolicy.java | 28 * Holds audio routing policy from config.xml. R.array.audioRoutingPolicy can contain 46 String policy; 48 Log.e(CarLog.TAG_AUDIO, "AudioRoutingPolicy.create got wrong policy number:" + 50 policy = policies[0]; 52 policy = ROUTING_POLICY_FOR_MOCKED_TEST; 54 policy = policies[policyNumber]; 56 return new AudioRoutingPolicy(policy); 86 private AudioRoutingPolicy(String policy) { argument 87 String[] streamPolicies = policy.split("#"); 112 Log.e(CarLog.TAG_AUDIO, "Audio routing policy di [all...] |
H A D | BluetoothAutoConnectStateMachine.java | 52 BluetoothAutoConnectStateMachine(BluetoothDeviceConnectionPolicy policy) { argument 54 mPolicy = policy; 67 public static BluetoothAutoConnectStateMachine make(BluetoothDeviceConnectionPolicy policy) { argument 69 policy); 81 * If the policy finds a device to connect on a profile, transitions to Processing. 125 * Instruct the policy to find and connect to a device on a connectable profile. 126 * If the policy reports that there is nothing to connect to, stay in the Idle state.
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | PolicyServiceProxy.java | 61 // This is not a great situation, but it's better to act like the policy isn't enforced 71 public void setAccountPolicy(final long accountId, final Policy policy, argument 73 setAccountPolicy2(accountId, policy, securityKey, true /* notify */); 77 public void setAccountPolicy2(final long accountId, final Policy policy, argument 82 mService.setAccountPolicy2(accountId, policy, securityKey, notify); 97 // This is not a great situation, but it's better to act like the policy isn't enforced 151 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument 153 setAccountPolicy2(context, accountId, policy, securityKey, true /* notify */); 156 public static void setAccountPolicy2(Context context, long accountId, Policy policy, argument 159 new PolicyServiceProxy(context).setAccountPolicy2(accountId, policy, securityKe [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ViewsStateBundle.java | 60 public ViewsStateBundle(int policy, int limit) { argument 61 savePolicy = policy; 122 * Save views regardless what's the current policy is. 135 * The visible view is saved when policy is not {@link #SAVE_NO_CHILD}. 156 * Save list of visible views without checking policy. The method is to be implemented by 162 * Save views according to policy.
|
/packages/services/Car/service/src/com/android/car/pm/ |
H A D | AppBlockingPolicyProxy.java | 46 * policy not set within this time after binding will be treated as failure and will be 60 Log.w(CarLog.TAG_PACKAGE, "Timeout for policy setting for service:" + mServiceInfo); 108 ICarAppBlockingPolicy policy = null; 112 policy = mPolicyService; 113 if (policy == null) { 154 public void setAppBlockingPolicy(CarAppBlockingPolicy policy) { argument 156 if (policy == null) { 157 Log.w(CarLog.TAG_PACKAGE, "setAppBlockingPolicy null policy from policy service:" + 160 mService.onPolicyConnectionAndSet(AppBlockingPolicyProxy.this, policy); [all...] |
H A D | CarPackageManagerService.java | 63 //TODO monitor app installing and refresh policy, bug: 31970400 80 * Hold policy set from policy service or client. 81 * Key: packageName of policy service 116 public void setAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, int flags) { argument 118 Log.i(CarLog.TAG_PACKAGE, "policy setting from binder call, client:" + packageName); 120 doSetAppBlockingPolicy(packageName, policy, flags, true /*setNow*/); 123 private void doSetAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, int flags, argument 131 if (policy == null) { 132 throw new IllegalArgumentException("policy canno 337 doUpdatePolicy(String packageName, CarAppBlockingPolicy policy, int flags) argument 560 onPolicyConnectionAndSet(AppBlockingPolicyProxy proxy, CarAppBlockingPolicy policy) argument 569 doHandlePolicyConnection(AppBlockingPolicyProxy proxy, CarAppBlockingPolicy policy) argument 711 requestUpdatingPolicy(String packageName, CarAppBlockingPolicy policy, int flags) argument [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
H A D | BaseTask.java | 99 public BaseTask addPolicy(Policy policy) { argument 101 mPolicies.add(policy); 163 for (Policy policy : mPolicies) { 164 policy.onCreate(this, extras); 184 for (Policy policy : mPolicies) { 185 policy.onBeforeExecute(); 194 for (Policy policy : mPolicies) { 195 policy.onFail(); 199 for (Policy policy : mPolicies) { 200 policy [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
H A D | SecurityPolicy.java | 76 * Get the security policy instance 103 * Compute the aggregate policy for all accounts that require it, and record it. 116 * @return a policy representing the strongest aggregate. If no policy sets are defined, 117 * a lightweight "nothing required" policy will be returned. Never null. 140 Policy policy = new Policy(); 143 policy.restore(c); 145 LogUtils.d(TAG, "Aggregate from: " + policy); 148 Math.max(policy.mPasswordMinLength, aggregate.mPasswordMinLength); 149 aggregate.mPasswordMode = Math.max(policy 249 isActive(Policy policy) argument 319 getInactiveReasons(Policy policy) argument 536 setAccountPolicy(Context context, Account account, Policy policy, String securitySyncKey) argument 597 setAccountPolicy(long accountId, Policy policy, String securityKey, boolean notify) argument [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
H A D | VendorPolicyLoader.java | 30 * A bridge class to the email vendor policy apk. 32 * <p>Email vendor policy is a system apk named "com.android.email.helper". When exists, it must 33 * contain a class called "com.android.email.policy.EmailPolicy" with a static public method 36 * <p>A vendor policy apk is optional. The email application will operate properly when none is 40 private static final String POLICY_PACKAGE = "com.android.email.policy"; 79 LogUtils.d(Logging.LOG_TAG, String.format("Using policy: package=%s name=%s", 118 // Package not found -- it's okay - there's no policy .apk found, which is OK 140 * Calls the getPolicy method in the policy apk, if one exists. This method never returns null; 141 * It returns an empty {@link Bundle} when there is no policy apk (or even if the inner 145 public Bundle getPolicy(String policy, Bundl argument [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | SetupDataFragment.java | 40 private static final String SAVESTATE_POLICY = "SetupDataFragment.policy"; 162 public synchronized void setPolicy(Policy policy) { argument 163 mPolicy = policy; 278 sb.append(":policy=");
|
H A D | AccountSettingsFragment.java | 103 @SuppressWarnings("unused") // temporarily unused pending policy UI 105 @SuppressWarnings("unused") // temporarily unused pending policy UI 591 @SuppressWarnings("unused") // temporarily unused pending policy UI 592 private ArrayList<String> getSystemPoliciesList(Policy policy) { argument 595 if (policy.mPasswordMode != Policy.PASSWORD_MODE_NONE) { 598 if (policy.mPasswordHistory > 0) { 601 if (policy.mPasswordExpirationDays > 0) { 604 if (policy.mMaxScreenLockTime > 0) { 607 if (policy.mDontAllowCamera) { 610 if (policy [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | ZenModeSettings.java | 381 String getPrioritySettingSummary(Policy policy) { argument 383 s = append(s, isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_REMINDERS), 385 s = append(s, isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_EVENTS), 387 if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_MESSAGES)) { 388 if (policy.priorityMessageSenders == Policy.PRIORITY_SENDERS_ANY) { 394 if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_CALLS)) { 395 if (policy.priorityCallSenders == Policy.PRIORITY_SENDERS_ANY) { 400 } else if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) { 406 String getVisualSettingSummary(Policy policy) { argument 408 if (isEffectSuppressed(policy, Polic 451 isCategoryEnabled(Policy policy, int categoryType) argument 455 isEffectSuppressed(Policy policy, int effect) argument [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartDataUsageView.java | 168 public void bindNetworkPolicy(NetworkPolicy policy) { argument 169 if (policy == null) { 177 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { 180 mSweepLimit.setValue(policy.limitBytes); 187 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { 189 mSweepWarning.setValue(policy.warningBytes); 221 // always show known data and policy lines
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | Policy.java | 47 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/policy"); 52 /* Small offset (2 minutes) added to policy expiration to make user testing easier. */ 176 // We override this method to insure that we never write invalid policy data to the provider 188 * @param policy the new policy for this account 191 Policy policy) { 200 int policyMax = policy.mDontAllowAttachments ? 0 : (policy.mMaxAttachmentSize > 0) ? 201 policy.mMaxAttachmentSize : Integer.MAX_VALUE; 190 setAttachmentFlagsForNewPolicy(Context context, Account account, Policy policy) argument
|
/packages/services/Car/service/src/com/android/car/hal/ |
H A D | AudioHalService.java | 191 public void setAudioRoutingPolicy(AudioRoutingPolicy policy) { argument 198 for (int i = 0; i < policy.getPhysicalStreamsCount(); i++) { 201 for (int logicalStream : policy.getLogicalStreamsForPhysicalStream(i)) {
|