/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
PermissionsTest.groovy | 13 * See the License for the specific language governing permissions and
21 * Tests for the Permissions class
55 assert new Permissions('rwxrwxrwx').hashCode() == Permissions.DEFAULT.hashCode()
56 assert new Permissions('---------').hashCode() == Permissions.NONE.hashCode()
60 assert new Permissions('rwxrwxrwx').equals(Permissions.DEFAULT)
61 assert new Permissions('---------').equals(Permissions.NONE) [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
RequestPermissionsActivity.java | 13 * See the License for the specific language governing permissions and 33 * Activity that requests permissions needed for activities exported from Contacts. 47 * Method to check if the required permissions are given. 61 final List<String> permissions = new ArrayList<>(); local 63 permissions.add(permission.GET_ACCOUNTS); 64 permissions.add(permission.READ_CONTACTS); 65 permissions.add(permission.WRITE_CONTACTS); 72 permissions.add(permission.CALL_PHONE); 73 permissions.add(permission.READ_CALL_LOG); 74 permissions.add(permission.READ_PHONE_STATE) [all...] |
RequestDesiredPermissionsActivity.java | 13 * See the License for the specific language governing permissions and 29 * Requests permissions that are not absolutely required by the calling Activity; 30 * if permissions are denied, the calling Activity is still restarted. 32 * Activities that have a set of permissions that must be granted in order for the Activity to 48 * to prompt user for these permissions. After that calling activity is restarted 65 final List<String> permissions = new ArrayList<>(); local 67 permissions.add(permission.READ_CALENDAR); 71 permissions.add(permission.READ_SMS); 73 sDesiredPermissions = permissions.toArray(new String[0]); 80 int requestCode, String permissions[], int[] grantResults) [all...] |
/external/libmojo/base/debug/ |
proc_maps_linux.cc | 116 char permissions[5] = {'\0'}; // Ensure NUL-terminated string. local 131 ®ion.start, ®ion.end, permissions, ®ion.offset, 137 region.permissions = 0; 139 if (permissions[0] == 'r') 140 region.permissions |= MappedMemoryRegion::READ; 141 else if (permissions[0] != '-') 144 if (permissions[1] == 'w') 145 region.permissions |= MappedMemoryRegion::WRITE; 146 else if (permissions[1] != '-') 149 if (permissions[2] == 'x' [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
PermissionHelper.java | 11 * or implied. See the License for the specific language governing permissions and limitations under 27 public static void requestPermissions(android.app.Fragment fragment, String[] permissions, 30 PermissionHelper23.requestPermissions(fragment, permissions, requestCode); 35 String[] permissions, int requestCode) { 36 fragment.requestPermissions(permissions, requestCode);
|
/frameworks/support/v17/leanback/api23/android/support/v17/leanback/app/ |
PermissionHelper23.java | 11 * or implied. See the License for the specific language governing permissions and limitations under 21 public static void requestPermissions(android.app.Fragment fragment, String[] permissions, 23 fragment.requestPermissions(permissions, requestCode);
|
/libcore/ojluni/src/main/java/java/security/ |
ProtectionDomain.java | 36 PermissionCollection permissions) { } 39 PermissionCollection permissions,
|
/external/libcxx/test/std/experimental/filesystem/class.file_status/ |
file_status.mods.pass.cpp | 17 // void permissions(perms) noexcept; 40 // permissions test 42 static_assert(noexcept(st.permissions(perms::owner_read)), 44 static_assert(std::is_same<decltype(st.permissions(perms::owner_read)), void>::value, 46 assert(st.permissions() != perms::owner_read); 47 st.permissions(perms::owner_read); 48 assert(st.permissions() == perms::owner_read);
|
file_status.obs.pass.cpp | 17 // perms permissions(p) const noexcept; 38 // permissions test 40 static_assert(noexcept(st.permissions()), 42 static_assert(std::is_same<decltype(st.permissions()), perms>::value, 44 assert(st.permissions() == perms::owner_read);
|
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
PermissionsUtil.java | 13 * See the License for the specific language governing permissions and 17 package com.android.inputmethod.latin.permissions; 31 * Utility class for permissions. 36 * Returns the list of permissions not granted from the given list of permissions. 38 * @param permissions list of permissions to check. 39 * @return the list of permissions that do not have permission to use. 42 String... permissions) { 44 for (String permission : permissions) { [all...] |
/frameworks/base/data/etc/ |
Android.mk | 13 # See the License for the specific language governing permissions and 31 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions 37 LOCAL_MODULE := privapp-permissions-platform.xml 39 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
|
/system/bt/service/common/bluetooth/ |
descriptor.h | 13 // See the License for the specific language governing permissions and 27 Descriptor(uint16_t handle, const UUID& uuid, uint16_t permissions) 28 : handle_(handle), uuid_(uuid), permissions_(permissions){}; 37 uint16_t permissions() const { return permissions_; } function in class:bluetooth::Descriptor
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
PosixFileAttributes.java | 64 * Returns the permissions of the file. The file permissions are returned 66 * copy of the file permissions and is modifiable. This allows the result 68 * setPermissions} method to update the file's permissions. 70 * @return the file permissions 74 Set<PosixFilePermission> permissions(); method in interface:PosixFileAttributes
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothGattDescriptor.java | 13 * See the License for the specific language governing permissions and 103 * Permissions for this descriptor 125 * @param permissions Permissions for this descriptor 127 public BluetoothGattDescriptor(UUID uuid, int permissions) { 128 initDescriptor(null, uuid, 0, permissions); 137 * @param permissions Permissions for this descriptor 140 int instance, int permissions) { 141 initDescriptor(characteristic, uuid, instance, permissions); [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
BasePermissionActivity.java | 13 * See the License for the specific language governing permissions and 35 public final String[] permissions; field in class:BasePermissionActivity.Result 38 public Result(int requestCode, String[] permissions, int[] grantResults) { 40 this.permissions = permissions; 57 public void onRequestPermissionsResult(int requestCode, String[] permissions, 60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS);
|
/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/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...] |
/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...] |
/external/autotest/frontend/afe/ |
management.py | 19 Create a basic admin group with permissions for managing basic autotest 24 admin_group.save() # must save before adding permissions 26 have_permissions = list(admin_group.permissions.all()) 31 permissions = list(PermissionModel.objects.filter( 33 if len(permissions) == 0: 37 for permission in permissions: 41 admin_group.permissions.add(permission)
|
/libcore/luni/src/test/java/libcore/java/nio/file/attribute/ |
AclEntryTest.java | 13 * See the License for the specific language governing permissions and 49 Set<AclEntryPermission> permissions = aclEntry.permissions(); local 50 assertEquals(2, permissions.size()); 51 assertTrue(permissions.contains(AclEntryPermission.READ_DATA)); 52 assertTrue(permissions.contains(AclEntryPermission.READ_ATTRIBUTES));
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppWithAdminGrantedPermissionsCounter.java | 12 * permissions and limitations under the License. 28 * Counts installed apps across all users that have been granted one or more specific permissions by 37 public AppWithAdminGrantedPermissionsCounter(Context context, String[] permissions, 41 mPermissions = permissions; 52 public static boolean includeInCount(String[] permissions, 56 // The app uses run-time permissions. Check whether one or more of the permissions were 58 for (final String permission : permissions) { 67 // The app uses install-time permissions. Check whether the app requested one or more of the 68 // permissions and was installed by enterprise policy, implicitly granting permissions [all...] |
AppWithAdminGrantedPermissionsLister.java | 13 * See the License for the specific language governing permissions and 24 * Lists installed apps across all users that have been granted one or more specific permissions by 32 public AppWithAdminGrantedPermissionsLister(String[] permissions, 36 mPermissions = permissions;
|
/external/libchrome/sandbox/linux/syscall_broker/ |
broker_policy.cc | 22 const std::vector<BrokerFilePermission>& permissions) 24 permissions_(permissions), 25 num_of_permissions_(permissions.size()) { 41 // Note: access() being a system call to check permissions, this can get a bit
|
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentCompat.java | 13 * See the License for the specific language governing permissions and 36 void requestPermissions(Fragment fragment, String[] permissions, int requestCode); 45 public void requestPermissions(final Fragment fragment, final String[] permissions, 51 final int[] grantResults = new int[permissions.length]; 58 final int permissionCount = permissions.length; 61 permissions[i], packageName); 68 requestCode, permissions, grantResults); 89 public void requestPermissions(Fragment fragment, String[] permissions, int requestCode) { 90 fragment.requestPermissions(permissions, requestCode); 126 * Callback for the result from requesting permissions. This metho [all...] |