HomeSort by relevance Sort by last modified time
    Searched refs:new (Results 101 - 125 of 1793) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/elfutils/tests/
run-addr2line-test.sh 26 /home/drepper/gnu/new-bu/build/ttt/f.c:3
28 /home/drepper/gnu/new-bu/build/ttt/b.c:4
30 /home/drepper/gnu/new-bu/build/ttt/f.c:3
32 /home/drepper/gnu/new-bu/build/ttt/b.c:4
34 /home/drepper/gnu/new-bu/build/ttt/f.c:3
36 /home/drepper/gnu/new-bu/build/ttt/b.c:4
38 /home/drepper/gnu/new-bu/build/ttt/f.c:3
40 /home/drepper/gnu/new-bu/build/ttt/b.c:4
63 /home/drepper/gnu/new-bu/build/ttt/f.c:3
79 /home/drepper/gnu/new-bu/build/ttt/f.c:
    [all...]
  /external/grpc-grpc/src/csharp/Grpc.Examples/
MathExamples.cs 29 DivReply result = client.Div(new DivArgs { Dividend = 10, Divisor = 3 });
35 DivReply result = await client.DivAsync(new DivArgs { Dividend = 4, Divisor = 5 });
41 using (var call = client.Fib(new FibArgs { Limit = 5 }))
50 var numbers = new List<Num>
52 new Num { Num_ = 1 },
53 new Num { Num_ = 2 },
54 new Num { Num_ = 3 }
66 var divArgsList = new List<DivArgs>
68 new DivArgs { Dividend = 10, Divisor = 3 },
69 new DivArgs { Dividend = 100, Divisor = 21 }
    [all...]
  /external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
MathClientMockableTest.cs 36 var mockClient = new Moq.Mock<Math.MathClient>();
38 var expected = new DivReply();
40 Assert.AreSame(expected, mockClient.Object.Div(new DivArgs()));
46 var mockClient = new Moq.Mock<Math.MathClient>();
48 var expected = new DivReply();
50 Assert.AreSame(expected, mockClient.Object.Div(new DivArgs(), new CallOptions()));
56 var mockClient = new Moq.Mock<Math.MathClient>();
59 var fakeCall = TestCalls.AsyncUnaryCall<DivReply>(Task.FromResult(new DivReply()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })
    [all...]
MathClientServerTests.cs 44 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) })
46 Services = { Math.BindService(new MathServiceImpl()) },
50 channel = new Channel(Host, server.Ports.Single().BoundPort, ChannelCredentials.Insecure);
51 client = new Math.MathClient(channel);
64 DivReply response = client.Div(new DivArgs { Dividend = 10, Divisor = 3 });
72 DivReply response = client.Div(new DivArgs { Dividend = 0, Divisor = 1 });
80 var ex = Assert.Throws<RpcException>(() => client.Div(new DivArgs { Dividend = 0, Divisor = 0 }));
87 DivReply response = await client.DivAsync(new DivArgs { Dividend = 10, Divisor = 3 })
    [all...]
  /external/grpc-grpc/src/csharp/Grpc.Core.Tests/
MetadataTest.cs 36 var entry = new Metadata.Entry("ABC", "XYZ");
40 CollectionAssert.AreEqual(new[] { (byte)'X', (byte)'Y', (byte)'Z' }, entry.ValueBytes);
42 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc-bin", "xyz"));
50 var bytes = new byte[] { 1, 2, 3 };
51 var entry = new Metadata.Entry("ABC-BIN", bytes);
57 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc", bytes));
65 new Metadata.Entry("ABC", "XYZ");
66 new Metadata.Entry("0123456789abc", "XYZ");
67 new Metadata.Entry("-abc", "XYZ");
68 new Metadata.Entry("a_bc_", "XYZ")
    [all...]
