Home
last modified time | relevance | path

Searched +full:new +full:- +full:object (Results 1 – 25 of 1477) sorted by relevance

12345678910>>...60

/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
64 Object src = new Object(); in testConstructor_Normal()
65 new PropertyChangeSupport(src); in testConstructor_Normal()
73 Object src = new Object(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
74 PropertyChangeSupport sup = new PropertyChangeSupport(src); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
75 PropertyChangeListener l1 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
76 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
77 PropertyChangeListener l3 = new PropertyChangeListenerProxy("myProp", in testAddPropertyChangeListener_PropertyChangeListener_Normal()
79 PropertyChangeListener l4 = new PropertyChangeListenerProxy("myProp", in testAddPropertyChangeListener_PropertyChangeListener_Normal()
109 Object src = new Object(); in testAddPropertyChangeListener_PropertyChangeListener_Null()
[all …]
DPropertyChangeEventTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
36 Object src = new Object(); in testConstructor_Normal()
37 Object oldValue = new Object(); in testConstructor_Normal()
38 Object newValue = new Object(); in testConstructor_Normal()
40 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", in testConstructor_Normal()
53 Object src = new Object(); in testConstructor_Null()
54 PropertyChangeEvent event = new PropertyChangeEvent(src, null, null, in testConstructor_Null()
64 * Test the constructor with null properties but non-null old and new
68 Object src = new Object(); in testConstructor_NullProperty()
69 Object oldValue = new Object(); in testConstructor_NullProperty()
[all …]
/external/nullaway/nullaway/src/test/resources/com/uber/nullaway/testdata/
DNullAwayTryFinallyCases.java32 public void tryFinallyMininal(@Nullable Object o) { in tryFinallyMininal()
40 public void tryFinallyMininalRet(@Nullable Object o) { in tryFinallyMininalRet()
49 public void tryFinallyMininalThrow(@Nullable Object o) { in tryFinallyMininalThrow()
51 throw new Error(); in tryFinallyMininalThrow()
58 public void tryFinallyThrowWFix(@Nullable Object o) { in tryFinallyThrowWFix()
60 o = new Object(); in tryFinallyThrowWFix()
61 throw new Error(); in tryFinallyThrowWFix()
72 public void tryFinallyThrowWFix2(@Nullable Object o) { in tryFinallyThrowWFix2()
73 o = new Object(); in tryFinallyThrowWFix2()
75 throw new Error(); in tryFinallyThrowWFix2()
[all …]
DNullAwayNegativeCases.java42 public Object doesNotReturnNull() { in doesNotReturnNull()
43 return new Object(); in doesNotReturnNull()
46 public Object assignmentExpression() { in assignmentExpression()
47 Object x = null; in assignmentExpression()
48 return (x = new Object()); in assignmentExpression()
53 Inner inner = new Inner(); in assignmentExpression2()
62 public Object returnsNullButAnnotatedWithNullable() { in returnsNullButAnnotatedWithNullable()
66 public Object methodWrapper() { in methodWrapper()
70 static Object sField = new Object();
72 public Object returnNonNullField() { in returnNonNullField()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DGameObjectFactory.java8 * http://www.apache.org/licenses/LICENSE-2.0
29 * This should really be replaced with something that is data-driven, but it is hard to do data
36 …private final static ComponentPoolComparator sComponentPoolComparator = new ComponentPoolComparato…
54 // objects must match the order of the object tileset in the level editor in order for the
57 INVALID(-1),
135 // Special Objects -- Not spawnable normally
136 SMOKE_BIG(-1),
137 SMOKE_SMALL(-1),
139 CRUSH_FLASH(-1),
140 FLASH(-1),
[all …]
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageFactoryImpl.java14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
59 private static String defaultContentEncodingCharset = "UTF-8";
80 * This is for testing -- allows you to generate invalid requests
87 * Creates a new instance of MessageFactoryImpl
93 * Creates a new Request message of type specified by the method paramater,
95 * with a body in the form of a Java object and the body content type.
97 * @param requestURI -
98 * the new URI object of the requestURI value of this Message.
99 * @param method -
100 * the new string of the method value of this Message.
[all …]
/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCParser.java1 … Aug 13, 2010 19:41:25 /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/simplecTreeParser/Simp…
12 public static final String[] tokenNames = new String[] {
29 public static final int EOF=-1;
45 this(input, new RecognizerSharedState()); in SimpleCParser()
52 protected TreeAdaptor adaptor = new CommonTreeAdaptor();
62 …public String getGrammarFileName() { return "/usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/… in getGrammarFileName()
66 Object tree;
67 public Object getTree() { return tree; } in getTree()
71 …// /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/simplecTreeParser/SimpleC.g:16:1: program …
73 SimpleCParser.program_return retval = new SimpleCParser.program_return(); in program()
[all …]
/external/robolectric/sandbox/src/main/java/org/robolectric/interceptors/
DAndroidInterceptors.java39 new ArrayList<>( in all()
41 new LinkedHashMapEldestInterceptor(), in all()
42 new SystemTimeInterceptor(), in all()
43 new SystemArrayCopyInterceptor(), in all()
44 new LocaleAdjustLanguageCodeInterceptor(), in all()
45 new SystemLogInterceptor(), in all()
46 new FileDescriptorInterceptor(), in all()
47 new NoOpInterceptor(), in all()
48 new SocketInterceptor(), in all()
49 new ReferenceRefersToInterceptor())); in all()
[all …]
/external/ow2-asm/asm-test/src/resources/java/jdk8/
DAllFrames.java2 // Copyright (c) 2000-2011 INRIA, France Telecom
34 * compiled with "javac -g -parameters".
38 Object o;
42 public AllFrames(Object o, String s) { in AllFrames()
56 return new AllFrames(null, s == null ? "" : s); in create()
60 // Element types: primitive types and object.
70 Object o, in m0()
71 Object[] p, in m0()
72 Object[][] q) { in m0()
74 ? m0(!b, y, c, s, i - 1, f - 1f, l - 1l, d - 1d, o, p, q) in m0()
[all …]
/external/libnl/lib/
Dobject.c1 /* SPDX-License-Identifier: LGPL-2.1-only */
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
8 * @defgroup object Object (Cacheable)
10 * Generic object data type, for inheritance purposes to implement cacheable
18 * ------
20 * #include <netlink/object.h>
24 #include <netlink-private/netlink.h>
27 #include <netlink/object.h>
32 if (!obj->ce_ops) in obj_ops()
35 return obj->ce_ops; in obj_ops()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/
DJsonToStringStyleTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
56 assertEquals("null", new ToStringBuilder(null).toString()); in testNull()
61 assertEquals("{}", new ToStringBuilder(base).toString()); in testBlank()
68 new ToStringBuilder(base).appendSuper( in testAppendSuper()
73 new ToStringBuilder(base).appendSuper( in testAppendSuper()
78 new ToStringBuilder(base) in testAppendSuper()
84 new ToStringBuilder(base) in testAppendSuper()
89 assertEquals("{\"a\":\"hello\"}", new ToStringBuilder(base) in testAppendSuper()
92 assertEquals("{\"a\":\"hello\",\"b\":\"world\"}", new ToStringBuilder(base) in testAppendSuper()
98 …assertThrows(UnsupportedOperationException.class, () -> new ToStringBuilder(base).append('A').toSt… in testChar()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
103 TestSuite suite = new TestSuite(); in suite()
106 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder())) in suite()
115 new TestStringCacheGenerator(createCacheBuilder().concurrencyLevel(1))) in suite()
124 new TestStringCacheGenerator(createCacheBuilder().maximumSize(Integer.MAX_VALUE))) in suite()
133 new TestStringCacheGenerator( in suite()
136 .weigher(new SerializableWeigher<String, String>()))) in suite()
144 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().weakKeys())) in suite()
152 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().weakValues())) in suite()
160 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().softValues())) in suite()
[all …]
DAbstractLoadingCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
35 final Exception cause = new Exception(); in testGetUnchecked_checked()
36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked()
37 LoadingCache<Object, Object> cache = in testGetUnchecked_checked()
38 new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_checked()
40 public Object get(Object key) throws ExecutionException { in testGetUnchecked_checked()
41 Object v = valueRef.get(); in testGetUnchecked_checked()
43 throw new ExecutionException(cause); in testGetUnchecked_checked()
49 public Object getIfPresent(Object key) { in testGetUnchecked_checked()
55 cache.getUnchecked(new Object()); in testGetUnchecked_checked()
[all …]
/external/deqp/framework/delibs/decpp/
DdeSharedPtr.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
41 class Object class
44 Object (bool& exists) in Object() function in de::__anon41e088100111::Object
50 virtual ~Object (void) in ~Object()
59 class DerivedObject : public Object
63 : Object(exists) in DerivedObject()
71 SharedPtrTestThread (const SharedPtr<Object>& ptr, const bool& exists) in SharedPtrTestThread()
[all …]
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.as18 public function nil():Object {
34 e:RecognitionException):Object {
35 var t:CommonErrorNode = new CommonErrorNode(input, start, stop, e);
40 public function isNil(tree:Object):Boolean {
44 public function dupTree(tree:Object):Object {
52 public function dupTreeWithParent(t:Object, parent:Object):Object {
56 var newTree:Object = dupNode(t);
57 // ensure new subtree root has parent/child index set
58 setChildIndex(newTree, getChildIndex(t)); // same index in new tree
62 var child:Object = getChild(t, i);
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/processor/
DXSLTSchema.java10 * http://www.apache.org/licenses/LICENSE-2.0
19 * $Id: XSLTSchema.java 476466 2006-11-18 08:22:31Z minchau $
82 XSLTAttributeDef hrefAttr = new XSLTAttributeDef(null, "href", in build()
85 // xsl:preserve-space, xsl:strip-space in build()
86 XSLTAttributeDef elementsAttr = new XSLTAttributeDef(null, "elements", in build()
90 // XSLTAttributeDef anyNamespacedAttr = new XSLTAttributeDef("*", "*", in build()
94 XSLTAttributeDef methodAttr = new XSLTAttributeDef(null, "method", in build()
96 XSLTAttributeDef versionAttr = new XSLTAttributeDef(null, "version", in build()
98 XSLTAttributeDef encodingAttr = new XSLTAttributeDef(null, "encoding", in build()
100 XSLTAttributeDef omitXmlDeclarationAttr = new XSLTAttributeDef(null, in build()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
102 TestSuite suite = new TestSuite(); in suite()
105 ConcurrentMapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder())) in suite()
114 new TestStringCacheGenerator(createCacheBuilder().concurrencyLevel(1))) in suite()
123 new TestStringCacheGenerator(createCacheBuilder().maximumSize(Integer.MAX_VALUE))) in suite()
132 new TestStringCacheGenerator( in suite()
135 .weigher(new SerializableWeigher<String, String>()))) in suite()
144 new TestStringCacheGenerator(createCacheBuilder().weakKeys())) in suite()
153 new TestStringCacheGenerator(createCacheBuilder().weakValues())) in suite()
162 new TestStringCacheGenerator(createCacheBuilder().softValues())) in suite()
[all …]
DAbstractLoadingCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
35 final Exception cause = new Exception(); in testGetUnchecked_checked()
36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked()
37 LoadingCache<Object, Object> cache = in testGetUnchecked_checked()
38 new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_checked()
40 public Object get(Object key) throws ExecutionException { in testGetUnchecked_checked()
41 Object v = valueRef.get(); in testGetUnchecked_checked()
43 throw new ExecutionException(cause); in testGetUnchecked_checked()
49 public Object getIfPresent(Object key) { in testGetUnchecked_checked()
55 cache.getUnchecked(new Object()); in testGetUnchecked_checked()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DSerializableTestUtility.java6 * Copyright (C) 1996-2014, International Business Machines Corporation and
68 * Window - Preferences - Java - Code Style - Code Templates
77 // TODO Auto-generated catch block
84 public Object[] getTestObjects(); in getTestObjects()
86 public boolean hasSameBehavior(Object a, Object b); in hasSameBehavior()
99 public Object[] getTestObjects() in getTestObjects()
101 TimeZone zones[] = new TimeZone[ZONES.length]; in getTestObjects()
111 public boolean hasSameBehavior(Object a, Object b) in hasSameBehavior()
190 public Object[] getTestObjects() in getTestObjects()
192 SimpleTimeZone simpleTimeZones[] = new SimpleTimeZone[6]; in getTestObjects()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTestUtility.java5 * Copyright (C) 1996-2014, International Business Machines Corporation and
66 * Window - Preferences - Java - Code Style - Code Templates
74 // TODO Auto-generated catch block
81 public Object[] getTestObjects(); in getTestObjects()
83 public boolean hasSameBehavior(Object a, Object b); in hasSameBehavior()
96 public Object[] getTestObjects() in getTestObjects()
98 TimeZone zones[] = new TimeZone[ZONES.length]; in getTestObjects()
108 public boolean hasSameBehavior(Object a, Object b) in hasSameBehavior()
187 public Object[] getTestObjects() in getTestObjects()
189 SimpleTimeZone simpleTimeZones[] = new SimpleTimeZone[6]; in getTestObjects()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
54 private ReferenceTypeImpl object; field in ReferenceTypeTest
60 typeSolver = new ReflectionTypeSolver(); in setup()
61object = new ReferenceTypeImpl(new ReflectionClassDeclaration(Object.class, typeSolver), typeSolve… in setup()
62 …string = new ReferenceTypeImpl(new ReflectionClassDeclaration(String.class, typeSolver), typeSolve… in setup()
63 listOfA = new ReferenceTypeImpl( in setup()
64 new ReflectionInterfaceDeclaration(List.class, typeSolver), in setup()
65 …ImmutableList.of(new ResolvedTypeVariable(ResolvedTypeParameterDeclaration.onType("A", "foo.Bar", … in setup()
66 listOfStrings = new ReferenceTypeImpl( in setup()
67 new ReflectionInterfaceDeclaration(List.class, typeSolver), in setup()
[all …]
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DReturnsArgumentAtTest.java21 assertThat(new ReturnsArgumentAt(0).answer(invocationWith("A", "B"))).isEqualTo("A"); in should_be_able_to_return_the_first_parameter()
27 assertThat(new ReturnsArgumentAt(1).answer(invocationWith("A", "B", "C"))).isEqualTo("B"); in should_be_able_to_return_the_second_parameter()
32 assertThat(new ReturnsArgumentAt(-1).answer(invocationWith("A"))).isEqualTo("A"); in should_be_able_to_return_the_last_parameter()
33 assertThat(new ReturnsArgumentAt(-1).answer(invocationWith("A", "B"))).isEqualTo("B"); in should_be_able_to_return_the_last_parameter()
38 assertThat(new ReturnsArgumentAt(0).answer(invocationWith("A", "B", "C"))).isEqualTo("A"); in should_be_able_to_return_the_specified_parameter()
39 assertThat(new ReturnsArgumentAt(1).answer(invocationWith("A", "B", "C"))).isEqualTo("B"); in should_be_able_to_return_the_specified_parameter()
40 assertThat(new ReturnsArgumentAt(2).answer(invocationWith("A", "B", "C"))).isEqualTo("C"); in should_be_able_to_return_the_specified_parameter()
46new ReturnsArgumentAt(1).validateFor(new InvocationBuilder().method("varargsReturningString") in should_identify_bad_parameter_type_for_invocation()
47 .argTypes(Object[].class) in should_identify_bad_parameter_type_for_invocation()
48 … .args(new Object(), new Object(), new Object()) in should_identify_bad_parameter_type_for_invocation()
[all …]
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/
DInvalidEventHandlerTestCase.java12 * http://www.apache.org/licenses/LICENSE-2.0
48 // @@ VELOCITY-553
57 return new String("helloFooRealStr"); in getRealString()
61 return new String("helloFoo"); in getString()
74 StringBuilder builder = new StringBuilder(); in toString()
81 // @@ VELOCITY-553
94 return new TestSuite(InvalidEventHandlerTestCase.class); in suite()
100 TestEventCartridge te = new TestEventCartridge(); in testManualEventHandlers()
105 VelocityEngine ve = new VelocityEngine(); in testManualEventHandlers()
112 VelocityContext inner = new VelocityContext(); in testManualEventHandlers()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/function/
DFailableFunctionsTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
96 throw new SomeException("Odd Invocation: " + i); in throwOnOdd()
112 private static final long serialVersionUID = -4965704778119283411L;
161 public Object test(final Object input1, final Object input2) throws Throwable { in test()
260 public void testObjDouble(final T object, final double i) throws Throwable { in testObjDouble() argument
262 acceptedObject = object; in testObjDouble()
266 public void testObjInt(final T object, final int i) throws Throwable { in testObjInt() argument
268 acceptedObject = object; in testObjInt()
272 public void testObjLong(final T object, final long i) throws Throwable { in testObjLong() argument
274 acceptedObject = object; in testObjLong()
[all …]
/external/testng/src/test/java/test/configurationfailurepolicy/
DFailurePolicyTest.java24 public Object[][] getData() { in getData()
25 Object[][] data = new Object[][] { in getData()
26 // params - confFail, confSkip, skipedTests in getData()
27 new Object[] { new Class[] { ClassWithFailedBeforeClassMethod.class }, 1, 1, 1 }, in getData()
28 new Object[] { new Class[] { ClassWithFailedBeforeMethodAndMultipleTests.class }, 2, 0, 2 }, in getData()
29new Object[] { new Class[] { ClassWithFailedBeforeMethodAndMultipleInvocations.class }, 4, 0, 4 }, in getData()
30 new Object[] { new Class[] { ExtendsClassWithFailedBeforeMethod.class }, 2, 2, 2 }, in getData()
31 new Object[] { new Class[] { ClassWithFailedBeforeClassMethod.class }, 1, 1, 1 }, in getData()
32 new Object[] { new Class[] { ExtendsClassWithFailedBeforeClassMethod.class }, 1, 2, 2 }, in getData()
33new Object[] { new Class[] { ClassWithFailedBeforeClassMethod.class, ExtendsClassWithFailedBeforeC… in getData()
[all …]

12345678910>>...60