Home
last modified time | relevance | path

Searched refs:WithValue (Results 1 – 25 of 35) sorted by relevance

12

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsIterableContainingInOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = contains(value(1), value(2), va…
37 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
50 …tMismatchDescription("no item was value with <4>", contains(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
61 public static class WithValue { class in IsIterableContainingInOrderTest
63 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInOrderTest.WithValue
68 public static WithValue make(int value) { in make()
69 return new WithValue(value); in make()
72 public static Matcher<WithValue> value(int value) { in value()
73 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
74 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInRelativeOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = containsInRelativeOrder(value(1…
57 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
70 …ion("value with <4> was not found", containsInRelativeOrder(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
77 public static class WithValue { class in IsIterableContainingInRelativeOrderTest
79 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInRelativeOrderTest.WithValue
84 public static WithValue make(int value) { in make()
85 return new WithValue(value); in make()
88 public static Matcher<WithValue> value(int value) { in value()
89 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
90 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInAnyOrderTest.java5 import org.hamcrest.collection.IsIterableContainingInOrderTest.WithValue;
43 …final Matcher<Iterable<? extends WithValue>> helpTheCompilerOut = containsInAnyOrder(value(1), val… in testDoesNotMatchIfThereAreMoreElementsThanMatchers()
/external/syzkaller/vendor/google.golang.org/appengine/internal/
Dapi_common.go29 return netcontext.WithValue(ctx, &callOverrideKey, cofs)
40 ctx = netcontext.WithValue(ctx, &callOverrideKey, cofs[:len(cofs)-1])
49 return netcontext.WithValue(ctx, &logOverrideKey, f)
55 return netcontext.WithValue(ctx, &appIDOverrideKey, appID)
61 return netcontext.WithValue(ctx, &namespaceKey, ns)
Dtransaction.go47 return netcontext.WithValue(ctx, &transactionKey, t)
Dapi_classic.go42 ctx := netcontext.WithValue(parent, &contextKey, c)
/external/tensorflow/tensorflow/core/ops/
Dimage_ops.cc36 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 2, &unused)); in SetOutputToSizedImage()
103 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(input, -1), 3, &last_dim)); in ColorspaceShapeFn()
128 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 1), 4, &unused)); in NMSShapeFn()
156 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 3), 4, &unused)); in CombinedNMSShapeFn()
333 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 2, &unused_dim)); in __anon6a71d27f0602()
425 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 4, &unused_dim)); in __anon6a71d27f0802()
590 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 2), 4, &unused)); in __anon6a71d27f0f02()
622 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(image_size, 0), 3, &unused)); in __anon6a71d27f1002()
623 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(bounding_boxes, 2), 4, &unused)); in __anon6a71d27f1002()
657 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(image_size, 0), 3, &unused)); in __anon6a71d27f1102()
[all …]
Ddata_flow_ops.cc166 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorInputsAndScalarOutputs()
603 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1202()
625 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1302()
668 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1402()
695 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1502()
722 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anon4a7ac08d1602()
757 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anon4a7ac08d1702()
785 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1802()
804 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1902()
819 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon4a7ac08d1a02()
[all …]
Dlookup_ops.cc37 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorInputsAndScalarOutputs()
51 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in ScalarAndTwoElementVectorInputsAndScalarOutputs()
81 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811960202()
197 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811960402()
252 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811960702()
294 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811960902()
452 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811960e02()
487 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon8a0811961002()
Dio_ops.cc45 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorAndScalarOutputs()
79 c->WithValue(c->Dim(s, 0), c->num_inputs() - 3, &unused_dim)); in __anone43acdb40202()
161 c->WithValue(c->Dim(s, 0), c->num_inputs() - 2, &unused_dim)); in __anone43acdb40502()
185 c->WithValue(c->Dim(s, 0), c->num_inputs() - 3, &unused_dim)); in __anone43acdb40602()
443 c->WithValue(c->Dim(c->input(0), 0), 2, &unused_handle)); in __anone43acdb40b02()
Dstateless_random_ops.cc30 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused)); in StatelessShape()
84 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused_dim)); in __anon530aab340202()
Dset_ops.cc121 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anon967df2c80202()
172 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anon967df2c80302()
Dcandidate_sampling_ops.cc153 c->WithValue(c->Dim(true_classes, 1), num_true, &unused)); in __anon78463f730202()
Dspectral_ops.cc85 c->WithValue(c->Dim(fft_length_input, 0), rank, &unused_dim)); in RFFTShape()
Dsparse_ops.cc162 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), -1), 3, &unused)); in __anona7ffb82a0702()
182 c->WithValue(c->Dim(serialized_sparse, 1), 3, &unused)); in __anona7ffb82a0802()
/external/syzkaller/vendor/google.golang.org/grpc/stats/
Dstats.go228 return context.WithValue(ctx, outgoingTagsKey{}, b)
247 return context.WithValue(ctx, incomingTagsKey{}, b)
270 return context.WithValue(ctx, outgoingTraceKey{}, b)
288 return context.WithValue(ctx, incomingTraceKey{}, b)
/external/syzkaller/vendor/google.golang.org/grpc/metadata/
Dmetadata.go142 return context.WithValue(ctx, mdIncomingKey{}, md)
149 return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md})
164 return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md.md, added: added})
/external/syzkaller/vendor/golang.org/x/net/context/
Dgo17.go70 func WithValue(parent Context, key interface{}, val interface{}) Context { func
71 return context.WithValue(parent, key, val)
Dpre_go17.go280 func WithValue(parent Context, key interface{}, val interface{}) Context { func
/external/syzkaller/vendor/golang.org/x/net/http2/
Dgo17.go23 ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())
25 ctx = context.WithValue(ctx, http.ServerContextKey, hs)
/external/syzkaller/vendor/golang.org/x/net/trace/
Dtrace_go17.go14 return context.WithValue(ctx, contextKey, tr)
Dtrace_go16.go14 return context.WithValue(ctx, contextKey, tr)
/external/syzkaller/vendor/google.golang.org/grpc/peer/
Dpeer.go44 return context.WithValue(ctx, peerKey{}, p)
/external/tensorflow/tensorflow/contrib/image/ops/
Dimage_ops.cc36 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 2, &unused)); in SetOutputToSizedImage()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_test.cc425 TEST_F(ShapeInferenceTest, WithValue) { in TEST_F() argument
435 EXPECT_TRUE(c.WithValue(d1, 1, &out1).ok()); in TEST_F()
438 EXPECT_TRUE(c.WithValue(d1, 2, &out2).ok()); in TEST_F()
443 EXPECT_TRUE(c.WithValue(d1, 1, &out2).ok()); in TEST_F()
451 str_util::StrContains(c.WithValue(d0, 0, &out1).ToString(), in TEST_F()
456 str_util::StrContains(c.WithValue(d0, 2, &out1).ToString(), in TEST_F()
460 EXPECT_TRUE(c.WithValue(d0, 1, &out1).ok()); in TEST_F()

12