Home
last modified time | relevance | path

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

12345678910>>...247

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowEnvironmentTest.java14 import android.os.Environment;
36 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_REMOVED); in getExternalStorageState_shouldReturnStorageState()
37 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
38 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
44 assertThat(Environment.getStorageDirectory().getAbsolutePath()).isEqualTo("/storage"); in getStorageDirectory_storageDirectoryUnset_shouldReturnDefaultDirectory()
51 File defaultDir = Environment.getStorageDirectory(); in setStorageDirectory_shouldReturnDirectory()
55 File override = Environment.getStorageDirectory(); in setStorageDirectory_shouldReturnDirectory()
62 assertThat(defaultDir).isEqualTo(Environment.getStorageDirectory()); in setStorageDirectory_shouldReturnDirectory()
67 assertThat(Environment.getExternalStorageDirectory().exists()).isTrue(); in getExternalStorageDirectory_shouldReturnDirectory()
73 File defaultDir = Environment.getExternalStorageDirectory(); in setExternalStorageDirectory_shouldReturnDirectory()
[all …]
/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/python/google-api-python-client/docs/dyn/
Dtagmanager_v2.accounts.containers.environments.html82 <p class="firstline">Creates a GTM Environment.</p>
85 <p class="firstline">Deletes a GTM Environment.</p>
88 <p class="firstline">Gets a GTM Environment.</p>
97 <p class="firstline">Re-generates the authorization code for a GTM Environment.</p>
100 <p class="firstline">Updates a GTM Environment.</p>
109 <pre>Creates a GTM Environment.
116 { # Represents a Google Tag Manager Environment. Note that a user can create, delete and update env…
118 &quot;authorizationCode&quot;: &quot;A String&quot;, # The environment authorization code.
122 …&quot;description&quot;: &quot;A String&quot;, # The environment description. Can be set or change…
123 …t;: True or False, # Whether or not to enable debug by default for the environment. @mutable tagma…
[all …]
Dtagmanager_v1.accounts.containers.environments.html82 <p class="firstline">Creates a GTM Environment.</p>
85 <p class="firstline">Deletes a GTM Environment.</p>
88 <p class="firstline">Gets a GTM Environment.</p>
94 <p class="firstline">Updates a GTM Environment.</p>
103 <pre>Creates a GTM Environment.
111 { # Represents a Google Tag Manager Environment. Note that a user can create, delete and update env…
113 &quot;authorizationCode&quot;: &quot;A String&quot;, # The environment authorization code.
117 …&quot;description&quot;: &quot;A String&quot;, # The environment description. Can be set or change…
118 … True or False, # Whether or not to enable debug by default on for the environment. @mutable tagma…
119 …environmentId&quot;: &quot;A String&quot;, # GTM Environment ID uniquely identifies the GTM Enviro…
[all …]
Ddialogflow_v2.projects.agent.environments.html92 <p class="firstline">Creates an agent environment.</p>
95 <p class="firstline">Deletes the specified agent environment.</p>
98 <p class="firstline">Retrieves the specified agent environment.</p>
101 <p class="firstline">Gets the history of the specified environment.</p>
113environment. This method allows you to deploy new agent versions into the environment. When an env…
122 <pre>Creates an agent environment.
125 …parent: string, Required. The agent to create an environment for. Supported formats: - `projects//…
129 …r agent. When you save the draft agent, it is published to the default environment. When you creat…
130 …: &quot;A String&quot;, # Optional. The agent version loaded into this environment. Supported form…
131 … String&quot;, # Optional. The developer-provided description for this environment. The maximum le…
[all …]
Ddialogflow_v2.projects.locations.agent.environments.html92 <p class="firstline">Creates an agent environment.</p>
95 <p class="firstline">Deletes the specified agent environment.</p>
98 <p class="firstline">Retrieves the specified agent environment.</p>
101 <p class="firstline">Gets the history of the specified environment.</p>
113environment. This method allows you to deploy new agent versions into the environment. When an env…
122 <pre>Creates an agent environment.
125 …parent: string, Required. The agent to create an environment for. Supported formats: - `projects//…
129 …r agent. When you save the draft agent, it is published to the default environment. When you creat…
130 …: &quot;A String&quot;, # Optional. The agent version loaded into this environment. Supported form…
131 … String&quot;, # Optional. The developer-provided description for this environment. The maximum le…
[all …]
Dtagmanager_v1.accounts.containers.reauthorize_environments.html82 <p class="firstline">Re-generates the authorization code for a GTM Environment.</p>
91 <pre>Re-generates the authorization code for a GTM Environment.
96 environmentId: string, The GTM Environment ID. (required)
100 { # Represents a Google Tag Manager Environment. Note that a user can create, delete and update env…
102 &quot;authorizationCode&quot;: &quot;A String&quot;, # The environment authorization code.
106 …&quot;description&quot;: &quot;A String&quot;, # The environment description. Can be set or change…
107 … True or False, # Whether or not to enable debug by default on for the environment. @mutable tagma…
108 …environmentId&quot;: &quot;A String&quot;, # GTM Environment ID uniquely identifies the GTM Enviro…
109 …, # The fingerprint of the GTM environment as computed at storage time. This value is recomputed w…
110 …&quot;name&quot;: &quot;A String&quot;, # The environment display name. Can be set or changed only…
[all …]
Dcloudshell_v1.users.environments.html78 <code><a href="#addPublicKey">addPublicKey(environment, body=None, x__xgafv=None)</a></code></p>
79 …>Adds a public SSH key to an environment, allowing clients with the corresponding private key to c…
82 …ine">Sends OAuth credentials to a running environment on behalf of a user. When this completes, th…
88 <p class="firstline">Gets an environment. Returns NOT_FOUND if the environment does not exist.</p>
90 …<code><a href="#removePublicKey">removePublicKey(environment, body=None, x__xgafv=None)</a></code>…
91 …tline">Removes a public SSH key from an environment. Clients will no longer be able to connect to …
94environment, allowing clients to connect to it. The returned operation will contain an instance of…
97 … <code class="details" id="addPublicKey">addPublicKey(environment, body=None, x__xgafv=None)</code>
98 …>Adds a public SSH key to an environment, allowing clients with the corresponding private key to c…
101environment: string, Environment this key should be added to, e.g. `users/me/environments/default`…
[all …]
Dapigee_v1.organizations.envgroups.attachments.html82 <p class="firstline">Creates a new attachment of an environment to an environment group.</p>
85 <p class="firstline">Deletes an environment group attachment.</p>
88 <p class="firstline">Gets an environment group attachment.</p>
91 <p class="firstline">Lists all attachments of an environment group.</p>
103 <pre>Creates a new attachment of an environment to an environment group.
110 …roupAttachment is a resource which defines an attachment of an environment to an environment group.
111 …&quot;createdAt&quot;: &quot;A String&quot;, # Output only. The time at which the environment grou…
112 &quot;environment&quot;: &quot;A String&quot;, # Required. ID of the attached environment.
113 &quot;name&quot;: &quot;A String&quot;, # ID of the environment group attachment.
147 <pre>Deletes an environment group attachment.
[all …]
/external/python/cpython3/Doc/library/
Dvenv.rst20 site directories. Each virtual environment has its own Python binary (which
21 matches the version of the binary that was used to create this environment) and
30 …python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment>`__
41 .. note:: A virtual environment is a Python environment such that the Python
47 A virtual environment is a directory tree which contains Python executable
48 files and other files which indicate that it is a virtual environment.
52 environment is active, they install Python packages into the virtual
53 environment without needing to be told to do so explicitly.
55 When a virtual environment is active (i.e., the virtual environment's Python
58 environment, whereas :attr:`sys.base_prefix` and
[all …]
/external/python/google-api-python-client/googleapiclient/discovery_cache/documents/
Dcloudshell.v1alpha1.json26 … "description": "Mask specifying which fields in the environment should be updated.",
31 "$ref": "Environment"
38 "description": "Updates an existing environment.",
40 "$ref": "Environment"
49 "$ref": "Environment"
68 … "description": "Gets an environment. Returns NOT_FOUND if the environment does not exist.",
86environment, allowing clients to connect to it. The returned operation will contain an instance of…
119 …n": "Sends OAuth credentials to a running environment on behalf of a user. When this completes, th…
158 …"Adds a public SSH key to an environment, allowing clients with the corresponding private key to c…
183 …ion": "Removes a public SSH key from an environment. Clients will no longer be able to connect to …
[all …]
Dcloudshell.v1.json236 …"Adds a public SSH key to an environment, allowing clients with the corresponding private key to c…
241 "environment"
244 "environment": { object
245 … "description": "Environment this key should be added to, e.g. `users/me/environments/default`.",
252 "path": "v1/{+environment}:addPublicKey",
264 …n": "Sends OAuth credentials to a running environment on behalf of a user. When this completes, th…
292 … "description": "Gets an environment. Returns NOT_FOUND if the environment does not exist.",
310 "$ref": "Environment"
317 …ion": "Removes a public SSH key from an environment. Clients will no longer be able to connect to …
322 "environment"
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Denvironment.cc16 #include "tensorflow/lite/delegates/gpu/cl/environment.h"
29 absl::Status CreateEnvironment(Environment* result, bool shared, in CreateEnvironment()
46 *result = Environment(std::move(gpu), std::move(context), std::move(queue), in CreateEnvironment()
87 Environment::Environment(CLDevice&& device, CLContext&& context, in Environment() function in tflite::gpu::cl::Environment
95 Environment::Environment(Environment&& environment) in Environment() argument
96 : device_(std::move(environment.device_)), in Environment()
97 context_(std::move(environment.context_)), in Environment()
98 queue_(std::move(environment.queue_)), in Environment()
99 profiling_queue_(std::move(environment.profiling_queue_)), in Environment()
100 program_cache_(std::move(environment.program_cache_)) {} in Environment()
[all …]
/external/pigweed/pw_ide/py/pw_ide/
Dactivate.py19 1. Activate the Pigweed environment in your current shell (i.e., modify your
20 interactive shell's environment with Pigweed environment variables).
25 Using bash (using the environment Python):
26 source <({environment}/pigweed-venv/bin/python ./pw_ide/activate.py -s bash)
29 modified environment to a subprocess without affecting your current
35 Example (using the environment Python):
36 {environment}/pigweed-venv/bin/python ./pw_ide/activate.py -x 'pw ide cpp --list'
38 Example (using the environment Python on Windows):
39 {environment}/pigweed-venv/Scripts/pythonw.exe ./pw_ide/activate.py -x 'pw ide cpp --list'
41 3. Produce a JSON representation of the Pigweed activated environment (-O) or
[all …]
/external/libchrome/third_party/jinja2/
Dlexer.py196 def compile_rules(environment): argument
197 """Compiles all the rules from the environment into a list of rules."""
200 (len(environment.comment_start_string), 'comment',
201 e(environment.comment_start_string)),
202 (len(environment.block_start_string), 'block',
203 e(environment.block_start_string)),
204 (len(environment.variable_start_string), 'variable',
205 e(environment.variable_start_string))
208 if environment.line_statement_prefix is not None:
209 rules.append((len(environment.line_statement_prefix), 'linestatement',
[all …]
/external/cronet/third_party/googletest/src/googletest/test/
Dgoogletest-global-environment-unittest.py28 """Unit test for Google Test's global test environment behavior.
30 A user can specify a global test environment via
31 testing::AddGlobalTestEnvironment. Failures in the global environment should
35 googletest-global-environment-unittest_ (a program written with Google Test).
47 'googletest-global-environment-unittest_')
52 """Tests global test environment failures."""
60 # We should see the text of the global environment setup error.
61 self.assertIn('Canned environment setup error', txt)
75 # environment should be set up and torn down for each iteration.
84 'Global test environment set-up.'
[all …]
/external/pigweed/pw_env_setup/py/
Denvironment_test.py14 """Tests for env_setup.environment.
16 This tests the error-checking, context manager, and written environment scripts
17 of the Environment class.
19 Tests that end in "_ctx" modify the environment and validate it in-process.
21 Tests that end in "_written" write the environment to a file intended to be
22 evaluated by the shell, then launches the shell and then saves the environment.
23 This environment is then validated in the test process.
34 from pw_env_setup import environment
44 """Write env to a file then evaluate and save the resulting environment.
47 and dumps the environment to stdout. Parse that output into a dict and
[all …]
/external/python/google-auth-library-python/google/auth/
Denvironment_vars.py15 """Environment variables used by :mod:`google.auth`."""
19 """Environment variable defining default project.
22 environment variable is also used by the Google Cloud Python Library.
26 """Previously used environment variable defining the default project.
28 This environment variable is used instead of the current one in some
33 """Environment variable defining the location of Google application default
36 # The environment variable name which can replace ~/.config if set.
38 """Environment variable defines the location of Google Cloud SDK's config
44 """Environment variable providing an alternate hostname or host:port to be
47 This environment variable was originally named GCE_METADATA_ROOT. The system will
[all …]
/external/python/cpython3/Doc/using/
Dvenv-create.inc4 python3 -m venv /path/to/new/virtual/environment
12 used at environment creation time). It also creates an (initially empty)
45 ENV_DIR A directory to create the environment in.
50 Give the virtual environment access to the system
56 --clear Delete the contents of the environment directory if it
57 already exists, before environment creation.
58 --upgrade Upgrade the environment directory to use this version
61 environment (pip is bootstrapped by default)
63 environment.
67 Once an environment has been created, you may wish to activate it, e.g. by
[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/pigweed/pw_env_setup/
Ddocs.rst28 environment. The tooling is installed into your workspace, and makes no
36 of CIPD packages and sets up the Python virtual environment. The activate
37 command reinitializes a previously configured environment, and if none is found,
42 On Windows the scripts used to set up the environment are ``bootstrap.bat``
55 On POSIX systems, the environment can be deactivated by running ``deactivate``.
177 required for the environment, but cannot modify the environment of the parent
210 environment variables. Explanations of parts of ``config.json`` are described
270 environment`` setup stage. See the `Requirements Files documentation`_ for
280 A boolean value that can be used the give the Python virtual environment
284 By default environment setup will check that all submodules are present in
[all …]
/external/python/cpython3/Lib/venv/
D__init__.py2 Virtual environment (venv) package for Python. Based on PEP 405.
22 This class exists to allow virtual environment creation to be
24 behaviour when called upon to create a virtual environment.
27 *un*available to the created environment.
35 :param clear: If True, delete the contents of the environment directory if
36 it already exists, before environment creation.
38 virtual environment.
39 :param upgrade: If True, upgrade an existing virtual environment.
41 environment
42 :param prompt: Alternative terminal prefix for the environment.
[all …]
/external/cronet/base/
Denvironment_unittest.cc5 #include "base/environment.h"
30 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
37 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
65 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
70 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
76 // Now verify that the environment has the new variable. in TEST_F()
85 std::unique_ptr<Environment> env(Environment::Create()); in TEST_F()
89 // First set some environment variable. in TEST_F()
92 // Now verify that the environment has the new variable. in TEST_F()
95 // Finally verify that the environment variable was erased. in TEST_F()
/external/libpng/ci/
Dci_autotools.sh54 ci_info "environment option: \$CI_CONFIGURE_FLAGS: '$CI_CONFIGURE_FLAGS'"
55 ci_info "environment option: \$CI_MAKE: '$CI_MAKE'"
56 ci_info "environment option: \$CI_MAKE_FLAGS: '$CI_MAKE_FLAGS'"
57 ci_info "environment option: \$CI_CC: '$CI_CC'"
58 ci_info "environment option: \$CI_CC_FLAGS: '$CI_CC_FLAGS'"
59 ci_info "environment option: \$CI_CPP: '$CI_CPP'"
60 ci_info "environment option: \$CI_CPP_FLAGS: '$CI_CPP_FLAGS'"
61 ci_info "environment option: \$CI_AR: '$CI_AR'"
62 ci_info "environment option: \$CI_RANLIB: '$CI_RANLIB'"
63 ci_info "environment option: \$CI_LD: '$CI_LD'"
[all …]
/external/python/bumble/docs/mkdocs/src/development/
Dpython_environments.md4 When you don't want to install Bumble in your main/default python environment,
5 using a virtual environment, where the package and its dependencies can be
25 Conda is a convenient package manager and virtual environment.
26 The file `environment.yml` is a Conda environment file that you can use to create
27 a new Conda environment. Once created, you can simply activate this environment when
33 ### Create a new `bumble` Conda environment
35 $ conda env create -f environment.yml
37 This will create a new environment, named `bumble`, which you can then activate with:
42 ### Update an existing `bumble` environment
44 $ conda env update -f environment.yml

12345678910>>...247