/frameworks/support/v13/java/android/support/v13/app/ |
D | FragmentCompat.java | 37 void requestPermissions(Fragment fragment, String[] permissions, int requestCode); in requestPermissions() argument 46 public void requestPermissions(final Fragment fragment, final String[] permissions, in requestPermissions() argument 52 final int[] grantResults = new int[permissions.length]; in requestPermissions() 59 final int permissionCount = permissions.length; in requestPermissions() 62 permissions[i], packageName); in requestPermissions() 69 requestCode, permissions, grantResults); in requestPermissions() 94 public void requestPermissions(Fragment fragment, String[] permissions, int requestCode) { in requestPermissions() argument 95 FragmentCompat23.requestPermissions(fragment, permissions, requestCode); in requestPermissions() 136 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument 208 @NonNull String[] permissions, int requestCode) { in requestPermissions() argument [all …]
|
/frameworks/base/docs/html/preview/features/ |
D | runtime-permissions.jd | 3 page.keywords=permissions, runtime, preview 13 permissions at runtime, instead of install time.</li> 14 <li>Users can revoke permissions at any time from the app Settings 16 <li>Your app needs to check that it has the permissions it needs every 57 The M Developer Preview introduces a new app permissions model which 59 running on the M Preview supports the new permissions model, the user does not have to 60 grant any permissions when they install or upgrade the app. Instead, the app 61 requests permissions as it needs them, and the system shows a dialog to the 66 If an app supports the new permissions model, it can still be installed and 67 run on devices running older versions of Android, using the old permissions [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattDescriptor.java | 124 public BluetoothGattDescriptor(UUID uuid, int permissions) { in BluetoothGattDescriptor() argument 125 initDescriptor(null, uuid, 0, permissions); in BluetoothGattDescriptor() 137 int instance, int permissions) { in BluetoothGattDescriptor() argument 138 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor() 142 int instance, int permissions) { in initDescriptor() argument 146 mPermissions = permissions; in initDescriptor()
|
D | BluetoothGattCharacteristic.java | 231 public BluetoothGattCharacteristic(UUID uuid, int properties, int permissions) { in BluetoothGattCharacteristic() argument 232 initCharacteristic(null, uuid, 0, properties, permissions); in BluetoothGattCharacteristic() 241 int properties, int permissions) { in BluetoothGattCharacteristic() argument 242 initCharacteristic(service, uuid, instanceId, properties, permissions); in BluetoothGattCharacteristic() 247 int properties, int permissions) { in initCharacteristic() argument 251 mPermissions = permissions; in initCharacteristic()
|
/frameworks/base/docs/html/preview/testing/ |
D | guide.jd | 3 page.keywords=previewresources,androidm,testing,permissions 11 <li><a href="#runtime-permissions">Testing Permissions</a></li> 34 <li><a href="#runtime-permissions">Permissions</a> 47 <h2 id="runtime-permissions">Testing Permissions</h2> 50 The new <a href="{@docRoot}preview/features/runtime-permissions.html">Permissions</a> model 51 changes the way that permissions are allocated to your app by the user. Instead of granting all 52 permissions during the install procedure, your app must ask the user for individual permissions 55 can grant or revoke the permissions granted to an app individually at any time. This feature of 63 should begin planning your app’s migration to the new permissions model now, with a goal of 72 permissions behavior. [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/preview/testing/ |
D | guide.jd | 3 page.keywords=previewresources,androidm,testing,permissions 11 <li><a href="#runtime-permissions">測試權限</a></li> 34 <li><a href="#runtime-permissions">權限</a> 47 <h2 id="runtime-permissions">測試權限</h2> 50 新的<a href="{@docRoot}preview/features/runtime-permissions.html">權限</a>模型改變使用者對您的應用程式分配權限的方式。 82 <pre>adb shell pm list permissions -d -g</pre> 118 …如需有關執行階段權限行為、測試和建議做法的詳細資訊,請參閱 <a href="{@docRoot}preview/features/runtime-permissions.html">權限</a>…
|
/frameworks/base/docs/html-intl/intl/ko/preview/testing/ |
D | guide.jd | 3 page.keywords=previewresources,androidm,testing,permissions 11 <li><a href="#runtime-permissions">권한 테스트</a></li> 34 <li><a href="#runtime-permissions">권한</a> 47 <h2 id="runtime-permissions">권한 테스트</h2> 50 …새로운 <a href="{@docRoot}preview/features/runtime-permissions.html">권한</a> 모델은 사용자가 여러분의 앱에 권한을 할당하는… 82 <pre>adb shell pm list permissions -d -g</pre> 118 …런타임 권한의 동작, 테스트 및 모범 사례에 대한 자세한 정보는 <a href="{@docRoot}preview/features/runtime-permissions.html">…
|
/frameworks/base/docs/html/guide/topics/security/ |
D | permissions.jd | 12 <li><a href="#permissions">Using Permissions</a></li> 31 that a particular process can perform, and per-URI permissions for granting 52 <em>permissions</em> they need for additional capabilities not provided by 53 the basic sandbox. Applications statically declare the permissions they 76 permissions</a> and to grant or deny an application's <a 96 user ID and file permissions. Note that in order to retain security, only two applications 109 owned by your application, but its global read and/or write permissions have 113 <a name="permissions"></a> 116 <p>A basic Android application has no permissions associated with it by default, 121 tags declaring the permissions that your application needs.</p> [all …]
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | ActivityCompat.java | 70 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument 314 final @NonNull String[] permissions, final int requestCode) { in requestPermissions() argument 316 ActivityCompatApi23.requestPermissions(activity, permissions, requestCode); in requestPermissions() 322 final int[] grantResults = new int[permissions.length]; in requestPermissions() 327 final int permissionCount = permissions.length; in requestPermissions() 330 permissions[i], packageName); in requestPermissions() 334 requestCode, permissions, grantResults); in requestPermissions()
|
D | FragmentActivity.java | 784 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument 802 frag.onRequestPermissionsResult(requestCode&0xff, permissions, grantResults); in onRequestPermissionsResult() 825 private void requestPermissionsFromFragment(Fragment fragment, String[] permissions, in requestPermissionsFromFragment() argument 828 ActivityCompat.requestPermissions(this, permissions, requestCode); in requestPermissionsFromFragment() 835 ActivityCompat.requestPermissions(this, permissions, in requestPermissionsFromFragment() 876 @NonNull String[] permissions, int requestCode) { in onRequestPermissionsFromFragment() argument 877 FragmentActivity.this.requestPermissionsFromFragment(fragment, permissions, in onRequestPermissionsFromFragment()
|
/frameworks/base/docs/html-intl/intl/zh-cn/preview/testing/ |
D | guide.jd | 11 <li><a href="#runtime-permissions">测试权限</a></li> 34 <li><a href="#runtime-permissions">权限</a> 47 <h2 id="runtime-permissions">测试权限</h2> 50 新<a href="{@docRoot}preview/features/runtime-permissions.html">权限</a>模型改变了用户向您的应用分配权限的方式。 82 <pre>adb shell pm list permissions -d -g</pre> 118 …如需了解有关运行时权限行为、测试和最佳做法的详细信息,请参阅<a href="{@docRoot}preview/features/runtime-permissions.html">权限</a>…
|
/frameworks/base/docs/html-intl/intl/ru/preview/testing/ |
D | guide.jd | 11 <li><a href="#runtime-permissions">Тестирование разрешений</a></li> 34 <li><a href="#runtime-permissions">разрешения</a>; 47 <h2 id="runtime-permissions">Тестирование разрешений</h2> 50 В новой модели <a href="{@docRoot}preview/features/runtime-permissions.html">разрешений</a> 82 <pre>adb shell pm list permissions -d -g</pre> 119 <a href="{@docRoot}preview/features/runtime-permissions.html">Разрешения</a>.
|
/frameworks/base/docs/html-intl/intl/ja/preview/testing/ |
D | guide.jd | 11 <li><a href="#runtime-permissions">パーミッションをテストする</a></li> 34 <li><a href="#runtime-permissions">パーミッション</a> 47 <h2 id="runtime-permissions">パーミッションをテストする</h2> 50 …<a href="{@docRoot}preview/features/runtime-permissions.html">パーミッション</a> モデルの変更により、ユーザーがアプリにパーミッシ… 82 <pre>adb shell pm list permissions -d -g</pre> 118 …ついては、Developer Preview ページの<a href="{@docRoot}preview/features/runtime-permissions.html">パーミッション</…
|
/frameworks/support/v13/api23/android/support/v13/app/ |
D | FragmentCompat23.java | 22 public static void requestPermissions(Fragment fragment, String[] permissions, in requestPermissions() argument 24 fragment.requestPermissions(permissions, requestCode); in requestPermissions()
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | permission-tree-element.jd | 16 <dd itemprop="description">Declares the base name for a tree of permissions. The application takes 17 ownership of all names within the tree. It can dynamically add new permissions 20 {@code com.example.project.taxes}, permissions like the following might be 29 namespace in which further permissions can be placed. See the 31 element for information on declaring permissions. 36 <dd>An icon representing all the permissions in the tree. This attribute
|
D | uses-permission-element.jd | 13 <p style="clear:left;">In some cases, the permissions that you request 30 <p>For a list of permissions that imply 32 href="{@docRoot}guide/topics/manifest/uses-feature-element.html#permissions-features"> 50 For more information on permissions, see the 54 A list of permissions defined by the base platform can be found at 63 standard system permissions, such as "{@code android.permission.CAMERA}"
|
/frameworks/support/v4/api23/android/support/v4/app/ |
D | ActivityCompat23.java | 26 public static void requestPermissions(Activity activity, String[] permissions, in requestPermissions() argument 32 activity.requestPermissions(permissions, requestCode); in requestPermissions()
|
/frameworks/base/docs/html/training/articles/ |
D | security-tips.jd | 25 <li><a href="{@docRoot}guide/topics/security/permissions.html">Permissions</a></li> 33 default system and file permissions and avoid difficult decisions about security.</p> 41 security functionality such as cryptography, permissions, and secure 48 <li>User-granted permissions to restrict access to system features and user data.</li> 49 <li>Application-defined permissions to control application data on a per-app basis.</li> 80 offers read and write permissions to other apps and can make 126 </a> for reading and writing, or distinct permissions for reading and writing 127 within the manifest. We recommend that you limit your permissions to those 129 easier to add permissions later to expose new functionality than it is to take 136 Signature permissions do not require user confirmation, [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfo.java | 152 public PermissionInfo[] permissions; field in PackageInfo 313 dest.writeTypedArray(permissions, parcelableFlags); in writeToParcel() 362 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
|
/frameworks/base/docs/html/preview/ |
D | support.jd | 116 "{@docRoot}preview/features/runtime-permissions.html">Permissions</a> documents have 139 are updated to reflect latest permissions API changes, including 143 Other samples are updated to support runtime permissions. 165 <li>Updated the user interface for permissions and enhanced some of the permissions 175 permissions have been removed from the {@link android.Manifest.permission_group#CONTACTS} 302 "{@docRoot}preview/features/runtime-permissions.html">Permissions</a> documents have 324 are updated to reflect latest permissions API changes, including 366 <li>Some accounts and identity permissions are moved to 367 <code>CONTACTS</code> permissions group and others are removed or granted 375 <li>The Wi-Fi permissions [all …]
|
/frameworks/base/docs/html/training/secure-file-sharing/ |
D | index.jd | 37 receiving app the file's content URI and grant temporary access permissions to that URI. 38 Content URIs with temporary URI access permissions are secure because they apply only to the 53 temporary permissions that you grant to the receiving app for the content URI. 64 granting access permissions to the URI, and sending the URI to the app.
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | DefaultPermissionGrantPolicy.java | 179 Set<String> permissions = new ArraySet<>(); in grantPermissionsToSysComponentsAndPrivApps() local 185 permissions.add(permission); in grantPermissionsToSysComponentsAndPrivApps() 188 if (!permissions.isEmpty()) { in grantPermissionsToSysComponentsAndPrivApps() 189 grantRuntimePermissionsLPw(pkg, permissions, true, userId); in grantPermissionsToSysComponentsAndPrivApps() 761 private void grantRuntimePermissionsLPw(PackageParser.Package pkg, Set<String> permissions, in grantRuntimePermissionsLPw() argument 763 grantRuntimePermissionsLPw(pkg, permissions, false, false, userId); in grantRuntimePermissionsLPw() 766 private void grantRuntimePermissionsLPw(PackageParser.Package pkg, Set<String> permissions, in grantRuntimePermissionsLPw() argument 768 grantRuntimePermissionsLPw(pkg, permissions, systemFixed, false, userId); in grantRuntimePermissionsLPw() 771 private void grantRuntimePermissionsLPw(PackageParser.Package pkg, Set<String> permissions, in grantRuntimePermissionsLPw() argument 803 if (permissions.contains(permission)) { in grantRuntimePermissionsLPw()
|
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/ |
D | runtime-permissions.jd | 3 page.keywords=permissions, runtime, preview 133 …p-permissions-screen_2x.png" srcset="{@docRoot}preview/features/images/app-permissions-screen.png … 548 <h4 id="request-permissions">根据需要请求权限</h4> 591 String permissions[], int[] grantResults) { 608 // permissions this app might request
|
/frameworks/base/docs/html/about/versions/ |
D | android-5.0-changes.jd | 298 overview, Android apps can define custom permissions as a means of managing 300 pre-defined system permissions. Apps define custom permissions in <a href= 306 There are a small number of scenarios where defining custom permissions is a 307 legitimate and secure approach. However, creating custom permissions is 309 depending on the protection level assigned to the permissions. 319 Apps using duplicate custom permissions 326 same logical name for their custom permissions. Apps might also incorporate 339 <strong>uniqueness restriction on custom permissions</strong> for 354 permissions just as before and to request custom permissions from other apps 378 <li>Do you actually intend for other apps to request your custom permissions [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/ |
D | runtime-permissions.jd | 133 …p-permissions-screen_2x.png" srcset="{@docRoot}preview/features/images/app-permissions-screen.png … 548 <h4 id="request-permissions">必要時要求權限</h4> 591 String permissions[], int[] grantResults) { 608 // permissions this app might request
|