/cts/tests/tests/os/src/android/os/cts/ |
EnvironmentTest.java | 19 import android.os.Environment; 23 new Environment(); 24 assertNotNull(Environment.getExternalStorageState()); 25 assertTrue(Environment.getExternalStorageDirectory().isDirectory()); 26 assertTrue(Environment.getRootDirectory().isDirectory()); 27 assertTrue(Environment.getDownloadCacheDirectory().isDirectory()); 28 assertTrue(Environment.getDataDirectory().isDirectory()); 38 assertNull("environment variable TMPDIR should not be set",
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
WorkDir.java | 19 import android.os.Environment; 27 Assert.assertEquals(Environment.getExternalStorageState(), Environment.MEDIA_MOUNTED); 28 return Environment.getExternalStorageDirectory();
|
NativeMediaTest.java | 25 import android.os.Environment; 103 Assert.assertEquals(Environment.getExternalStorageState(), Environment.MEDIA_MOUNTED);
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
ReadExternalStorageTest.java | 25 import android.os.Environment; 38 assertDirReadOnlyAccess(Environment.getExternalStorageDirectory()); 51 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED, 52 Environment.getExternalStorageState(path)); 63 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/ |
UsePermissionCompatTest.java | 28 import android.os.Environment; 48 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState()); 49 assertDirReadWriteAccess(Environment.getExternalStorageDirectory()); 70 assertEquals(Environment.MEDIA_UNMOUNTED, Environment.getExternalStorageState()); 71 assertDirNoAccess(Environment.getExternalStorageDirectory()); 80 assertDirNoAccess(new File(Environment.getExternalStorageDirectory(),
|
/frameworks/base/services/core/java/com/android/server/ |
DiskStatsService.java | 21 import android.os.Environment; 52 File tmp = new File(Environment.getDataDirectory(), "system/perftest.tmp"); 78 reportFreeSpace(Environment.getDataDirectory(), "Data", pw); 79 reportFreeSpace(Environment.getDownloadCacheDirectory(), "Cache", pw);
|
SystemConfig.java | 149 readPermissions(Environment.buildPath( 150 Environment.getRootDirectory(), "etc", "sysconfig"), false); 152 readPermissions(Environment.buildPath( 153 Environment.getRootDirectory(), "etc", "permissions"), false); 155 readPermissions(Environment.buildPath( 156 Environment.getOemDirectory(), "etc", "sysconfig"), true); 157 readPermissions(Environment.buildPath( 158 Environment.getOemDirectory(), "etc", "permissions"), true);
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
Environment.h | 1 //== Environment.h - Map from Stmt* to Locations/Values ---------*- C++ -*--==// 10 // This file defined the Environment and EnvironmentManager classes. 30 /// An entry in the environment consists of a Stmt and an LocationContext. 31 /// This allows the environment to manage context-sensitive bindings, 55 class Environment { 65 Environment(BindingsTy eb) 76 /// Environment. 79 /// Profile - Profile the contents of an Environment object for use 81 static void Profile(llvm::FoldingSetNodeID& ID, const Environment* env) { 91 bool operator==(const Environment& RHS) const [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
EnvironmentTest.java | 11 import android.os.Environment; 29 assertThat( Environment.getExternalStorageState(), equalTo("removed") ); 31 assertThat( Environment.getExternalStorageState(), equalTo("mounted") ); 36 assertTrue(Environment.getExternalStorageDirectory().exists()); 41 File extStoragePublic = Environment.getExternalStoragePublicDirectory("Movies");
|
/external/v8/src/compiler/ |
control-builders.h | 33 typedef StructuredGraphBuilder::Environment Environment; 36 Environment* environment() { return builder_->environment(); } function in class:v8::internal::compiler::ControlBuilder 37 void set_environment(Environment* env) { builder_->set_environment(env); } 58 Environment* then_environment_; // Environment after the 'then' body. 59 Environment* else_environment_; // Environment for the 'else' body [all...] |
graph-builder.cc | 76 !environment()->IsMarkedAsUnreachable()) { 87 if (environment()->IsMarkedAsUnreachable()) return; 91 environment()->MarkAsUnreachable(); 96 StructuredGraphBuilder::Environment* StructuredGraphBuilder::CopyEnvironment( 97 Environment* env) { 98 return new (zone()) Environment(*env); 102 StructuredGraphBuilder::Environment::Environment( 110 StructuredGraphBuilder::Environment::Environment(const Environment& copy [all...] |
graph-builder.h | 104 class Environment; 105 friend class Environment; 110 // tracked by the environment might be mutated. 114 Environment* environment() const { return environment_; } function in class:v8::internal::compiler::StructuredGraphBuilder 115 void set_environment(Environment* env) { environment_ = env; } 136 // Support for control flow builders. The concrete type of the environment 138 virtual Environment* CopyEnvironment(Environment* env); 145 Environment* environment_ [all...] |
ast-graph-builder.h | 40 class Environment; 42 Environment* environment() { function in class:v8::internal::compiler::AstGraphBuilder 43 return reinterpret_cast<Environment*>( 44 StructuredGraphBuilder::environment()); 55 // Support for control flow builders. The concrete type of the environment 57 typedef StructuredGraphBuilder::Environment BaseEnvironment; 71 // other dependencies tracked by the environment might be mutated though. 186 // The abstract execution environment for generated code consists of 188 // environment will perform proper SSA-renaming of all tracked node 310 Environment* environment() const { return owner_->environment(); } function in class:v8::internal::compiler::BASE_EMBEDDED [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/ |
UsePermissionTest.java | 26 import android.os.Environment; 54 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState()); 55 assertDirNoAccess(Environment.getExternalStorageDirectory()); 67 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState()); 68 assertDirReadWriteAccess(Environment.getExternalStorageDirectory()); 81 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState()); 82 assertDirNoAccess(Environment.getExternalStorageDirectory()) [all...] |
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
ExternalStorageTest.java | 34 import android.os.Environment; 53 assertDirNoAccess(Environment.getExternalStorageDirectory()); 75 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { 109 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "meow"); 128 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), "meow");
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 24 import android.os.Environment; 31 * Test multi-user emulated storage environment, ensuring that each user has 60 wipeTestFiles(Environment.getExternalStorageDirectory()); 72 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED, 73 Environment.getExternalStorageState(path)); 96 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED, 97 Environment.getExternalStorageState(path)); 127 final File myPath = Environment.getExternalStorageDirectory(); 154 return new File(Environment.getExternalStorageDirectory(), file);
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 33 import android.os.Environment; 50 Environment.getExternalStorageDirectory(), "meow"); 59 new File(Environment.getExternalStorageDirectory(), "caek"), 75 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState()); 80 Environment.getExternalStorageDirectory().list(); 93 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), 126 assertDirReadWriteAccess(Environment.getExternalStorageDirectory()); 139 assertEquals("Valid media must be inserted during CTS", Environment.MEDIA_MOUNTED [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/audio/ |
Environment.java | 38 * Audio environment, for reverb effects. 41 public class Environment { 63 public static final Environment Garage, Dungeon, Cavern, AcousticLab, Closet; 66 Garage = new Environment(1, 1, 1, 1, .9f, .5f, .751f, .0039f, .661f, .0137f); 67 Dungeon = new Environment(.75f, 1, 1, .75f, 1.6f, 1, 0.95f, 0.0026f, 0.93f, 0.0103f); 68 Cavern = new Environment(.5f, 1, 1, .5f, 2.25f, 1, .908f, .0103f, .93f, .041f); 69 AcousticLab = new Environment(.5f, 1, 1, 1, .28f, 1, .87f, .002f, .81f, .008f); 70 Closet = new Environment(1, 1, 1, 1, .15f, 1, .6f, .0025f, .5f, .0006f); 78 public Environment(){ 81 public Environment(Environment source) [all...] |
/external/llvm/lib/Support/ |
Triple.cpp | 485 Environment(parseEnvironment(getEnvironmentName())), 495 /// them into enum members. It leaves the environment unknown and omits it from 503 Environment(), ObjectFormat(Triple::UnknownObjectFormat) { 508 /// vendor, OS, and environment. 520 Environment(parseEnvironment(EnvironmentStr.str())), 551 EnvironmentType Environment = UnknownEnvironment; 553 Environment = parseEnvironment(Components[3]); 564 Found[3] = Environment != UnknownEnvironment; 598 Environment = parseEnvironment(Comp); 599 Valid = Environment != UnknownEnvironment [all...] |
/external/protobuf/gtest/test/ |
gtest-param-test_test.cc | 564 // The use of environment object allows detection of the case where no test 568 class TestGenerationEnvironment : public ::testing::Environment { 630 typedef TestGenerationEnvironment<PARAMETER_COUNT> Environment; 633 Environment::Instance()->FixtureConstructorExecuted(); 637 Environment::Instance()->SetUpExecuted(); 641 Environment::Instance()->TearDownExecuted(); 687 Environment::Instance()->TestBodyExecuted(); 819 AddGlobalTestEnvironment(TestGenerationTest::Environment::Instance());
|
/external/google-breakpad/src/testing/gtest/test/ |
gtest-param-test_test.cc | 564 // The use of environment object allows detection of the case where no test 568 class TestGenerationEnvironment : public ::testing::Environment { 631 typedef TestGenerationEnvironment<PARAMETER_COUNT> Environment; 634 Environment::Instance()->FixtureConstructorExecuted(); 638 Environment::Instance()->SetUpExecuted(); 642 Environment::Instance()->TearDownExecuted(); 689 Environment::Instance()->TestBodyExecuted(); 881 AddGlobalTestEnvironment(TestGenerationTest::Environment::Instance()); [all...] |
/external/gtest/test/ |
gtest-param-test_test.cc | 564 // The use of environment object allows detection of the case where no test 568 class TestGenerationEnvironment : public ::testing::Environment { 631 typedef TestGenerationEnvironment<PARAMETER_COUNT> Environment; 634 Environment::Instance()->FixtureConstructorExecuted(); 638 Environment::Instance()->SetUpExecuted(); 642 Environment::Instance()->TearDownExecuted(); 689 Environment::Instance()->TestBodyExecuted(); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationData.java | 41 private final Environment mEnvironment; 172 public NotificationData(Environment environment) { 173 mEnvironment = environment; 174 mGroupManager = environment.getGroupManager(); 178 * Returns the sorted list of active notifications (depending on {@link Environment} 182 * when the environment changes. 235 // TODO: This should not be public. Instead the Environment should notify this class when 343 public interface Environment {
|
/ndk/sources/third_party/googletest/googletest/test/ |
gtest-param-test_test.cc | 564 // The use of environment object allows detection of the case where no test 568 class TestGenerationEnvironment : public ::testing::Environment { 631 typedef TestGenerationEnvironment<PARAMETER_COUNT> Environment; 634 Environment::Instance()->FixtureConstructorExecuted(); 638 Environment::Instance()->SetUpExecuted(); 642 Environment::Instance()->TearDownExecuted(); 689 Environment::Instance()->TestBodyExecuted(); [all...] |
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
StorageTest.java | 28 import android.os.Environment; 183 IoUtils.deleteContents(Environment.getDownloadCacheDirectory()); 184 dirtyDir = Environment.getDownloadCacheDirectory();
|