/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
PhonePermissionRequestActivity.java | 13 * See the License for the specific language governing permissions and 31 * phone permissions for storage. If they choose to move forward, the permission screen 55 // If permissions granted, we start the main activity (shut this activity down). 80 * Callback received when a permissions request has been completed. 84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 86 String permissionResult = "Request code: " + requestCode + ", Permissions: " + permissions 101 * If service started this Activity (b/c wear requested data where permissions were not
|
/external/libcxx/test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/ |
status.pass.cpp | 42 assert(ps.permissions() == es.permissions());
|
symlink_status.pass.cpp | 41 assert(ps.permissions() == es.permissions());
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.status/ |
status.pass.cpp | 49 TEST_CHECK(st.permissions() == perms::unknown); 54 TEST_CHECK(st.permissions() == perms::unknown); 64 permissions(dir, perms::none); 88 TEST_CHECK(st.permissions() == perms::unknown); 128 TEST_CHECK(st.permissions() != perms::unknown); 132 TEST_CHECK(st.permissions() != perms::unknown); 159 TEST_CHECK(st.permissions() != perms::unknown); 163 TEST_CHECK(st.permissions() != perms::unknown);
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
MkdCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 25 import org.mockftpserver.fake.filesystem.Permissions 39 static final PERMISSIONS = new Permissions('rwx------') 42 userAccount.defaultPermissionsForNewDirectory = PERMISSIONS 47 assert dirEntry.permissions == PERMISSIONS 56 assert dirEntry.permissions == UserAccount.DEFAULT_PERMISSIONS_FOR_NEW_DIRECTORY 76 fileSystem.getEntry(PARENT).permissions = new Permissions('r-xr-xr-x' [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
ApplicationFeatureProviderImpl.java | 13 * See the License for the specific language governing permissions and 86 public void calculateNumberOfAppsWithAdminGrantedPermissions(String[] permissions, 90 permissions, mPm, mPms, mDpm, callback); 99 public void listAppsWithAdminGrantedPermissions(String[] permissions, 102 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, 164 String[] permissions, PackageManagerWrapper packageManager, 167 super(context, permissions, packageManager, packageManagerService, devicePolicyManager); 196 CurrentUserAppWithAdminGrantedPermissionsLister(String[] permissions, 200 super(permissions, packageManager, packageManagerService, devicePolicyManager,
|
IPackageManagerWrapperImpl.java | 13 * See the License for the specific language governing permissions and 63 String[] permissions, int flags, int userId) throws RemoteException { 64 return mPms.getPackagesHoldingPermissions(permissions, flags, userId);
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
AdminGrantedPermissionsPreferenceControllerBase.java | 13 * permissions and limitations under the License. 37 boolean async, String[] permissions, String permissionGroup) { 39 mPermissions = permissions; 69 // apps that the admin has granted a given permissions takes a bit of time, we always 77 // We block and return synchronously whether the admin has granted the given permissions to
|
/packages/experimental/PermissionApp/src/foo/bar/permission/ |
PermissionActivity.java | 13 * See the License for the specific language governing permissions and 48 * Simple sample of how to use the runtime permissions APIs. 188 public void onRequestPermissionsResult(int requestCode, String permissions[], 204 for (int i = 0; i < permissions.length; i++) { 206 switch (permissions[i]) { 270 List<String> permissions = new ArrayList<>(); local 273 permissions.add(Manifest.permission.READ_CALENDAR); 277 permissions.add(Manifest.permission.READ_CONTACTS); 279 if (!permissions.isEmpty()) { 280 requestPermissions(permissions.toArray(new String[0]) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
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/bt/service/ |
gatt_server_old.h | 13 // See the License for the specific language governing permissions and 89 bool AddCharacteristic(const UUID& id, int properties, int permissions); 94 int permissions);
|
/system/extras/ext4_utils/ |
key_control.cpp | 36 long keyctl_setperm(key_serial_t id, int permissions) 38 return keyctl(KEYCTL_SETPERM, id, permissions);
|
/device/generic/armv7-a-neon/ |
mini_common.mk | 12 # See the License for the specific language governing permissions and 67 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ 68 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 69 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 70 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 71 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 72 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
|
/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/ |
ManifestGenerator.java | 13 * See the License for the specific language governing permissions and 45 List<String> permissions = new ArrayList<>(); local 59 permissions.add(args[++i]); 80 generate(out, pkgName, instrumentName, minSdk, targetSdk, permissions, activities); 95 String minSdk, String targetSdk, List<String> permissions, List<String> activities) 111 for (String permission : permissions) {
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
AbstractFakeFileSystemTestCase.groovy | 13 * See the License for the specific language governing permissions and 123 def permissions = new Permissions('-wxrwx---') 125 group: 'group', permissions: permissions) 134 assert entry.permissions == permissions
|
/external/curl/lib/ |
ftplistparser.c | 205 int permissions = 0; local 208 permissions |= 1 << 8; 210 permissions |= FTP_LP_MALFORMATED_PERM; 212 permissions |= 1 << 7; 214 permissions |= FTP_LP_MALFORMATED_PERM; 217 permissions |= 1 << 6; 219 permissions |= 1 << 6; 220 permissions |= 1 << 11; 223 permissions |= 1 << 11; 225 permissions |= FTP_LP_MALFORMATED_PERM [all...] |
/frameworks/support/compat/java/android/support/v4/app/ |
ActivityCompat.java | 13 * See the License for the specific language governing permissions and 55 * Callback for the result from requesting permissions. This method 59 * <strong>Note:</strong> It is possible that the permissions request interaction 60 * with the user is interrupted. In this case you will receive empty permissions 66 * @param permissions The requested permissions. Never null. 67 * @param grantResults The grant results for the corresponding permissions 73 void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, 322 * Requests permissions to be granted to this application. These permissions [all...] |
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
GalleryComposerFragment.java | 13 * See the License for the specific language governing permissions and 72 private String[] permissions = new String[] {permission.READ_EXTERNAL_STORAGE}; field in class:GalleryComposerFragment 179 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) 180 || shouldShowRequestPermissionRationale(permissions[0])) { 183 requestPermissions(permissions, STORAGE_PERMISSION); 263 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 264 if (permissions.length > 0 && permissions[0].equals(this.permissions[0])) { 265 PermissionsUtil.permissionRequested(getContext(), permissions[0]) local [all...] |
/test/vts-testcase/kernel/api/selinux/ |
VtsKernelSelinuxFileApiTest.py | 14 # See the License for the specific language governing permissions and 47 """Reads the file and checks that its content and permissions are valid. 58 logging.info("Testing permissions of %s" % (test_object.get_path())) 60 permissions = file_utils.GetPermission( 62 asserts.assertTrue(test_object.get_permission_checker()(permissions), 63 "%s: File has invalid permissions (%s)" % 64 (test_object.get_path(), permissions)) 66 asserts.fail("Failed to assert permissions: %s" % str(e))
|
/build/make/target/product/ |
aosp_x86_64.mk | 13 # See the License for the specific language governing permissions and 28 PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
|
/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:");
|
/device/generic/car/common/product/ |
aosp_arm64.mk | 13 # See the License for the specific language governing permissions and 24 PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
|
aosp_x86.mk | 13 # See the License for the specific language governing permissions and 28 PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
|
aosp_x86_64.mk | 13 # See the License for the specific language governing permissions and 28 PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
|
/device/google/atv/products/ |
atv_base.mk | 13 # See the License for the specific language governing permissions and 25 device/google/atv/permissions/tv_core_hardware.xml:system/etc/permissions/tv_core_hardware.xml 111 device/google/atv/permissions/com.google.android.tv.installed.xml:system/etc/permissions/com.google.android.tv.installed.xml
|