Lines Matching refs:path

368      * @param path Path to the content from which you are retrieving DRM constraints.
375 public ContentValues getConstraints(String path, int action) {
376 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) {
377 throw new IllegalArgumentException("Given usage or path is invalid/null");
379 return _getConstraints(mUniqueId, path, action);
385 * @param path Path to the content from which you are retrieving metadata information.
390 public ContentValues getMetadata(String path) {
391 if (null == path || path.equals("")) {
392 throw new IllegalArgumentException("Given path is invalid/null");
394 return _getMetadata(mUniqueId, path);
429 * Saves rights to a specified path and associates that path with the content path.
435 * @param rightsPath File path where rights will be saved.
436 * @param contentPath File path where content is saved.
457 * @param engineFilePath File path to the plug-in file to be installed.
470 * Checks whether the given MIME type or path can be handled.
472 * @param path Path of the content to be handled.
475 * @return True if the given MIME type or path can be handled; false if they cannot be handled.
477 public boolean canHandle(String path, String mimeType) {
478 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) {
481 return _canHandle(mUniqueId, path, mimeType);
556 * object, and so on) using the specified path or MIME type. At least one parameter must
559 * @param path Path to the content or null.
564 public int getDrmObjectType(String path, String mimeType) {
565 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) {
568 return _getDrmObjectType(mUniqueId, path, mimeType);
585 String path = "";
587 path = convertUriToPath(uri);
592 return getDrmObjectType(path, mimeType);
598 * @param path Path to the rights-protected content.
602 public String getOriginalMimeType(String path) {
603 if (null == path || path.equals("")) {
604 throw new IllegalArgumentException("Given path should be non null");
612 File file = new File(path);
617 mime = _getOriginalMimeType(mUniqueId, path, fd);
647 * @param path Path to the rights-protected content.
651 public int checkRightsStatus(String path) {
652 return checkRightsStatus(path, DrmStore.Action.DEFAULT);
673 * @param path Path to the rights-protected content.
678 public int checkRightsStatus(String path, int action) {
679 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) {
680 throw new IllegalArgumentException("Given path or action is not valid");
682 return _checkRightsStatus(mUniqueId, path, action);
704 * @param path Path to the rights-protected content.
708 public int removeRights(String path) {
709 if (null == path || path.equals("")) {
710 throw new IllegalArgumentException("Given path should be non null");
712 return _removeRights(mUniqueId, path);
832 String path = null;
837 path = uri.getPath();
840 path = uri.toString();
853 path = cursor.getString(pathIndex);
866 return path;
878 private native ContentValues _getConstraints(int uniqueId, String path, int usage);
880 private native ContentValues _getMetadata(int uniqueId, String path);
882 private native boolean _canHandle(int uniqueId, String path, String mimeType);
891 private native int _getDrmObjectType(int uniqueId, String path, String mimeType);
893 private native String _getOriginalMimeType(int uniqueId, String path, FileDescriptor fd);
895 private native int _checkRightsStatus(int uniqueId, String path, int action);
897 private native int _removeRights(int uniqueId, String path);