Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/skia/third_party/externals/freetype/src/base/
Dftglyph.c290 const FT_Glyph_Class* clazz, in FT_DEFINE_GLYPH()
300 if ( !FT_ALLOC( glyph, clazz->glyph_size ) ) in FT_DEFINE_GLYPH()
303 glyph->clazz = clazz; in FT_DEFINE_GLYPH()
304 glyph->format = clazz->glyph_format; in FT_DEFINE_GLYPH()
321 const FT_Glyph_Class* clazz; in FT_Glyph_Copy() local
325 if ( !target || !source || !source->clazz ) in FT_Glyph_Copy()
333 if ( !source || !source->clazz ) in FT_Glyph_Copy()
339 clazz = source->clazz; in FT_Glyph_Copy()
340 error = ft_new_glyph( source->library, clazz, &copy ); in FT_Glyph_Copy()
347 if ( clazz->glyph_copy ) in FT_Glyph_Copy()
[all …]
Dftobjs.c312 FT_Driver_Class clazz = driver->clazz; in ft_glyphslot_init() local
328 if ( !error && clazz->init_slot ) in ft_glyphslot_init()
329 error = clazz->init_slot( slot ); in ft_glyphslot_init()
583 FT_Driver_Class clazz = driver->clazz; in ft_glyphslot_done() local
587 if ( clazz->done_slot ) in ft_glyphslot_done()
588 clazz->done_slot( slot ); in ft_glyphslot_done()
616 FT_Driver_Class clazz; in FT_New_GlyphSlot() local
628 clazz = driver->clazz; in FT_New_GlyphSlot()
632 if ( !FT_ALLOC( slot, clazz->slot_object_size ) ) in FT_New_GlyphSlot()
958 error = driver->clazz->load_glyph( slot, face->size, in FT_Load_Glyph()
[all …]
/third_party/skia/modules/androidkit/src/
DColorFilters.cpp49 const auto clazz = env->FindClass("org/skia/androidkit/ColorFilter"); in register_androidkit_ColorFilter() local
50 return clazz in register_androidkit_ColorFilter()
51 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_ColorFilter()
60 const auto clazz = env->FindClass("org/skia/androidkit/MatrixColorFilter"); in register_androidkit_MatrixColorFilter() local
61 return clazz in register_androidkit_MatrixColorFilter()
62 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_MatrixColorFilter()
71 const auto clazz = env->FindClass("org/skia/androidkit/HSLAMatrixColorFilter"); in register_androidkit_HSLAMatrixColorFilter() local
72 return clazz in register_androidkit_HSLAMatrixColorFilter()
73 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_HSLAMatrixColorFilter()
82 const auto clazz = env->FindClass("org/skia/androidkit/ComposeColorFilter"); in register_androidkit_ComposeColorFilter() local
[all …]
DGradients.cpp132 const auto clazz = env->FindClass("org/skia/androidkit/LinearGradient"); in register_androidkit_LinearGradient() local
133 return clazz in register_androidkit_LinearGradient()
134 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_LinearGradient()
143 const auto clazz = env->FindClass("org/skia/androidkit/RadialGradient"); in register_androidkit_RadialGradient() local
144 return clazz in register_androidkit_RadialGradient()
145 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_RadialGradient()
154 const auto clazz = env->FindClass("org/skia/androidkit/TwoPointConicalGradient"); in register_androidkit_TwoPointConicalGradient() local
155 return clazz in register_androidkit_TwoPointConicalGradient()
156 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_TwoPointConicalGradient()
165 const auto clazz = env->FindClass("org/skia/androidkit/SweepGradient"); in register_androidkit_SweepGradient() local
[all …]
DFontChainAdapter.cpp70 const auto clazz = env->FindClass("org/skia/androidkit/FontChain"); in register_androidkit_FontChain() local
72 gFontChain_countMethodID = env->GetMethodID(clazz, "count", "()I"); in register_androidkit_FontChain()
73 gFontChain_getAtMethodID = env->GetMethodID(clazz, "getAt", "(I)J"); in register_androidkit_FontChain()
74 gFontChain_fontSizeMethodID = env->GetMethodID(clazz, "fontSize", "()F"); in register_androidkit_FontChain()
75 gFontChain_localeMethodID = env->GetMethodID(clazz, "locale", "()Ljava/lang/String;"); in register_androidkit_FontChain()
87 return clazz in register_androidkit_FontChain()
88 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_FontChain()
DPath.cpp24 const auto clazz = env->FindClass("org/skia/androidkit/Path"); in register_androidkit_Path() local
25 return clazz in register_androidkit_Path()
26 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_Path()
DShader.cpp24 const auto clazz = env->FindClass("org/skia/androidkit/Shader"); in register_androidkit_Shader() local
25 return clazz in register_androidkit_Shader()
26 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_Shader()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUnsafeUtil.java100 static <T> T allocateInstance(Class<T> clazz) { in allocateInstance() argument
102 return (T) UNSAFE.allocateInstance(clazz); in allocateInstance()
112 private static int arrayBaseOffset(Class<?> clazz) { in arrayBaseOffset() argument
113 return HAS_UNSAFE_ARRAY_OPERATIONS ? MEMORY_ACCESSOR.arrayBaseOffset(clazz) : -1; in arrayBaseOffset()
116 private static int arrayIndexScale(Class<?> clazz) { in arrayIndexScale() argument
117 return HAS_UNSAFE_ARRAY_OPERATIONS ? MEMORY_ACCESSOR.arrayIndexScale(clazz) : -1; in arrayIndexScale()
342 Class<?> clazz = UNSAFE.getClass(); in supportsUnsafeArrayOperations() local
343 clazz.getMethod("objectFieldOffset", Field.class); in supportsUnsafeArrayOperations()
344 clazz.getMethod("arrayBaseOffset", Class.class); in supportsUnsafeArrayOperations()
345 clazz.getMethod("arrayIndexScale", Class.class); in supportsUnsafeArrayOperations()
[all …]
DManifestSchemaFactory.java130 public boolean isSupported(Class<?> clazz) { in isSupported() argument
132 if (factory.isSupported(clazz)) { in isSupported()
140 public MessageInfo messageInfoFor(Class<?> clazz) { in messageInfoFor() argument
142 if (factory.isSupported(clazz)) { in messageInfoFor()
143 return factory.messageInfoFor(clazz); in messageInfoFor()
147 "No factory is available for message type: " + clazz.getName()); in messageInfoFor()
154 public boolean isSupported(Class<?> clazz) {
159 public MessageInfo messageInfoFor(Class<?> clazz) {
166 Class<?> clazz = Class.forName("com.google.protobuf.DescriptorMessageInfoFactory"); in getDescriptorMessageInfoFactory() local
167 return (MessageInfoFactory) clazz.getDeclaredMethod("getInstance").invoke(null); in getDescriptorMessageInfoFactory()
DFieldType.java184 Class<?> clazz = field.getType(); in isValidForList() local
185 if (!javaType.getType().isAssignableFrom(clazz)) { in isValidForList()
194 Type listParameter = getListParameter(clazz, types); in isValidForList()
232 private static Type getGenericSuperList(Class<?> clazz) { in getGenericSuperList() argument
234 Type[] genericInterfaces = clazz.getGenericInterfaces(); in getGenericSuperList()
246 Type type = clazz.getGenericSuperclass(); in getGenericSuperList()
269 private static Type getListParameter(Class<?> clazz, Type[] realTypes) { in getListParameter() argument
271 while (clazz != List.class) { in getListParameter()
273 Type genericType = getGenericSuperList(clazz); in getListParameter()
283 TypeVariable<?>[] clazzParams = clazz.getTypeParameters(); in getListParameter()
[all …]
/third_party/skia/third_party/externals/freetype/src/cache/
Dftcmru.c169 FTC_MruListClass clazz, in FTC_MruList_Init() argument
177 list->clazz = *clazz; in FTC_MruList_Init()
205 FTC_MruNode_CompareFunc compare = list->clazz.node_compare; in FTC_MruList_Find()
250 if ( list->clazz.node_reset ) in FTC_MruList_New()
254 error = list->clazz.node_reset( node, key, list->data ); in FTC_MruList_New()
262 if ( list->clazz.node_done ) in FTC_MruList_New()
263 list->clazz.node_done( node, list->data ); in FTC_MruList_New()
265 else if ( FT_QALLOC( node, list->clazz.node_size ) ) in FTC_MruList_New()
268 error = list->clazz.node_init( node, key, list->data ); in FTC_MruList_New()
280 if ( list->clazz.node_done ) in FTC_MruList_New()
[all …]
Dftcglyph.c108 FTC_GCacheClass clazz = FTC_CACHE_GCACHE_CLASS( cache ); in FTC_Family_Init() local
111 family->clazz = clazz->family_class; in FTC_Family_Init()
127 FTC_GCacheClass clazz = (FTC_GCacheClass)FTC_CACHE( cache )->org_class; in ftc_gcache_init() local
130 clazz->family_class, in ftc_gcache_init()
175 FTC_GCacheClass clazz, in FTC_GCache_New() argument
178 return FTC_Manager_RegisterCache( manager, (FTC_CacheClass)clazz, in FTC_GCache_New()
Dftccache.c296 manager->cur_weight -= cache->clazz.node_weight( node, cache ); in ftc_node_destroy()
305 cache->clazz.node_free( node, cache ); in ftc_node_destroy()
374 manager->cur_weight -= cache->clazz.node_weight( node, cache ); in FTC_Cache_Clear()
376 cache->clazz.node_free( node, cache ); in FTC_Cache_Clear()
429 manager->cur_weight += cache->clazz.node_weight( node, cache ); in ftc_cache_add()
459 error = cache->clazz.node_new( &node, query, cache ); in FTC_Cache_NewNode()
492 FTC_Node_CompareFunc compare = cache->clazz.node_compare; in FTC_Cache_Lookup()
585 if ( cache->clazz.node_remove_faceid( node, face_id, in FTC_Cache_RemoveFaceID()
606 manager->cur_weight -= cache->clazz.node_weight( node, cache ); in FTC_Cache_RemoveFaceID()
609 cache->clazz.node_free( node, cache ); in FTC_Cache_RemoveFaceID()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUtf8Test.java146 Class<ArrayIndexOutOfBoundsException> clazz = ArrayIndexOutOfBoundsException.class; in assertEncoding_insufficientSpace() local
150 fail("Expected " + clazz.getSimpleName()); in assertEncoding_insufficientSpace()
153 assertExceptionType(t, clazz); in assertEncoding_insufficientSpace()
160 fail("Expected " + clazz.getSimpleName()); in assertEncoding_insufficientSpace()
162 assertExceptionType(t, clazz); in assertEncoding_insufficientSpace()
169 fail("Expected " + clazz.getSimpleName()); in assertEncoding_insufficientSpace()
172 assertExceptionType(t, clazz); in assertEncoding_insufficientSpace()
179 fail("Expected " + clazz.getSimpleName()); in assertEncoding_insufficientSpace()
182 assertExceptionType(t, clazz); in assertEncoding_insufficientSpace()
189 fail("Expected " + clazz.getSimpleName()); in assertEncoding_insufficientSpace()
[all …]
DProto3MessageLiteInfoFactory.java65 public boolean isSupported(Class<?> clazz) { in isSupported() argument
70 public MessageInfo messageInfoFor(Class<?> clazz) { in messageInfoFor() argument
71 return produceRawMessageInfo ? rawMessageInfoFor(clazz) : structuralMessageInfoFor(clazz); in messageInfoFor()
74 private MessageInfo rawMessageInfoFor(Class<?> clazz) { in rawMessageInfoFor() argument
75 if (Proto3MessageLite.class.isAssignableFrom(clazz)) { in rawMessageInfoFor()
78 throw new IllegalArgumentException("Unsupported class: " + clazz.getName()); in rawMessageInfoFor()
151 private MessageInfo structuralMessageInfoFor(Class<?> clazz) { in structuralMessageInfoFor() argument
152 if (Proto3MessageLite.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
154 } else if (Proto3EmptyLite.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
156 } else if (Proto3MessageLiteWithMaps.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
[all …]
/third_party/libphonenumber/migrator/src/test/java/com/google/phonenumbers/migrator/testing/testUtils/
DAssertUtil.java7 public static <T extends Throwable> T assertThrows(Class<T> clazz, Runnable fn) { in assertThrows() argument
11 message = String.format("expected exception (%s) was not thrown", clazz.getSimpleName()); in assertThrows()
13 if (clazz.isInstance(t)) { in assertThrows()
14 return clazz.cast(t); in assertThrows()
16 message = String.format("expected (%s), but caught: %s", clazz.getSimpleName(), t); in assertThrows()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/testing/
DAssertUtil.java7 public static <T extends Throwable> T assertThrows(Class<T> clazz, Runnable fn) { in assertThrows() argument
11 message = String.format("expected exception (%s) was not thrown", clazz.getSimpleName()); in assertThrows()
13 if (clazz.isInstance(t)) { in assertThrows()
14 return clazz.cast(t); in assertThrows()
16 message = String.format("expected (%s), but caught: %s", clazz.getSimpleName(), t); in assertThrows()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
DMf2FunctionRegistry.java104 public String getDefaultFormatterNameForType(Class<?> clazz) { in getDefaultFormatterNameForType() argument
109 String result = classToFormatter.get(clazz); in getDefaultFormatterNameForType()
115 if (e.getKey().isAssignableFrom(clazz)) { in getDefaultFormatterNameForType()
255 public Builder setDefaultFormatterNameForType(Class<?> clazz, String formatterName) { in setDefaultFormatterNameForType() argument
256 classToFormatter.put(clazz, formatterName); in setDefaultFormatterNameForType()
270 public Builder removeDefaultFormatterNameForType(Class<?> clazz) { in removeDefaultFormatterNameForType() argument
271 classToFormatter.remove(clazz); in removeDefaultFormatterNameForType()
/third_party/protobuf/objectivec/
DGPBApi.pbobjc.m95 .dataTypeSpecific.clazz = Nil,
104 .dataTypeSpecific.clazz = GPBObjCClass(GPBMethod),
113 .dataTypeSpecific.clazz = GPBObjCClass(GPBOption),
122 .dataTypeSpecific.clazz = Nil,
131 .dataTypeSpecific.clazz = GPBObjCClass(GPBSourceContext),
140 .dataTypeSpecific.clazz = GPBObjCClass(GPBMixin),
216 .dataTypeSpecific.clazz = Nil,
225 .dataTypeSpecific.clazz = Nil,
234 .dataTypeSpecific.clazz = Nil,
243 .dataTypeSpecific.clazz = Nil,
[all …]
DGPBType.pbobjc.m131 .dataTypeSpecific.clazz = Nil,
140 .dataTypeSpecific.clazz = GPBObjCClass(GPBField),
149 .dataTypeSpecific.clazz = Nil,
158 .dataTypeSpecific.clazz = GPBObjCClass(GPBOption),
167 .dataTypeSpecific.clazz = GPBObjCClass(GPBSourceContext),
268 .dataTypeSpecific.clazz = Nil,
277 .dataTypeSpecific.clazz = Nil,
286 .dataTypeSpecific.clazz = Nil,
295 .dataTypeSpecific.clazz = Nil,
304 .dataTypeSpecific.clazz = Nil,
[all …]
/third_party/node/benchmark/assert/
Ddeepequal-typedarrays.js23 const clazz = global[type];
24 const actual = new clazz(len);
25 const expected = new clazz(len);
26 const expectedWrong = new clazz(len);
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
DProto2MessageLiteInfoFactory.java76 public boolean isSupported(Class<?> clazz) { in isSupported() argument
81 public MessageInfo messageInfoFor(Class<?> clazz) { in messageInfoFor() argument
82 return produceRawMessageInfo ? rawMessageInfoFor(clazz) : structuralMessageInfoFor(clazz); in messageInfoFor()
85 private MessageInfo rawMessageInfoFor(Class<?> clazz) { in rawMessageInfoFor() argument
86 if (Proto2MessageLite.class.isAssignableFrom(clazz)) { in rawMessageInfoFor()
89 throw new IllegalArgumentException("Unsupported class: " + clazz.getName()); in rawMessageInfoFor()
197 private MessageInfo structuralMessageInfoFor(Class<?> clazz) { in structuralMessageInfoFor() argument
198 if (Proto2MessageLite.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
200 } else if (FieldGroup49.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
202 } else if (FieldGroupList51.class.isAssignableFrom(clazz)) { in structuralMessageInfoFor()
[all …]
/third_party/skia/platform_tools/android/apps/skottie/skottielib/src/main/cpp/
Dnative-lib.cpp74 Java_org_skia_skottie_SkottieRunner_nCreateProxy(JNIEnv *env, jclass clazz) { in Java_org_skia_skottie_SkottieRunner_nCreateProxy() argument
95 Java_org_skia_skottie_SkottieRunner_nDeleteProxy(JNIEnv *env, jclass clazz, jlong nativeProxy) { in Java_org_skia_skottie_SkottieRunner_nDeleteProxy() argument
118 jobject clazz, in Java_org_skia_skottie_SkottieAnimation_nCreateProxy() argument
166 Java_org_skia_skottie_SkottieAnimation_nDeleteProxy(JNIEnv *env, jclass clazz, in Java_org_skia_skottie_SkottieAnimation_nDeleteProxy() argument
177 Java_org_skia_skottie_SkottieAnimation_nDrawFrame(JNIEnv *env, jclass clazz, in Java_org_skia_skottie_SkottieAnimation_nDrawFrame() argument
238 jclass clazz, in Java_org_skia_skottie_SkottieAnimation_nGetDuration() argument
/third_party/node/test/parallel/
Dtest-crypto-classes.js30 for (const [clazz, args] of Object.entries(TEST_CASES)) {
31 assert(crypto[`create${clazz}`](...args) instanceof crypto[clazz]);
/third_party/ffmpeg/libavcodec/
Dffjni.c295 jclass clazz; in ff_jni_init_jfields() local
299 clazz = (*env)->FindClass(env, jfields_mapping[i].name); in ff_jni_init_jfields()
305 global ? (*env)->NewGlobalRef(env, clazz) : clazz; in ff_jni_init_jfields()
308 (*env)->DeleteLocalRef(env, clazz); in ff_jni_init_jfields()
383 jclass clazz = *(jclass*)((uint8_t*)jfields + jfields_mapping[i].offset); in ff_jni_reset_jfields() local
384 if (!clazz) in ff_jni_reset_jfields()
388 (*env)->DeleteGlobalRef(env, clazz); in ff_jni_reset_jfields()
390 (*env)->DeleteLocalRef(env, clazz); in ff_jni_reset_jfields()

12345