Lines Matching defs:path

375      * @param path Path to the content from which you are retrieving DRM constraints.
382 public ContentValues getConstraints(String path, int action) {
383 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) {
384 throw new IllegalArgumentException("Given usage or path is invalid/null");
386 return _getConstraints(mUniqueId, path, action);
392 * @param path Path to the content from which you are retrieving metadata information.
397 public ContentValues getMetadata(String path) {
398 if (null == path || path.equals("")) {
399 throw new IllegalArgumentException("Given path is invalid/null");
401 return _getMetadata(mUniqueId, path);
436 * Saves rights to a specified path and associates that path with the content path.
442 * @param rightsPath File path where rights will be saved.
443 * @param contentPath File path where content is saved.
464 * @param engineFilePath File path to the plug-in file to be installed.
477 * Checks whether the given MIME type or path can be handled.
479 * @param path Path of the content to be handled.
482 * @return True if the given MIME type or path can be handled; false if they cannot be handled.
484 public boolean canHandle(String path, String mimeType) {
485 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) {
488 return _canHandle(mUniqueId, path, mimeType);
563 * object, and so on) using the specified path or MIME type. At least one parameter must
566 * @param path Path to the content or null.
571 public int getDrmObjectType(String path, String mimeType) {
572 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) {
575 return _getDrmObjectType(mUniqueId, path, mimeType);
592 String path = "";
594 path = convertUriToPath(uri);
599 return getDrmObjectType(path, mimeType);
605 * @param path Path to the rights-protected content.
609 public String getOriginalMimeType(String path) {
610 if (null == path || path.equals("")) {
611 throw new IllegalArgumentException("Given path should be non null");
619 File file = new File(path);
624 mime = _getOriginalMimeType(mUniqueId, path, fd);
654 * @param path Path to the rights-protected content.
658 public int checkRightsStatus(String path) {
659 return checkRightsStatus(path, DrmStore.Action.DEFAULT);
680 * @param path Path to the rights-protected content.
685 public int checkRightsStatus(String path, int action) {
686 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) {
687 throw new IllegalArgumentException("Given path or action is not valid");
689 return _checkRightsStatus(mUniqueId, path, action);
711 * @param path Path to the rights-protected content.
715 public int removeRights(String path) {
716 if (null == path || path.equals("")) {
717 throw new IllegalArgumentException("Given path should be non null");
719 return _removeRights(mUniqueId, path);
839 String path = null;
844 path = uri.getPath();
847 path = uri.toString();
860 path = cursor.getString(pathIndex);
873 return path;
885 private native ContentValues _getConstraints(int uniqueId, String path, int usage);
887 private native ContentValues _getMetadata(int uniqueId, String path);
889 private native boolean _canHandle(int uniqueId, String path, String mimeType);
898 private native int _getDrmObjectType(int uniqueId, String path, String mimeType);
900 private native String _getOriginalMimeType(int uniqueId, String path, FileDescriptor fd);
902 private native int _checkRightsStatus(int uniqueId, String path, int action);
904 private native int _removeRights(int uniqueId, String path);