/system/core/include/utils/ |
Singleton.h | 34 TYPE* instance = sInstance; local 35 if (instance == 0) { 36 instance = new TYPE(); 37 sInstance = instance; 39 return *instance; 60 * (eg: <TYPE>.cpp) to create the static instance of Singleton<>'s attributes,
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/gwt/ |
GwtTestWrapper.java | 141 return o1.instance().getClass().getName().compareTo(o2.instance().getClass().getName()); 146 TextButton button = new TextButton(instancer.instance().getClass().getName(), skin); 151 test = instancer.instance(); 451 public GdxTest instance (); method in interface:GwtTestWrapper.Instancer 455 public GdxTest instance () { 459 public GdxTest instance () { 463 public GdxTest instance () { 467 public GdxTest instance () { 471 public GdxTest instance () { [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderStructTests.cpp | 150 struct SetUniforms_##NAME { static void setUniforms (ShaderRenderCaseInstance& instance, const tcu::Vec4&) SET_UNIFORMS_BODY }; \ 175 instance.useUniform(0u, UI_ONE); 205 instance.useUniform(0u, UI_ZERO); 206 instance.useUniform(1u, UI_ONE); 235 instance.useUniform(0u, UI_ONE); 266 instance.useUniform(0u, UI_ZERO); 267 instance.useUniform(1u, UI_ONE); 268 instance.useUniform(2u, UI_TWO); 297 instance.useUniform(0u, UI_ZERO); 298 instance.useUniform(1u, UI_ONE) [all...] |
/external/guice/core/src/com/google/inject/internal/ |
Initializer.java | 57 * Registers an instance for member injection when that step is performed. 59 * @param instance an instance that optionally has members to be injected (each annotated with 64 <T> Initializable<T> requestInjection(InjectorImpl injector, T instance, Binding<T> binding, 72 if (instance == null || (injectionPoints.isEmpty() 75 return Initializables.of(instance); 79 injector, instance, binding == null ? null : binding.getKey(), provisionCallback, source); 80 pendingInjection.put(instance, initializable); 91 pendingMembersInjectors.put(reference.instance, reference.validate(errors)); 123 private final T instance; field in class:Initializer.InjectableReference [all...] |
InstanceBindingImpl.java | 35 final T instance; field in class:InstanceBindingImpl 41 T instance) { 44 this.instance = instance; 45 this.provider = Providers.of(instance); 49 Set<InjectionPoint> injectionPoints, T instance) { 52 this.instance = instance; 53 this.provider = Providers.of(instance); 65 return instance; [all...] |
/external/guice/core/src/com/google/inject/spi/ |
InjectionRequest.java | 28 * A request to inject the instance fields and methods of an instance. Requests are created 41 private final T instance; field in class:InjectionRequest 43 public InjectionRequest(Object source, TypeLiteral<T> type, T instance) { 46 this.instance = checkNotNull(instance, "instance"); 54 return instance; 62 * Returns the instance methods and fields of {@code instance} that will be injected to fulfil [all...] |
/external/testng/src/main/java/org/testng/ |
InstanceOrderingMethodInterceptor.java | 30 for (Object instance : methodInstances) { 31 if (!instanceList.contains(instance)) { 32 instanceList.add(instance); 34 List<IMethodInstance> l = map.get(instance); 37 map.put(instance, l); 44 for (Object instance : instanceList) { 45 result.addAll(map.get(instance));
|
/libcore/ojluni/src/main/java/java/security/cert/ |
CertPathBuilder.java | 38 import sun.security.jca.GetInstance.Instance; 99 * access a single {@code CertPathBuilder} instance concurrently should 101 * threads each manipulating a different {@code CertPathBuilder} instance 171 Instance instance = GetInstance.getInstance("CertPathBuilder", local 173 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, 174 instance.provider, algorithm); 214 Instance instance = GetInstance.getInstance("CertPathBuilder", local 216 return new CertPathBuilder((CertPathBuilderSpi)instance.impl 251 Instance instance = GetInstance.getInstance("CertPathBuilder", local [all...] |
CertPathValidator.java | 38 import sun.security.jca.GetInstance.Instance; 101 * access a single {@code CertPathValidator} instance concurrently should 104 * instance need not synchronize. 172 Instance instance = GetInstance.getInstance("CertPathValidator", local 174 return new CertPathValidator((CertPathValidatorSpi)instance.impl, 175 instance.provider, algorithm); 216 Instance instance = GetInstance.getInstance("CertPathValidator", local 218 return new CertPathValidator((CertPathValidatorSpi)instance.impl 253 Instance instance = GetInstance.getInstance("CertPathValidator", local [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
KeyManagerFactory.java | 139 GetInstance.Instance instance = GetInstance.getInstance local 142 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, 143 instance.provider, algorithm); 183 GetInstance.Instance instance = GetInstance.getInstance local 186 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, 187 instance.provider, algorithm); 205 * @param provider an instance of the provider. 220 GetInstance.Instance instance = GetInstance.getInstanc local [all...] |
TrustManagerFactory.java | 138 GetInstance.Instance instance = GetInstance.getInstance local 141 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, 142 instance.provider, algorithm); 182 GetInstance.Instance instance = GetInstance.getInstance local 185 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, 186 instance.provider, algorithm); 204 * @param provider an instance of the provider. 219 GetInstance.Instance instance = GetInstance.getInstanc local [all...] |
/external/clang/test/CodeGenCXX/ |
static-init-3.cpp | 9 static T & instance; member in struct:X1 14 use(instance); 21 template<class T> T & X1<T>::instance = X1<T>::get(); member in class:X1
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
EmptyImmutableSortedMap_CustomFieldSerializer.java | 30 SerializationStreamReader reader, EmptyImmutableSortedMap<?, ?> instance) { 40 SerializationStreamWriter writer, EmptyImmutableSortedMap<?, ?> instance) 42 ImmutableSortedMap_CustomFieldSerializerBase.serialize(writer, instance);
|
ExplicitOrdering_CustomFieldSerializer.java | 31 ExplicitOrdering<?> instance) { 42 ExplicitOrdering<?> instance) throws SerializationException { 43 writer.writeObject(instance.rankMap);
|
HashMultiset_CustomFieldSerializer.java | 31 HashMultiset<?> instance) { 41 HashMultiset<?> instance) throws SerializationException { 42 Multiset_CustomFieldSerializerBase.serialize(writer, instance);
|
ImmutableListMultimap_CustomFieldSerializer.java | 31 ImmutableListMultimap<?, ?> instance) { 42 ImmutableListMultimap<?, ?> instance) throws SerializationException { 43 Multimap_CustomFieldSerializerBase.serialize(writer, instance);
|
LexicographicalOrdering_CustomFieldSerializer.java | 32 LexicographicalOrdering<?> instance) { 43 LexicographicalOrdering<?> instance) throws SerializationException { 44 writer.writeObject(instance.elementOrder);
|
LinkedHashMultiset_CustomFieldSerializer.java | 31 LinkedHashMultiset<?> instance) { 42 LinkedHashMultiset<?> instance) throws SerializationException { 43 Multiset_CustomFieldSerializerBase.serialize(writer, instance);
|
NullsFirstOrdering_CustomFieldSerializer.java | 31 NullsFirstOrdering<?> instance) { 42 NullsFirstOrdering<?> instance) throws SerializationException { 43 writer.writeObject(instance.ordering);
|
NullsLastOrdering_CustomFieldSerializer.java | 31 NullsLastOrdering<?> instance) { 42 NullsLastOrdering<?> instance) throws SerializationException { 43 writer.writeObject(instance.ordering);
|
RegularImmutableSortedMap_CustomFieldSerializer.java | 30 SerializationStreamReader reader, RegularImmutableSortedMap<?, ?> instance) { 40 SerializationStreamWriter writer, RegularImmutableSortedMap<?, ?> instance) 42 ImmutableSortedMap_CustomFieldSerializerBase.serialize(writer, instance);
|
ReverseOrdering_CustomFieldSerializer.java | 31 ReverseOrdering<?> instance) { 42 ReverseOrdering<?> instance) throws SerializationException { 43 writer.writeObject(instance.forwardOrder);
|
SingletonImmutableList_CustomFieldSerializer.java | 32 SingletonImmutableList<?> instance) { 42 SingletonImmutableList<?> instance) throws SerializationException { 43 writer.writeObject(instance.element);
|
SingletonImmutableSet_CustomFieldSerializer.java | 31 SingletonImmutableSet<?> instance) { 41 SingletonImmutableSet<?> instance) throws SerializationException { 42 writer.writeObject(instance.element);
|
/external/guava/guava-gwt/src/com/google/common/primitives/ |
UnsignedLong_CustomFieldSerializer.java | 28 UnsignedLong instance) {} 36 UnsignedLong instance) throws SerializationException { 37 writer.writeLong(instance.longValue());
|