Home | History | Annotate | Download | only in cts

Lines Matching defs:permission

17 package android.permission.cts;
42 * <p>Tests Permission:
43 * {@link android.Manifest.permission#READ_CONTACTS}
47 android.Manifest.permission.READ_CONTACTS);
52 * <p>Tests Permission:
53 * {@link android.Manifest.permission#WRITE_CONTACTS}
57 android.Manifest.permission.WRITE_CONTACTS);
60 public void assertWritingContentUriRequiresPermission(Uri uri, String permission,
64 fail("expected SecurityException requiring " + permission);
67 fail("expected SecurityException requiring " + permission + " got " + e);
71 assertTrue("error message should contain " + permission + ".",
72 expected.getMessage().contains(permission));
78 * <p>Tests Permission:
79 * {@link android.Manifest.permission#READ_CALL_LOG}
84 android.Manifest.permission.READ_CALL_LOG);
89 * <p>Tests Permission:
90 * {@link android.Manifest.permission#WRITE_CALL_LOG}
94 android.Manifest.permission.WRITE_CALL_LOG,
100 * <p>Tests Permission:
101 * {@link android.Manifest.permission#WRITE_SETTINGS}
104 final String permission = android.Manifest.permission.WRITE_SETTINGS;
111 fail("expected SecurityException requiring " + permission);
114 assertTrue("error message should contain \"" + permission + "\". Got: \""
116 expected.getMessage().contains(permission));
121 * Verify that the {@link android.Manifest.permission#MANAGE_DOCUMENTS}
122 * permission is only held by exactly one package: whoever handles the
125 * No other apps should <em>ever</em> attempt to acquire this permission,
128 * process. Apps should instead always rely on Uri permission grants for
143 android.Manifest.permission.MANAGE_DOCUMENTS
148 + ") can request the MANAGE_DOCUMENTS permission; found package "