CallOptionsTest.cs 34 var options = new CallOptions();
36 var metadata = new Metadata();
42 var cancellationToken = new CancellationTokenSource().Token;
45 var writeOptions = new WriteOptions();
48 var propagationToken = new ContextPropagationToken(CallSafeHandle.NullInstance, DateTime.UtcNow,
52 var credentials = new FakeCallCredentials();
71 Assert.AreSame(Metadata.Empty, new CallOptions().Normalize().Headers);
72 Assert.AreEqual(DateTime.MaxValue, new CallOptions().Normalize().Deadline.Value);
75 var propagationToken1 = new ContextPropagationToken(CallSafeHandle.NullInstance, deadline, CancellationToken.None,
76 new ContextPropagationOptions(propagateDeadline: true, propagateCancellation: false))
    [all...]
CompressionTest.cs 41 helper = new MockServiceHelper();
58 helper.UnaryHandler = new UnaryServerMethod<string, string>((request, context) =>
60 context.WriteOptions = new WriteOptions(WriteFlags.NoCompress);
64 var callOptions = new CallOptions(writeOptions: new WriteOptions(WriteFlags.NoCompress));
71 helper.DuplexStreamingHandler = new DuplexStreamingServerMethod<string, string>(async (requestStream, responseStream, context) =>
75 context.WriteOptions = new WriteOptions(WriteFlags.NoCompress);
77 await context.WriteResponseHeadersAsync(new Metadata { { "ascii-header", "abcdefg" } });
84 responseStream.WriteOptions = new WriteOptions(WriteFlags.NoCompress);
88 var callOptions = new CallOptions(writeOptions: new WriteOptions(WriteFlags.NoCompress))
    [all...]
  /external/ImageMagick/PerlMagick/demo/
lsys.pl 46 $im = new Image::Magick;
51 $pink_flower = new Image::Magick;
54 $red_flower = new Image::Magick;
57 $yellow_flower = new Image::Magick;
61 $turtle=new Turtle($imagesize/2, $imagesize, 0, 1);
  /external/grpc-grpc/examples/ruby/pubsub/
pubsub_demo.rb 44 GRPC::Core::ChannelCredentials.new()
58 call_creds = GRPC::Core::CallCredentials.new(auth_proc(opts))
60 stub_clz.new(address, creds: combined_creds,
69 call_creds = GRPC::Core::CallCredentials.new(auth_proc(opts))
71 stub_clz.new(address, creds: combined_creds,
94 @pub.delete_topic(DeleteTopicRequest.new(topic: name))
104 resp = @pub.create_topic(Topic.new(name: name))
134 @sub.create_subscription(Subscription.new(name: sub_name,
138 msg = PubsubMessage.new(data: "message #{x}")
139 @pub.publish(PublishRequest.new(topic: topic_name, message: msg)
    [all...]
  /external/grpc-grpc/src/ruby/end2end/
killed_client_thread_driver.rb 31 Echo::EchoReply.new(response: echo_req.request)
39 client_started_mu = Mutex.new
40 client_started_cv = ConditionVariable.new
48 service_impl = SleepingEchoServerImpl.new(received_rpc_callback)
52 server_runner = ServerRunner.new(service_impl, rpc_server_args: rpc_server_args)
  /external/antlr/runtime/Ruby/lib/antlr3/
template.rb 16 @template_library ||= ANTLR3::Template::Group.new
40 self.class.template_library or ANTLR3::Template::Group.new
49 @templates.new( source, values )
69 when TokenSource then TokenRewriteStream.new( input, options )
72 TokenRewriteStream.new( lexer_class.new( input, options ), options )
96 lexer = Lexer.new( source, options )
97 parser = Parser.new( lexer, options )
109 input = ANTLR3::FileStream.new( group_file, options )
110 lexer = Lexer.new( input, options
115 def self.new( &block ) singleton method in class:ANTLR3.Template.Group
122 def new( source, values = {} ) method in class:ANTLR3.Template.Group
    [all...]
  /external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DefaultObjectPoolTest.cs 36 var pool = new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), sharedCapacity, threadLocalCapacity);
46 var pool = new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), 0, 0);
55 var pool = new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), 10, 0);
65 var pool = new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), 10, 0);
75 Assert.Throws<ArgumentNullException>(() => new DefaultObjectPool<TestPooledObject>(null, 10, 2));
76 Assert.Throws<ArgumentException>(() => new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), -1, 10))
    [all...]
  /external/grpc-grpc/src/ruby/spec/
