/third_party/icu/icu4c/source/test/cintltst/ |
D | calltest.c | 21 void addUtility(TestNode** root); 22 void addBreakIter(TestNode** root); 23 void addStandardNamesTest(TestNode **root); 24 void addFormatTest(TestNode** root); 25 void addConvert(TestNode** root); 26 void addCollTest(TestNode** root); 27 void addComplexTest(TestNode** root); 28 void addBidiTransformTest(TestNode** root); 29 void addUDataTest(TestNode** root); 30 void addUTF16Test(TestNode** root); [all …]
|
D | cutiltst.c | 26 void addHashtableTest(TestNode** root); 27 void addCStringTest(TestNode** root); 28 void addTrieTest(TestNode** root); 29 void addTrie2Test(TestNode** root); 30 void addUCPTrieTest(TestNode** root); 31 void addEnumerationTest(TestNode** root); 32 void addPosixTest(TestNode** root); 33 void addSortTest(TestNode** root); 35 void addUtility(TestNode** root); 37 void addUtility(TestNode** root) in addUtility() argument [all …]
|
D | cformtst.c | 40 void addURegionTest(TestNode** root); 41 void addUListFmtTest(TestNode** root); 42 void addUNumberFormatterTest(TestNode** root); 43 void addUFormattedValueTest(TestNode** root); 44 void addUNumberRangeFormatterTest(TestNode** root); 46 void addFormatTest(TestNode** root); 48 void addFormatTest(TestNode** root) in addFormatTest() argument 50 addCalTest(root); in addFormatTest() 51 addDateForTest(root); in addFormatTest() 52 addDateTimePatternGeneratorTest(root); in addFormatTest() [all …]
|
/third_party/cJSON/tests/ |
D | cjson_add.c | 50 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_add_null() local 53 cJSON_AddNullToObject(root, "null"); in cjson_add_null_should_add_null() 55 TEST_ASSERT_NOT_NULL(null = cJSON_GetObjectItemCaseSensitive(root, "null")); in cjson_add_null_should_add_null() 58 cJSON_Delete(root); in cjson_add_null_should_add_null() 63 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_with_null_pointers() local 66 TEST_ASSERT_NULL(cJSON_AddNullToObject(root, NULL)); in cjson_add_null_should_fail_with_null_pointers() 68 cJSON_Delete(root); in cjson_add_null_should_fail_with_null_pointers() 73 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_on_allocation_failure() local 77 TEST_ASSERT_NULL(cJSON_AddNullToObject(root, "null")); in cjson_add_null_should_fail_on_allocation_failure() 81 cJSON_Delete(root); in cjson_add_null_should_fail_on_allocation_failure() [all …]
|
D | old_utils_tests.c | 54 cJSON *root = NULL; in json_pointer_tests() local 69 root = cJSON_Parse(json); in json_pointer_tests() 71 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, ""), root); in json_pointer_tests() 72 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo"), cJSON_GetObjectItem(root, "foo")); in json_pointer_tests() 73 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 74 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 75 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/"), cJSON_GetObjectItem(root, "")); in json_pointer_tests() 76 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/a~1b"), cJSON_GetObjectItem(root, "a/b")); in json_pointer_tests() 77 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c%d"), cJSON_GetObjectItem(root, "c%d")); in json_pointer_tests() 78 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c^f"), cJSON_GetObjectItem(root, "c^f")); in json_pointer_tests() [all …]
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
D | test_misc.py | 26 t = tkinter.Toplevel(self.root, name='top') 31 t = tkinter.Toplevel(self.root) 39 root = self.root 40 root.tk_setPalette('black') 41 self.assertEqual(root['background'], 'black') 42 root.tk_setPalette('white') 43 self.assertEqual(root['background'], 'white') 46 root.tk_setPalette, 'spam') 48 root.tk_setPalette(background='black') 49 self.assertEqual(root['background'], 'black') [all …]
|
D | test_geometry_managers.py | 18 pack = tkinter.Toplevel(self.root, name='pack') 48 self.root.update() 79 self.root.update() 124 self.root.update() 166 self.root.update() 207 self.root.update() 262 self.root.update() 266 self.root.update() 284 t = tkinter.Toplevel(self.root, width=300, height=200, bd=0) 289 self.root.update() [all …]
|
D | test_variables.py | 25 self.root = Tcl() 28 del self.root 34 return self.root.getboolean(self.root.call("info", "exists", *args)) 37 v = Variable(self.root) 42 v = Variable(self.root, "sample string", "varname") 48 v = Variable(self.root, "sample string", "varname") 56 v1 = Variable(self.root, name="name") 57 v2 = Variable(self.root, name="name") 68 v1 = Variable(self.root, name="abc") 69 v2 = Variable(self.root, name="abc") [all …]
|
/third_party/skia/src/ports/skia_ohos/ |
D | HmSymbolConfig_ohos.cpp | 217 int HmSymbolConfig_OHOS::checkConfigFile(const char* fname, Json::Value& root) in checkConfigFile() argument 227 bool isJson = jsonReader->parse(data, data + size, &root, &errs); in checkConfigFile() 261 Json::Value root; in parseConfigOfHmSymbol() local 262 int err = checkConfigFile(fullname, root); in parseConfigOfHmSymbol() 272 if (!root.isMember(key)) { in parseConfigOfHmSymbol() 275 if (!root[key].isArray()) { in parseConfigOfHmSymbol() 281 parseSymbolAnimations(root[key], key); in parseConfigOfHmSymbol() 283 parseSymbolLayersGrouping(root[key]); in parseConfigOfHmSymbol() 286 root.clear(); in parseConfigOfHmSymbol() 292 void HmSymbolConfig_OHOS::parseSymbolAnimations(const Json::Value& root, const char* key) in parseSymbolAnimations() argument [all …]
|
/third_party/node/deps/v8/src/torque/ |
D | instance-type-generator.cc | 59 std::unique_ptr<InstanceTypeTree> root; in BuildInstanceTypeTree() local 63 if (root != nullptr) in BuildInstanceTypeTree() 64 Error("Expected only one root class type. Found: ", root->type->name(), in BuildInstanceTypeTree() 67 root = std::move(type_tree); in BuildInstanceTypeTree() 72 return root; in BuildInstanceTypeTree() 76 void PropagateInstanceTypeConstraints(InstanceTypeTree* root) { in PropagateInstanceTypeConstraints() argument 77 for (auto& child : root->children) { in PropagateInstanceTypeConstraints() 79 if (child->start < root->start) root->start = child->start; in PropagateInstanceTypeConstraints() 80 if (child->end > root->end) root->end = child->end; in PropagateInstanceTypeConstraints() 81 root->num_values += child->num_values; in PropagateInstanceTypeConstraints() [all …]
|
/third_party/cJSON/ |
D | test.c | 43 static int print_preallocated(cJSON *root) in print_preallocated() argument 53 out = cJSON_Print(root); in print_preallocated() 75 if (!cJSON_PrintPreallocated(root, buf, (int)len, 1)) { in print_preallocated() 92 if (cJSON_PrintPreallocated(root, buf_fail, (int)len_fail, 1)) { in print_preallocated() 112 cJSON *root = NULL; in create_objects() local 168 root = cJSON_CreateObject(); in create_objects() 169 cJSON_AddItemToObject(root, "name", cJSON_CreateString("Jack (\"Bee\") Nimble")); in create_objects() 170 cJSON_AddItemToObject(root, "format", fmt = cJSON_CreateObject()); in create_objects() 178 if (print_preallocated(root) != 0) { in create_objects() 179 cJSON_Delete(root); in create_objects() [all …]
|
/third_party/selinux/libsepol/cil/test/unit/ |
D | test_cil_resolve_ast.c | 80 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name() 82 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name() 104 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name_invalid_type_neg() 106 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name_invalid_type_neg() 118 test_db->ast->root = NULL; in test_cil_resolve_ast_curr_null_neg() 120 int rc = cil_resolve_ast(test_db, test_db->ast->root); in test_cil_resolve_ast_curr_null_neg() 143 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow() 145 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next->next, args); in test_cil_resolve_roleallow() 162 int rc1=cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow_srcdecl_neg() 165 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next, args); in test_cil_resolve_roleallow_srcdecl_neg() [all …]
|
D | test_cil_copy_ast.c | 65 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list() 87 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist() 111 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist_extra() 156 test_ast_node->parent = test_db->ast->root; in test_cil_copy_block() 159 cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_copy_block() 200 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head, test_ast_node); in test_cil_copy_perm() 203 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head->next, test_ast_node); in test_cil_copy_perm() 206 …cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head->next->next, test_ast… in test_cil_copy_perm() 224 test_ast_node->parent = test_db->ast->root; in test_cil_copy_class() 227 cil_gen_class(test_db, test_tree->root->cl_head->cl_head, test_ast_node); in test_cil_copy_class() [all …]
|
D | test_cil_build_ast.c | 70 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list() 101 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_currnull_neg() 132 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_listnull_neg() 164 int rc = cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_set_to_list() 188 test_tree->root->cl_head = NULL; in test_cil_set_to_list_cl_head_null_neg() 190 int rc = cil_set_to_list(test_tree->root, cil_l, 1); in test_cil_set_to_list_cl_head_null_neg() 201 int rc = cil_set_to_list(test_tree->root, NULL, 1); in test_cil_set_to_list_listnull_neg() 218 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block() 221 int rc = cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_gen_block() 240 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block_justblock_neg() [all …]
|
/third_party/python/Lib/idlelib/ |
D | macosx.py | 23 root = tkinter.Tk() 24 ws = root.tk.call('tk', 'windowingsystem') 29 elif 'AppKit' in root.tk.call('winfo', 'server', '.'): 33 root.destroy() 71 def tkVersionWarning(root): argument 81 patchlevel = root.tk.call('info', 'patchlevel') 127 def addOpenEventSupport(root, flist): argument 139 root.createcommand("::tk::mac::OpenDocument", doOpenFile) 141 def hideTkConsole(root): argument 143 root.tk.call('console', 'hide') [all …]
|
/third_party/skia/third_party/externals/freetype/src/type1/ |
D | t1objs.c | 58 T1_Face face = (T1_Face)size->root.face; in T1_Size_Get_Globals_Funcs() 63 module = FT_Get_Module( size->root.face->driver->root.library, in T1_Size_Get_Globals_Funcs() 102 T1_Face face = (T1_Face)size->root.face; in T1_Size_Init() 105 error = funcs->create( size->root.face->memory, in T1_Size_Init() 125 error = FT_Request_Metrics( size->root.face, req ); in T1_Size_Request() 131 size->root.metrics.x_scale, in T1_Size_Request() 132 size->root.metrics.y_scale, in T1_Size_Request() 168 module = FT_Get_Module( slot->face->driver->root.library, in T1_GlyphSlot_Init() 214 memory = face->root.memory; in T1_Face_Done() 276 face->root.family_name = NULL; in T1_Face_Done() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | TranslatorMetalDirect.cpp | 196 TIntermBlock *root, in ReplaceGLDepthRangeWithDriverUniform() argument 208 return ReplaceVariableWithTyped(compiler, root, depthRangeVar, angleEmulatedDepthRangeRef); in ReplaceGLDepthRangeWithDriverUniform() 211 TIntermSequence *GetMainSequence(TIntermBlock *root) in GetMainSequence() argument 213 TIntermFunctionDefinition *main = FindMain(root); in GetMainSequence() 219 TIntermBlock *root, in RotateAndFlipBuiltinVariable() argument 240 DeclareGlobalVariable(root, replacementVar); in RotateAndFlipBuiltinVariable() 244 if (!ReplaceVariable(compiler, root, builtin, replacementVar)) in RotateAndFlipBuiltinVariable() 282 return compiler->validateAST(root); in RotateAndFlipBuiltinVariable() 287 TIntermBlock *root, in InsertFragCoordCorrection() argument 317 return RotateAndFlipBuiltinVariable(compiler, root, insertSequence, flipXY, symbolTable, in InsertFragCoordCorrection() [all …]
|
/third_party/node/test/parallel/ |
D | test-common-must-not-mutate-object-deep.mjs | 22 function testOriginal(root) { argument 23 assert.deepStrictEqual(root, backup); 24 return root.foo.bar === 'baz' && root.quux[1].corge.length === 6; 27 function definePropertyOnRoot(root) { argument 28 Object.defineProperty(root, 'xyzzy', {}); 31 function definePropertyOnFoo(root) { argument 32 Object.defineProperty(root.foo, 'xyzzy', {}); 35 function deletePropertyOnRoot(root) { argument 36 delete root.foo; 39 function deletePropertyOnFoo(root) { argument [all …]
|
/third_party/skia/third_party/externals/freetype/src/type42/ |
D | t42parse.c | 114 #define T1_Skip_Spaces( p ) (p)->root.funcs.skip_spaces( &(p)->root ) 115 #define T1_Skip_PS_Token( p ) (p)->root.funcs.skip_PS_token( &(p)->root ) 118 (p)->root.funcs.to_int( &(p)->root ) 120 (p)->root.funcs.to_bytes( &(p)->root, b, m, n, d ) 123 (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t ) 125 (p)->root.funcs.to_token( &(p)->root, t ) 128 (p)->root.funcs.load_field( &(p)->root, f, o, m, pf ) 130 (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf ) 145 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, memory ); in t42_parser_init() 207 parser->root.base = parser->base_dict; in t42_parser_init() [all …]
|
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/ |
D | node.js | 71 #root field in Node 77 root, 243 this.root = root || null 275 if (this.#root === this) { 278 return this.#root.global 407 if (this.root.sourceReference) { 408 const { name, version } = this.root.package 412 path: this.root.sourceReference.path, 517 return !!bundler && bundler !== this.root 524 const { root } = this [all …]
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_editor.py | 18 cls.root = Tk() 19 cls.root.withdraw() 23 cls.root.update_idletasks() 24 for id in cls.root.tk.call('after', 'info'): 25 cls.root.after_cancel(id) 26 cls.root.destroy() 27 del cls.root 30 e = Editor(root=self.root) 31 self.assertEqual(e.root, self.root) 107 cls.root = Tk() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TextFormatParseInfoTreeTest.java | 72 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationReturnsSingleLocation() local 73 assertEquals(LOC0, root.getLocation(OPTIONAL_INT32, 0)); in testGetLocationReturnsSingleLocation() 74 assertEquals(1, root.getLocations(OPTIONAL_INT32).size()); in testGetLocationReturnsSingleLocation() 80 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationsReturnsNoParseLocationsForUnknownField() local 81 assertTrue(root.getLocations(OPTIONAL_INT32).isEmpty()); in testGetLocationsReturnsNoParseLocationsForUnknownField() 82 assertEquals(LOC0, root.getLocations(OPTIONAL_BOOLEAN).get(0)); in testGetLocationsReturnsNoParseLocationsForUnknownField() 87 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationThrowsIllegalArgumentExceptionForUnknownField() local 89 root.getNestedTree(OPTIONAL_INT32, 0); in testGetLocationThrowsIllegalArgumentExceptionForUnknownField() 97 TextFormatParseInfoTree root = rootBuilder.setLocation(OPTIONAL_INT32, LOC0).build(); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex() local 99 root.getLocation(OPTIONAL_INT32, 1); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex() [all …]
|
/third_party/ltp/lib/ |
D | tst_cgroup.c | 306 struct cgroup_root *root; in tst_cgroup_print_config() local 312 root = ctrl->ctrl_root; in tst_cgroup_print_config() 314 if (!root) in tst_cgroup_print_config() 319 root->no_cpuset_prefix ? "[noprefix]" : "", in tst_cgroup_print_config() 320 root->ver == TST_CGROUP_V1 ? "V1" : "V2", in tst_cgroup_print_config() 321 root->mnt_path); in tst_cgroup_print_config() 360 struct cgroup_root *root = roots; in cgroup_root_scan() local 380 if (root->ver && ctrl_field == root->ctrl_field) in cgroup_root_scan() 383 if (root->ctrl_field) in cgroup_root_scan() 386 root->ver = TST_CGROUP_V2; in cgroup_root_scan() [all …]
|
/third_party/skia/third_party/externals/freetype/src/cid/ |
D | cidparse.h | 70 PS_ParserRec root; member 103 (p)->root.funcs.skip_spaces( &(p)->root ) 105 (p)->root.funcs.skip_PS_token( &(p)->root ) 107 #define cid_parser_to_int( p ) (p)->root.funcs.to_int( &(p)->root ) 108 #define cid_parser_to_fixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t ) 111 (p)->root.funcs.to_coord_array( &(p)->root, m, c ) 113 (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t ) 115 (p)->root.funcs.to_token( &(p)->root, t ) 117 (p)->root.funcs.to_token_array( &(p)->root, t, m, c ) 120 (p)->root.funcs.load_field( &(p)->root, f, o, 0, 0 ) [all …]
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | traverse_expressions_test.cc | 31 auto* root = IndexAccessor(i[0], i[1]); in TEST_F() local 35 root, Diagnostics(), [&](const ast::Expression* expr) { in TEST_F() 39 EXPECT_THAT(l2r, ElementsAre(root, i[0], e[0], e[1], i[1], e[2], e[3])); in TEST_F() 44 root, Diagnostics(), [&](const ast::Expression* expr) { in TEST_F() 48 EXPECT_THAT(r2l, ElementsAre(root, i[1], e[3], e[2], i[0], e[1], e[0])); in TEST_F() 55 auto* root = Mul(i[0], i[1]); in TEST_F() local 59 root, Diagnostics(), [&](const ast::Expression* expr) { in TEST_F() 63 EXPECT_THAT(l2r, ElementsAre(root, i[0], e[0], e[1], i[1], e[2], e[3])); in TEST_F() 68 root, Diagnostics(), [&](const ast::Expression* expr) { in TEST_F() 72 EXPECT_THAT(r2l, ElementsAre(root, i[1], e[3], e[2], i[0], e[1], e[0])); in TEST_F() [all …]
|