diff options
| author | Elliott Hughes <enh@google.com> | 2014-04-28 13:53:25 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-04-28 13:53:25 -0700 |
| commit | 10596fbcce710a76ffc7e917400df13af5c2ebcb (patch) | |
| tree | a4cee8efb6d7ea955252f5d985a4c155bd6eede4 /core/java/android/os/FileUtils.java | |
| parent | b609ea3884c27e95d530905e458b407acebddb5b (diff) | |
| parent | 3ce4f3d0af8b20f915631ab927aafa76a6105135 (diff) | |
resolved conflicts for merge of 3ce4f3d0 to master
Change-Id: Id5c5997ad8f801b32e1dbd97413ea42e38c27210
Diffstat (limited to 'core/java/android/os/FileUtils.java')
| -rw-r--r-- | core/java/android/os/FileUtils.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/java/android/os/FileUtils.java b/core/java/android/os/FileUtils.java index 1089f2760b05..d71c3e6e2dbe 100644 --- a/core/java/android/os/FileUtils.java +++ b/core/java/android/os/FileUtils.java @@ -16,12 +16,12 @@ package android.os; +import android.system.ErrnoException; +import android.system.Os; +import android.system.OsConstants; import android.util.Log; import android.util.Slog; -import libcore.io.ErrnoException; -import libcore.io.Libcore; - import java.io.BufferedInputStream; import java.io.ByteArrayOutputStream; import java.io.File; @@ -85,7 +85,7 @@ public class FileUtils { */ public static int setPermissions(String path, int mode, int uid, int gid) { try { - Libcore.os.chmod(path, mode); + Os.chmod(path, mode); } catch (ErrnoException e) { Slog.w(TAG, "Failed to chmod(" + path + "): " + e); return e.errno; @@ -93,7 +93,7 @@ public class FileUtils { if (uid >= 0 || gid >= 0) { try { - Libcore.os.chown(path, uid, gid); + Os.chown(path, uid, gid); } catch (ErrnoException e) { Slog.w(TAG, "Failed to chown(" + path + "): " + e); return e.errno; @@ -113,7 +113,7 @@ public class FileUtils { */ public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) { try { - Libcore.os.fchmod(fd, mode); + Os.fchmod(fd, mode); } catch (ErrnoException e) { Slog.w(TAG, "Failed to fchmod(): " + e); return e.errno; @@ -121,7 +121,7 @@ public class FileUtils { if (uid >= 0 || gid >= 0) { try { - Libcore.os.fchown(fd, uid, gid); + Os.fchown(fd, uid, gid); } catch (ErrnoException e) { Slog.w(TAG, "Failed to fchown(): " + e); return e.errno; @@ -136,7 +136,7 @@ public class FileUtils { */ public static int getUid(String path) { try { - return Libcore.os.stat(path).st_uid; + return Os.stat(path).st_uid; } catch (ErrnoException e) { return -1; } |