compression_options_spec.rb 28 expect { GRPC::Core::CompressionOptions.new.to_s }.to_not raise_error
32 options = GRPC::Core::CompressionOptions.new
41 options = GRPC::Core::CompressionOptions.new
54 options = GRPC::Core::CompressionOptions.new(
71 options = GRPC::Core::CompressionOptions.new(
87 options = GRPC::Core::CompressionOptions.new(
103 describe '#new with bad parameters' do
105 blk = proc { GRPC::Core::CompressionOptions.new(:gzip, :none) }
110 blk = proc { GRPC::Core::CompressionOptions.new(:gzip) }
117 options = GRPC::Core::CompressionOptions.new
    [all...]
  /external/grpc-grpc/src/ruby/spec/generic/
rpc_server_spec.rb 54 fail GRPC::BadStatus.new(@code, @details, @md)
129 EchoMsg.new
135 [EchoMsg.new, EchoMsg.new]
142 [EchoMsg.new, EchoMsg.new]
171 describe '#new' do
184 creds: Object.new
205 t = Thread.new { @srv.run }
214 t = Thread.new { @srv.run
    [all...]
  /external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
SslCredentialsTest.cs 48 var keyCertPair = new KeyCertificatePair(
52 var serverCredentials = new SslServerCredentials(new[] { keyCertPair }, rootCert, true);
53 var clientCredentials = new SslCredentials(rootCert, keyCertPair);
56 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) })
58 Services = { TestService.BindService(new SslCredentialsTestServiceImpl()) },
63 var options = new List<ChannelOption>
65 new ChannelOption(ChannelOptions.SslTargetNameOverride, TestCredentials.DefaultHostOverride
    [all...]
MetadataCredentialsTest.cs 45 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) })
47 Services = { TestService.BindService(new FakeTestService()) },
52 options = new List<ChannelOption>
54 new ChannelOption(ChannelOptions.SslTargetNameOverride, TestCredentials.DefaultHostOverride)
57 asyncAuthInterceptor = new AsyncAuthInterceptor(async (context, metadata) =>
76 channel = new Channel(Host, server.Ports.Single().BoundPort, channelCredentials, options);
77 client = new TestService.TestServiceClient(channel);
79 client.UnaryCall(new SimpleRequest { })
    [all...]
  /external/antlr/runtime/Ruby/test/functional/parser/
basic.rb 37 input = ANTLR3::StringStream.new( 'blah_de_blah', :file => 'blah.txt' )
38 lexer = Identifiers::Lexer.new( input )
39 tokens = ANTLR3::CommonTokenStream.new( lexer )
40 parser = Identifiers::Parser.new( tokens )
51 lexer = Identifiers::Lexer.new( '' )
52 parser = Identifiers::Parser.new( lexer )
64 parser = Identifiers::Parser.new( 'blah_de_blah', :file => 'blah.txt' )
116 lexer = SimpleLanguage::Lexer.new( "var foobar; gnarz(); var blupp; flupp ( ) ;" )
117 parser = SimpleLanguage::Parser.new( lexer )
131 lexer = SimpleLanguage::Lexer.new( 'var; foo()'
    [all...]
  /external/grpc-grpc/src/ruby/qps/
proxy-worker.rb 43 @histogram = Histogram.new(@histres, @histmax)
45 @php_pid = Array.new(@config.client_channels)
47 Thread.new {
80 Grpc::Testing::Void.new
86 Grpc::Testing::Void.new
89 lat = Grpc::Testing::HistogramData.new(
100 @histogram = Histogram.new(@histres, @histmax)
102 Grpc::Testing::ClientStats.new(latencies: lat, time_elapsed: elapsed)
114 q = EnumeratorQueue.new(self)
115 Thread.new {
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
fix_ws_comma.py 25 new = node.clone()
27 for child in new.children:
39 return new
fix_raise.py 62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc])
63 new.prefix = node.prefix
64 return new
84 new = pytree.Node(syms.simple_stmt, [Name(u"raise")] + with_tb)
85 new.prefix = node.prefix
86 return new
  /external/boringssl/src/util/bot/go/
env.py 34 new = bootstrap.prepare_go_environ() variable
37 for key, value in sorted(new.iteritems()):
45 # Help Windows to find the executable in new PATH, do it only when
49 sys.exit(subprocess.call([exe] + sys.argv[2:], env=new))
  /external/python/cpython2/Lib/lib2to3/fixes/
fix_unicode.py 26 new = node.clone()
27 new.value = _mapping[node.value]
28 return new
40 new = node.clone()
41 new.value = val
42 return new
fix_ws_comma.py 25 new = node.clone()
27 for child in new.children:
39 return new
  /external/python/cpython3/Lib/lib2to3/fixes/
fix_unicode.py 26 new = node.clone()
27 new.value = _mapping[node.value]
28 return new
40 new = node.clone()
41 new.value = val
42 return new
fix_ws_comma.py 25 new = node.clone()
27 for child in new.children:
39 return new

Completed in 3275 milliseconds

1 2 3 45 6 7 8 91011>>