| /external/libchrome/components/json_schema/ |
| D | json_schema_validator_unittest_base.cc | 2 // Use of this source code is governed by a BSD-style license that can be 28 base::Value* LoadValue(const std::string& filename) { in LoadValue() 30 base::PathService::Get(base::DIR_SOURCE_ROOT, &path); in LoadValue() 40 base::Value* result = in LoadValue() 47 base::Value* LoadValue(const std::string& filename, base::Value::Type type) { in LoadValue() 48 std::unique_ptr<base::Value> result(LoadValue(filename)); in LoadValue() 51 if (result->type() != type) { in LoadValue() 52 ADD_FAILURE() << "Expected type " << type << ", got: " << result->type(); in LoadValue() 60 LoadValue(filename, base::Value::Type::LIST)); in LoadList() 65 LoadValue(filename, base::Value::Type::DICTIONARY)); in LoadDictionary() [all …]
|
| /external/robolectric/resources/src/main/java/org/robolectric/res/android/ |
| D | AttributeResolution.java | 32 for (int curIndex = bagEndIndex - 1; curIndex >= 0; curIndex--) { in find() 76 Res_value value; in ResolveAttrs() local 85 value = valueRef.get(); in ResolveAttrs() 86 if (value.dataType == Res_value.TYPE_REFERENCE) { in ResolveAttrs() 87 defStyleRes = value.data; in ResolveAttrs() 99 ? res.getBagLocked(defStyleRes, defStyleStart, defStyleTypeSetFlags) : -1; in ResolveAttrs() 100 defStyleTypeSetFlags.set(defStyleTypeSetFlags.get() | defStyleBagTypeSetFlags.get()); in ResolveAttrs() 103 … BagAttributeFinder defStyleAttrFinder = new BagAttributeFinder(defStyleStart.get(), defStyleEnd); in ResolveAttrs() 115 int block = -1; in ResolveAttrs() 118 value = Res_value.NULL_VALUE; in ResolveAttrs() [all …]
|
| D | AttributeResolution10.java | 15 // https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_rXX/libs/androidfw/At… 16 // https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_rXX/libs/androidfw/in… 23 // array, but each logical element takes up 7 uint32_t-sized physical elements. 36 return cookie.intValue() != kInvalidCookie ? (cookie.intValue() + 1) : -1; in ApkAssetsCookieToJavaCookie() 49 return -1; in Find() 58 return -1; in Find() 78 int i = Arrays.binarySearch(bagEntries, needle, (o1, o2) -> o1.key - o2.key); in Find() 84 // but on various data sources. I *think* they are re-written to avoid an extra branch 103 Res_value value; in ResolveAttrs() local 112 value = valueRef.get(); in ResolveAttrs() [all …]
|
| D | AttributeResolution9.java | 14 // https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r12/libs/androidfw/Att… 15 // https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r12/libs/androidfw/inc… 22 // array, but each logical element takes up 6 uint32_t-sized physical elements. 33 return cookie.intValue() != kInvalidCookie ? (cookie.intValue() + 1) : -1; in ApkAssetsCookieToJavaCookie() 46 return -1; in Find() 55 return -1; in Find() 75 int i = Arrays.binarySearch(bagEntries, needle, (o1, o2) -> o1.key - o2.key); in Find() 81 // but on various data sources. I *think* they are re-written to avoid an extra branch 100 Res_value value; in ResolveAttrs() local 109 value = valueRef.get(); in ResolveAttrs() [all …]
|
| /external/boringssl/src/crypto/stack/ |
| D | stack_test.cc | 58 // The tests in this file will never use it as a test value. 77 // Reading out-of-bounds fails. in ExpectStackEquals() 87 ExpectStackEquals(sk.get(), {}); in TEST() 90 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() 91 EXPECT_FALSE(sk_TEST_INT_shift(sk.get())); in TEST() 92 EXPECT_FALSE(sk_TEST_INT_delete(sk.get(), 0)); in TEST() 96 auto value = TEST_INT_new(i); in TEST() local 97 ASSERT_TRUE(value); in TEST() 98 ASSERT_TRUE(bssl::PushToStack(sk.get(), std::move(value))); in TEST() 101 ExpectStackEquals(sk.get(), {0, 1, 2, 3, 4, 5}); in TEST() [all …]
|
| /external/cronet/third_party/boringssl/src/crypto/stack/ |
| D | stack_test.cc | 58 // The tests in this file will never use it as a test value. 77 // Reading out-of-bounds fails. in ExpectStackEquals() 87 ExpectStackEquals(sk.get(), {}); in TEST() 90 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() 91 EXPECT_FALSE(sk_TEST_INT_shift(sk.get())); in TEST() 92 EXPECT_FALSE(sk_TEST_INT_delete(sk.get(), 0)); in TEST() 96 auto value = TEST_INT_new(i); in TEST() local 97 ASSERT_TRUE(value); in TEST() 98 ASSERT_TRUE(bssl::PushToStack(sk.get(), std::move(value))); in TEST() 101 ExpectStackEquals(sk.get(), {0, 1, 2, 3, 4, 5}); in TEST() [all …]
|
| /external/mesa3d/src/mapi/glapi/gen/ |
| D | gl_API.xml | 6 <!-- Core versions sorted by version number. --> 9 <enum name="FALSE" value="0x0"/> 10 <enum name="TRUE" value="0x1"/> 11 <enum name="ZERO" value="0x0"/> 12 <enum name="ONE" value="0x1"/> 13 <enum name="NONE" value="0x0"/> 14 <enum name="NO_ERROR" value="0x0"/> 15 <enum name="POINTS" value="0x0000"/> 16 <enum name="LINES" value="0x0001"/> 17 <enum name="LINE_LOOP" value="0x0002"/> [all …]
|
| D | ARB_framebuffer_object.xml | 4 <!-- Note: no GLX protocol info yet. --> 9 <enum name="FRAMEBUFFER" value="0x8D40"/> 10 <enum name="READ_FRAMEBUFFER" value="0x8CA8"/> 11 <enum name="DRAW_FRAMEBUFFER" value="0x8CA9"/> 13 <enum name="RENDERBUFFER" value="0x8D41"/> 15 <enum name="STENCIL_INDEX1" value="0x8D46"/> 16 <enum name="STENCIL_INDEX4" value="0x8D47"/> 17 <enum name="STENCIL_INDEX8" value="0x8D48"/> 18 <enum name="STENCIL_INDEX16" value="0x8D49"/> 20 <enum name="RENDERBUFFER_WIDTH" value="0x8D42"/> [all …]
|
| /external/rust/crates/quiche/deps/boringssl/src/crypto/stack/ |
| D | stack_test.cc | 57 // The tests in this file will never use it as a test value. 76 // Reading out-of-bounds fails. in ExpectStackEquals() 86 ExpectStackEquals(sk.get(), {}); in TEST() 89 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() 90 EXPECT_FALSE(sk_TEST_INT_shift(sk.get())); in TEST() 91 EXPECT_FALSE(sk_TEST_INT_delete(sk.get(), 0)); in TEST() 95 auto value = TEST_INT_new(i); in TEST() local 96 ASSERT_TRUE(value); in TEST() 97 ASSERT_TRUE(bssl::PushToStack(sk.get(), std::move(value))); in TEST() 100 ExpectStackEquals(sk.get(), {0, 1, 2, 3, 4, 5}); in TEST() [all …]
|
| /external/llvm/unittests/IR/ |
| D | ValueHandleTest.cpp | 1 //===- ValueHandleTest.cpp - ValueHandle tests ----------------------------===// 8 //===----------------------------------------------------------------------===// 28 : ConstantV(ConstantInt::get(Type::getInt32Ty(Context), 0)), in ValueHandle() 34 ConcreteCallbackVH(Value *V) : CallbackVH(V) {} in ConcreteCallbackVH() 38 WeakVH WVH(BitcastV.get()); in TEST_F() 39 EXPECT_EQ(BitcastV.get(), WVH); in TEST_F() 43 // Make sure I can call a method on the underlying Value. It in TEST_F() 45 EXPECT_EQ(Type::getInt32Ty(Context), WVH->getType()); in TEST_F() 50 WeakVH BitcastWVH(BitcastV.get()); in TEST_F() 54 EXPECT_TRUE(BitcastV.get() == BitcastWVH); in TEST_F() [all …]
|
| /external/libchrome/dbus/ |
| D | values_util_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 26 MessageWriter writer(response.get()); in TEST() 31 const int16_t kInt16Value = -43; in TEST() 35 const int32_t kInt32Value = -45; in TEST() 39 const int64_t kInt64Value = -47; in TEST() 52 MessageReader reader(response.get()); in TEST() 53 std::unique_ptr<base::Value> value; in TEST() local 54 std::unique_ptr<base::Value> expected_value; in TEST() 56 value = PopDataAsValue(&reader); in TEST() 57 ASSERT_NE(nullptr, value); in TEST() [all …]
|
| /external/perfetto/src/trace_processor/tables/ |
| D | macros_unittest.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 36 C(std::optional<double>, value) 93 ASSERT_EQ(id.value, 0u); in TEST_F() 99 ASSERT_EQ(id.value, 1u); in TEST_F() 111 ASSERT_EQ(id.value, 2u); in TEST_F() 131 ASSERT_EQ(id.value, 2u); in TEST_F() 171 ASSERT_EQ(dur->Get(0).type, SqlValue::kNull); in TEST_F() 172 ASSERT_EQ(dur->Get(1).type, SqlValue::kNull); in TEST_F() 177 ASSERT_EQ(dur->Get(0).long_value, 100); in TEST_F() 178 ASSERT_EQ(dur->Get(1).long_value, 101); in TEST_F() [all …]
|
| /external/guava/guava-tests/test/com/google/common/util/concurrent/ |
| D | AtomicDoubleTest.java | 3 * members of JCP JSR-166 Expert Group and released to the public 10 …* http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck-jsr166e/AtomicDoubleTest.java?r… 23 -Double.MAX_VALUE, 26 -Math.PI, 27 -1.0, 28 -Double.MIN_VALUE, 29 -0.0, 51 /** constructor initializes to given value */ 55 assertBitEquals(x, a.get()); in testConstructor() 62 assertBitEquals(0.0, a.get()); in testConstructor2() [all …]
|
| /external/antlr/runtime/CSharp2/ |
| D | antlr3.runtime.net.common.inc | 4 <!-- Common properties that allow overrides --> 6 <property name="rootbuild.dir" value="${directory::get-current-directory()}" /> 8 …<property name="build.dest.dir" value="${rootbuild.dir}/build/${framework::get-target-framework()… 9 <property name="build.working.dir" value="${rootbuild.dir}/bin" /> 11 …<property name="strong_name" value="NANT_STRONGNAME" unless="${property::exists('strong_name')}" … 12 <property name="debug" value="false" unless="${property::exists('debug')}" /> 13 <property name="optimize" value="true" unless="${property::exists('optimize')}" /> 14 <property name="doc.dir" value="${base.dir}/docs" /> 15 <property name="nunit.formatter" value="Plain" unless="${property::exists('nunit.formatter')}" /> 16 …<property name="os" value="${operating-system::to-string(environment::get-operating-system())}… [all …]
|
| /external/cronet/base/android/junit/src/org/chromium/base/ |
| D | PromiseTest.java | 2 // Use of this source code is governed by a BSD-style license that can be 29 private static class Value { class in PromiseTest 32 public int get() { in get() method in PromiseTest.Value 36 public void set(int value) { in set() argument 37 mValue = value; in set() 44 final Value value = new Value(); in callback() local 47 promise.then(PromiseTest.setValue(value, 1)); in callback() 49 assertEquals(value.get(), 0); in callback() 52 assertEquals(value.get(), 1); in callback() 58 final Value value = new Value(); in multipleCallbacks() local [all …]
|
| /external/guice/extensions/servlet/test/com/google/inject/servlet/ |
| D | ExtensionSpiTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 75 assertEquals(48, visitor.currentCount - visitor.otherCount); in validateVisitor() 80 new Params("/class", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor() 81 new Params("/class/2", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor() 84 Key.get(DummyFilterImpl.class, Names.named("foo")), in validateVisitor() 89 Key.get(DummyFilterImpl.class, Names.named("foo")), in validateVisitor() 96 Key.get(DummyFilterImpl.class), in validateVisitor() 97 ImmutableMap.of("key", "value"), in validateVisitor() 101 Key.get(DummyFilterImpl.class), in validateVisitor() 102 ImmutableMap.of("key", "value"), in validateVisitor() [all …]
|
| /external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
| D | UntypedDeserializationTest.java | 43 protected final Integer value; field in UntypedDeserializationTest.CustomNumberDeserializer 47 value = nr; in CustomNumberDeserializer() 52 return value; in deserialize() 102 protected Object value; field in UntypedDeserializationTest.DelegatingUntyped 106 value = v; in DelegatingUntyped() 112 public Object value; field in UntypedDeserializationTest.WrappedPolymorphicUntyped 115 public WrappedPolymorphicUntyped(Object o) { value = o; } in WrappedPolymorphicUntyped() 119 public Object value; field in UntypedDeserializationTest.WrappedUntyped1460 124 public java.io.Serializable value; field in UntypedDeserializationTest.SerContainer 140 /* To get "untyped" Mapping (to Maps, Lists, instead of beans etc), in testSampleDoc() [all …]
|
| D | DateDeserializationTest.java | 37 @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd,HH", timezone="CET") 48 public Calendar value; field in DateDeserializationTest.LenientCalendarBean 53 public Calendar value; field in DateDeserializationTest.StrictCalendarBean 58 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS") 98 java.util.Date value = new java.util.Date(now); in testDateUtil() local 101 assertEquals(value, MAPPER.readValue(""+now, java.util.Date.class)); in testDateUtil() 104 String dateStr = dateToString(value); in testDateUtil() 107 …assertEquals("Date: expect "+value+" ("+value.getTime()+"), got "+result+" ("+result.getTime()+")", in testDateUtil() 108 value.getTime(), result.getTime()); in testDateUtil() 115 * as it is plain timestamp (all numbers, 64-bit) in testDateUtilWithStringTimestamp() [all …]
|
| /external/chromium-trace/catapult/devil/devil/android/sdk/ |
| D | shared_prefs.py | 2 # Use of this source code is governed by a BSD-style license that can be 21 _XML_DECLARATION = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" 25 """Base class for getting/setting the value of a specific preference type. 43 (elem.get('name'), elem.tag, type(self).tag_name)) 47 """Get the underlying xml element as a string.""" 53 def get(self): member in BasePref 54 """Get the value of this preference.""" 55 return self._elem.get('value') 57 def set(self, value): argument 58 """Set from a value casted as a string.""" [all …]
|
| /external/protobuf/objectivec/ |
| D | GPBUtilities.h | 1 // Protocol Buffers - Google's data interchange format 3 // https://developers.google.com/protocol-buffers/ 105 //%PDDM-EXPAND GPB_ACCESSORS() 107 // clang-format off 111 // Get/Set a given field from/to a message. 117 * Gets the value of a bytes field. 119 * @param self The message from which to get the field. 120 * @param field The field to get. 125 * Sets the value of a bytes field. 129 * @param value The to set in the field. [all …]
|
| /external/cronet/third_party/protobuf/objectivec/ |
| D | GPBUtilities.h | 1 // Protocol Buffers - Google's data interchange format 3 // https://developers.google.com/protocol-buffers/ 105 //%PDDM-EXPAND GPB_ACCESSORS() 107 // clang-format off 111 // Get/Set a given field from/to a message. 117 * Gets the value of a bytes field. 119 * @param self The message from which to get the field. 120 * @param field The field to get. 125 * Sets the value of a bytes field. 129 * @param value The to set in the field. [all …]
|
| /external/cronet/third_party/libc++/src/include/__utility/ |
| D | pair.h | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 #include <__fwd/get.h> 117 is_assignable<first_type&, _U1 const&>::value && 118 is_assignable<second_type&, _U2 const&>::value 130 return is_default_constructible<_T1>::value 131 && is_default_constructible<_T2>::value 137 return __is_implicitly_default_constructible<_T1>::value 138 && __is_implicitly_default_constructible<_T2>::value; [all …]
|
| /external/jsr330/tck/org/atinject/tck/auto/ |
| D | Convertible.java | 2 * Copyright (C) 2009 The JSR-330 Expert Group 8 * http://www.apache.org/licenses/LICENSE-2.0 105 throw new AssertionError("Unexpected call to non-injectable constructor"); in Convertible() 109 throw new AssertionError("Unexpected call to non-injectable method"); in setSeat() 163 * value to avoid null checks for omitted provider injections. 167 public T get() { in nullProvider() 178 private final Convertible car = localConvertible.get(); 182 private final Engine engine = car.engineProvider.get(); 239 assertFalse("Expected unqualified value", 241 assertFalse("Expected unqualified value", [all …]
|
| /external/rust/crates/httparse/tests/ |
| D | uri.rs | 28 b"GET /bar;par?b HTTP/1.1\r\nHost: foo\r\n\r\n", 30 assert_eq!(req.method.unwrap(), "GET"); 35 assert_eq!(req.headers[0].value, b"foo"); 42 b"GET /x HTTP/1.1\r\nHost: test\r\n\r\n", 44 assert_eq!(req.method.unwrap(), "GET"); 49 assert_eq!(req.headers[0].value, b"test"); 56 b"GET /x HTTP/1.1\r\nHost: test\r\n\r\n", 58 assert_eq!(req.method.unwrap(), "GET"); 63 assert_eq!(req.headers[0].value, b"test"); 70 b"GET /foo/foo.com HTTP/1.1\r\nHost: example.org\r\n\r\n", [all …]
|
| /external/cronet/base/test/ |
| D | test_future_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 15 #include "testing/gtest/include/gtest/gtest-spi.h" 48 SingleThreadTaskRunner::GetCurrentDefault()->PostTask( in RunLater() 53 SingleThreadTaskRunner::GetCurrentDefault()->PostTask(FROM_HERE, in RunLater() 58 SingleThreadTaskRunner::GetCurrentDefault()->PostTask(FROM_HERE, in RunLater() 63 SingleThreadTaskRunner::GetCurrentDefault()->PostDelayedTask( in PostDelayedTask() 81 EXPECT_EQ(expected_value, future.Get()); in TEST_F() 114 int actual_value = future.Get(); in TEST_F() 124 EXPECT_CHECK_DEATH_WITH(std::ignore = future.Get(), "timed out"); in TEST_F() 171 EXPECT_NONFATAL_FAILURE(future.SetValue(kOtherValue), "Received new value"); in TEST_F() [all …]
|