/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:__anon1227 36 return &instance;
|
/external/chromium-trace/catapult/tracing/tracing/ui/tracks/ |
object_instance_track.css | 6 .object-instance-track {
|
/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<>();
|
/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...] |
/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();
|
Support_URLConnector.java | 32 private URLConnection instance; field in class:Support_URLConnector 40 instance = new URL(address).openConnection(); 45 ((HttpURLConnection) instance).disconnect(); 53 if (instance == null) { 57 return instance.getInputStream(); 61 if (instance == null) { 64 instance.setDoOutput(true); 65 ((HttpURLConnection) instance).setRequestMethod("POST"); 67 return instance.getOutputStream(); 75 instance.setRequestProperty(key, value) [all...] |
/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/libweave/src/commands/ |
command_instance_unittest.cc | 20 CommandInstance instance{"robot.speak", Command::Origin::kCloud, *params}; 23 instance.Complete(*CreateDictionaryValue("{'foo': 239}"), nullptr)); 25 EXPECT_EQ("", instance.GetID()); 26 EXPECT_EQ("robot.speak", instance.GetName()); 27 EXPECT_EQ(Command::Origin::kCloud, instance.GetOrigin()); 29 instance.GetParameters()); 30 EXPECT_JSON_EQ("{'foo': 239}", instance.GetResults()); 37 CommandInstance instance{"base.reboot", Command::Origin::kLocal, {}}; 38 instance.SetID("command_id"); 39 EXPECT_EQ("command_id", instance.GetID()) 54 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 66 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 75 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 84 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 96 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 113 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local 141 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, local [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);
|
/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...] |
/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/guice/core/src/com/google/inject/internal/ |
Initializables.java | 25 * Returns an initializable for an instance that requires no initialization. 27 static <T> Initializable<T> of(final T instance) { 30 return instance; 34 return String.valueOf(instance);
|
/libcore/luni/src/main/java/libcore/net/ |
NetworkSecurityPolicy.java | 31 private static volatile NetworkSecurityPolicy instance = new DefaultNetworkSecurityPolicy(); field in class:NetworkSecurityPolicy 34 return instance; 41 instance = policy;
|
/ndk/tests/device/multi-static-instances/jni/ |
main.cpp | 8 static A* instance() { function in class:A 15 A* first = A::instance(); 16 A* second = A::instance(); 19 fprintf(stderr, "ERROR: instance() returned two distinct addresses: %p %p\n", first, second); 22 printf("OK: instance() returned the same address twice: %p\n", first);
|