/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | AppFuseTest.java | 53 public long getFileSize(int inode) throws FileNotFoundException { 54 if (INODE == inode) { 99 public long getFileSize(int inode) throws FileNotFoundException { 100 if (inode == fileInode) { 103 return super.getFileSize(inode); 107 public long readObjectBytes(int inode, long offset, long size, byte[] bytes) 109 if (inode == fileInode) { 117 return super.readObjectBytes(inode, offset, size, bytes); 140 public long getFileSize(int inode) throws FileNotFoundException { 141 if (inode ! 240 getFileSize(int inode) argument 245 readObjectBytes(int inode, long offset, long size, byte[] bytes) argument 251 writeObjectBytes(long fileHandle, int inode, long offset, int size, byte[] bytes) argument [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | AppFuse.java | 114 * Returns file size for the given inode. 115 * @param inode 119 long getFileSize(int inode) throws FileNotFoundException; argument 122 * Returns file bytes for the give inode. 123 * @param inode 130 long readObjectBytes(int inode, long offset, long size, byte[] bytes) throws IOException; argument 133 * Handles writing bytes for the give inode. 135 * @param inode 142 int writeObjectBytes(long fileHandle, int inode, long offset, int size, byte[] bytes) argument 163 private long getFileSize(int inode) { argument 173 readObjectBytes(int inode, long offset, long size) argument 188 writeObjectBytes(long fileHandler, int inode, long offset, int size, byte[] bytes) argument [all...] |
H A D | MtpDocumentsProvider.java | 611 public long getFileSize(int inode) throws FileNotFoundException { argument 612 return MtpDocumentsProvider.this.getFileSize(String.valueOf(inode)); 617 int inode, long offset, long size, byte[] buffer) throws IOException { 618 final Identifier identifier = mDatabase.createIdentifier(Integer.toString(inode)); 638 long fileHandle, int inode, long offset, int size, byte[] bytes) 644 writer = new MtpFileWriter(mContext, String.valueOf(inode)); 616 readObjectBytes( int inode, long offset, long size, byte[] buffer) argument 637 writeObjectBytes( long fileHandle, int inode, long offset, int size, byte[] bytes) argument
|
/frameworks/base/packages/MtpDocumentsProvider/jni/ |
H A D | com_android_mtp_AppFuse.cpp | 115 // Map between file handle and inode. 354 int64_t get_file_size(int inode) { argument 358 static_cast<int>(inode))); 362 int inode, 369 static_cast<jint>(inode), 388 int write_object_bytes(uint64_t handle, int inode, uint64_t offset, uint32_t size, argument 406 inode, 361 get_object_bytes( int inode, uint64_t offset, uint32_t size, void* buf) argument
|
/frameworks/native/cmds/installd/ |
H A D | installd.cpp | 346 ino_t inode = 0; local 350 res = get_app_data_inode(parse_null(arg[0]), arg[1], atoi(arg[2]), atoi(arg[3]), &inode); 352 snprintf(reply, REPLY_MAX, "%" PRId64, (int64_t) inode);
|
H A D | utils.cpp | 96 // For testing purposes, rely on the inode when defined; this could be 113 LOG(DEBUG) << "Resolved path " << resolved << " for inode " << ce_data_inode 121 LOG(WARNING) << "Failed to resolve inode " << ce_data_inode << "; using " << fallback; 787 int get_path_inode(const std::string& path, ino_t *inode) { argument 794 *inode = buf.st_ino; 800 * Write the inode of a specific child file into the given xattr on the 805 ino_t inode = 0; local 809 if (get_path_inode(path, &inode) != 0) { 816 if (inode_raw == inode) { 820 PLOG(WARNING) << "Mismatched inode valu 840 ino_t inode = 0; local [all...] |
H A D | commands.cpp | 186 // Remember inode numbers of cache directories so that we can clear 709 int get_app_data_inode(const char *uuid, const char *pkgname, int userid, int flags, ino_t *inode) { argument 712 return get_path_inode(path, inode);
|