diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-02-04 17:38:14 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-02-09 14:20:55 -0800 |
commit | e83cefcef07f9ac025642c1ffec76b4c7ab39cf2 (patch) | |
tree | 130696ee2a90150129c3ee98544c5814528c90f9 /test-runner | |
parent | 72e5a8820a996c547eacea534b11b6b8f6eca83b (diff) | |
download | frameworks_base-e83cefcef07f9ac025642c1ffec76b4c7ab39cf2.zip frameworks_base-e83cefcef07f9ac025642c1ffec76b4c7ab39cf2.tar.gz frameworks_base-e83cefcef07f9ac025642c1ffec76b4c7ab39cf2.tar.bz2 |
New external storage APIs.
This implements the spec for external storage organization, and
properly reflects how the media scanner organizes the files it finds.
Also includes package manager support for removing app private
files from external storage when the application is uninstalled.
For the new APIs and paths, the main place to look is Environment
and Context.
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/mock/MockContext.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-runner/android/test/mock/MockContext.java b/test-runner/android/test/mock/MockContext.java index 57b22f8..ffd757c 100644 --- a/test-runner/android/test/mock/MockContext.java +++ b/test-runner/android/test/mock/MockContext.java @@ -158,11 +158,21 @@ public class MockContext extends Context { } @Override + public File getExternalFilesDir(String type) { + throw new UnsupportedOperationException(); + } + + @Override public File getCacheDir() { throw new UnsupportedOperationException(); } @Override + public File getExternalCacheDir() { + throw new UnsupportedOperationException(); + } + + @Override public File getDir(String name, int mode) { throw new UnsupportedOperationException(); } |