/external/dagger2/core/src/main/java/dagger/internal/ |
InstanceFactory.java | 19 * A {@link Factory} implementation that returns a single instance for all invocations of 23 * {@link #get} will always return the same instance. As such, any scoping applied to this factory 31 public static <T> Factory<T> create(T instance) { 32 if (instance == null) { 35 return new InstanceFactory<T>(instance); 38 private final T instance; field in class:InstanceFactory 40 private InstanceFactory(T instance) { 41 this.instance = instance; 46 return instance; [all...] |
/bionic/tests/libs/ |
dlopen_check_order_reloc_nephew_answer.cpp | 32 } instance; member in namespace:__anon1377 36 return &instance;
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-attributes/src/android/security/net/config/cts/ |
TestAttributes.java | 24 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); local 27 assertFalse(instance.isCleartextTrafficPermitted()); 29 assertFalse(instance.isCleartextTrafficPermitted("foo.bar")); 31 assertTrue(instance.isCleartextTrafficPermitted("example.foo.bar")); 34 assertTrue(instance.isCleartextTrafficPermitted("android.com")); 35 assertTrue(instance.isCleartextTrafficPermitted("foo.android.com")); 37 assertTrue(instance.isCleartextTrafficPermitted("example.com")); 38 assertTrue(instance.isCleartextTrafficPermitted("test.example.com")); 40 assertTrue(instance.isCleartextTrafficPermitted("example.com"));
|
/external/valgrind/memcheck/tests/x86/ |
fpeflags.c | 3 struct instance struct 8 static struct instance* myInstance; 14 myInstance = malloc(sizeof(struct instance));
|
/external/clang/test/CodeGenCXX/ |
microsoft-abi-methods.cpp | 17 C instance; local 19 instance.simple_method(); 30 C instance; local 31 instance.cdecl_method(); 42 C instance; local 43 instance.vararg_method("Hello");
|
/external/testng/src/test/java/test/pholser/ |
Captor.java | 12 private static Captor instance = null; field in class:Captor 15 public static Captor instance() { method in class:Captor 16 if (null == instance) { 17 instance = new Captor(); 19 return instance; 24 instance().captives = new ArrayList<>();
|
/art/tools/ahat/src/heapdump/ |
PathElement.java | 20 public final AhatInstance instance; field in class:PathElement 24 public PathElement(AhatInstance instance, String field) { 25 this.instance = instance;
|
/external/dagger2/core/src/main/java/dagger/ |
MembersInjector.java | 33 * Injects dependencies into the fields and methods of {@code instance}. Ignores the presence or 36 * <p>Whenever the object graph creates an instance, it performs this injection automatically 40 * @param instance into which members are to be injected 41 * @throws NullPointerException if {@code instance} is {@code null} 43 void injectMembers(T instance);
|
/external/guice/core/src/com/google/inject/ |
MembersInjector.java | 32 * Injects dependencies into the fields and methods of {@code instance}. Ignores the presence or 35 * <p>Whenever Guice creates an instance, it performs this injection automatically (after first 39 * @param instance to inject members on. May be {@code null}. 41 void injectMembers(T instance);
|
/external/testng/src/main/java/org/testng/internal/ |
DataProviderHolder.java | 11 Object instance; field in class:DataProviderHolder 15 public DataProviderHolder(IDataProviderAnnotation annotation, Method method, Object instance) { 18 this.instance = instance;
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/ |
TimezoneGetter.java | 25 private static TimezoneGetter instance; field in class:TimezoneGetter 28 * Retrieves the singleton instance of this class. 30 * @return TimezoneGetter the single instance of this class. 33 return instance; 37 * Sets the singleton instance of this class. 39 * @param instance 40 * TimezoneGetter the single instance of this class. 43 if (instance != null) { 44 throw new UnsupportedOperationException("TimezoneGetter instance already set"); 46 instance = getter [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
DatabaseTestUtils.java | 26 Field instance; local 29 instance = clazz.getDeclaredField("sSingleton"); 30 instance.setAccessible(true); 31 instance.set(null, null);
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpServerSocket.java | 30 private ServerSocket instance = null; field in class:Support_HttpServerSocket 45 if (instance == null) { 48 instance.setSoTimeout(timeout); 49 Socket s = instance.accept(); 69 instance = new ServerSocket(port); 76 if (instance != null) { 77 instance.close();
|
Support_HttpSocket.java | 30 private final Socket instance; field in class:Support_HttpSocket 35 instance = socket; 40 return instance.getInputStream(); 45 return instance.getOutputStream(); 49 if (!streamOpen && instance != null) { 50 instance.close();
|
/packages/apps/Dialer/java/com/android/contacts/common/extensions/ |
PhoneDirectoryExtenderAccessor.java | 24 private static PhoneDirectoryExtender instance; field in class:PhoneDirectoryExtenderAccessor 31 if (instance != null) { 32 return instance; 37 instance = ((PhoneDirectoryExtenderFactory) application).newPhoneDirectoryExtender(); 40 if (instance == null) { 41 instance = new PhoneDirectoryExtenderStub(); 43 return instance;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/ |
Robolectric.java | 392 public static ShadowAbsListView shadowOf(AbsListView instance) { 393 return (ShadowAbsListView) shadowOf_(instance); 396 public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) { 397 return (ShadowAbsSeekBar) shadowOf_(instance); 400 public static ShadowAccountManager shadowOf(AccountManager instance) { 401 return (ShadowAccountManager) shadowOf_(instance); 404 public static ShadowActivity shadowOf(Activity instance) { 405 return (ShadowActivity) shadowOf_(instance); 408 public static ShadowActivityGroup shadowOf(ActivityGroup instance) { 409 return (ShadowActivityGroup) shadowOf_(instance); [all...] |
RobolectricShadowOfLevel9.java | 13 public static ShadowNdefMessage shadowOf(NdefMessage instance) { 14 return (ShadowNdefMessage) Robolectric.shadowOf_(instance); 17 public static ShadowNdefRecord shadowOf(NdefRecord instance) { 18 return (ShadowNdefRecord) Robolectric.shadowOf_(instance); 21 public static ShadowNfcAdapter shadowOf(NfcAdapter instance) { 22 return (ShadowNfcAdapter) Robolectric.shadowOf_(instance);
|
RobolectricForMaps.java | 13 public static ShadowGeoPoint shadowOf(GeoPoint instance) { 14 return (ShadowGeoPoint) Robolectric.shadowOf_(instance); 17 public static ShadowMapView shadowOf(MapView instance) { 18 return (ShadowMapView) Robolectric.shadowOf_(instance); 21 public static ShadowMapController shadowOf(MapController instance) { 22 return (ShadowMapController) Robolectric.shadowOf_(instance); 25 public static ShadowItemizedOverlay shadowOf(ItemizedOverlay instance) { 26 return (ShadowItemizedOverlay) Robolectric.shadowOf_(instance);
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/ |
MockScanner.java | 21 private final Object instance; field in class:MockScanner 27 * @param instance The test instance 28 * @param clazz The class in the type hierarchy of this instance. 30 public MockScanner(Object instance, Class<?> clazz) { 31 this.instance = instance; 36 * Add the scanned and prepared mock instance to the given collection. 57 FieldReader fieldReader = new FieldReader(instance, field); 67 private Object preparedMock(Object instance, Field field) [all...] |
/external/libchrome/base/memory/ |
singleton.cc | 11 subtle::AtomicWord WaitForInstance(subtle::AtomicWord* instance) { 22 // instance pointer must acquire visibility over the associated data. 24 value = subtle::Acquire_Load(instance);
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
Bindings.java | 28 private static ContactsCommonBindings instance; field in class:Bindings 34 if (instance != null) { 35 return instance; 40 instance = ((ContactsCommonBindingsFactory) application).newContactsCommonBindings(); 43 if (instance == null) { 44 instance = new ContactsCommonBindingsStub(); 46 return instance; 50 instance = testInstance;
|
/packages/apps/Dialer/java/com/android/incallui/ |
Bindings.java | 28 private static InCallUiBindings instance; field in class:Bindings 34 if (instance != null) { 35 return instance; 40 instance = ((InCallUiBindingsFactory) application).newInCallUiBindings(); 43 if (instance == null) { 44 instance = new InCallUiBindingsStub(); 46 return instance; 50 instance = testInstance;
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/ |
NestedDomainConfigTest.java | 27 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); local 28 assertTrue(instance.isCleartextTrafficPermitted("android.com")); 33 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); local 34 assertFalse(instance.isCleartextTrafficPermitted("developer.android.com"));
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
NewsSource.java | 25 // the instance 26 static NewsSource instance = null; field in class:NewsSource 34 /** Returns the singleton instance of this class. */ 36 if (instance == null) { 37 instance = new NewsSource(); 39 return instance;
|
/external/webrtc/webrtc/test/channel_transport/ |
traffic_control_win.cc | 20 TrafficControlWindows* TrafficControlWindows::instance = NULL; member in class:webrtc::test::TrafficControlWindows 30 if(instance != NULL) 38 return instance; 43 instance = new TrafficControlWindows(id); 44 if(instance == NULL) 51 instance->tcRegister = NULL; 52 instance->tcDeregister = NULL; 54 instance->tcEnumerate = NULL; 55 instance->tcOpenInterface = NULL; 56 instance->tcCloseInterface = NULL [all...] |