HomeSort by relevance Sort by last modified time
    Searched defs:permissions (Results 26 - 50 of 508) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
SlicePermissionManagerTest.java 12 * permissions and limitations under the License.
53 SlicePermissionManager permissions = new SlicePermissionManager(mContext, local
59 permissions.grantSliceAccess("my.pkg", 0, "provider.pkg", 0, uri);
61 assertTrue(permissions.hasPermission("my.pkg", 0, uri));
70 SlicePermissionManager permissions = new SlicePermissionManager(mContext, local
73 permissions.grantFullAccess("com.android.mypkg", 10);
74 permissions.grantSliceAccess("com.android.otherpkg", 0, "com.android.lastpkg", 1, uri);
82 permissions.writeBackup(serializer);
89 permissions = new SlicePermissionManager(mContext,
91 permissions.readRestore(parser)
    [all...]
  /libcore/ojluni/src/main/java/java/security/
UnresolvedPermissionCollection.java 36 * of UnresolvedPermission permissions.
39 * @see java.security.Permissions
95 * get any unresolved permissions of the same type as p,
105 * always returns false for unresolved permissions
124 // Get iterator of Map values (which are lists of permissions)
140 // private Hashtable permissions; // keyed on type
143 * @serialField permissions java.util.Hashtable
145 * of permissions
148 new ObjectStreamField("permissions", Hashtable.class),
163 Hashtable<String, Vector<UnresolvedPermission>> permissions local
203 Hashtable<String, Vector<UnresolvedPermission>> permissions = local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
GattDbElement.java 13 * See the License for the specific language governing permissions and
53 public int permissions; field in class:GattDbElement
69 public static GattDbElement createCharacteristic(UUID uuid, int properties, int permissions) {
74 el.permissions = permissions;
78 public static GattDbElement createDescriptor(UUID uuid, int permissions) {
82 el.permissions = permissions;
  /packages/apps/Settings/src/com/android/settings/applications/
AppPermissionsPreferenceController.java 12 * permissions and limitations under the License.
60 The 3 permissions are the first three from the list which any app has granted:
65 final Set<String> permissions = getAllPermissionsInGroups(); local
66 Set<String> grantedPermissionGroups = getGrantedPermissionGroups(permissions);
81 private Set<String> getGrantedPermissionGroups(Set<String> permissions) {
86 if (installedPackage.permissions == null) {
89 for (PermissionInfo permissionInfo : installedPackage.permissions) {
90 if (permissions.contains(permissionInfo.name)
112 Log.e(TAG, "Error getting permissions label.", e);
121 final List<PermissionInfo> permissions local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
PermissionsActivity.java 13 * See the License for the specific language governing permissions and
17 package com.android.inputmethod.latin.permissions;
28 * An activity to help request permissions. It's used when no other activity is available, e.g. in
29 * InputMethodService. This activity assumes that all permissions are not granted yet.
35 * Key to retrieve requested permissions from the intent.
49 * Starts a PermissionsActivity and checks/requests supplied permissions.
83 // Assuming that all supplied permissions are not granted yet, so that we don't need to
91 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
94 requestCode, permissions, grantResults);
PermissionsManager.java 13 * See the License for the specific language governing permissions and
17 package com.android.inputmethod.latin.permissions;
70 // otherwise request the permissions.
84 int requestCode, String[] permissions, int[] grantResults) {
  /system/tpm/attestation/server/
database_impl.cc 13 // See the License for the specific language governing permissions and
101 int permissions = 0; local
102 if (base::GetPosixFilePermissions(path, &permissions) &&
103 (permissions & kMask) != 0) {
104 LOG(WARNING) << "Attempting to fix permissions on attestation database.";
105 base::SetPosixFilePermissions(path, permissions & ~kMask);
125 LOG(ERROR) << "Failed to set permissions for file: " << file_path.value();
  /cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DropTarget.java 13 * See the License for the specific language governing permissions and
125 // Try accessing the Uri without the permissions grant.
131 // Try accessing the Uri after the permissions have been released.
174 DragAndDropPermissions permissions = null; local
176 permissions = requestDragAndDropPermissions(event);
177 if (permissions == null) {
185 if (permissions != null) {
186 permissions.release();
  /packages/apps/DocumentsUI/src/com/android/documentsui/
ScopedAccessProvider.java 13 * See the License for the specific language governing permissions and
80 * Provider used to manage scoped access directory permissions.
85 * <li>{@link com.android.documentsui.prefs.ScopedAccessLocalPreferences} for denied permissions.
86 * <li>{@link ActivityManager} for allowed permissions.
198 final List<Object[]> permissions = new ArrayList<>(); local
208 setGrantedPermissions(packageName, uriPermissions, permissions, grantedVolumes,
218 // Merge the permissions granted by AM with the denied permissions saved on our preferences.
247 permissions.add(new Object[] {
254 Log.v(TAG, "total permissions: " + permissions.size())
328 final List<Permission> permissions = new ArrayList<>(uriPermissions.size()); local
    [all...]
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyPermissionUtil.java 13 * See the License for the specific language governing permissions and
73 /** keep track of runtime permissions requested for each package targeted */
123 List<PermissionInfo> permissions = new ArrayList<>(); local
134 permissions.add(pi);
137 if (!permissions.isEmpty()) {
138 mPermissionMap.put(info.packageName, permissions);
152 Logger.out.println("// Targeted packages and permissions:");
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
AbstractFileSystemEntry.java 13 * See the License for the specific language governing permissions and
61 public Permissions getPermissions() {
62 return permissions;
65 public void setPermissions(Permissions permissions) {
66 this.permissions = permissions;
69 private Permissions permissions; field in class:AbstractFileSystemEntry
119 this.permissions = new Permissions(permissionsString);
    [all...]
  /external/selinux/libsepol/include/sepol/policydb/
constraint.h 7 * order for one or more permissions to be granted.
68 sepol_access_vector_t permissions; /* constrained permissions */ member in struct:constraint_node
69 constraint_expr_t *expr; /* constraint on permissions */
  /libcore/ojluni/src/main/java/java/nio/file/attribute/
AclEntry.java 47 * <li><p> The {@link #permissions permissions} component is a set of
48 * {@link AclEntryPermission permissions}
170 * Sets the permissions component of this builder. On return, the
171 * permissions component of this builder is a copy of the given set.
173 * @param perms the permissions component
195 * Sets the permissions component of this builder. On return, the
196 * permissions component of this builder is a copy of the permissions in
199 * @param perms the permissions componen
308 public Set<AclEntryPermission> permissions() { method in class:AclEntry
    [all...]
  /test/suite_harness/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/
ManifestGeneratorTest.java 13 * See the License for the specific language governing permissions and
56 List<String> permissions = new ArrayList<>(); local
57 permissions.add(PERMISSION_A);
58 permissions.add(PERMISSION_B);
77 permissions, activities, libraries);
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/
PackageParserTest.java 13 * See the License for the specific language governing permissions and
216 assertEquals(a.permissions.size(), b.permissions.size());
217 for (int i = 0; i < a.permissions.size(); ++i) {
218 assertPermissionsEqual(a.permissions.get(i), b.permissions.get(i));
219 assertSame(a.permissions.get(i).owner, a);
220 assertSame(b.permissions.get(i).owner, b);
450 pkg.permissions.add(new PackageParser.Permission(pkg));
  /bionic/benchmarks/
stdio_benchmark.cpp 13 * See the License for the specific language governing permissions and
232 char permissions[5]; local
236 &start, &end, permissions, &offset, &name_pos) != 4) abort();
243 char* permissions, uintptr_t* offset, int* name_pos) __attribute__((noinline)) {
259 permissions[0] = *str;
261 permissions[1] = *str;
263 permissions[2] = *str;
265 permissions[3] = *str;
267 permissions[4] = 0;
300 char permissions[5] local
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
UsePermissionTest23.java 13 * See the License for the specific language governing permissions and
119 assertEquals(Manifest.permission.READ_EXTERNAL_STORAGE, result.permissions[0]);
120 assertEquals(Manifest.permission.WRITE_EXTERNAL_STORAGE, result.permissions[1]);
145 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
148 BasePermissionActivity.Result result = requestPermissions(permissions,
162 permissions, new boolean[] {true});
164 // Make sure no undeclared as used permissions are granted
177 String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS}; local
182 BasePermissionActivity.Result result = requestPermissions(permissions,
196 permissions, new boolean[] {true})
209 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
235 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
269 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
345 String[] permissions = new String[] {Manifest.permission.READ_CALENDAR}; local
415 String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE}; local
432 String[] permissions = new String[] {"permission.does.not.exist"}; local
451 String[] permissions = new String[] { local
557 String[] permissions = new String[] {null}; local
577 String[] permissions = new String[] { local
610 String[] permissions = new String[] { local
    [all...]
  /cts/tests/tests/permission2/src/android/permission2/cts/
PermissionPolicyTest.java 13 * See the License for the specific language governing permissions and
97 // OEMs cannot remove permissions
104 // We want to end up with OEM defined permissions and groups to check their namespace
149 // OEMs cannot define permissions in the platform namespace
175 // OEMs cannot define new ephemeral permissions
192 List<PermissionInfo> permissions = new ArrayList<>(); local
210 permissions.add(permissionInfo);
216 return permissions;
287 for (PermissionInfo declaredPermission : packageInfo.permissions) {
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/
UserAccount.java 13 * See the License for the specific language governing permissions and
20 import org.mockftpserver.fake.filesystem.Permissions;
26 * directory, list of groups to which this user belongs, and default permissions applied to
37 * The default value for <code>defaultPermissionsForNewFile</code> is read and write permissions for
39 * write and execute permissions for all (user/group/world).
60 public static final Permissions DEFAULT_PERMISSIONS_FOR_NEW_FILE = new Permissions("rw-rw-rw-");
61 public static final Permissions DEFAULT_PERMISSIONS_FOR_NEW_DIRECTORY = Permissions.ALL;
70 private Permissions defaultPermissionsForNewFile = DEFAULT_PERMISSIONS_FOR_NEW_FILE;
214 Permissions permissions = entry.getPermissions(); local
235 Permissions permissions = entry.getPermissions(); local
256 Permissions permissions = entry.getPermissions(); local
    [all...]
  /external/vboot_reference/utility/
tpmc.c 219 uint32_t index, permissions, result; local
228 result = TlclGetPermissions(index, &permissions);
230 printf("space 0x%x has permissions 0x%x\n", index, permissions);
402 { "getpermissions", "getp", "print space permissions (getp <index>)",
  /frameworks/base/services/core/java/com/android/server/pm/permission/
PermissionSettings.java 13 * See the License for the specific language governing permissions and
43 * Permissions and other related data. This class is not meant for
53 * All of the permissions known to the system. The mapping is from permission
107 * Transfers ownership of permissions from one package to another.
112 ArrayMap<String, BasePermission> permissions = local
114 for (BasePermission bp : permissions.values()) {
169 "Unknown element reading permissions: " + parser.getName() + " at "
190 pw.println("AppOp Permissions:");
246 * @throws SecurityException If the calling UID is not allowed to add permissions to the
  /libcore/ojluni/src/main/java/sun/net/ftp/
FtpDirEntry.java 63 private boolean[][] permissions = null; field in class:FtpDirEntry
218 if (permissions != null) {
219 return permissions[p.value][0];
231 if (permissions != null) {
232 return permissions[p.value][1];
244 if (permissions != null) {
245 return permissions[p.value][2];
251 * Sets the permissions for that file. Intended mostly to be used
253 * The permissions array is a 3x3 {@code boolean} array, the first index being
256 * <p>E.G.: {@code permissions[1][2]} is the group/execute permission.</p
    [all...]
  /libcore/ojluni/src/main/java/sun/nio/fs/
UnixFileAttributes.java 216 public Set<PosixFilePermission> permissions() { method in class:UnixFileAttributes
  /packages/apps/DeskClock/src/com/android/deskclock/data/
RingtoneModel.java 13 * See the License for the specific language governing permissions and
130 final Set<Uri> permissions = new ArraySet<>(uriPermissions.size()); local
132 permissions.add(uriPermission.getUri());
137 i.set(ringtone.setHasPermissions(permissions.contains(ringtone.getUri())));
  /packages/apps/Dialer/java/com/android/dialer/app/list/
RegularSearchFragment.java 13 * See the License for the specific language governing permissions and
149 "Requesting permissions: " + Arrays.toString(deniedPermissions));
157 int requestCode, String[] permissions, int[] grantResults) {
163 PermissionsUtil.notifyPermissionGranted(getActivity(), permissions[0]); local

Completed in 610 milliseconds

12 3 4 5 6 7 8 91011>>