Lines Matching defs:permission

798      * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
817 * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
839 * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
841 * method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to
847 * @return true if this component has permission to bind the AppWidget
859 * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
861 * method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to
870 * @return true if this component has permission to bind the AppWidget
881 * Set the provider for a given appWidgetId if the caller has a permission.
883 * <strong>Note:</strong> You need the {@link android.Manifest.permission#BIND_APPWIDGET}
884 * permission or the user must have enabled binding widgets always for your component.
886 * #ACTION_APPWIDGET_BIND} to request permission to bind.
894 * @return true if this component has permission to bind the AppWidget
905 * Query if a given package was granted permission by the user to bind app widgets
907 * <p class="note">You need the MODIFY_APPWIDGET_BIND_PERMISSIONS permission
909 * @param packageName The package for which the permission is being queried
911 * @return true if the package was granted permission by the user to bind app widgets
927 * Query if a given package was granted permission by the user to bind app widgets
929 * <p class="note">You need the MODIFY_APPWIDGET_BIND_PERMISSIONS permission
931 * @param packageName The package for which the permission is being queried
932 * @return true if the package was granted permission by the user to bind app widgets
948 * Changes any user-granted permission for the given package to bind app widgets
950 * <p class="note">You need the MODIFY_APPWIDGET_BIND_PERMISSIONS permission
952 * @param packageName The package whose permission is being changed
953 * @param permission Whether to give the package permission to bind widgets
957 public void setBindAppWidgetPermission(String packageName, boolean permission) {
961 setBindAppWidgetPermission(packageName, UserHandle.myUserId(), permission);
965 * Changes any user-granted permission for the given package to bind app widgets
967 * <p class="note">You need the MODIFY_APPWIDGET_BIND_PERMISSIONS permission
969 * @param packageName The package whose permission is being changed
971 * @param permission Whether to give the package permission to bind widgets
975 public void setBindAppWidgetPermission(String packageName, int userId, boolean permission) {
980 mService.setBindAppWidgetPermission(packageName, userId, permission);