Home
last modified time | relevance | path

Searched full:parent (Results 1 – 25 of 5513) sorted by relevance

12345678910>>...221

/external/e2fsprogs/lib/ext2fs/
Drbtree.c28 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_left() local
34 ext2fs_rb_set_parent(right, parent); in __rb_rotate_left()
36 if (parent) in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
39 parent->rb_left = right; in __rb_rotate_left()
41 parent->rb_right = right; in __rb_rotate_left()
51 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_right() local
57 ext2fs_rb_set_parent(left, parent); in __rb_rotate_right()
59 if (parent) in __rb_rotate_right()
61 if (node == parent->rb_right) in __rb_rotate_right()
[all …]
/external/blktrace/
Drbtree.c28 struct rb_node *parent = rb_parent(node); in __rb_rotate_left() local
34 rb_set_parent(right, parent); in __rb_rotate_left()
36 if (parent) in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
39 parent->rb_left = right; in __rb_rotate_left()
41 parent->rb_right = right; in __rb_rotate_left()
51 struct rb_node *parent = rb_parent(node); in __rb_rotate_right() local
57 rb_set_parent(left, parent); in __rb_rotate_right()
59 if (parent) in __rb_rotate_right()
61 if (node == parent->rb_right) in __rb_rotate_right()
[all …]
/external/fio/lib/
Drbtree.c28 struct rb_node *parent = rb_parent(node); in __rb_rotate_left() local
34 rb_set_parent(right, parent); in __rb_rotate_left()
36 if (parent) in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
39 parent->rb_left = right; in __rb_rotate_left()
41 parent->rb_right = right; in __rb_rotate_left()
51 struct rb_node *parent = rb_parent(node); in __rb_rotate_right() local
57 rb_set_parent(left, parent); in __rb_rotate_right()
59 if (parent) in __rb_rotate_right()
61 if (node == parent->rb_right) in __rb_rotate_right()
[all …]
/external/ltp/utils/ffsb-6.0-rc2/
Drbt.c44 node->parent = node->right = node->left = NULL; in rbnode_construct()
122 /* Otherwise, go up the tree until reaching the parent in rbnode_successor()
127 succ_node = node->parent; in rbnode_successor()
130 succ_node = succ_node->parent; in rbnode_successor()
155 /* Otherwise, go up the tree until reaching the parent in rbnode_predecessor()
160 pred_node = node->parent; in rbnode_predecessor()
163 pred_node = pred_node->parent; in rbnode_predecessor()
184 dup_node->right->parent = dup_node; in rbnode_duplicate()
191 dup_node->left->parent = dup_node; in rbnode_duplicate()
326 new_node->parent = cur_node; in rbtree_insert()
[all …]
/external/ltp/testcases/kernel/fs/fs_bind/bind/
D00_Descriptions.txt25 test01 - shared child to shared parent.
26 test02 - shared child to private parent.
27 test03 - shared child to slave parent.
28 test04 - shared child to unclonable parent.
29 test05 - private child to shared parent.
30 test06 - private child to private parent.
31 test07 - private child to slave parent.
33 test08 - private child to uncloneable parent.
34 test09 - slave child to shared parent.
35 test10 - slave child to private parent.
[all …]
Dtest2244 "${FS_BIND_ROOT}/bin/makedir" share parent
45 "${FS_BIND_ROOT}/bin/makedir" share parent/child1
46 "${FS_BIND_ROOT}/bin/makedir" share parent/child2
48 mount --bind parent parent/child2/
50 check parent parent/child2/
52 mount --bind "$disk3" parent/child2/child1
54 check parent/child1 parent/child2/child1
56 umount parent/child2/child1
58 check parent/child1 parent/child2/child1
60 mount --bind "$disk4" parent/child2/child1
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/tree/
DANTLRCommonTreeTest.m166 ANTLRCommonTree *parent = [ANTLRCommonTree newTreeWithTokenType:555];
167 parent.token.line = 1;
168 parent.token.charPositionInLine = 1;
177 // Add a child to the parent tree
178 [parent addChild:tree];
181 STAssertNotNil(parent, @"parent was nil");
182 if (parent != nil)
183 STAssertNotNil(parent.token, @"parent was nil");
184 …STAssertEquals((NSInteger)parent.token.line, (NSInteger)1, @"Tree should be at line 1 but is %d",
185 …STAssertEquals((NSInteger)parent.token.charPositionInLine, (NSInteger)1, @"Char position should be…
[all …]
/external/ltp/testcases/kernel/fs/fs_bind/move/
D00_Descriptions.txt25 test01 - shared child to shared parent.
26 test02 - shared subtree to private parent.
27 test03 - shared subtree to slave parent.
28 test04 - shared subtree to uncloneable parent.
29 test05 - private subtree to shared parent.
30 test06 - private subtree to private parent.
31 test07 - private subtree to slave parent.
32 test08 - private subtree to uncloneable parent.
33 test09 - slave subtree to shared parent.
34 test10 - slave subtree to private parent.
[all …]
/external/markdown/markdown/
Dblockprocessors.py32 def lastChild(self, parent): argument
34 if len(parent):
35 return parent[-1]
60 def test(self, parent, block): argument
68 expression. As the block type may be different depending on the parent
69 of the block (i.e. inside a list), the parent etree element is also
74 * ``parent``: A etree element which will be the parent of the block.
80 def run(self, parent, blocks): argument
88 Note that both the ``parent`` and ``etree`` keywords are pointers
94 to the parent, and should remove (``pop``) or add (``insert``) items to
[all …]
/external/ltp/testcases/kernel/fs/fs_bind/rbind/
Dtest3544 "${FS_BIND_ROOT}/bin/makedir" share parent
45 "${FS_BIND_ROOT}/bin/makedir" priv parent/child1
46 "${FS_BIND_ROOT}/bin/makedir" share parent/child2
48 mount --rbind "$disk3" parent/child1
50 mount --rbind parent parent/child2/
51 check parent parent/child2/
52 check parent/child1 parent/child2/child1
64 umount parent/child2/child1
66 check -n parent/child1 parent/child2/child1
68 umount parent/child1
[all …]
Dtest3444 "${FS_BIND_ROOT}/bin/makedir" share parent
45 "${FS_BIND_ROOT}/bin/makedir" share parent/child1
46 "${FS_BIND_ROOT}/bin/makedir" share parent/child2
48 mount --rbind "$disk3" parent/child1
50 mount --rbind parent parent/child2/
51 check parent parent/child2/
52 check parent/child1 parent/child2/child1
64 umount parent/child2/child1
65 check parent/child1 parent/child2/child1
67 umount parent/child1
[all …]
Dtest3644 "${FS_BIND_ROOT}/bin/makedir" share parent
45 "${FS_BIND_ROOT}/bin/makedir" unclone parent/child1
46 "${FS_BIND_ROOT}/bin/makedir" share parent/child2
48 mount --rbind "$disk3" parent/child1
50 mount --rbind parent parent/child2/
51 check parent parent/child2/
52 check -n parent/child1 parent/child2/child1
64 umount parent/child1
65 check parent/child1 parent/child2/child1
67 mount --rbind "$disk4" parent/child2/child1
[all …]
D00_Descriptions.txt26 test01 - shared child to shared parent.
27 test02 - shared child to private parent.
28 test03 - shared child to slave parent.
29 test04 - shared child to unclonable parent.
30 test05 - private child to shared parent.
31 test06 - private child to private parent.
32 test07 - private child to slave parent.
33 test08 - private child to uncloneable parent.
34 test09 - slave child to shared parent.
35 test10 - slave child to private parent.
[all …]
/external/slf4j/slf4j-api/src/test/java/org/slf4j/
DBasicMarkerTest.java112 Marker parent = factory.getMarker(PARENT_MARKER_STR); in testMultiAdd() local
115 parent.add(child); in testMultiAdd()
119 Iterator<Marker> iterator = parent.iterator(); in testMultiAdd()
127 Marker parent = factory.getMarker(NEW_PREFIX + PARENT_MARKER_STR); in testAddRemove() local
129 assertFalse(parent.contains(child)); in testAddRemove()
130 assertFalse(parent.contains(NEW_PREFIX + CHILD_MARKER_STR)); in testAddRemove()
131 assertFalse(parent.remove(child)); in testAddRemove()
133 parent.add(child); in testAddRemove()
135 assertTrue(parent.contains(child)); in testAddRemove()
136 assertTrue(parent.contains(NEW_PREFIX + CHILD_MARKER_STR)); in testAddRemove()
[all …]
/external/guice/core/test/com/google/inject/
DParentInjectorTest.java42 Injector parent = Guice.createInjector(bindsA); in testParentAndChildCannotShareExplicitBindings() local
44 parent.createChildInjector(bindsA); in testParentAndChildCannotShareExplicitBindings()
45 fail("Created the same explicit binding on both parent and child"); in testParentAndChildCannotShareExplicitBindings()
54 Injector parent = Guice.createInjector(); in testParentJitBindingWontClobberChildBinding() local
55 parent.createChildInjector(bindsA); in testParentJitBindingWontClobberChildBinding()
57 parent.getInstance(A.class); in testParentJitBindingWontClobberChildBinding()
58 fail("Created a just-in-time binding on the parent that's the same as a child's binding"); in testParentJitBindingWontClobberChildBinding()
70 Injector parent = Guice.createInjector(); in testChildCannotBindToAParentJitBinding() local
71 parent.getInstance(A.class); in testChildCannotBindToAParentJitBinding()
73 parent.createChildInjector(bindsA); in testChildCannotBindToAParentJitBinding()
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Drefpolicy.py53 def __init__(self, parent=None): argument
54 self.parent = None
62 should contain a reference to its parent (or None for a top-level
74 def __init__(self, parent=None): argument
75 PolicyBase.__init__(self, parent)
152 def __init__(self, parent=None): argument
153 PolicyBase.__init__(self, parent)
264 def __init__(self, context=None, parent=None): argument
271 Leaf.__init__(self, parent)
345 def __init__(self, name="", parent=None): argument
[all …]
/external/e2fsprogs/lib/support/
Ddict.c49 * program which uses dict to define, for instance, a macro called ``parent''.
59 #define parent dict_parent macro
95 lowleft->parent = upper; in rotate_left()
97 lower->parent = upparent = upper->parent; in rotate_left()
99 /* don't need to check for root node here because root->parent is in rotate_left()
100 the sentinel nil node, and root->parent->left points back to root */ in rotate_left()
110 upper->parent = lower; in rotate_left()
124 lowright->parent = upper; in rotate_right()
126 lower->parent = upparent = upper->parent; in rotate_right()
136 upper->parent = lower; in rotate_right()
[all …]
/external/python/cpython2/Doc/library/
Dimputil.rst46 .. method:: Importer.get_code(parent, modname, fqname)
50 *parent* specifies a parent module to define a context for importing.
53 *modname* specifies a single module (not dotted) within the parent.
59 If there is no parent, then modname==fqname.
85 .. method:: BuiltinImporter.get_code(parent, modname, fqname)
119 parent = determine_parent(globals)
120 q, tail = find_head_package(parent, name)
133 parent = sys.modules[pname]
134 assert globals is parent.__dict__
135 return parent
[all …]
/external/mesa3d/src/util/
Dralloc.c74 struct ralloc_header *parent; member
105 add_child(ralloc_header *parent, ralloc_header *info) in add_child() argument
107 if (parent != NULL) { in add_child()
108 info->parent = parent; in add_child()
109 info->next = parent->child; in add_child()
110 parent->child = info; in add_child()
128 ralloc_header *parent; in ralloc_size() local
138 info->parent = NULL; in ralloc_size()
144 parent = ctx != NULL ? get_header(ctx) : NULL; in ralloc_size()
146 add_child(parent, info); in ralloc_size()
[all …]
Dslab.c77 slab_get_element(struct slab_parent_pool *parent, in slab_get_element() argument
81 ((uint8_t*)&page[1] + (parent->element_size * index)); in slab_get_element()
101 * Create a parent pool for the allocation of same-sized objects.
107 slab_create_parent(struct slab_parent_pool *parent, in slab_create_parent() argument
111 mtx_init(&parent->mutex, mtx_plain); in slab_create_parent()
112 parent->element_size = ALIGN(sizeof(struct slab_element_header) + item_size, in slab_create_parent()
114 parent->num_elements = num_items; in slab_create_parent()
118 slab_destroy_parent(struct slab_parent_pool *parent) in slab_destroy_parent() argument
120 mtx_destroy(&parent->mutex); in slab_destroy_parent()
124 * Create a child pool linked to the given parent.
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/node/
DALoopIncCommand.java71 this._position_.parent(null); in setPosition()
76 if(node.parent() != null) in setPosition()
78 node.parent().removeChild(node); in setPosition()
81 node.parent(this); in setPosition()
96 this._variable_.parent(null); in setVariable()
101 if(node.parent() != null) in setVariable()
103 node.parent().removeChild(node); in setVariable()
106 node.parent(this); in setVariable()
121 this._start_.parent(null); in setStart()
126 if(node.parent() != null) in setStart()
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_nodehelper.cpp27 CXFA_Node* CXFA_NodeHelper::ResolveNodes_GetOneChild(CXFA_Node* parent, in ResolveNodes_GetOneChild() argument
30 if (!parent) { in ResolveNodes_GetOneChild()
35 NodeAcc_TraverseAnySiblings(parent, uNameHash, &siblings, bIsClassName); in ResolveNodes_GetOneChild()
48 CXFA_Node* parent = ResolveNodes_GetParent(pNode, XFA_LOGIC_NoTransparent); in CountSiblings() local
49 if (!parent) in CountSiblings()
52 parent->GetElementType(), pNode->GetElementType(), XFA_XDPPACKET_UNKNOWN); in CountSiblings()
54 parent = ResolveNodes_GetParent(pNode, XFA_LOGIC_Transparent); in CountSiblings()
55 if (!parent) { in CountSiblings()
60 return NodeAcc_TraverseSiblings(parent, pNode->GetClassHashCode(), in CountSiblings()
63 return NodeAcc_TraverseSiblings(parent, pNode->GetNameHash(), pSiblings, in CountSiblings()
[all …]
/external/openssh/openbsd-compat/
Dsys-tree.h57 * - each red node (except for the root) has a black parent,
316 struct type *rbe_parent; /* parent element */ \
327 #define RB_SET(elm, parent, field) do { \ argument
328 RB_PARENT(elm, field) = parent; \
410 struct type *parent, *gparent, *tmp; \
411 while ((parent = RB_PARENT(elm, field)) && \
412 RB_COLOR(parent, field) == RB_RED) { \
413 gparent = RB_PARENT(parent, field); \
414 if (parent == RB_LEFT(gparent, field)) { \
418 RB_SET_BLACKRED(parent, gparent, field);\
[all …]
/external/clang/lib/Index/
DIndexTypeSourceInfo.cpp20 const NamedDecl *Parent; member in __anon3b6b96390111::TypeIndexer
28 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent, in TypeIndexer() argument
30 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer()
32 assert(Parent); in TypeIndexer()
33 Relations.emplace_back((unsigned)SymbolRole::RelationBaseOf, Parent); in TypeIndexer()
41 Parent, ParentDC, SymbolRoleSet(), in VisitTypedefTypeLoc()
75 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
90 Parent, ParentDC, SymbolRoleSet(), in VisitTagTypeLoc()
96 Parent, ParentDC, SymbolRoleSet()); in VisitObjCInterfaceTypeLoc()
102 Parent, ParentDC, SymbolRoleSet()); in VisitObjCObjectTypeLoc()
[all …]
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c30 * Case 1: Parent opens a file and duplicates it, places locks using
71 static int parent, child1, child2, status; variable
85 if ((syscall(__NR_gettid)) == parent) { in alarm_sig()
86 tst_resm(TINFO, "Alarm caught by parent"); in alarm_sig()
136 * send signal to parent here to tell parent we have locked the in dochild1()
137 * file, thus allowing parent to proceed in dochild1()
139 if ((kill(parent, SIGUSR1)) < 0) { in dochild1()
140 perror("child1 signal to parent failed"); in dochild1()
145 * set alarm to break pause if parent fails to signal then spin till in dochild1()
146 * parent ready in dochild1()
[all …]

12345678910>>...221