/packages/apps/Music/src/com/android/music/ |
ScanningProgress.java | 23 import android.os.Environment; 38 String status = Environment.getExternalStorageState(); 39 if (!status.equals(Environment.MEDIA_MOUNTED)) { 68 if (android.os.Environment.isExternalStorageRemovable()) {
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
AsecTests.java | 20 import android.os.Environment; 140 String mPath = Environment.getExternalStorageDirectory().toString(); 142 return Environment.MEDIA_MOUNTED.equals(state); 151 if (Environment.isExternalStorageEmulated()) { 161 if (Environment.isExternalStorageEmulated()) { 188 if (Environment.isExternalStorageEmulated()) { 198 if (Environment.isExternalStorageEmulated()) { 225 if (Environment.isExternalStorageEmulated()) { 234 if (Environment.isExternalStorageEmulated()) { 258 if (Environment.isExternalStorageEmulated()) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
StatFsTest.java | 21 import android.os.Environment; 26 File path = Environment.getDataDirectory(); 43 path = Environment.getRootDirectory();
|
/external/chromium_org/base/nix/ |
xdg_util.cc | 9 #include "base/environment.h" 16 // The KDE session version environment variable used in KDE 4. 27 FilePath GetXDGDirectory(Environment* env, const char* env_name, 50 DesktopEnvironment GetDesktopEnvironment(Environment* env) { 79 // Fall back on some older environment variables. 110 const char* GetDesktopEnvironmentName(Environment* env) {
|
/external/clang/lib/StaticAnalyzer/Core/ |
Environment.cpp | 1 //== Environment.cpp - Map from Stmt* to Locations/Values -------*- C++ -*--==// 10 // This file defined the Environment and EnvironmentManager classes. 59 SVal Environment::lookupExpr(const EnvironmentEntry &E) const { 68 SVal Environment::getSVal(const EnvironmentEntry &Entry, 108 Environment EnvironmentManager::bindExpr(Environment Env, 114 return Environment(F.remove(Env.ExprBindings, E)); 118 return Environment(F.add(Env.ExprBindings, E, V)); 144 Environment 145 EnvironmentManager::removeDeadBindings(Environment Env [all...] |
/developers/samples/android/common/src/java/com/example/android/common/media/ |
CameraHelper.java | 22 import android.os.Environment; 140 * Creates a media file in the {@code Environment.DIRECTORY_PICTURES} directory. The directory 148 // using Environment.getExternalStorageState() before doing this. 149 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) { 153 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory( 154 Environment.DIRECTORY_PICTURES), "CameraSample");
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
CameraHelper.java | 22 import android.os.Environment; 140 * Creates a media file in the {@code Environment.DIRECTORY_PICTURES} directory. The directory 148 // using Environment.getExternalStorageState() before doing this. 149 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) { 153 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory( 154 Environment.DIRECTORY_PICTURES), "CameraSample");
|
/external/chromium/net/proxy/ |
proxy_config_service_linux.h | 13 #include "base/environment.h" 25 // settings from environment variables or gconf. 120 explicit Delegate(base::Environment* env_var_getter); 123 Delegate(base::Environment* env_var_getter, 161 // Obtains an environment variable's value. Parses a proxy server 169 // Fills proxy config from environment variables. Returns true if 186 scoped_ptr<base::Environment> env_var_getter_; 223 explicit ProxyConfigServiceLinux(base::Environment* env_var_getter); 224 ProxyConfigServiceLinux(base::Environment* env_var_getter,
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
Environment.java | 25 * Global environment configurations for showing soft keyboard and candidate 30 public class Environment { 92 private static Environment mInstance; 107 private Environment() { 110 public static Environment getInstance() { 112 mInstance = new Environment();
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 23 import android.os.Environment; 30 * Test multi-user emulated storage environment, ensuring that each user has 57 wipeTestFiles(Environment.getExternalStorageDirectory()); 69 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED, 70 Environment.getStorageState(path)); 93 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED, 94 Environment.getStorageState(path)); 133 return new File(Environment.getExternalStorageDirectory(), file);
|
/external/chromium_org/chrome/app/ |
chrome_breakpad_client.cc | 8 #include "base/environment.h" 65 // By setting the BREAKPAD_DUMP_LOCATION environment variable, an alternate 67 scoped_ptr<base::Environment> env(base::Environment::Create()); 120 scoped_ptr<base::Environment> env(base::Environment::Create()); 145 scoped_ptr<base::Environment> env(base::Environment::Create()); 217 // By setting the BREAKPAD_DUMP_LOCATION environment variable, an alternate 219 scoped_ptr<base::Environment> env(base::Environment::Create()) [all...] |
/external/chromium/chrome/common/ |
multi_process_lock_unittest.cc | 6 #include "base/environment.h" 24 : name_(name), environment_(base::Environment::Create()) { 33 scoped_ptr<base::Environment> environment_; 131 scoped_ptr<base::Environment> environment(base::Environment::Create()); 132 EXPECT_TRUE(environment->GetVar(MultiProcessLockTest::kLockEnviromentVarName, 150 scoped_ptr<base::Environment> environment(base::Environment::Create()) [all...] |
logging_chrome_uitest.cc | 15 #include "base/environment.h" 25 // Stores the current value of the log file name environment 28 scoped_ptr<base::Environment> env(base::Environment::Create()); 35 // Restores the value of the log file nave environment variable 38 scoped_ptr<base::Environment> env(base::Environment::Create()); 43 std::string environment_filename_; // Saves real environment value. 46 // Tests the log file name getter without an environment variable. 57 // Tests the log file name getter with an environment variable [all...] |
/external/chromium_org/chrome/common/ |
multi_process_lock_unittest.cc | 6 #include "base/environment.h" 25 : name_(name), environment_(base::Environment::Create()) { 34 scoped_ptr<base::Environment> environment_; 146 scoped_ptr<base::Environment> environment(base::Environment::Create()); 147 EXPECT_TRUE(environment->GetVar(MultiProcessLockTest::kLockEnviromentVarName, 165 scoped_ptr<base::Environment> environment(base::Environment::Create()) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
Storage.java | 25 import android.os.Environment; 41 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString(); 138 String state = Environment.getExternalStorageState(); 140 if (Environment.MEDIA_CHECKING.equals(state)) { 143 if (!Environment.MEDIA_MOUNTED.equals(state)) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
Storage.java | 23 import android.os.Environment; 36 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString(); 106 String state = Environment.getExternalStorageState(); 108 if (Environment.MEDIA_CHECKING.equals(state)) { 111 if (!Environment.MEDIA_MOUNTED.equals(state)) {
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
NativeMediaTest.java | 23 import android.os.Environment; 90 Assert.assertEquals(Environment.getExternalStorageState(), Environment.MEDIA_MOUNTED);
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechServiceTest.java | 18 import android.os.Environment; 55 File sampleFile = new File(Environment.getExternalStorageDirectory(), SAMPLE_FILE_NAME); 78 File sampleFile = new File(Environment.getExternalStorageDirectory(), "notsound.wav");
|
/external/chromium/chrome/browser/ |
shell_integration.h | 23 class Environment; 87 static std::string GetDesktopName(base::Environment* env); 89 static bool GetDesktopShortcutTemplate(base::Environment* env,
|
/external/jmonkeyengine/engine/src/test/jme3test/audio/ |
TestAmbient.java | 33 import com.jme3.audio.Environment; 55 Environment env = new Environment(eax); 58 waves = new AudioNode(assetManager, "Sound/Environment/Ocean Waves.ogg", false); 64 nature = new AudioNode(assetManager, "Sound/Environment/Nature.ogg", true);
|
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
EffectsVideoCapture.java | 28 import android.os.Environment; 64 intent.putExtra("OUTPUT_FILENAME", Environment.getExternalStorageDirectory().toString() 71 File file = new File(Environment.getExternalStorageDirectory(),
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
SpnOverride.java | 28 import android.os.Environment; 57 final File spnFile = new File(Environment.getRootDirectory(), 64 Environment.getRootDirectory() + "/" + PARTNER_SPN_OVERRIDE_PATH);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerReceiver.java | 25 import android.os.Environment; 47 String externalStoragePath = Environment.getExternalStorageDirectory().getPath(); 48 String legacyPath = Environment.getLegacyExternalStorageDirectory().getPath();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ReportExporter.java | 23 import android.os.Environment; 53 if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { 65 File reportPath = new File(Environment.getExternalStorageDirectory(), "ctsVerifierReports");
|
/cts/tests/tests/holo/src/android/holo/cts/ |
BitmapAssets.java | 27 import android.os.Environment; 69 return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); 88 File file = new File(Environment.getExternalStorageDirectory(), "cts-holo-assets");
|