Searched refs:permissions (Results 1 - 25 of 283) sorted by relevance

1234567891011>>

/frameworks/base/tests/privapp-permissions/
H A DAndroid.mk8 LOCAL_REQUIRED_MODULES := privapp-permissions-test.xml
12 LOCAL_MODULE := privapp-permissions-test.xml
14 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
15 LOCAL_SRC_FILES:= system/privapp-permissions-test.xml
24 LOCAL_REQUIRED_MODULES := vendorprivapp-permissions-test.xml
28 LOCAL_MODULE := vendorprivapp-permissions-test.xml
30 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/permissions
31 LOCAL_SRC_FILES:= vendor/privapp-permissions-test.xml
40 LOCAL_REQUIRED_MODULES := productprivapp-permissions-test.xml
44 LOCAL_MODULE := productprivapp-permissions
[all...]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A DSlicePermissionManagerTest.java12 * permissions and limitations under the License.
53 SlicePermissionManager permissions = new SlicePermissionManager(mContext,
59 permissions.grantSliceAccess("my.pkg", 0, "provider.pkg", 0, uri);
61 assertTrue(permissions.hasPermission("my.pkg", 0, uri));
70 SlicePermissionManager permissions = new SlicePermissionManager(mContext,
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
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
H A DPermissionHelper.java11 * or implied. See the License for the specific language governing permissions and limitations under
28 public static void requestPermissions(android.app.Fragment fragment, String[] permissions, argument
31 fragment.requestPermissions(permissions, requestCode);
/frameworks/support/legacy/v13/src/main/java/androidx/legacy/app/
H A DFragmentCompat.java13 * See the License for the specific language governing permissions and
49 void requestPermissions(Fragment fragment, String[] permissions, int requestCode); argument
73 * permissions if applicable. If this method returns true, it means that permission
78 * @param permissions The requested permissions.
90 boolean requestPermissions(Fragment fragment, String[] permissions, int requestCode); argument
98 public void requestPermissions(final Fragment fragment, final String[] permissions, argument
104 final int[] grantResults = new int[permissions.length];
111 final int permissionCount = permissions.length;
114 permissions[
142 requestPermissions(Fragment fragment, String[] permissions, int requestCode) argument
228 onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) argument
311 requestPermissions(@onNull Fragment fragment, @NonNull String[] permissions, int requestCode) argument
[all...]
/frameworks/base/data/etc/
H A DAndroid.mk13 # 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
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattDescriptor.java13 * See the License for the specific language governing permissions and
131 * @param permissions Permissions for this descriptor
133 public BluetoothGattDescriptor(UUID uuid, int permissions) { argument
134 initDescriptor(null, uuid, 0, permissions);
143 * @param permissions Permissions for this descriptor
146 int instance, int permissions) {
147 initDescriptor(characteristic, uuid, instance, permissions);
153 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { argument
154 initDescriptor(null, uuid, instance, permissions);
158 int instance, int permissions) {
145 BluetoothGattDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, int instance, int permissions) argument
157 initDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, int instance, int permissions) argument
[all...]
H A DBluetoothGattCharacteristic.java13 * See the License for the specific language governing permissions and
195 * Characteristic permissions.
241 * @param permissions Permissions for this characteristic
243 public BluetoothGattCharacteristic(UUID uuid, int properties, int permissions) { argument
244 initCharacteristic(null, uuid, 0, properties, permissions);
254 int properties, int permissions) {
255 initCharacteristic(service, uuid, instanceId, properties, permissions);
264 int properties, int permissions) {
265 initCharacteristic(null, uuid, instanceId, properties, permissions);
270 int properties, int permissions) {
252 BluetoothGattCharacteristic(BluetoothGattService service, UUID uuid, int instanceId, int properties, int permissions) argument
263 BluetoothGattCharacteristic(UUID uuid, int instanceId, int properties, int permissions) argument
268 initCharacteristic(BluetoothGattService service, UUID uuid, int instanceId, int properties, int permissions) argument
[all...]
/frameworks/opt/net/lowpan/build/
H A Dlowpan-service.mk13 # See the License for the specific language governing permissions and
17 frameworks/native/data/etc/android.hardware.lowpan.xml:system/etc/permissions/android.hardware.lowpan.xml
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DPermissionsSummaryHelper.java13 * See the License for the specific language governing permissions and
37 @NonNull List<RuntimePermissionPresentationInfo> permissions) {
38 final int permissionCount = permissions.size();
46 RuntimePermissionPresentationInfo permission = permissions.get(i);
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/compat/
H A DSliceProviderCompatTest.java13 * See the License for the specific language governing permissions and
68 CompatPermissionManager permissions = mock(CompatPermissionManager.class);
69 when(permissions.checkSlicePermission(any(Uri.class), anyInt(), anyInt()))
73 SliceProviderCompat compat = new SliceProviderCompat(provider, permissions,
101 CompatPermissionManager permissions = mock(CompatPermissionManager.class);
102 when(permissions.checkSlicePermission(any(Uri.class), anyInt(), anyInt()))
106 SliceProviderCompat compat = new SliceProviderCompat(provider, permissions,
/frameworks/base/core/java/android/permissionpresenterservice/
H A DRuntimePermissionPresenterService.java13 * See the License for the specific language governing permissions and
38 * This service presents information regarding runtime permissions that is
39 * used for presenting them in the UI. Runtime permissions are presented as
41 * permissions.
69 * Gets the runtime permissions for an app.
125 List<RuntimePermissionPresentationInfo> permissions =
127 if (permissions != null && !permissions.isEmpty()) {
130 permissions);
/frameworks/base/media/lib/tvremote/
H A DAndroid.mk13 # See the License for the specific language governing permissions and
40 # This will install the file in /system/etc/permissions
42 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
/frameworks/base/services/core/java/com/android/server/slice/
H A DSliceShellCommand.java12 * permissions and limitations under the License.
46 case "get-permissions":
59 pw.println(" get-permissions <authority>");
68 getOutPrintWriter().println("Only shell can get permissions");
85 getOutPrintWriter().println("An error occurred getting permissions");
88 String[] permissions = b.getStringArray(SliceProvider.EXTRA_RESULT);
91 if (permissions != null && permissions.length != 0) {
93 context.getPackageManager().getPackagesHoldingPermissions(permissions, 0);
/frameworks/base/tests/libs-permissions/
H A DAndroid.mk13 LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DActivityCompat.java13 * See the License for the specific language governing permissions and
58 * Callback for the result from requesting permissions. This method
62 * <strong>Note:</strong> It is possible that the permissions request interaction
63 * with the user is interrupted. In this case you will receive empty permissions
69 * @param permissions The requested permissions. Never null.
70 * @param grantResults The grant results for the corresponding permissions
76 void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, argument
96 * permissions if applicable. If this method returns true, it means that permission
101 * @param permissions Th
110 requestPermissions(@onNull Activity activity, @NonNull String[] permissions, @IntRange(from = 0) int requestCode) argument
496 requestPermissions(final @NonNull Activity activity, final @NonNull String[] permissions, final @IntRange(from = 0) int requestCode) argument
[all...]
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DPermissionMonitorTest.java13 * See the License for the specific language governing permissions and
65 private void expectPermission(String[] permissions, boolean preinstalled) throws Exception { argument
66 final PackageInfo packageInfo = packageInfoWithPermissions(permissions, preinstalled);
71 private PackageInfo packageInfoWithPermissions(String[] permissions, boolean preinstalled) { argument
73 packageInfo.requestedPermissions = permissions;
/frameworks/opt/net/lowpan/tests/
H A Dprepdevice.sh25 cp ${ANDROID_BUILD_TOP}/frameworks/native/data/etc/android.hardware.lowpan.xml ${ANDROID_PRODUCT_OUT}/system/etc/permissions/android.hardware.lowpan.xml
/frameworks/opt/chips/sample/src/com/android/ex/chips/sample/
H A DMainActivity.java13 * See the License for the specific language governing permissions and
64 RecipientEditTextView view, String[] permissions) {
65 requestPermissions(permissions, 0 /* requestCode */);
63 onPermissionsRequestItemClicked( RecipientEditTextView view, String[] permissions) argument
/frameworks/rs/cpu_ref/
H A DrsCpuBLAS.inc13 * See the License for the specific language governing permissions and
/frameworks/base/core/java/android/content/pm/permission/
H A DRuntimePermissionPresenter.java13 * See the License for the specific language governing permissions and
42 * This class provides information about runtime permissions for a specific
44 * and does not necessarily reflect the individual permissions requested/
45 * granted to an app as the platform may be grouping permissions to improve
47 * runtime permissions in the same permission group may be presented as a
69 * @param permissions The permissions list.
72 List<RuntimePermissionPresentationInfo> permissions) {
104 * Gets the runtime permissions for an app.
216 List<RuntimePermissionPresentationInfo> permissions
71 onGetAppPermissions(@onNull List<RuntimePermissionPresentationInfo> permissions) argument
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEntry.java13 * See the License for the specific language governing permissions and
44 * Entry of this type represents the item in auto-complete that asks user to grant permissions
104 String lookupKey, String[] permissions) {
107 true /* shouldDisplayIcon */, isFirstLevel, isValid, lookupKey, permissions);
113 boolean isFirstLevel, boolean isValid, String lookupKey, String[] permissions) {
130 mPermissions = permissions;
165 INVALID_CONTACT, null, true, isValid, null /* lookupKey */, null /* permissions */);
175 INVALID_CONTACT, null, true, isValid, null /* lookupKey */, null /* permissions */);
187 isValid, null /* lookupKey */, null /* permissions */);
197 null /* permissions */);
101 RecipientEntry(int entryType, String displayName, String destination, int destinationType, String destinationLabel, long contactId, Long directoryId, long dataId, Uri photoThumbnailUri, boolean isFirstLevel, boolean isValid, String lookupKey, String[] permissions) argument
110 RecipientEntry(int entryType, String displayName, String destination, int destinationType, String destinationLabel, long contactId, Long directoryId, long dataId, Uri photoThumbnailUri, boolean shouldDisplayIcon, boolean isFirstLevel, boolean isValid, String lookupKey, String[] permissions) argument
222 constructPermissionEntry(String[] permissions) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageParserTest.java13 * See the License for the specific language governing permissions and
395 assertEquals(1, p.permissions.size());
398 packageName, PermissionInfo.PROTECTION_NORMAL, p.permissions.get(0));
442 assertEquals(1, parent.permissions.size());
444 PermissionInfo.PROTECTION_NORMAL, parent.permissions.get(0));
452 assertEquals(0, firstChild.permissions.size()); // Child APKs cannot declare permissions.
460 assertEquals(0, secondChild.permissions.size()); // Child APKs cannot declare permissions.
/frameworks/base/cmds/statsd/tools/
H A DAndroid.mk12 # See the License for the specific language governing permissions and
/frameworks/base/core/tests/coretests/aidl/
H A DAndroid.mk12 # See the License for the specific language governing permissions and
/frameworks/base/core/tests/hosttests/
H A DAndroid.mk12 # See the License for the specific language governing permissions and

Completed in 266 milliseconds

1234567891011>>