Home
last modified time | relevance | path

Searched full:environment (Results 1 – 25 of 3781) sorted by relevance

12345678910>>...152

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEnvironmentTest.java12 import android.os.Environment;
27 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_REMOVED); in tearDown()
32 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_REMOVED); in getExternalStorageState_shouldReturnStorageState()
33 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
34 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
39 assertThat(Environment.getExternalStorageDirectory().exists()).isTrue(); in getExternalStorageDirectory_shouldReturnDirectory()
44 final File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES); in getExternalStoragePublicDirectory_shouldReturnDirectory()
46 …assertThat(path).isEqualTo(new File(ShadowEnvironment.EXTERNAL_FILES_DIR.toFile(), Environment.DIR… in getExternalStoragePublicDirectory_shouldReturnDirectory()
51 File path1 = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES); in getExternalStoragePublicDirectory_shouldReturnSameDirectory()
52 File path2 = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES); in getExternalStoragePublicDirectory_shouldReturnSameDirectory()
[all …]
/external/v8/src/compiler/
Dbytecode-graph-builder.cc23 // The abstract execution environment simulates the content of the interpreter
24 // register file. The environment performs SSA-renaming of all tracked nodes at
26 class BytecodeGraphBuilder::Environment : public ZoneObject { class in v8::internal::compiler::BytecodeGraphBuilder
28 Environment(BytecodeGraphBuilder* builder, int register_count,
31 // Specifies whether environment binding methods should attach frame state
52 // Effect dependency tracked by this environment.
58 // Preserve a checkpoint of the environment for the IR graph. Any
59 // further mutation of the environment will not affect checkpoints.
64 // Control dependency tracked by this environment.
73 Environment* Copy();
[all …]
Dcontrol-builders.cc16 else_environment_ = environment()->CopyForConditional(); in If()
25 then_environment_ = environment(); in Else()
32 then_environment_->Merge(environment()); in End()
38 loop_environment_ = environment()->CopyForLoop(assigned, is_osr); in BeginLoop()
39 continue_environment_ = environment()->CopyAsUnreachable(); in BeginLoop()
40 break_environment_ = environment()->CopyAsUnreachable(); in BeginLoop()
46 continue_environment_->Merge(environment()); in Continue()
47 environment()->MarkAsUnreachable(); in Continue()
52 break_environment_->Merge(environment()); in Break()
53 environment()->MarkAsUnreachable(); in Break()
[all …]
Dcontrol-builders.h28 typedef AstGraphBuilder::Environment Environment; typedef
31 Environment* environment() { return builder_->environment(); } in environment() function
32 void set_environment(Environment* env) { builder_->set_environment(env); } in set_environment()
54 Environment* then_environment_; // Environment after the 'then' body.
55 Environment* else_environment_; // Environment for the 'else' body.
87 Environment* loop_environment_; // Environment of the loop header.
88 Environment* continue_environment_; // Environment after the loop body.
89 Environment* break_environment_; // Environment after the loop exits.
90 BitVector* assigned_; // Assigned values in the environment.
120 Environment* body_environment_; // Environment after last case body.
[all …]
Dast-graph-builder.cc60 Environment* environment() const { return owner_->environment(); } in environment() function in v8::internal::compiler::BASE_EMBEDDED
120 depth_(builder_->environment()->context_chain_length()) { in ContextScope()
121 builder_->environment()->PushContext(context); // Push. in ContextScope()
127 builder_->environment()->PopContext(); in ~ContextScope()
128 CHECK_EQ(depth_, builder_->environment()->context_chain_length()); in ~ContextScope()
154 context_length_(builder->environment()->context_chain_length()), in ControlScope()
155 stack_height_(builder->environment()->stack_height()) { in ControlScope()
177 // this also drops extra operands from the environment for each skipped scope.
198 Environment* environment() { return builder_->environment(); } in environment() function in v8::internal::compiler::BASE_EMBEDDED
364 // Initialize the top-level environment. in CreateGraph()
[all …]
Dast-graph-builder.h74 class Environment; variable
82 Environment* environment_;
128 Environment* environment() const { return environment_; } in environment() function
148 void set_environment(Environment* env) { environment_ = env; } in set_environment()
257 // other dependencies tracked by the environment might be mutated though.
405 // The abstract execution environment for generated code consists of
407 // environment will perform proper SSA-renaming of all tracked nodes
413 class AstGraphBuilder::Environment : public ZoneObject {
415 Environment(AstGraphBuilder* builder, DeclarationScope* scope,
479 // Preserve a checkpoint of the environment for the IR graph. Any
[all …]
/external/python/cpython3/Doc/library/
Dvenv.rst20 site directories. Each virtual environment has its own Python binary (allowing
29 Python interpreter a virtual environment will be based on.
40 .. note:: A virtual environment is a Python environment such that the Python
46 A virtual environment is a directory tree which contains Python executable
47 files and other files which indicate that it is a virtual environment.
51 environment is active, they install Python packages into the virtual
52 environment without needing to be told to do so explicitly.
54 When a virtual environment is active (i.e., the virtual environment's Python
57 environment, whereas :attr:`sys.base_prefix` and
58 :attr:`sys.base_exec_prefix` point to the non-virtual environment Python
[all …]
/external/v8/tools/gcmole/
Dgcmole.cc275 class Environment;
289 static ExprEffect NoneWithEnv(Environment* env) { in NoneWithEnv()
298 Environment* env() { in env()
299 return reinterpret_cast<Environment*>(effect_ & ~kAllEffects); in env()
307 ExprEffect(int effect, Environment* env) in ExprEffect()
319 class Environment { class
321 Environment() = default;
323 static Environment Unreachable() { in Unreachable()
324 Environment env; in Unreachable()
329 static Environment Merge(const Environment& l, in Merge()
[all …]
/external/libmojo/third_party/jinja2/
Dlexer.py189 def compile_rules(environment): argument
190 """Compiles all the rules from the environment into a list of rules."""
193 (len(environment.comment_start_string), 'comment',
194 e(environment.comment_start_string)),
195 (len(environment.block_start_string), 'block',
196 e(environment.block_start_string)),
197 (len(environment.variable_start_string), 'variable',
198 e(environment.variable_start_string))
201 if environment.line_statement_prefix is not None:
202 rules.append((len(environment.line_statement_prefix), 'linestatement',
[all …]
Denvironment.py3 jinja2.environment
45 """Return a new spontaneous environment. A spontaneous environment is an
46 unnamed and unaccessible (in theory) environment that is used for
52 return Environment(*args)
55 _spontaneous_environments[args] = env = Environment(*args)
78 def load_extensions(environment, extensions): argument
79 """Load the extensions from the list and bind it to the environment.
86 result[extension.identifier] = extension(environment)
90 def _environment_sanity_check(environment): argument
91 """Perform a sanity check on the environment."""
[all …]
Dext.py19 from jinja2.environment import Environment
43 system at the parser level. Custom extensions are bound to an environment
44 but may not store environment specific data on `self`. The reason for
45 this is that an extension can be bound to another environment (for
46 overlays) by creating a copy and reassigning the `environment` attribute.
48 As extensions are created by the environment they cannot accept any
52 storing the configuration values on the environment. Because this way the
53 environment ends up acting as central configuration storage the
70 def __init__(self, environment): argument
71 self.environment = environment
[all …]
Dloaders.py39 implement a custom loading mechanism. The environment provides a
54 def get_source(self, environment, template):
70 def get_source(self, environment, template): argument
72 It's passed the environment and template name and has to return a
100 def load(self, environment, name, globals=None): argument
113 source, filename, uptodate = self.get_source(environment, name)
117 bcc = environment.bytecode_cache
119 bucket = bcc.get_bucket(environment, name, filename, source)
125 code = environment.compile(source, name, filename)
134 return environment.template_class.from_code(environment, code,
[all …]
/external/python/cpython3/Lib/venv/
D__init__.py2 Virtual environment (venv) package for Python. Based on PEP 405.
19 This class exists to allow virtual environment creation to be
21 behaviour when called upon to create a virtual environment.
24 *un*available to the created environment.
32 :param clear: If True, delete the contents of the environment directory if
33 it already exists, before environment creation.
35 virtual environment.
36 :param upgrade: If True, upgrade an existing virtual environment.
38 environment
39 :param prompt: Alternative terminal prefix for the environment.
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DEnvironment.h1 //== Environment.h - Map from Stmt* to Locations/Values ---------*- C++ -*--==//
10 // This file defined the Environment and EnvironmentManager classes.
31 /// An entry in the environment consists of a Stmt and an LocationContext.
32 /// This allows the environment to manage context-sensitive bindings,
56 class Environment {
66 Environment(BindingsTy eb) in Environment() function
77 /// Environment.
80 /// Profile - Profile the contents of an Environment object for use
82 static void Profile(llvm::FoldingSetNodeID& ID, const Environment* env) { in Profile()
92 bool operator==(const Environment& RHS) const {
[all …]
/external/tensorflow/tensorflow/contrib/specs/python/
Dspecs.py29 def eval_params(params, environment=None): argument
30 """Evaluates a parameter specification and returns the environment.
34 environment: a dictionary of input bindings
37 Environment with additional bindings created by
45 if environment:
46 bindings.update(environment)
51 def eval_spec(spec, environment=None): argument
52 """Evaluates a spec and returns the environment.
55 in an environment. That is useful if you use the spec language to
62 environment: a dictionary of input bindings
[all …]
/external/v8/src/crankshaft/
Dhydrogen-osr.cc45 HEnvironment *environment = builder_->environment(); in BuildOsrLoopEntry() local
46 int first_expression_index = environment->first_expression_index(); in BuildOsrLoopEntry()
47 int length = environment->length(); in BuildOsrLoopEntry()
52 = builder_->Add<HUnknownOSRValue>(environment, i); in BuildOsrLoopEntry()
53 environment->Bind(i, osr_value); in BuildOsrLoopEntry()
58 environment->Drop(length - first_expression_index); in BuildOsrLoopEntry()
61 = builder_->Add<HUnknownOSRValue>(environment, i); in BuildOsrLoopEntry()
62 environment->Push(osr_value); in BuildOsrLoopEntry()
68 environment->local_count() + environment->push_count(); in BuildOsrLoopEntry()
70 // Keep a copy of the old environment, since the OSR values need it in BuildOsrLoopEntry()
[all …]
Dlithium-codegen.cc137 if (instr->HasEnvironment() && !instr->environment()->has_been_used()) { in CheckEnvironmentUsage()
138 V8_Fatal(__FILE__, __LINE__, "unused environment for %s (%s)", in CheckEnvironmentUsage()
218 void LCodeGenBase::WriteTranslationFrame(LEnvironment* environment, in WriteTranslationFrame() argument
220 int translation_size = environment->translation_size(); in WriteTranslationFrame()
222 int height = translation_size - environment->parameter_count(); in WriteTranslationFrame()
224 switch (environment->frame_type()) { in WriteTranslationFrame()
227 environment->entry() ? environment->entry()->shared() in WriteTranslationFrame()
229 translation->BeginJSFrame(environment->ast_id(), shared_id, height); in WriteTranslationFrame()
230 if (info()->closure().is_identical_to(environment->closure())) { in WriteTranslationFrame()
233 int closure_id = DefineDeoptimizationLiteral(environment->closure()); in WriteTranslationFrame()
[all …]
/external/python/cpython3/Doc/using/
Dvenv-create.inc4 python3 -m venv /path/to/new/virtual/environment
47 ENV_DIR A directory to create the environment in.
52 Give the virtual environment access to the system
58 --clear Delete the contents of the environment directory if it
59 already exists, before environment creation.
60 --upgrade Upgrade the environment directory to use this version
63 environment (pip is bootstrapped by default)
65 Once an environment has been created, you may wish to activate it, e.g. by
83 invoked to bootstrap ``pip`` into the virtual environment.
86 environment will be created, according to the given options, at each provided
[all …]
/external/syslinux/gpxe/src/arch/i386/
DREADME.i38668 of an "internal" and an "external" environment. The internal
69 environment is the environment within which we can execute C code.
70 The external environment is the environment of whatever external code
74 environment also has a separate stack.
81 environment and an internal 32-bit protected-mode environment with
87 16:16 or 16:32 protected-mode) environment and an internal 16-bit
88 real-mode (or 16:16 protected-mode) environment.
93 environment with flat physical addresses and an internal 32-bit
94 protected-mode environment with virtual addresses.
127 implemented in assembly code which sets up the internal environment
[all …]
/external/libchrome/base/
Denvironment_unittest.cc5 #include "base/environment.h"
19 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
26 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
55 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
60 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
66 // Now verify that the environment has the new variable. in TEST_F()
75 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
79 // First set some environment variable. in TEST_F()
82 // Now verify that the environment has the new variable. in TEST_F()
85 // Finally verify that the environment variable was erased. in TEST_F()
/external/python/cpython2/Lib/
Drexec.py6 environment that only exposes those built-in operations that are
126 Code executed in this restricted environment will only have access to
172 import within the restricted environment.)
308 """Execute code within a restricted environment.
312 executed in the restricted environment's __main__ module.
319 """Evaluate code within a restricted environment.
323 the restricted environment's __main__ module. The value of the
332 environment's __main__ module.
343 restricted environment. Overriding this method in a subclass is
344 used to change the policies enforced by a restricted environment.
[all …]
/external/vulkan-validation-layers/tests/
Drun_extra_loader_tests.sh24 # Check for the json which does not include the optional enable environment variable.
39 # Test without setting enable environment variable. The loader should not load the layer.
44 echo "test layer detected but enable environment variable was not set" >&2
48 # Test enable environment variable with good value. The loader should load the layer.
58 # Test enable environment variable with bad value. The loader should not load the layer.
64 echo "test layer detected but enable environment variable was set to wrong value" >&2
68 # Test disable environment variable. The loader should not load the layer.
74 echo "test layer detected but disable environment variable was set" >&2
78 # Remove the enable environment variable.
81 echo "unable to remove enable environment variable" >&2
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DRobolectricProcessor.java67 public synchronized void init(ProcessingEnvironment environment) { in init() argument
68 super.init(environment); in init()
69 processOptions(environment.getOptions()); in init()
70 model = new RobolectricModel(environment.getElementUtils(), environment.getTypeUtils()); in init()
72 addValidator(new ImplementationValidator(model, environment)); in init()
73 addValidator(new ImplementsValidator(model, environment)); in init()
74 addValidator(new RealObjectValidator(model, environment)); in init()
75 addValidator(new ResetterValidator(model, environment)); in init()
77 …generators.add(new ShadowProviderGenerator(model, environment, shadowPackage, shouldInstrumentPack… in init()
78 generators.add(new ServiceLoaderGenerator(environment, shadowPackage)); in init()
[all …]
/external/swiftshader/third_party/LLVM/utils/lit/lit/
DTestingConfig.py12 # Set the environment based on the command line arguments.
13 environment = {
22 environment.update({
34 environment = environment,
66 environment, substitutions, unsupported, on_clone, argument
73 self.environment = dict(environment)
87 self.environment, self.substitutions,
100 self.environment = dict(self.environment)
/external/swiftshader/third_party/LLVM/test/
Dlit.cfg30 config.environment['PATH'],
34 config.environment['PATH']))
35 config.environment['PATH'] = path
54 config.environment['PATH']))
55 config.environment['PATH'] = path
62 config.environment['PATH']))
63 config.environment['PATH'] = path
68 path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
69 config.environment['PATH'] = path
71 # Propagate 'HOME' through the environment.
[all …]

12345678910>>...152