Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 112) sorted by relevance

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DServiceDeclaration.java36 int permissions = 0; field in ServiceDeclaration.Entry
57 Entry(UUID uuid, int properties, int permissions, int instance) { in Entry() argument
61 this.permissions = permissions; in Entry()
65 Entry(UUID uuid, int permissions) { in Entry() argument
68 this.permissions = permissions; in Entry()
98 void addCharacteristic(UUID uuid, int properties, int permissions) { in addCharacteristic() argument
100 mEntries.add(new Entry(uuid, properties, permissions, 0 /*instance*/)); in addCharacteristic()
105 void addDescriptor(UUID uuid, int permissions) { in addDescriptor() argument
107 mEntries.add(new Entry(uuid, permissions)); in addDescriptor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsUtil.java17 package com.android.inputmethod.latin.permissions;
42 String... permissions) { in getDeniedPermissions() argument
44 for (String permission : permissions) { in getDeniedPermissions()
60 String[] permissions) { in requestPermissions() argument
61 ActivityCompat.requestPermissions(activity, permissions, requestCode); in requestPermissions()
79 public static boolean checkAllPermissionsGranted(Context context, String... permissions) { in checkAllPermissionsGranted() argument
85 for (String permission : permissions) { in checkAllPermissionsGranted()
DPermissionsActivity.java17 package com.android.inputmethod.latin.permissions;
91 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
94 requestCode, permissions, grantResults); in onRequestPermissionsResult()
DPermissionsManager.java17 package com.android.inputmethod.latin.permissions;
84 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
/packages/experimental/PermissionApp/src/foo/bar/permission/
DPermissionActivity.java173 public void onRequestPermissionsResult(int requestCode, String permissions[], in onRequestPermissionsResult() argument
189 for (int i = 0; i < permissions.length; i++) { in onRequestPermissionsResult()
191 switch (permissions[i]) { in onRequestPermissionsResult()
252 List<String> permissions = new ArrayList<>(); in requestPermissions() local
255 permissions.add(Manifest.permission.READ_CALENDAR); in requestPermissions()
259 permissions.add(Manifest.permission.READ_CONTACTS); in requestPermissions()
261 if (!permissions.isEmpty()) { in requestPermissions()
262 requestPermissions(permissions.toArray(new String[0]), in requestPermissions()
/packages/apps/ContactsCommon/src/com/android/contacts/common/activity/
DRequestPermissionsActivityBase.java104 protected boolean isAllGranted(String permissions[], int[] grantResult) { in isAllGranted() argument
105 for (int i = 0; i < permissions.length; i++) { in isAllGranted()
107 && isPermissionRequired(permissions[i])) { in isAllGranted()
147 protected static boolean hasPermissions(Context context, String[] permissions) { in hasPermissions() argument
150 for (String permission : permissions) { in hasPermissions()
DRequestPermissionsActivity.java63 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
64 if (permissions != null && permissions.length > 0 in onRequestPermissionsResult()
65 && isAllGranted(permissions, grantResults)) { in onRequestPermissionsResult()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsActivity.java19 import com.android.inputmethod.latin.permissions.PermissionsManager;
57 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
59 requestCode, permissions, grantResults); in onRequestPermissionsResult()
DSpellCheckerSettingsFragment.java27 import com.android.inputmethod.latin.permissions.PermissionsManager;
28 import com.android.inputmethod.latin.permissions.PermissionsUtil;
33 import static com.android.inputmethod.latin.permissions.PermissionsManager.get;
/packages/apps/Settings/src/com/android/settings/applications/
DPermissionsSummaryHelper.java37 @NonNull List<RuntimePermissionPresentationInfo> permissions) { in getPermissionSummary()
38 final int permissionCount = permissions.size(); in getPermissionSummary()
46 RuntimePermissionPresentationInfo permission = permissions.get(i); in getPermissionSummary()
DAppStateAppOpsBridge.java58 int appOpsOpCode, String[] permissions) { in AppStateAppOpsBridge() argument
66 mPermissions = permissions; in AppStateAppOpsBridge()
81 private boolean doesAnyPermissionMatch(String permissionToMatch, String[] permissions) { in doesAnyPermissionMatch() argument
82 for (String permission : permissions) { in doesAnyPermissionMatch()
DAdvancedAppSettings.java65 Preference permissions = getPreferenceScreen().findPreference(KEY_APP_PERM); in onCreate() local
66 permissions.setIntent(new Intent(Intent.ACTION_MANAGE_PERMISSIONS)); in onCreate()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java212 public static boolean hasPermissions(final String[] permissions) { in hasPermissions() argument
213 for (final String permission : permissions) { in hasPermissions()
250 public static String[] getMissingPermissions(final String[] permissions) { in getMissingPermissions() argument
252 for (final String permission : permissions) { in getMissingPermissions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsActivity.java19 import com.android.inputmethod.latin.permissions.PermissionsManager;
85 …public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
86 … PermissionsManager.get(this).onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
DCorrectionSettingsFragment.java34 import com.android.inputmethod.latin.permissions.PermissionsManager;
35 import com.android.inputmethod.latin.permissions.PermissionsUtil;
/packages/services/Car/car-support-lib/src/android/support/car/app/
DCarFragmentActivity.java666 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument
684 frag.onRequestPermissionsResult(requestCode&0xff, permissions, grantResults); in onRequestPermissionsResult()
692 private void requestPermissionsFromFragment(Fragment fragment, String[] permissions, in requestPermissionsFromFragment() argument
695 super.requestPermissions(permissions, requestCode); in requestPermissionsFromFragment()
703 super.requestPermissions(permissions, in requestPermissionsFromFragment()
743 @NonNull String[] permissions, int requestCode) { in onRequestPermissionsFromFragment() argument
745 permissions, requestCode); in onRequestPermissionsFromFragment()
DCarActivity.java69 public void requestPermissions(String[] permissions, int requestCode) { in requestPermissions() argument
186 public void requestPermissions(String[] permissions, int requestCode) { in requestPermissions() argument
191 mProxy.requestPermissions(permissions, requestCode); in requestPermissions()
332 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
DCarProxyActivity.java130 public void requestPermissions(String[] permissions, int requestCode) {
131 CarProxyActivity.this.requestPermissions(permissions, requestCode);
308 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
311 new Integer(requestCode), permissions, convertArray(results)); in onRequestPermissionsResult()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/service/
DRuntimePermissionPresenterServiceImpl.java50 List<RuntimePermissionPresentationInfo> permissions = new ArrayList<>(); in onGetAppPermissions() local
60 permissions.add(permission); in onGetAppPermissions()
64 return permissions; in onGetAppPermissions()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DHTMLViewerActivity.java107 String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
109 assert permissions.length == 1; in onRequestPermissionsResult()
110 assert Manifest.permission.READ_EXTERNAL_STORAGE.equals(permissions[0]); in onRequestPermissionsResult()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java63 setContentView(R.layout.permissions); in onCreateTasks()
174 String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
175 Log.v(TAG, "onPermissionsResult counts: " + permissions.length + ":" + grantResults.length); in onRequestPermissionsResult()
/packages/experimental/PermissionApp2/src/foo/bar/permission2/
DPermissionActivity.java167 public void onRequestPermissionsResult(int requestCode, String permissions[], in onRequestPermissionsResult() argument
243 String[] permissions = new String[]{ in requestPermissions() local
247 ActivityCompat.requestPermissions(this, permissions, in requestPermissions()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissions.java51 public AppPermissions(Context context, PackageInfo packageInfo, String[] permissions, in AppPermissions() argument
55 mFilterPermissions = permissions; in AppPermissions()
DPermissionApps.java255 List<PermissionInfo> permissions = new ArrayList<>(); in getGroupPermissionInfos() local
256 permissions.add(permissionInfo); in getGroupPermissionInfos()
257 return permissions; in getGroupPermissionInfos()
DPermissionGroups.java171 if (installedPackage.permissions == null) { in loadInBackground()
175 for (PermissionInfo permissionInfo : installedPackage.permissions) { in loadInBackground()

12345