Lines Matching defs:permission
74 /** Default checking period for SMS sent without user permission. */
77 /** Default number of SMS sent in checking period without user permission. */
101 /** Premium SMS permission for a new package (ask user when first premium SMS sent). */
104 /** Default premium SMS permission (ask user for each premium SMS sent). */
107 /** Premium SMS permission when the owner has denied the app from sending premium SMS. */
110 /** Premium SMS permission when the owner has allowed the app to send premium SMS. */
143 /** Directory for per-app SMS permission XML file. */
146 /** Per-app SMS permission XML filename. */
185 /** XML attribute for the package's premium SMS permission (integer type). */
538 * Returns the premium SMS permission for the specified package. If the package has never
541 * @param packageName the name of the package to query permission
561 * Sets the premium SMS permission for the specified package and save the value asynchronously
563 * @param packageName the name of the package to set permission
564 * @param permission one of {@link #PREMIUM_SMS_PERMISSION_ASK_USER},
569 public void setPremiumSmsPermission(String packageName, int permission) {
571 if (permission < PREMIUM_SMS_PERMISSION_ASK_USER
572 || permission > PREMIUM_SMS_PERMISSION_ALWAYS_ALLOW) {
573 throw new IllegalArgumentException("invalid SMS permission type " + permission);
576 mPremiumSmsPolicy.put(packageName, permission);