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

12 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/appsecurity/test-apps/UsePermissionApp26/src/com/android/cts/usepermission/
UsePermissionTest26.java 13 * See the License for the specific language governing permissions and
40 String[] permissions = new String[]{Manifest.permission.RECEIVE_SMS}; local
45 BasePermissionActivity.Result result = requestPermissions(permissions,
59 permissions, new boolean[]{true});
  /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
broker_policy.h 30 // |permissions| is a list of BrokerPermission objects that define
33 const std::vector<BrokerFilePermission>& permissions);
39 // Note: access() being a system call to check permissions, this can get a bit
  /packages/apps/Settings/src/com/android/settings/applications/
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;
AppPermissionsPreferenceController.java 12 * permissions and limitations under the License.
75 The 3 permissions are the first three from the list which any app has granted:
79 final Set<String> permissions = getAllPermissionsInGroups(); local
80 Set<String> grantedPermissionGroups = getGrantedPermissionGroups(permissions);
95 private Set<String> getGrantedPermissionGroups(Set<String> permissions) {
100 if (installedPackage.permissions == null) {
103 for (PermissionInfo permissionInfo : installedPackage.permissions) {
104 if (permissions.contains(permissionInfo.name)
126 Log.e(TAG, "Error getting permissions label.", e);
135 final List<PermissionInfo> permissions local
    [all...]
ApplicationFeatureProvider.java 13 * See the License for the specific language governing permissions and
57 * managed profiles that have been granted one or more of the given permissions by the admin.
59 * @param permissions Only consider apps that have been granted one or more of these
60 * permissions by the admin, either at run-time or install-time
64 void calculateNumberOfAppsWithAdminGrantedPermissions(String[] permissions, boolean async,
69 * managed profiles that have been granted one or more of the given permissions by the admin.
71 * @param permissions Only consider apps that have been granted one or more of these
72 * permissions by the admin, either at run-time or install-time
75 void listAppsWithAdminGrantedPermissions(String[] permissions, ListOfAppsCallback callback);
  /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...]
  /cts/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
53 List<String> permissions = new ArrayList<>(); local
54 permissions.add(PERMISSION_A);
55 permissions.add(PERMISSION_B);
72 permissions, activities);
  /developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/
AppCompatActivityExts.kt 13 * See the License for the specific language governing permissions and
31 fun AppCompatActivity.batchRequestPermissions(permissions: Array<String>, requestId: Int) =
32 ActivityCompat.requestPermissions(this, permissions, requestId
  /developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/
AppCompatActivityExts.kt 13 * See the License for the specific language governing permissions and
31 fun AppCompatActivity.batchRequestPermissions(permissions: Array<String>, requestId: Int) =
32 ActivityCompat.requestPermissions(this, permissions, requestId
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DirectoryEntryTest.groovy 13 * See the License for the specific language governing permissions and
33 entry.permissions = PERMISSIONS
41 assert clone.permissions == PERMISSIONS
  /cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
UsePermissionTest23.java 13 * See the License for the specific language governing permissions and
116 assertEquals(Manifest.permission.READ_EXTERNAL_STORAGE, result.permissions[0]);
117 assertEquals(Manifest.permission.WRITE_EXTERNAL_STORAGE, result.permissions[1]);
142 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
145 BasePermissionActivity.Result result = requestPermissions(permissions,
159 permissions, new boolean[] {true});
161 // Make sure no undeclared as used permissions are granted
174 String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS}; local
179 BasePermissionActivity.Result result = requestPermissions(permissions,
193 permissions, new boolean[] {true})
206 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
232 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
266 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; local
342 String[] permissions = new String[] {Manifest.permission.READ_CALENDAR}; local
412 String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE}; local
429 String[] permissions = new String[] {"permission.does.not.exist"}; local
448 String[] permissions = new String[] { local
    [all...]
  /external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/
create_directory_with_attributes.pass.cpp 46 const perms orig_p = status(dir).permissions();
47 permissions(dir2, perms::none);
53 // Check that the permissions were unchanged
54 TEST_CHECK(orig_p == status(dir).permissions());
64 permissions(env.test_root, perms::remove_perms | perms::set_gid);
68 permissions(attr_dir, perms::none);
75 // Check that the new directory has the same permissions as attr_dir
77 TEST_CHECK(st.permissions() == perms::none);
  /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...]
  /external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/
permissions.pass.cpp 14 // void permissions(const path& p, perms prms);
15 // void permissions(const path& p, perms prms, std::error_code& ec) noexcept;
36 ASSERT_NOT_NOEXCEPT(fs::permissions(p, opts));
39 ASSERT_NOT_NOEXCEPT(fs::permissions(p, opts, ec)));
48 fs::permissions(f, opts);
66 fs::permissions(dne, fs::perms{}, ec);
72 fs::permissions(dne_sym, fs::perms{}, ec);
109 // will have set their permissions to perms::owner_all
114 TEST_CHECK(status(TC.p).permissions() != TC.expected);
117 permissions(TC.p, TC.set_perms, ec)
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
AbstractStoreFileCommandHandlerTestCase.groovy 13 * See the License for the specific language governing permissions and
24 import org.mockftpserver.fake.filesystem.Permissions
46 fileSystem.getEntry(FILE).permissions = Permissions.NONE
52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
59 fileSystem.getEntry(DIR).permissions = new Permissions('rw-rw-rw-')
97 assert fileEntry.permissions == userAccount.defaultPermissionsForNewFile
  /packages/services/Car/car_product/build/
car_base.mk 13 # See the License for the specific language governing permissions and
96 frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml
100 packages/services/Car/car_product/build/default-car-permissions.xml:system/etc/default-permissions/default-car-permissions.xml
  /device/generic/car/common/
car.mk 13 # See the License for the specific language governing permissions and
35 frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
39 device/generic/car/common/android.hardware.dummy.xml:system/etc/permissions/handheld_core_hardware.xml \
40 device/generic/car/common/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
41 frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml
  /device/google/wahoo/
device.mk 13 # See the License for the specific language governing permissions and
21 device/google/wahoo/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml \
22 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
28 # Enforce privapp-permissions whitelist
132 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
133 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
134 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml\
135 frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
    [all...]
  /external/libchrome/base/debug/
proc_maps_linux.h 34 // Bitmask of read/write/execute/private/shared permissions.
35 uint8_t permissions; member in struct:base::debug::MappedMemoryRegion
  /libcore/ojluni/src/main/java/java/security/acl/
AclEntry.java 36 * objects. Each ACL entry object contains a set of permissions associated
39 * as being either positive or negative. If positive, the permissions are
40 * to be granted to the associated principal. If negative, the permissions
57 * Specifies the principal for which permissions are granted or denied
71 * Returns the principal for which permissions are granted or denied by
94 * associated principal the set of permissions in the entry), false
103 * have multiple permissions.
135 * Returns an enumeration of the permissions in this ACL entry.
137 * @return an enumeration of the permissions in this ACL entry.
139 public Enumeration<Permission> permissions(); method in interface:AclEntry
    [all...]
  /packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
PermissionsActivity.java 13 * See the License for the specific language governing permissions and
30 requestPermissions(Utils.PERMISSIONS, REQUEST_CODE);
37 public void onRequestPermissionsResult(int request, String[] permissions, int[] results) {
38 // The media browser displays an error anyway if it doesn't have the required permissions
40 // for the purpose of trampolining the permissions request anyway.
  /cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
PermissionActivity.java 13 * See the License for the specific language governing permissions and
27 * A simple activity that requests permissions and returns the result.
69 public void onRequestPermissionsResult(int requestCode, String[] permissions,
72 permissions.length != 1 ||
73 !permissions[0].equals(mPermission)) {
74 Log.d(TAG, "Received wrong permissions result");
  /cts/tests/tests/os/jni/
android_os_cts_NoExecutePermissionTest.cpp 13 * See the License for the specific language governing permissions and
37 char permissions[10]; local
38 int scan = sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %9s ", &start, &end, permissions);
40 retval = (permissions[2] == 'x');
  /external/libcxx/test/std/experimental/filesystem/class.file_status/
file_status.cons.pass.cpp 37 assert(f.permissions() == perms::unknown);
49 assert(f.permissions() == perms::unknown);
59 assert(f.permissions() == perms::owner_read);

Completed in 493 milliseconds

12 3 4 5 6 7 8 91011>>