Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 3547) sorted by relevance

12345678910>>...142

/external/selinux/libsepol/tests/
Dtest-linker-types.c125 void base_type_tests(policydb_t * base) in base_type_tests() argument
136 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests()
137 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
138 test_type_datum(base, "g_b_type_1", NULL, 0, 1); in base_type_tests()
140 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
142 test_attr_types(base, "g_b_attr_1", NULL, types, 1); in base_type_tests()
145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in base_type_tests()
146 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
147 test_type_datum(base, "o1_b_type_1", NULL, 0, 1); in base_type_tests()
149 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
[all …]
Dtest-linker-roles.c70 void base_role_tests(policydb_t * base) in base_role_tests() argument
81 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests()
82 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
85 role = test_role_type_set(base, "g_b_role_1", NULL, types, 1, 0); in base_role_tests()
87 only_dominates_self(base, role); in base_role_tests()
90 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); in base_role_tests()
92 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
95 role = test_role_type_set(base, "o1_b_role_1", decl, types, 1, 0); in base_role_tests()
97 only_dominates_self(base, role); in base_role_tests()
100 void module_role_tests(policydb_t * base) in module_role_tests() argument
[all …]
/external/guava/guava-gwt/test/com/google/common/base/
DSplitterTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSimpleSplit()
27 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSimpleSplitToList()
32 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSimpleSplitWithNoDelimiter()
37 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitEmptyToken()
42 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitEmptyTokenOmitEmptyStrings()
47 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitOnEmptyString()
52 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitOnEmptyStringOmitEmptyStrings()
57 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitOnOnlyDelimiter()
62 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); in testCharacterSplitOnOnlyDelimitersOmitEmptyStrings()
[all …]
DPredicatesTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAlwaysFalse_apply()
27 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAlwaysFalse_equality()
32 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAlwaysTrue_apply()
37 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAlwaysTrue_equality()
42 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAnd_applyBinary()
47 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAnd_applyIterable()
52 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAnd_applyNoArgs()
57 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAnd_applyOneArg()
62 com.google.common.base.PredicatesTest testCase = new com.google.common.base.PredicatesTest(); in testAnd_applyTernary()
[all …]
DPreconditionsTest_gwt.java16 package com.google.common.base;
22 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_complexMessage_failure()
27 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_complexMessage_success()
32 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_nullMessage_failure()
37 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_simpleMessage_failure()
42 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_simpleMessage_success()
47 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_simple_failure()
52 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckArgument_simple_success()
57 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckElementIndex_badSize()
62 …com.google.common.base.PreconditionsTest testCase = new com.google.common.base.PreconditionsTest(); in testCheckElementIndex_negative()
[all …]
DOptionalTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testAbsent()
27 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testAsSet_absent()
32 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testAsSet_absentIsImmutable()
37 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testAsSet_present()
42 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testAsSet_presentIsImmutable()
47 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testEqualsAndHashCode_absent()
52 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testEqualsAndHashCode_present()
57 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testFromNullable()
62 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); in testFromNullable_null()
[all …]
DCaseFormatTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testConverterToBackward()
27 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testConverterToForward()
32 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testConverter_nullConversions()
37 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testConverter_serialization()
42 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testConverter_toString()
47 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testIdentity()
52 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testLowerCamelToLowerCamel()
57 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testLowerCamelToLowerHyphen()
62 com.google.common.base.CaseFormatTest testCase = new com.google.common.base.CaseFormatTest(); in testLowerCamelToLowerUnderscore()
[all …]
DStopwatchTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testCreateStarted()
27 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testCreateUnstarted()
32 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsedMillis()
37 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsedMillis_multipleSegments()
42 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsedMillis_notRunning()
47 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsedMillis_whileRunning()
52 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsed_micros()
57 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsed_millis()
62 com.google.common.base.StopwatchTest testCase = new com.google.common.base.StopwatchTest(); in testElapsed_multipleSegments()
[all …]
DToStringHelperTest_gwt.java16 package com.google.common.base;
22 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testConstructorLenient_anonymousClass()
27 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testConstructorLenient_classObject()
32 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testConstructorLenient_innerClass()
37 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testConstructorLenient_instance()
42 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testConstructor_stringObject()
47 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testToStringHelperLenient_localInnerClass()
52 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testToStringHelperLenient_localInnerNestedClass()
57 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testToStringHelperLenient_moreThanNineAnonymousClasses()
62 …com.google.common.base.ToStringHelperTest testCase = new com.google.common.base.ToStringHelperTest… in testToStringLenient_addValue()
[all …]
DStringsTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testCommonPrefix()
27 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testCommonSuffix()
32 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testEmptyToNull()
37 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testIsNullOrEmpty()
42 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testNullToEmpty()
47 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testPadEnd_negativeMinLength()
52 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testPadEnd_noPadding()
57 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testPadEnd_null()
62 com.google.common.base.StringsTest testCase = new com.google.common.base.StringsTest(); in testPadEnd_somePadding()
[all …]
DCharMatcherTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testAllMatches()
27 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testAnyAndNone_logicalOps()
32 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testCollapse()
37 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testCollapse_any()
42 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testEmpty()
47 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testGeneral()
52 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testNoMatches()
57 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testPrecomputedOptimizations()
62 com.google.common.base.CharMatcherTest testCase = new com.google.common.base.CharMatcherTest(); in testReplaceFrom()
[all …]
DConverterTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testAndThen()
27 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testApply()
32 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testConvertAllIsView()
37 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testConverter()
42 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testFrom()
47 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testIdentityConverter()
52 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testNullIsNotPassedThrough()
57 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testNullIsPassedThrough()
62 com.google.common.base.ConverterTest testCase = new com.google.common.base.ConverterTest(); in testReverse()
[all …]
DFunctionsTest_gwt.java16 package com.google.common.base;
22 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testComposeOfFunctionsIsAssociative()
27 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testComposeOfPredicateAndFunctionIsAssociative()
32 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testComposition()
37 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testCompositionWildcard()
42 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testConstant()
47 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testForMapWildCardWithDefault()
52 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testForMapWithDefault()
57 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testForMapWithDefault_null()
62 com.google.common.base.FunctionsTest testCase = new com.google.common.base.FunctionsTest(); in testForMapWithoutDefault()
[all …]
/external/v8/test/mjsunit/
Darray-bounds-check-removal.js34 function test_do_not_assert_on_non_int32(vector, base) { argument
36 var a1 = base + 1;
37 var a2 = base + 2;
38 var a3 = base + 3;
39 var a4 = base + 4;
55 function test_base(a, base, condition) { argument
56 a[base + 1] = 1;
57 a[base + 4] = 2;
58 a[base + 3] = 3;
59 a[base + 2] = 4;
[all …]
Dtoint32.js86 var base = Math.pow(2, 64); variable
87 assertEquals(0, toInt32(base + 0));
88 assertEquals(0, toInt32(base + 1117));
89 assertEquals(4096, toInt32(base + 2234));
90 assertEquals(4096, toInt32(base + 3351));
91 assertEquals(4096, toInt32(base + 4468));
92 assertEquals(4096, toInt32(base + 5585));
93 assertEquals(8192, toInt32(base + 6702));
94 assertEquals(8192, toInt32(base + 7819));
95 assertEquals(8192, toInt32(base + 8936));
[all …]
/external/pdfium/third_party/freetype/src/base/
Dftgloadr.c90 FT_GlyphLoad base = &loader->base; in FT_GlyphLoader_Rewind() local
94 base->outline.n_points = 0; in FT_GlyphLoader_Rewind()
95 base->outline.n_contours = 0; in FT_GlyphLoader_Rewind()
96 base->num_subglyphs = 0; in FT_GlyphLoader_Rewind()
98 *current = *base; in FT_GlyphLoader_Rewind()
110 FT_FREE( loader->base.outline.points ); in FT_GlyphLoader_Reset()
111 FT_FREE( loader->base.outline.tags ); in FT_GlyphLoader_Reset()
112 FT_FREE( loader->base.outline.contours ); in FT_GlyphLoader_Reset()
113 FT_FREE( loader->base.extra_points ); in FT_GlyphLoader_Reset()
114 FT_FREE( loader->base.subglyphs ); in FT_GlyphLoader_Reset()
[all …]
/external/freetype/src/base/
Dftgloadr.c90 FT_GlyphLoad base = &loader->base; in FT_GlyphLoader_Rewind() local
94 base->outline.n_points = 0; in FT_GlyphLoader_Rewind()
95 base->outline.n_contours = 0; in FT_GlyphLoader_Rewind()
96 base->num_subglyphs = 0; in FT_GlyphLoader_Rewind()
98 *current = *base; in FT_GlyphLoader_Rewind()
110 FT_FREE( loader->base.outline.points ); in FT_GlyphLoader_Reset()
111 FT_FREE( loader->base.outline.tags ); in FT_GlyphLoader_Reset()
112 FT_FREE( loader->base.outline.contours ); in FT_GlyphLoader_Reset()
113 FT_FREE( loader->base.extra_points ); in FT_GlyphLoader_Reset()
114 FT_FREE( loader->base.subglyphs ); in FT_GlyphLoader_Reset()
[all …]
/external/mesa3d/src/gallium/state_trackers/gbm/
Dgbm_drm.c143 bo->base.base.gbm = gbm; in gbm_gallium_drm_bo_import()
144 bo->base.base.width = resource->width0; in gbm_gallium_drm_bo_import()
145 bo->base.base.height = resource->height0; in gbm_gallium_drm_bo_import()
149 bo->base.base.format = GBM_BO_FORMAT_XRGB8888; in gbm_gallium_drm_bo_import()
152 bo->base.base.format = GBM_BO_FORMAT_ARGB8888; in gbm_gallium_drm_bo_import()
165 bo->base.base.handle.u32 = whandle.handle; in gbm_gallium_drm_bo_import()
166 bo->base.base.stride = whandle.stride; in gbm_gallium_drm_bo_import()
168 return &bo->base.base; in gbm_gallium_drm_bo_import()
186 bo->base.base.gbm = gbm; in gbm_gallium_drm_bo_create()
187 bo->base.base.width = width; in gbm_gallium_drm_bo_create()
[all …]
/external/boringssl/src/crypto/bytestring/
Dcbb.c24 struct cbb_buffer_st *base; in cbb_init() local
26 base = OPENSSL_malloc(sizeof(struct cbb_buffer_st)); in cbb_init()
27 if (base == NULL) { in cbb_init()
31 base->buf = buf; in cbb_init()
32 base->len = 0; in cbb_init()
33 base->cap = cap; in cbb_init()
34 base->can_resize = 1; in cbb_init()
37 cbb->base = base; in cbb_init()
63 cbb->base->can_resize = 0; in CBB_init_fixed()
68 if (cbb->base) { in CBB_cleanup()
[all …]
/external/mesa3d/src/gbm/backends/dri/
Dgbm_dri.c71 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers()
84 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_flush_front_buffer()
97 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers_with_format()
194 "%.*s/tls/%s_dri.so", len, p, dri->base.driver_name); in dri_load_driver()
199 "%.*s/%s_dri.so", len, p, dri->base.driver_name); in dri_load_driver()
235 dri->base.driver_name = dri_fd_get_driver_name(dri->base.base.fd); in dri_screen_create()
236 if (dri->base.driver_name == NULL) in dri_screen_create()
241 fprintf(stderr, "failed to load driver: %s\n", dri->base.driver_name); in dri_screen_create()
245 dri->extensions[0] = &image_lookup_extension.base; in dri_screen_create()
246 dri->extensions[1] = &use_invalidate.base; in dri_screen_create()
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/wayland/
Dnative_shm.c48 struct wayland_display base; member
66 if (shmdpy->base.configs) in wayland_shm_display_destroy()
67 FREE(shmdpy->base.configs); in wayland_shm_display_destroy()
68 if (shmdpy->base.own_dpy) in wayland_shm_display_destroy()
69 wl_display_disconnect(shmdpy->base.dpy); in wayland_shm_display_destroy()
82 struct pipe_screen *screen = shmdpy->base.base.screen; in wayland_create_shm_buffer()
124 shmdpy->base.formats |= HAS_ARGB8888; in shm_handle_format()
127 shmdpy->base.formats |= HAS_XRGB8888; in shm_handle_format()
158 shmdpy->base.queue = wl_display_create_queue(shmdpy->base.dpy); in wayland_shm_display_init_screen()
159 shmdpy->base.registry = wl_display_get_registry(shmdpy->base.dpy); in wayland_shm_display_init_screen()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-latin-1.js40 var base = String.fromCharCode(i); variable
41 var escaped = base;
42 if (base == '(' || base == ')' || base == '*' || base == '+' ||
43 base == '?' || base == '[' || base == ']' || base == '\\' ||
44 base == '$' || base == '^' || base == '|') {
45 escaped = '\\' + base;
48 base_result = new RegExp('(' + escaped + ')\\1', 'i').exec(base + base);
49 assertEquals( base_result, [base + base, base]);
50 lo_result = new RegExp('(' + escaped + ')\\1', 'i').exec(base + lo);
51 if (base.toLowerCase() == lo) {
[all …]
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_miptree.c44 if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR)) in nv50_mt_choose_storage_type()
46 if (unlikely(mt->base.base.bind & PIPE_BIND_CURSOR)) in nv50_mt_choose_storage_type()
49 switch (mt->base.base.format) { in nv50_mt_choose_storage_type()
67 switch (util_format_get_blocksizebits(mt->base.base.format)) { in nv50_mt_choose_storage_type()
82 if (mt->base.base.bind & PIPE_BIND_SCANOUT) { in nv50_mt_choose_storage_type()
102 if (mt->base.base.bind & PIPE_BIND_CURSOR) in nv50_mt_choose_storage_type()
117 nouveau_bo_ref(NULL, &mt->base.bo); in nv50_miptree_destroy()
119 nouveau_fence_ref(NULL, &mt->base.fence); in nv50_miptree_destroy()
120 nouveau_fence_ref(NULL, &mt->base.fence_wr); in nv50_miptree_destroy()
133 if (!mt || !mt->base.bo) in nv50_miptree_get_handle()
[all …]
/external/mesa3d/src/gallium/drivers/galahad/
Dglhd_objects.c52 memcpy(&glhd_resource->base, resource, sizeof(struct pipe_resource)); in galahad_resource_create()
54 pipe_reference_init(&glhd_resource->base.reference, 1); in galahad_resource_create()
55 glhd_resource->base.screen = &glhd_screen->base; in galahad_resource_create()
58 return &glhd_resource->base; in galahad_resource_create()
89 memcpy(&glhd_surface->base, surface, sizeof(struct pipe_surface)); in galahad_surface_create()
91 pipe_reference_init(&glhd_surface->base.reference, 1); in galahad_surface_create()
92 glhd_surface->base.texture = NULL; in galahad_surface_create()
93 pipe_resource_reference(&glhd_surface->base.texture, &glhd_resource->base); in galahad_surface_create()
96 return &glhd_surface->base; in galahad_surface_create()
107 pipe_resource_reference(&glhd_surface->base.texture, NULL); in galahad_surface_destroy()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DHttpUrlTest.java95 HttpUrl base = HttpUrl.parse("http://host/a/b"); in resolveNoScheme() local
96 assertEquals(HttpUrl.parse("http://host2/"), base.resolve("//host2")); in resolveNoScheme()
97 assertEquals(HttpUrl.parse("http://host/path"), base.resolve("/path")); in resolveNoScheme()
98 assertEquals(HttpUrl.parse("http://host/a/path"), base.resolve("path")); in resolveNoScheme()
99 assertEquals(HttpUrl.parse("http://host/a/b?query"), base.resolve("?query")); in resolveNoScheme()
100 assertEquals(HttpUrl.parse("http://host/a/b#fragment"), base.resolve("#fragment")); in resolveNoScheme()
101 assertEquals(HttpUrl.parse("http://host/a/b"), base.resolve("")); in resolveNoScheme()
102 assertEquals(HttpUrl.parse("http://host/path"), base.resolve("\\path")); in resolveNoScheme()
106 HttpUrl base = HttpUrl.parse("http://a/"); in resolveUnsupportedScheme() local
107 assertEquals(null, base.resolve("ftp://b")); in resolveUnsupportedScheme()
[all …]

12345678910>>...142