/external/clang/test/CodeGen/ |
2008-03-03-CtorAttrType.c | 2 int __attribute__((constructor)) foo(void) { 5 void __attribute__((constructor)) bar(void) {}
|
attribute_constructor.c | 3 void foo() __attribute__((constructor));
|
constructor-attribute.c | 9 void A() __attribute__((constructor)); 20 static void C() __attribute__((constructor));
|
/external/clang/test/Sema/ |
constructor-attribute.c | 3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}} 4 int f() __attribute__((constructor)); 5 int f() __attribute__((constructor(1))); 6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no more than 1 argument}} 7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an integer constant}} 8 int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
|
/bionic/tests/libs/ |
dlopen_testlib_loopy_invalid.cpp | 20 static void __attribute__((constructor)) panic() {
|
dlopen_testlib_dlopen_from_ctor.cpp | 19 static void __attribute__((constructor)) call_dlopen_from_ctor() {
|
/external/clang/test/CodeGenCXX/ |
constructor-attr.cpp | 9 static void foo() __attribute__((constructor)) {
|
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-plugin/ |
lto-7b.c | 4 __attribute__ ((unused, constructor))
|
lto-7c.c | 5 __attribute__ ((unused, constructor))
|
/external/testng/src/main/java/org/testng/internal/ |
ObjectFactoryImpl.java | 6 import java.lang.reflect.Constructor; 10 * Note that if no constructor is found matching the specified parameters, 11 * this factory will try to invoke a constructor that takes in a string object 26 public Object newInstance(Constructor constructor, Object... params) { 28 constructor.setAccessible(true); 29 return constructor.newInstance(params); 32 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass()); 35 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass()); 39 + (constructor != nul [all...] |
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
ReflectionConstructorDeclaration.java | 27 import java.lang.reflect.Constructor; 37 private Constructor<?> constructor; field in class:ReflectionConstructorDeclaration 40 public ReflectionConstructorDeclaration(Constructor<?> constructor, 42 this.constructor = constructor; 48 return new ReflectionClassDeclaration(constructor.getDeclaringClass(), typeSolver); 53 return constructor.getParameterCount(); 62 if (constructor.isVarArgs()) [all...] |
/external/testng/src/main/java/org/testng/ |
IObjectFactory.java | 3 import java.lang.reflect.Constructor; 6 * Factory used to create all test instances. This factory is passed the constructor 16 Object newInstance(Constructor constructor, Object... params);
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/constructor/ |
ProtectedConstructorTest.java | 17 package android.test.suitebuilder.examples.constructor; 22 * A protected constructor test case that should not be loaded.
|
PublicConstructorTest.java | 17 package android.test.suitebuilder.examples.constructor; 22 * A public constructor test case that should be loaded.
|
/system/core/libnativeloader/test/ |
test.cpp | 19 static __attribute__((constructor)) void test_lib_init() {
|
/system/core/libutils/ |
Trace.cpp | 20 static void traceInit() __attribute__((constructor));
|
/art/test/141-class-unload/src/ |
Main.java | 21 import java.lang.reflect.Constructor; 35 Constructor<?> constructor = local 38 testUnloadClass(constructor); 39 testUnloadLoader(constructor); 41 testNoUnloadInstance(constructor); 43 testLoadAndUnloadLibrary(constructor); 45 testStackTrace(constructor); 47 stressTest(constructor); 51 testStickyUnload(constructor); [all...] |
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
AssistedConstructor.java | 24 import java.lang.reflect.Constructor; 34 * Internal respresentation of a constructor annotated with 42 private final Constructor<T> constructor; field in class:AssistedConstructor 47 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { 48 return new AssistedConstructor<T>(constructor, parameterTypes); 51 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { 52 this.constructor = constructor [all...] |
/external/compiler-rt/test/tsan/Linux/ |
check_preinit.cc | 24 __attribute__ ((constructor)) 37 __attribute__ ((constructor))
|
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/ |
AccessibleInstantiator.java | 22 * Instantiates a class by grabbing the no-args constructor, making it accessible and then calling 23 * Constructor.newInstance(). Although this still requires no-arg constructors, it can call 34 if(constructor != null) { 35 constructor.setAccessible(true);
|
/external/testng/src/test/java/test/objectfactory/ |
LoggingObjectFactory.java | 5 import java.lang.reflect.Constructor; 21 public Object newInstance(Constructor constructor, Object... params) 24 return super.newInstance(constructor, params);
|
/toolchain/binutils/binutils-2.27/gold/testsuite/ |
initpri1.c | 1 /* initpri1.c -- test constructor priorities. 24 /* This tests that the linker handles constructor and destructor 29 /* Constructor priorities in attributes were added in gcc 4.3. */ 35 void c1(void) __attribute__((constructor (500))); 36 void c2(void) __attribute__((constructor (700))); 37 void c3(void) __attribute__((constructor (600))); 75 void cd4(void) __attribute__((constructor (800), destructor (800))); 83 void cd5(void) __attribute__((constructor, destructor));
|
/external/guice/core/src/com/google/inject/internal/ |
DefaultConstructionProxyFactory.java | 23 import java.lang.reflect.Constructor; 30 * Produces construction proxies that invoke the class constructor. 39 * @param injectionPoint an injection point whose member is a constructor of {@code T}. 46 @SuppressWarnings("unchecked") // the injection point is for a constructor of T 47 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); local 49 // Use FastConstructor if the constructor is public. 50 if (Modifier.isPublic(constructor.getModifiers())) { 51 Class<T> classToConstruct = constructor.getDeclaringClass() [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
PropertyUtilsSharingTest.java | 21 import org.yaml.snakeyaml.constructor.Constructor; 29 assertSame(yaml1.constructor.getPropertyUtils(), yaml1.representer.getPropertyUtils()); 31 Yaml yaml2 = new Yaml(new Constructor()); 32 assertSame(yaml2.constructor.getPropertyUtils(), yaml2.representer.getPropertyUtils()); 35 assertSame(yaml3.constructor.getPropertyUtils(), yaml3.representer.getPropertyUtils()); 39 Constructor constructor1 = new Constructor(); 43 assertSame(pu, yaml.constructor.getPropertyUtils()); 52 assertSame(pu, yaml.constructor.getPropertyUtils()) 58 Constructor constructor = new Constructor(); local [all...] |
/external/mockito/src/main/java/org/mockito/internal/runners/util/ |
RunnerProvider.java | 9 import java.lang.reflect.Constructor; 15 Constructor<?> constructor; local 19 throw new IllegalArgumentException("Expected " + runnerClassName + " to have exactly one constructor."); 21 constructor = runnerClass.getConstructors()[0]; 27 return (InternalRunner) constructor.newInstance(constructorArgs);
|