Home
last modified time | relevance | path

Searched full:container (Results 1 – 25 of 4473) sorted by relevance

12345678910>>...179

/external/autotest/site_utils/lxc/
Dcontainer_unittest.py18 from autotest_lib.site_utils.lxc import container as container_module
25 """Unit tests for the Container class."""
33 # Check if a base container exists on this machine and download one if
57 # Make a container that just points to the base container.
58 container = lxc.Container.create_from_existing_dir(
62 # the on-disk container is valid.
63 self.assertFalse(container.is_running())
72 container = lxc.Container.create_from_existing_dir(self.test_dir,
75 container.refresh_status()
80 with self.createContainer() as container:
[all …]
Dcontainer_bucket.py21 from autotest_lib.site_utils.lxc.container import Container
33 # Timeout (in seconds) for container pool operations.
40 """A wrapper class to interact with containers in a specific container path.
56 # Pass in the container path so that the bucket is hermetic (i.e. so
57 # that if the container path is customized, the base image doesn't
58 # fall back to using the default container path).
61 container = BaseImage(self.container_path).get()
71 base_container=container,
80 include the base container, or any containers owned by the container
86 indexed by container name.
[all …]
Dcontainer.py27 # Naming convention of test container, e.g., test_300_1422862512_2424, where:
29 # 1422862512: The tick when container is created.
30 # 2424: The PID of autoserv that starts the container.
32 # Name of the container ID file.
52 @param path: Path to a directory where the container ID will be
63 @param path: Path to check for a serialized container ID.
65 @return: A container ID if one is found on the given path, or None
82 # container ids have migrated to str.
89 """Creates a new container ID.
106 class Container(object): class
[all …]
Dbase_image_unittest.py22 # A reference to an existing base container that can be copied for tests that
23 # need a base container. This is an optimization.
25 # The reference container can either be a reference to an existing container, or
26 # to a container that was downloaded by this test. If the latter, then it needs
46 self.fail('Base container was not valid.\n%s' %
52 base = lxc.Container.clone(src=reference_container,
58 # Precondition: ensure base exists and is a valid container.
63 # Verify that the base container was cleaned up.
74 # snapshots of full container clones. BaseImage cleanup code assumes
75 # that the base container is not a snapshot.
[all …]
Dcontainer_factory.py11 from autotest_lib.site_utils.lxc import container
20 """A factory class for creating LXC container objects."""
22 def __init__(self, base_container, container_class=container.Container,
27 @param base_container: The base container from which other containers
29 @param container_class: (optional) The Container class to instantiate.
30 By default, lxc.Container is instantiated.
33 @param force_cleanup: (optional) If True, if a container is created with
35 container, the existing container is destroyed,
36 and the new container created in its place. By
53 """Creates a new container.
[all …]
Dbase_image.py15 from autotest_lib.site_utils.lxc.container import Container
19 """A class that manages a base container.
21 Instantiating this class will cause it to search for a base container under
24 container.
26 The actual base container can be obtained by calling the get() method.
28 Calling cleanup() will delete the base container along with all of its
37 If a valid base container already exists on this machine, the BaseImage
39 install a base container.
41 @param container_path: The LXC path for the base container.
42 @param base_name: The base container name.
[all …]
Dlxc_functional_test.py42 # container, so it's prefered to avoid dependency on devserver.
48 # Name of test script file to run in container.
50 # Test script to run in container to verify autotest code setup.
72 raise Exception('The container\\\'s hostname must start with `test-`.')
184 """Test setup base container works.
188 logging.info('Rebuild base container in folder %s.', container_path)
191 logging.info('Base container created: %s', image.get().name)
195 """Test container can be created from base container.
198 @param container_id: ID of the test container.
200 container failures.
[all …]
Dconfig.py7 container. It reads the settings from a setting file (ssp_deploy_config), and
32 source: config file in host to be copied to container.
33 target: config file's location inside container.
35 container. If it's set to false, the existing file inside container will
37 permission: Permission to set to the config file inside container.
48 /etc/resolv.conf inside container.
49 2. Copy all files in ssh to /root/.ssh in container.
53 source: a folder in host to be mounted in container.
54 target: the folder's location inside container.
55 mount: true to mount the source folder onto the target inside container.
[all …]
Dzygote.py11 from autotest_lib.site_utils.lxc import Container
17 class Zygote(Container):
18 """A Container that implements post-bringup configuration.
23 """Initialize an object of LXC container with given attribute values.
25 @param container_path: Directory that stores the container.
26 @param name: Name of the container.
28 container.
29 @param src: An optional source container. If provided, the source
30 continer is cloned, and the new container will point to the
38 of the new container, for testing purposes.
[all …]
/external/python/google-api-python-client/docs/dyn/
Dtagmanager_v2.accounts.containers.html99 <p class="firstline">Creates a Container.</p>
102 <p class="firstline">Deletes a Container.</p>
105 <p class="firstline">Gets a Container.</p>
114 <p class="firstline">Updates a Container.</p>
118 <pre>Creates a Container.
125 …sents a Google Tag Manager Container, which specifies the platform tags will run on, manages works…
126 "publicId": "A String", # Container Public ID.
127 "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
128 "domainName": [ # List of domain names associated with the Container.
131 "notes": "A String", # Container Notes.
[all …]
Dtagmanager_v1.accounts.containers.html119 <p class="firstline">Creates a Container.</p>
122 <p class="firstline">Deletes a Container.</p>
125 <p class="firstline">Gets a Container.</p>
131 <p class="firstline">Updates a Container.</p>
135 <pre>Creates a Container.
142 { # Represents a Google Tag Manager Container.
143 "timeZoneId": "A String", # Container Time Zone ID.
147 "timeZoneCountryId": "A String", # Container Country ID.
148 "publicId": "A String", # Container Public ID.
149 "containerId": "A String", # The Container ID uniquely identifies the GTM Container.
[all …]
Dtagmanager_v2.accounts.containers.version_headers.html79 <p class="firstline">Gets the latest container version header</p>
82 <p class="firstline">Lists all Container Versions of a GTM Container.</p>
89 <pre>Gets the latest container version header
92 …parent: string, GTM Container's API relative path. Example: accounts/{account_id}/containers/{cont…
97 { # Represents a Google Tag Manager Container Version Header.
98 "name": "A String", # Container version display name.
99 "deleted": True or False, # A value of true indicates this container version has been deleted.
100 "numMacros": "A String", # Number of macros in the container version.
101 "numVariables": "A String", # Number of variables in the container version.
102 "numTags": "A String", # Number of tags in the container version.
[all …]
Dtagmanager_v1.accounts.permissions.html79 <p class="firstline">Creates a user's Account & Container Permissions.</p>
85 <p class="firstline">Gets a user's Account & Container Permissions.</p>
88 …">List all users that have access to the account along with Account and Container Permissions gran…
91 <p class="firstline">Updates a user's Account & Container Permissions.</p>
95 <pre>Creates a user's Account & Container Permissions.
102 { # Represents a user's permissions to an account and its container.
103 "containerAccess": [ # GTM Container access permissions.
104 { # Defines the Google Tag Manager Container access permissions.
105 "containerId": "A String", # GTM Container ID.
106 …"permission": [ # List of Container permissions. Valid container permissions are: read, edit, dele…
[all …]
Dtagmanager_v2.accounts.user_permissions.html79 <p class="firstline">Creates a user's Account & Container access.</p>
85 <p class="firstline">Gets a user's Account & Container access.</p>
88 …">List all users that have access to the account along with Account and Container user access gran…
94 <p class="firstline">Updates a user's Account & Container access.</p>
98 <pre>Creates a user's Account & Container access.
105 { # Represents a user's permissions to an account and its container.
106 "containerAccess": [ # GTM Container access permissions.
107 { # Defines the Google Tag Manager Container access permissions.
108 "containerId": "A String", # GTM Container ID.
109 "permission": "A String", # List of Container permissions.
[all …]
/external/cros/system_api/dbus/vm_cicerone/
Dcicerone_service.proto46 // Message sent to cicerone when requesting a token for linking to a container
52 // Name of the container within the VM.
61 // A token that should be passed into the container to identify itself. This
66 // Message sent to cicerone to check whether or not a specific container is
72 // Name of the container within the VM.
81 // True if the container is running, false otherwise.
87 // Name of the VM the container is in.
94 // Message used in the signal for when a container has started up.
96 // Name of the VM the container is in.
99 // Name of the container within the VM.
[all …]
/external/libchrome/base/
Dstl_util.h32 template <typename Container, typename Predicate>
33 void IterateAndEraseIf(Container& container, Predicate pred) { in IterateAndEraseIf() argument
34 for (auto it = container.begin(); it != container.end();) { in IterateAndEraseIf()
36 it = container.erase(it); in IterateAndEraseIf()
46 template <typename Container>
47 constexpr auto size(const Container& c) -> decltype(c.size()) {
58 template <typename Container>
59 constexpr auto empty(const Container& c) -> decltype(c.empty()) {
75 template <typename Container>
76 constexpr auto data(Container& c) -> decltype(c.data()) {
[all …]
/external/autotest/site_utils/
Dlxc_cleanup.py9 container used to run the test will be orphaned. This adds overhead to the
12 This module also checks if the test job associated with a container has
14 container. To avoid racing condition, this only applies to job finished at least
34 # The cutoff time to declare a test job is completed and container is orphaned.
36 # is still in the process of destroying the container it used.
39 def is_container_orphaned(container): argument
40 """Check if a container is orphaned.
42 A container is orphaned if any of these condition is True:
43 1. The autoserv process created the container is no longer running.
46 @param container: A Container object.
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Dcontainer.cc1 #include "dynamic_depth/container.h"
14 "http://ns.google.com/photos/dd/1.0/container/";
19 Container::Container() {} in Container() function in dynamic_depth::Container
21 void Container::GetNamespaces( in GetNamespaces()
27 ns_name_href_map->emplace(DynamicDepthConst::Container(), kNamespaceHref); in GetNamespaces()
31 std::unique_ptr<Container> Container::FromItems( in FromItems()
38 std::unique_ptr<Container> container(new Container()); in FromItems() local
39 container->items_ = std::move(*items); in FromItems()
41 container->items_.erase( in FromItems()
43 container->items_.begin(), container->items_.end(), in FromItems()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/extensions/compactnotation/
DCompactConstructorExampleTest.java41 assertEquals(new Container(), obj); in test1()
46 assertEquals(new Container("title"), obj); in test2()
50 Container obj = (Container) load("example3.yaml"); in test3()
51 assertEquals(new Container("title3"), obj); in test3()
60 Container container = (Container) obj; in test4() local
62 assertEquals(new Container("title4"), obj); in test4()
63 assertEquals("title4", container.getTitle()); in test4()
64 assertEquals("child4", container.getName()); in test4()
65 assertEquals("444", container.getId()); in test4()
71 Container container = (Container) obj; in test5() local
[all …]
/external/clang/test/SemaObjC/
Dcircular-container.m57 …]; // expected-warning {{adding '_array' to '_array' might cause circular dependency in container}}
58 …cted-warning {{adding '_dictionary' to '_dictionary' might cause circular dependency in container}}
59 …_set]; // expected-warning {{adding '_set' to '_set' might cause circular dependency in container}}
60 …cted-warning {{adding '_countedSet' to '_countedSet' might cause circular dependency in container}}
61 …cted-warning {{adding '_orderedSet' to '_orderedSet' might cause circular dependency in container}}
65 …ddObject:a]; // expected-warning {{adding 'a' to 'a' might cause circular dependency in container}}
69 …Key:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular dependency in container}}
73 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
77 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
81 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DAnyTest.java47 TestAny container = TestAny.newBuilder() in testAnyGeneratedApi() local
50 assertTrue(container.getValue().is(TestAllTypes.class)); in testAnyGeneratedApi()
51 assertFalse(container.getValue().is(TestAny.class)); in testAnyGeneratedApi()
53 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi()
59 TestAny wrongMessage = container.getValue().unpack(TestAny.class); in testAnyGeneratedApi()
66 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi()
69 container = containerBuilder.build(); in testAnyGeneratedApi()
71 TestAllTypes parsingFailed = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi()
83 TestAny container = TestAny.newBuilder() in testCustomTypeUrls() local
88 container.getValue().getTypeUrl()); in testCustomTypeUrls()
[all …]
/external/libcxx/test/libcxx/debug/containers/
Ddb_sequence_container_iterators.pass.cpp18 // test container debugging
30 template <class Container, ContainerType CT>
31 struct SequenceContainerChecks : BasicContainerChecks<Container, CT> {
32 using Base = BasicContainerChecks<Container, CT>;
33 using value_type = typename Container::value_type;
34 using allocator_type = typename Container::allocator_type;
35 using iterator = typename Container::iterator;
36 using const_iterator = typename Container::const_iterator;
79 Container C = makeContainer(1); in RemoveFirstElem()
85 Container C = {1, 1, 1, 1}; in RemoveFirstElem()
[all …]
/external/clang/include/clang/AST/
DAttrIterator.h47 template <typename SpecificAttr, typename Container = AttrVec>
49 typedef typename Container::const_iterator Iterator;
114 template <typename SpecificAttr, typename Container>
115 inline specific_attr_iterator<SpecificAttr, Container>
116 specific_attr_begin(const Container& container) { in specific_attr_begin() argument
117 return specific_attr_iterator<SpecificAttr, Container>(container.begin()); in specific_attr_begin()
119 template <typename SpecificAttr, typename Container>
120 inline specific_attr_iterator<SpecificAttr, Container>
121 specific_attr_end(const Container& container) { in specific_attr_end() argument
122 return specific_attr_iterator<SpecificAttr, Container>(container.end()); in specific_attr_end()
[all …]
/external/webrtc/webrtc/system_wrappers/include/
Dstl_util.h37 // For a range within a container of pointers, calls delete (non-array version)
55 // For a range within a container of pairs, calls delete (non-array version) on
59 // container may call the hash function on the iterator when it is advanced,
73 // For a range within a container of pairs, calls delete (non-array version) on
86 // For a range within a container of pairs, calls delete.
133 // STLDeleteElements() deletes all the elements in an STL container and clears
134 // the container. This function is suitable for use with a vector, set,
135 // hash_set, or any other STL container which defines sensible begin(), end(),
138 // If container is NULL, this function is a no-op.
141 // STLElementDeleter (defined below), which ensures that your container's
[all …]
/external/sfntly/cpp/src/sfntly/port/
Djava_iterator.h38 template <typename ReturnType, typename Container,
39 typename ContainerBase = Container>
41 public RefCounted< PODIterator<ReturnType, Container> > {
43 explicit PODIterator(Container* container) : container_(container) {} in PODIterator() argument
59 Container* container() { return container_; } in container() function
62 Container* container_; // Dumb pointer is used to avoid circular ref-counting
65 template <typename ReturnType, typename Container,
66 typename ContainerBase = Container>
68 public RefCounted< RefIterator<ReturnType, Container> > {
70 explicit RefIterator(Container* container) : container_(container) {} in RefIterator() argument
[all …]

12345678910>>...179