Home
last modified time | relevance | path

Searched refs:str2 (Results 1 – 13 of 13) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/tests/hash_table/
Dcollision.c45 const char *str2 = strdup("test2"); in main() local
60 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str2, NULL); in main()
66 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
67 assert(entry2->key == str2); in main()
75 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
76 assert(entry2->key == str2); in main()
79 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str2, NULL); in main()
80 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
82 assert(search_entry == entry2 || search_entry->key != str2); in main()
96 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
[all …]
Dreplacement.c40 char *str2 = strdup("test1"); in main() local
46 assert(str1 != str2); in main()
52 _mesa_hash_table_insert(ht, str2, str2); in main()
56 assert(entry->data == str2); in main()
65 free(str2); in main()
Dremove_key.c37 const char *str2 = "test2"; in main() local
46 _mesa_hash_table_insert(ht, str2, NULL); in main()
48 entry = _mesa_hash_table_search(ht, str2); in main()
49 assert(strcmp(entry->key, str2) == 0); in main()
59 entry = _mesa_hash_table_search(ht, str2); in main()
60 assert(strcmp(entry->key, str2) == 0); in main()
Ddelete_and_lookup.c50 const char *str2 = "test2"; in main() local
59 _mesa_hash_table_insert(ht, str2, NULL); in main()
61 entry = _mesa_hash_table_search(ht, str2); in main()
62 assert(strcmp(entry->key, str2) == 0); in main()
72 entry = _mesa_hash_table_search(ht, str2); in main()
73 assert(strcmp(entry->key, str2) == 0); in main()
Dinsert_and_lookup.c40 const char *str2 = "test2"; in main() local
50 _mesa_hash_table_insert(ht, str2, NULL); in main()
55 entry = _mesa_hash_table_search(ht, str2); in main()
56 assert(strcmp(entry->key, str2) == 0); in main()
Ddestroy_callback.c36 static const char *str2 = "test2"; variable
45 else if (strcmp(entry->key, str2) == 0) in delete_callback()
63 _mesa_hash_table_insert(ht, str2, NULL); in main()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
Djson_generator.py594 def genBasetypeCode(self, str1, str2, name): argument
596 …code += "static void print_" + name + "(" + str1 + name + str2 + " const std::string& str, bool co…
605 def genHandleCode(self, str1, str2, name): argument
607 … void print_%s(%s%s%s const std::string& str, bool commaNeeded=true) {\n" %(name, str1, name, str2)
616 def genBitmaskCode(self, str1, str2, name, mapName): argument
619 … void print_%s(%s%s%s const std::string& str, bool commaNeeded=true) {\n" %(name, str1, name, str2)
644 … void print_%s(%s%s%s const std::string& str, bool commaNeeded=true) {\n" %(name, str1, name, str2)
717 …def generateStructMembercode(self, param, str1, str2, str3, str4, memberName, typeName, isCommaNee… argument
723 length = str2 + param.get('len') + ")"
739 … code += " print_%s(%s%s[i], \"%s\", 0);\n" %(typeName, str2, memberName, memberName)
[all …]
Djson_parser.py602 def genBasetypeCode(self, str1, str2, name): argument
623 def genHandleCode(self, str1, str2, name): argument
637 def genBitmaskCode(self, str1, str2, name, mapName): argument
758 …def generateStructMembercode(self, param, str1, str2, str3, str4, memberName, typeName, isCommaNee… argument
764 length = str2 + param.get('len') + ")"
767 …code += " %s%s) = (%s*)s_globalMem.allocate(%s, sizeof(%s));\n" %(str2, memberName, typeName, …
769 … code += " if (obj_%s.size() == 0) %s%s) = nullptr;\n" %(memberName, str2, memberName)
772 …[i], const_cast<%s&>(%s%s[i])));\n" %(typeName, memberName, memberName, typeName, str2, memberName)
781 code += " %s%s) = nullptr;\n"%(str2, memberName)
783 …code += " %s%s) = (%s*)s_globalMem.allocate(1, sizeof(%s));\n" %(str2, memberName, typ…
[all …]
Djson_c_generator.py278 def genBasetypeCode(self, str1, str2, name, baseType): argument
280 … code += "void print_" + name + "(" + str1 + name + str2 + " const char* str, int commaNeeded) {\n"
289 def genHandleCode(self, str1, str2, name): argument
291 … code += "void print_%s(%s%s%s const char* str, int commaNeeded) {\n" %(name, str1, name, str2)
292 code += " (void)%s;\n" %(str2[:-1])
298 def genBitmaskCode(self, str1, str2, name, mapName): argument
301 … code += "void print_%s(%s%s%s const char* str, int commaNeeded) {\n" %(name, str1, name, str2)
335 … code += "void print_%s(%s%s%s const char* str, int commaNeeded) {\n" %(name, str1, name, str2)
402 …def generateStructMembercode(self, param, str1, str2, str3, str4, memberName, typeName, isCommaNee… argument
409 length = str2 + param.get('len')
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dstring_buffer_test.cpp44 const char *str2; member in string_buffer
57 str2 = "test2"; in SetUp()
87 EXPECT_TRUE(_mesa_string_buffer_append(buf, str2)); in TEST_F()
/hardware/google/aemu/base/
DWin32UnicodeString_unittest.cpp48 Win32UnicodeString str2(kData[n].utf8, strlen(kData[n].utf8)); in TEST() local
49 EXPECT_EQ(wcslen(kData[n].utf16), str2.size()); in TEST()
50 EXPECT_STREQ(kData[n].utf16, str2.c_str()); in TEST()
90 std::string str2 = Win32UnicodeString::convertToUtf8( in TEST() local
92 EXPECT_EQ(strlen(kData[n].utf8), str2.size()); in TEST()
93 EXPECT_STREQ(kData[n].utf8, str2.c_str()); in TEST()
/hardware/google/aemu/base/testing/
Dfile_io.cpp42 #define WIDEN_CALL_2(func, str1, str2, ...) \ argument
44 Win32UnicodeString(str2).c_str() , ##__VA_ARGS__)
47 #define WIDEN_CALL_2(func, str1, str2, ...) func(str1, str2 , ##__VA_ARGS__) argument
/hardware/interfaces/confirmationui/support/test/
DConfirmationUITranslations-test.c25 #define ASSERT_STR(str1, str2) \ argument
27 if (strcmp(str1, str2) != 0) { \
29 __FILE__, __LINE__, str1, str2); \