Home
last modified time | relevance | path

Searched full:new (Results 1 – 25 of 20560) sorted by relevance

12345678910>>...823

/external/conscrypt/testing/src/main/java/org/conscrypt/tlswire/handshake/
DCipherSuite.java25 private static final CipherSuite[] CIPHER_SUITES = new CipherSuite[] {
26 new CipherSuite(0x0000, "TLS_NULL_WITH_NULL_NULL"),
27 new CipherSuite(0x0001, "TLS_RSA_WITH_NULL_MD5", "SSL_RSA_WITH_NULL_MD5"),
28 new CipherSuite(0x0002, "TLS_RSA_WITH_NULL_SHA", "SSL_RSA_WITH_NULL_SHA"),
29new CipherSuite(0x0003, "TLS_RSA_EXPORT_WITH_RC4_40_MD5", "SSL_RSA_EXPORT_WITH_RC4_40_MD5"),
30 new CipherSuite(0x0004, "TLS_RSA_WITH_RC4_128_MD5", "SSL_RSA_WITH_RC4_128_MD5"),
31 new CipherSuite(0x0005, "TLS_RSA_WITH_RC4_128_SHA", "SSL_RSA_WITH_RC4_128_SHA"),
32 new CipherSuite(0x0006, "TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5"),
33 new CipherSuite(0x0007, "TLS_RSA_WITH_IDEA_CBC_SHA"),
34 new CipherSuite(0x0008, "TLS_RSA_EXPORT_WITH_DES40_CBC_SHA",
[all …]
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/tlswire/handshake/
DCipherSuite.java27 private static final CipherSuite[] CIPHER_SUITES = new CipherSuite[] {
28 new CipherSuite(0x0000, "TLS_NULL_WITH_NULL_NULL"),
29 new CipherSuite(0x0001, "TLS_RSA_WITH_NULL_MD5", "SSL_RSA_WITH_NULL_MD5"),
30 new CipherSuite(0x0002, "TLS_RSA_WITH_NULL_SHA", "SSL_RSA_WITH_NULL_SHA"),
31 new CipherSuite(
33 new CipherSuite(0x0004, "TLS_RSA_WITH_RC4_128_MD5", "SSL_RSA_WITH_RC4_128_MD5"),
34 new CipherSuite(0x0005, "TLS_RSA_WITH_RC4_128_SHA", "SSL_RSA_WITH_RC4_128_SHA"),
35 new CipherSuite(0x0006, "TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5"),
36 new CipherSuite(0x0007, "TLS_RSA_WITH_IDEA_CBC_SHA"),
37 new CipherSuite(0x0008, "TLS_RSA_EXPORT_WITH_DES40_CBC_SHA",
[all …]
/external/proguard/src/proguard/optimize/peephole/
DInstructionSequenceConstants.java226 public static final Constant[] CONSTANTS = new Constant[]
228 new IntegerConstant(32768),
229 new IntegerConstant(65536),
230 new IntegerConstant(16777216),
232 new IntegerConstant(0x0000ff00),
233 new IntegerConstant(0x00ff0000),
234 new IntegerConstant(0xff000000),
235 new IntegerConstant(0x0000ffff),
236 new IntegerConstant(0xffff0000),
238 new LongConstant(-1L),
[all …]
/external/rust/crates/merge/tests/
Dderive.rs21 pub fn new(field1: Option<usize>) -> S { in test_one_option_field() method
26 test(S::new(Some(1)), S::new(Some(1)), S::new(Some(2))); in test_one_option_field()
27 test(S::new(Some(1)), S::new(Some(1)), S::new(None)); in test_one_option_field()
28 test(S::new(Some(2)), S::new(None), S::new(Some(2))); in test_one_option_field()
29 test(S::new(None), S::new(None), S::new(None)); in test_one_option_field()
41 pub fn new(field1: Option<usize>, field2: Option<usize>) -> S { in test_two_option_fields() method
49 S::new(Some(1), Some(1)), in test_two_option_fields()
50 S::new(Some(1), Some(1)), in test_two_option_fields()
51 S::new(Some(2), Some(2)), in test_two_option_fields()
54 S::new(Some(1), Some(1)), in test_two_option_fields()
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DITreeFixture.cs57 CommonTree t = new CommonTree(new CommonToken(101)); in testSingleNode()
66 CommonTree r0 = new CommonTree(new CommonToken(101)); in test4Nodes()
67 r0.AddChild(new CommonTree(new CommonToken(102))); in test4Nodes()
68 r0.GetChild(0).AddChild(new CommonTree(new CommonToken(103))); in test4Nodes()
69 r0.AddChild(new CommonTree(new CommonToken(104))); in test4Nodes()
79 CommonTree r0 = new CommonTree((IToken)null); in testList()
81 r0.AddChild(c0 = new CommonTree(new CommonToken(101))); in testList()
82 r0.AddChild(c1 = new CommonTree(new CommonToken(102))); in testList()
83 r0.AddChild(c2 = new CommonTree(new CommonToken(103))); in testList()
100 CommonTree root = new CommonTree(new CommonToken(5)); in testList2()
[all …]
/external/antlr/tool/src/test/java/org/antlr/test/
DTestTrees.java41 TreeAdaptor adaptor = new CommonTreeAdaptor();
47 public V(int ttype, int x) { this.x=x; token=new CommonToken(ttype); } in V()
54 CommonTree t = new CommonTree(new CommonToken(101)); in testSingleNode()
61 CommonTree t = new V(101, 2); in testTwoChildrenOfNilRoot()
62 CommonTree u = new V(new CommonToken(102,"102")); in testTwoChildrenOfNilRoot()
73 CommonTree r0 = new CommonTree(new CommonToken(101)); in test4Nodes()
74 r0.addChild(new CommonTree(new CommonToken(102))); in test4Nodes()
75 r0.getChild(0).addChild(new CommonTree(new CommonToken(103))); in test4Nodes()
76 r0.addChild(new CommonTree(new CommonToken(104))); in test4Nodes()
84 CommonTree r0 = new CommonTree((Token)null); in testList()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_copy_ast.c53 struct cil_list *new; in cil_copy_list() local
56 cil_list_init(&new, data->flavor); in cil_copy_list()
61 cil_list_append(new, CIL_STRING, orig_item->data); in cil_copy_list()
66 cil_list_append(new, CIL_LIST, new_sub); in cil_copy_list()
75 cil_list_append(new, CIL_PARAM, pn); in cil_copy_list()
80 cil_list_append(new, orig_item->flavor, orig_item->data); in cil_copy_list()
85 *copy = new; in cil_copy_list()
90 char *new = NULL; in cil_copy_node() local
93 new = data; in cil_copy_node()
95 *copy = new; in cil_copy_node()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/util/
DTryListBuilderTest.java50 TryListBuilder tlb = new TryListBuilder(); in testSingleCatchAll_Beginning()
52 tlb.addHandler(0, 10, new ImmutableExceptionHandler(null, 5)); in testSingleCatchAll_Beginning()
56 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10, in testSingleCatchAll_Beginning()
57 ImmutableList.of(new ImmutableExceptionHandler(null, 5)))); in testSingleCatchAll_Beginning()
64 TryListBuilder tlb = new TryListBuilder(); in testSingleCatchAll_Middle()
66 tlb.addHandler(5, 10, new ImmutableExceptionHandler(null, 15)); in testSingleCatchAll_Middle()
70 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5, in testSingleCatchAll_Middle()
71 ImmutableList.of(new ImmutableExceptionHandler(null, 15)))); in testSingleCatchAll_Middle()
78 TryListBuilder tlb = new TryListBuilder(); in testSingleCatch_Beginning()
80 tlb.addHandler(0, 10, new ImmutableExceptionHandler("Ljava/lang/Exception;", 5)); in testSingleCatch_Beginning()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cDirectStateAccessTests.cpp65 addChild(new TransformFeedback::CreationTest(m_context)); in init()
66 addChild(new TransformFeedback::DefaultsTest(m_context)); in init()
67 addChild(new TransformFeedback::BuffersTest(m_context)); in init()
68 addChild(new TransformFeedback::ErrorsTest(m_context)); in init()
69 addChild(new TransformFeedback::FunctionalTest(m_context)); in init()
72 addChild(new Samplers::CreationTest(m_context)); in init()
73 addChild(new Samplers::DefaultsTest(m_context)); in init()
74 addChild(new Samplers::ErrorsTest(m_context)); in init()
75 addChild(new Samplers::FunctionalTest(m_context)); in init()
78 addChild(new ProgramPipelines::CreationTest(m_context)); in init()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIslamicTest.java58 int[][] tests = new int[][] { in TestRoll()
100 new TestCase(1507231.5, 0, -1245, 12, 9, SUN, 0, 0, 0), in TestCivilCases()
101 new TestCase(1660037.5, 0, -813, 2, 23, WED, 0, 0, 0), in TestCivilCases()
102 new TestCase(1746893.5, 0, -568, 4, 1, WED, 0, 0, 0), in TestCivilCases()
103 new TestCase(1770641.5, 0, -501, 4, 6, SUN, 0, 0, 0), in TestCivilCases()
104 new TestCase(1892731.5, 0, -157, 10, 17, WED, 0, 0, 0), in TestCivilCases()
105 new TestCase(1931579.5, 0, -47, 6, 3, MON, 0, 0, 0), in TestCivilCases()
106 new TestCase(1974851.5, 0, 75, 7, 13, SAT, 0, 0, 0), in TestCivilCases()
107 new TestCase(2091164.5, 0, 403, 10, 5, SUN, 0, 0, 0), in TestCivilCases()
108 new TestCase(2121509.5, 0, 489, 5, 22, SUN, 0, 0, 0), in TestCivilCases()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIslamicTest.java55 int[][] tests = new int[][] { in TestRoll()
97 new TestCase(1507231.5, 0, -1245, 12, 9, SUN, 0, 0, 0), in TestCivilCases()
98 new TestCase(1660037.5, 0, -813, 2, 23, WED, 0, 0, 0), in TestCivilCases()
99 new TestCase(1746893.5, 0, -568, 4, 1, WED, 0, 0, 0), in TestCivilCases()
100 new TestCase(1770641.5, 0, -501, 4, 6, SUN, 0, 0, 0), in TestCivilCases()
101 new TestCase(1892731.5, 0, -157, 10, 17, WED, 0, 0, 0), in TestCivilCases()
102 new TestCase(1931579.5, 0, -47, 6, 3, MON, 0, 0, 0), in TestCivilCases()
103 new TestCase(1974851.5, 0, 75, 7, 13, SAT, 0, 0, 0), in TestCivilCases()
104 new TestCase(2091164.5, 0, 403, 10, 5, SUN, 0, 0, 0), in TestCivilCases()
105 new TestCase(2121509.5, 0, 489, 5, 22, SUN, 0, 0, 0), in TestCivilCases()
[all …]
/external/proguard/src/proguard/obfuscate/
DObfuscator.java47 * Creates a new Obfuscator.
66 throw new IOException("You have to specify '-keep' options for the obfuscation step."); in execute()
70 programClassPool.classesAccept(new ClassCleaner()); in execute()
71 libraryClassPool.classesAccept(new ClassCleaner()); in execute()
78 (ClassVisitor)new AllMemberVisitor(new MethodLinker()) : in execute()
79 (ClassVisitor)new BottomClassFilter(new MethodLinker()); in execute()
85 NameMarker nameMarker = new NameMarker(); in execute()
99 libraryClassPool.classesAccept(new AllMemberVisitor(nameMarker)); in execute()
106 new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_7, in execute()
107 new AllConstantVisitor( in execute()
[all …]
/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/dexlib2/writer/util/
DTryListBuilderTest.java50 TryListBuilder tlb = new TryListBuilder(); in testSingleCatchAll_Beginning()
52 tlb.addHandler(0, 10, new ImmutableExceptionHandler(null, 5)); in testSingleCatchAll_Beginning()
56 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10, in testSingleCatchAll_Beginning()
57 ImmutableList.of(new ImmutableExceptionHandler(null, 5)))); in testSingleCatchAll_Beginning()
64 TryListBuilder tlb = new TryListBuilder(); in testSingleCatchAll_Middle()
66 tlb.addHandler(5, 10, new ImmutableExceptionHandler(null, 15)); in testSingleCatchAll_Middle()
70 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5, in testSingleCatchAll_Middle()
71 ImmutableList.of(new ImmutableExceptionHandler(null, 15)))); in testSingleCatchAll_Middle()
78 TryListBuilder tlb = new TryListBuilder(); in testSingleCatch_Beginning()
80 tlb.addHandler(0, 10, new ImmutableExceptionHandler("Ljava/lang/Exception;", 5)); in testSingleCatch_Beginning()
[all …]
/external/proguard/src/proguard/classfile/util/
DDynamicMemberReferenceInitializer.java72 private final Constant[] GET_FIELD_CONSTANTS = new Constant[]
74 new MethodrefConstant(1, 2, null, null),
75 new ClassConstant(3, null),
76 new NameAndTypeConstant(4, 5),
77 new Utf8Constant(ClassConstants.NAME_JAVA_LANG_CLASS),
78 new Utf8Constant(ClassConstants.METHOD_NAME_CLASS_GET_FIELD),
79 new Utf8Constant(ClassConstants.METHOD_TYPE_CLASS_GET_FIELD),
82 private final Constant[] GET_DECLARED_FIELD_CONSTANTS = new Constant[]
84 new MethodrefConstant(1, 2, null, null),
85 new ClassConstant(3, null),
[all …]
/external/proguard/src/proguard/optimize/
DOptimizer.java79 public static final String[] OPTIMIZATION_NAMES = new String[]
116 * Creates a new Optimizer.
135 throw new IOException("You have to specify '-keep' options for the optimization step."); in execute()
140 new ListParser(new NameParser()).parse(configuration.optimizations) : in execute()
141 new ConstantMatcher(true); in execute()
174 ClassCounter classMarkingFinalCounter = new ClassCounter(); in execute()
175 ClassCounter classUnboxingEnumCounter = new ClassCounter(); in execute()
176 ClassCounter classMergingVerticalCounter = new ClassCounter(); in execute()
177 ClassCounter classMergingHorizontalCounter = new ClassCounter(); in execute()
178 MemberCounter fieldRemovalWriteonlyCounter = new MemberCounter(); in execute()
[all …]
/external/turbine/javatests/com/google/turbine/model/
DConstTest.java42 new EqualsTester() in equalsTest()
43 .addEqualityGroup(new Const.BooleanValue(true), new Const.BooleanValue(true)) in equalsTest()
44 .addEqualityGroup(new Const.BooleanValue(false), new Const.BooleanValue(false)) in equalsTest()
45 .addEqualityGroup(new Const.IntValue(1), new Const.IntValue(1)) in equalsTest()
46 .addEqualityGroup(new Const.IntValue(2), new Const.IntValue(2)) in equalsTest()
47 .addEqualityGroup(new Const.LongValue(1), new Const.LongValue(1)) in equalsTest()
48 .addEqualityGroup(new Const.LongValue(2), new Const.LongValue(2)) in equalsTest()
49 .addEqualityGroup(new Const.CharValue('x'), new Const.CharValue('x')) in equalsTest()
50 .addEqualityGroup(new Const.CharValue('y'), new Const.CharValue('y')) in equalsTest()
51 .addEqualityGroup(new Const.FloatValue(1), new Const.FloatValue(1)) in equalsTest()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DInstructionConstants.java48 Instruction NOP = new NOP();
49 Instruction ACONST_NULL = new ACONST_NULL();
50 Instruction ICONST_M1 = new ICONST(-1);
51 Instruction ICONST_0 = new ICONST(0);
52 Instruction ICONST_1 = new ICONST(1);
53 Instruction ICONST_2 = new ICONST(2);
54 Instruction ICONST_3 = new ICONST(3);
55 Instruction ICONST_4 = new ICONST(4);
56 Instruction ICONST_5 = new ICONST(5);
57 Instruction LCONST_0 = new LCONST(0);
[all …]
DInstructionConst.java47 public static final Instruction NOP = new NOP();
48 public static final Instruction ACONST_NULL = new ACONST_NULL();
49 public static final Instruction ICONST_M1 = new ICONST(-1);
50 public static final Instruction ICONST_0 = new ICONST(0);
51 public static final Instruction ICONST_1 = new ICONST(1);
52 public static final Instruction ICONST_2 = new ICONST(2);
53 public static final Instruction ICONST_3 = new ICONST(3);
54 public static final Instruction ICONST_4 = new ICONST(4);
55 public static final Instruction ICONST_5 = new ICONST(5);
56 public static final Instruction LCONST_0 = new LCONST(0);
[all …]
/external/deqp/modules/gles3/functional/
Des3fFunctionalTests.cpp182 addChild(new ShaderCommonFunctionTests (m_context)); in init()
183 addChild(new ShaderPackingFunctionTests (m_context)); in init()
198 addChild(new ShaderLibraryTest (m_context, "preprocessor", "Preprocessor Tests")); in init()
199 addChild(new ShaderLibraryTest (m_context, "constants", "Constant Literal Tests")); in init()
200 addChild(new ShaderLibraryTest (m_context, "linkage", "Linkage Tests")); in init()
201 addChild(new ShaderLibraryTest (m_context, "conversions", "Type Conversion Tests")); in init()
202 addChild(new ShaderLibraryTest (m_context, "conditionals", "Conditionals Tests")); in init()
203 addChild(new ShaderLibraryTest (m_context, "declarations", "Declarations Tests")); in init()
204 addChild(new ShaderLibraryTest (m_context, "swizzles", "Swizzle Tests")); in init()
205 …addChild(new ShaderLibraryTest (m_context, "swizzle_math_operations", "Swizzle Math Operations … in init()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/
DCompareToBuilderTest.java102 final TestObject o1 = new TestObject(4); in testReflectionCompare()
103 final TestObject o2 = new TestObject(4); in testReflectionCompare()
113 final TestObject o1 = new TestObject(4); in testReflectionCompareEx1()
119 final TestObject o1 = new TestObject(4); in testReflectionCompareEx2()
120 final Object o2 = new Object(); in testReflectionCompareEx2()
138 x = new TestSubObject(1, 1); in testReflectionHierarchyCompareExcludeFields()
139 y = new TestSubObject(2, 1); in testReflectionHierarchyCompareExcludeFields()
140 z = new TestSubObject(3, 1); in testReflectionHierarchyCompareExcludeFields()
143 x = new TestSubObject(1, 3); in testReflectionHierarchyCompareExcludeFields()
144 y = new TestSubObject(2, 2); in testReflectionHierarchyCompareExcludeFields()
[all …]
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DAbstractHttp2Headers.java30 throw new UnsupportedOperationException(); in valueIterator()
35 throw new UnsupportedOperationException(); in size()
40 throw new UnsupportedOperationException(); in isEmpty()
45 throw new UnsupportedOperationException(); in names()
50 throw new UnsupportedOperationException(); in get()
55 throw new UnsupportedOperationException(); in get()
60 throw new UnsupportedOperationException(); in getAndRemove()
65 throw new UnsupportedOperationException(); in getAndRemove()
70 throw new UnsupportedOperationException(); in getAll()
75 throw new UnsupportedOperationException(); in getAllAndRemove()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DDifferenceElementCalculatorTest.java40 …LexicalDifferenceCalculator.CalculatedSyntaxModel a = new LexicalDifferenceCalculator.CalculatedSy… in calculateDifferenceEmpty()
41 …LexicalDifferenceCalculator.CalculatedSyntaxModel b = new LexicalDifferenceCalculator.CalculatedSy… in calculateDifferenceEmpty()
48 Node n1 = new FieldDeclaration(); in calculateDifferenceAIsEmpty()
49 Node n2 = new MethodDeclaration(); in calculateDifferenceAIsEmpty()
51 …LexicalDifferenceCalculator.CalculatedSyntaxModel a = new LexicalDifferenceCalculator.CalculatedSy… in calculateDifferenceAIsEmpty()
52 …LexicalDifferenceCalculator.CalculatedSyntaxModel b = new LexicalDifferenceCalculator.CalculatedSy… in calculateDifferenceAIsEmpty()
53 new CsmToken(GeneratedJavaParserConstants.LPAREN), in calculateDifferenceAIsEmpty()
54 new CsmChild(n1), in calculateDifferenceAIsEmpty()
55 new CsmToken(GeneratedJavaParserConstants.RPAREN), in calculateDifferenceAIsEmpty()
56 new CsmChild(n2))); in calculateDifferenceAIsEmpty()
[all …]
/external/ow2-asm/asm-commons/src/test/java/org/objectweb/asm/commons/
DGeneratorAdapterTest.java65 () -> new GeneratorAdapter(new MethodNode(), Opcodes.ACC_PUBLIC, "name", "()V") {}; in testConstructor_illegalState()
73 new GeneratorAdapter(new MethodNode(), Opcodes.ACC_PUBLIC, "name", "()V"); in testConstructor_emptyDescriptor()
78 assertArrayEquals(new Type[0], generatorAdapter.getArgumentTypes()); in testConstructor_emptyDescriptor()
84 new GeneratorAdapter(new MethodNode(), Opcodes.ACC_PRIVATE, "m", "(I)F"); in testConstructor_basicDescriptor()
89 assertArrayEquals(new Type[] {Type.INT_TYPE}, generatorAdapter.getArgumentTypes()); in testConstructor_basicDescriptor()
94 ClassNode classNode = new ClassNode(); in testConstructor_withClassVisitorAndExceptions()
97 new GeneratorAdapter( in testConstructor_withClassVisitorAndExceptions()
99 new Method("name", "()V"), in testConstructor_withClassVisitorAndExceptions()
101 new Type[] {Type.getObjectType("java/lang/Exception")}, in testConstructor_withClassVisitorAndExceptions()
107 assertArrayEquals(new Type[0], generatorAdapter.getArgumentTypes()); in testConstructor_withClassVisitorAndExceptions()
[all …]
/external/gson/gson/src/test/java/com/google/gson/
DJsonPrimitiveTest.java34 new JsonPrimitive((Boolean) null); in testNulls()
39 new JsonPrimitive((Number) null); in testNulls()
44 new JsonPrimitive((String) null); in testNulls()
49 new JsonPrimitive((Character) null); in testNulls()
56 JsonPrimitive json = new JsonPrimitive(Boolean.TRUE); in testBoolean()
62 json = new JsonPrimitive(1); in testBoolean()
65 json = new JsonPrimitive("1"); in testBoolean()
68 json = new JsonPrimitive("true"); in testBoolean()
71 json = new JsonPrimitive("TrUe"); in testBoolean()
74 json = new JsonPrimitive("1.3"); in testBoolean()
[all …]
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DBigIntegerTest.java29 new BigInteger[] {
31 new BigInteger("-1"),
32 new BigInteger("0"),
33 new BigInteger("1"),
35 new BigInteger("147573952589676412927"),
36 new BigInteger("2361183241434822606847"),
38 new BigInteger("1194649"),
39 new BigInteger("12327121"),
41 new BigInteger("2152302898747"),
42 new BigInteger("3474749660383"),
[all …]

12345678910>>...823