HomeSort by relevance Sort by last modified time
    Searched refs:expected (Results 51 - 75 of 8787) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/boringssl/src/crypto/
refcount_c11.c 39 uint32_t expected = atomic_load(count); local
41 while (expected != CRYPTO_REFCOUNT_MAX) {
42 uint32_t new_value = expected + 1;
43 if (atomic_compare_exchange_weak(count, &expected, new_value)) {
51 uint32_t expected = atomic_load(count); local
54 if (expected == 0) {
56 } else if (expected == CRYPTO_REFCOUNT_MAX) {
59 const uint32_t new_value = expected - 1;
60 if (atomic_compare_exchange_weak(count, &expected, new_value)) {
  /external/tensorflow/tensorflow/core/kernels/
resize_nearest_neighbor_op_test.cc 66 Tensor expected(allocator(), DT_FLOAT, TensorShape({1, 1, 1, 1}));
69 test::FillValues<float>(&expected, {1});
72 test::ExpectTensorEqual<float>(expected, *GetOutput(0));
84 Tensor expected(allocator(), DT_FLOAT, TensorShape({1, 1, 1, 1}));
87 test::FillValues<float>(&expected, {1});
90 test::ExpectTensorEqual<float>(expected, *GetOutput(0));
101 Tensor expected(allocator(), DT_FLOAT, TensorShape({1, 3, 3, 1}));
104 test::FillValues<float>(&expected,
110 test::ExpectTensorEqual<float>(expected, *GetOutput(0));
122 Tensor expected(allocator(), DT_FLOAT, TensorShape({1, 3, 3, 1}))
    [all...]
  /external/parameter-framework/upstream/test/tokenizer/
Test.cpp 42 using Expected = vector<string>;
50 Expected expected{"a", "bcd", "ef"};
53 CHECK(tokenizer.split() == expected);
59 Expected expected{};
62 CHECK(tokenizer.split() == expected);
68 Expected expected{"a", "bc"};
71 CHECK(tokenizer.split() == expected);
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContentValuesTest.java 46 // expected, test success.
53 // expected, test success.
85 Long expected = 10L; local
86 mContentValues.put("Long", expected);
87 assertEquals(expected, mContentValues.getAsLong("Long"));
89 expected = -1000L;
90 mContentValues.put("Long", expected);
91 assertEquals(expected, mContentValues.getAsLong("Long"));
98 Byte expected = 'a'; local
99 mContentValues.put("Byte", expected);
111 Integer expected = 20; local
139 Short expected = 20; local
170 Float expected = 1.0F; local
202 Object expected = "android"; local
241 Double expected = 10.2; local
254 String expected = "cts"; local
267 Byte expected = 'a'; local
280 Short expected = 20; local
293 Integer expected = 20; local
306 Long expected = 10L; local
319 Float expected = 1.0F; local
332 Double expected = 10.2; local
393 ArrayList<String> expected = new ArrayList<String>(); local
431 String expected = "cts"; local
    [all...]
  /external/llvm/test/MC/Mips/dsp/
invalid.s 4 extp $2, $ac1, -1 # CHECK: :[[@LINE]]:18: error: expected 5-bit unsigned immediate
5 extp $2, $ac1, 32 # CHECK: :[[@LINE]]:18: error: expected 5-bit unsigned immediate
6 extpdp $2, $ac1, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
7 extpdp $2, $ac1, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
8 extr.w $2, $ac1, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
9 extr.w $2, $ac1, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
10 extr_r.w $2, $ac1, -1 # CHECK: :[[@LINE]]:22: error: expected 5-bit unsigned immediate
11 extr_r.w $2, $ac1, 32 # CHECK: :[[@LINE]]:22: error: expected 5-bit unsigned immediate
12 extr_rs.w $2, $ac1, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
13 extr_rs.w $2, $ac1, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediat
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
UtilsTest.java 36 final SpannableString expected = new SpannableString(entire); local
37 expected.setSpan(new TextAppearanceSpan(getContext(), appearance), 6, 11, 0);
39 assertSpannedEquals(expected, actual);
48 final SpannableString expected = new SpannableString(entire); local
50 assertSpannedEquals(expected, actual);
53 public static void assertSpannedEquals(Spanned expected, Spanned actual) {
54 assertEquals(expected.length(), actual.length());
55 assertEquals(expected.toString(), actual.toString());
56 if (expected.length() > 0) {
58 expected.getSpans(0, expected.length(), TextAppearanceSpan.class)
    [all...]
  /external/libese/libapdu/tests/
apdu_test.cpp 32 const std::vector<uint8_t> expected{1, 2, 3, 4};
33 ASSERT_EQ(expected.size(), apdu.size());
34 ASSERT_TRUE(std::equal(apdu.begin(), apdu.end(), expected.begin(), expected.end()));
39 const std::vector<uint8_t> expected{4, 3, 2, 1, 3};
40 ASSERT_EQ(expected.size(), apdu.size());
41 ASSERT_TRUE(std::equal(apdu.begin(), apdu.end(), expected.begin(), expected.end()));
46 const std::vector<uint8_t> expected{4, 3, 2, 1, 0};
47 ASSERT_EQ(expected.size(), apdu.size())
173 const uint8_t expected[] = {1, 2, 3, 9, 8, 7}; local
    [all...]
  /art/test/911-get-stack-trace/
check 17 # Jack has a different set of bytecode offsets/method IDs in the expected.txt
19 patch -p0 expected.txt < expected_jack.diff
23 patch -p0 expected.txt < expected_d8.diff
34 patch -p0 expected.txt < expected_d8.diff
  /external/autotest/client/cros/cellular/
air_state_verifier.py 24 def IsDataStatusIn(self, expected):
36 def IsDataStatusIn(self, expected):
38 return actual in expected
40 def AssertDataStatusIn(self, expected):
42 if actual not in expected:
44 'expected UE in status %s, got %s' % (expected, actual))
  /external/easymock/src/org/easymock/internal/matchers/
Same.java 27 private final Object expected; field in class:Same
29 public Same(Object expected) {
30 this.expected = expected;
34 return expected == actual;
39 ArgumentToString.appendArgument(expected, buffer);
  /external/junit/src/main/java/junit/framework/
TestCase.java 31 * with the fixture. Verify the expected results with assertions specified
243 public static void assertEquals(String message, Object expected, Object actual) {
244 Assert.assertEquals(message, expected, actual);
252 public static void assertEquals(Object expected, Object actual) {
253 Assert.assertEquals(expected, actual);
260 public static void assertEquals(String message, String expected, String actual) {
261 Assert.assertEquals(message, expected, actual);
268 public static void assertEquals(String expected, String actual) {
269 Assert.assertEquals(expected, actual);
274 * an AssertionFailedError is thrown with the given message. If the expected
    [all...]
  /external/webrtc/webrtc/modules/audio_processing/beamformer/
matrix_test_helpers.h 30 static void ValidateMatrixEquality(const Matrix<T>& expected,
32 EXPECT_EQ(expected.num_rows(), actual.num_rows());
33 EXPECT_EQ(expected.num_columns(), actual.num_columns());
35 const T* const* expected_elements = expected.elements();
37 for (size_t i = 0; i < expected.num_rows(); ++i) {
38 for (size_t j = 0; j < expected.num_columns(); ++j) {
44 static void ValidateMatrixEqualityFloat(const Matrix<float>& expected,
46 EXPECT_EQ(expected.num_rows(), actual.num_rows());
47 EXPECT_EQ(expected.num_columns(), actual.num_columns());
49 const float* const* expected_elements = expected.elements()
    [all...]
  /frameworks/support/media/version-compat-tests/lib/src/main/java/android/support/mediacompat/testlib/util/
TestUtil.java 32 public static void assertBundleEquals(Bundle expected, Bundle observed) {
33 if (expected == null || observed == null) {
34 assertSame(expected, observed);
36 assertEquals(expected.size(), observed.size());
37 for (String key : expected.keySet()) {
38 assertEquals(expected.get(key), observed.get(key));
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
BindingsVersioningTest.java 53 MultiVersionStruct expected = new MultiVersionStruct(); local
54 expected.fInt32 = 123;
57 assertEquals(expected, output);
66 MultiVersionStruct expected = new MultiVersionStruct(); local
67 expected.fInt32 = 123;
68 expected.fRect = newRect(5);
71 assertEquals(expected, output);
81 MultiVersionStruct expected = new MultiVersionStruct(); local
82 expected.fInt32 = 123;
83 expected.fRect = newRect(5)
98 MultiVersionStruct expected = new MultiVersionStruct(); local
121 MultiVersionStruct expected = new MultiVersionStruct(); local
147 MultiVersionStructV0 expected = new MultiVersionStructV0(); local
156 MultiVersionStructV1 expected = new MultiVersionStructV1(); local
166 MultiVersionStructV3 expected = new MultiVersionStructV3(); local
177 MultiVersionStructV5 expected = new MultiVersionStructV5(); local
190 MultiVersionStructV7 expected = new MultiVersionStructV7(); local
    [all...]
  /external/libnetfilter_conntrack/utils/
expect_delete.c 13 struct nf_conntrack *expected; local
16 expected = nfct_new();
17 if (!expected) {
22 nfct_set_attr_u8(expected, ATTR_L3PROTO, AF_INET);
23 nfct_set_attr_u32(expected, ATTR_IPV4_SRC, inet_addr("1.1.1.1"));
24 nfct_set_attr_u32(expected, ATTR_IPV4_DST, inet_addr("2.2.2.2"));
26 nfct_set_attr_u8(expected, ATTR_L4PROTO, IPPROTO_TCP);
27 nfct_set_attr_u16(expected, ATTR_PORT_SRC, 0);
28 nfct_set_attr_u16(expected, ATTR_PORT_DST, htons(10241));
33 nfct_destroy(expected);
    [all...]
  /external/tensorflow/tensorflow/core/framework/
kernel_def_builder_test.cc 27 KernelDef expected; local
29 &expected);
30 EXPECT_EQ(def->DebugString(), expected.DebugString());
39 KernelDef expected; local
43 &expected);
45 EXPECT_EQ(def->DebugString(), expected.DebugString());
58 &expected);
59 EXPECT_EQ(def->DebugString(), expected.DebugString());
70 &expected);
71 EXPECT_EQ(def->DebugString(), expected.DebugString())
81 KernelDef expected; local
    [all...]
  /frameworks/support/preference/src/androidTest/java/androidx/preference/tests/
PreferencePersistTest.java 88 final String expected = "Default"; local
90 String result = mPreference.getString(expected);
92 assertEquals(expected, result);
98 final String expected = "Test"; local
100 boolean wasPersisted = mPreference.putString(expected);
103 assertEquals(expected, mSharedPref.getString(KEY, null));
120 final String expected = "Test"; local
122 mPreference.putString(expected);
125 assertEquals(expected, result);
131 final String expected = "Second" local
144 final Set<String> expected = TEST_DEFAULT_STR_SET; local
175 final Set<String> expected = TEST_STR_SET; local
186 final Set<String> expected = TEST_STR_SET2; local
199 final int expected = 1; local
208 final int expected = 1; local
230 final int expected = 1; local
241 final int expected = 2; local
260 final long expected = 1; local
282 final long expected = 1; local
293 final long expected = 2; local
312 final float expected = 1; local
334 final float expected = 1; local
345 final float expected = 2; local
    [all...]
  /frameworks/support/transition/src/androidTest/java/androidx/transition/
ArcMotionTest.java 37 Path expected = arcWithPoint(0, 100, 100, 0, 100, 100); local
39 assertPathMatches(expected, path);
41 expected = arcWithPoint(100, 0, 0, -100, 0, 0);
43 assertPathMatches(expected, path);
45 expected = arcWithPoint(0, -100, -100, 0, 0, 0);
47 assertPathMatches(expected, path);
49 expected = arcWithPoint(-100, 0, 0, 100, -100, 100);
51 assertPathMatches(expected, path);
59 Path expected; local
62 expected = arcWithPoint(0, 120, 160, 0, 125, 120)
117 Path expected = arcWithPoint(0, 100, 100, 0, ex, ey); local
130 Path expected = arcWithPoint(0, 0, 100, 50, ex, ey); local
170 Path expected = arcWithPoint(0, 0, 50, 100, ex, ey); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ArrayTest.java 46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {}
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {}
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {}
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {}
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {}
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
53 try { Array.getBoolean(null, 0); fail(); } catch (NullPointerException expected) {}
57 try { Array.getByte(booleans, 0); fail(); } catch (IllegalArgumentException expected) {}
59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {}
    [all...]
  /external/curl/tests/libtest/
lib557.c 66 const char *expected; /* expected string */ member in struct:unsshort_st
73 const char *expected; /* expected string */ member in struct:sigshort_st
80 const char *expected; /* expected string */ member in struct:unsint_st
87 const char *expected; /* expected string */ member in struct:sigint_st
94 const char *expected; /* expected string * member in struct:unslong_st
101 const char *expected; \/* expected string *\/ member in struct:siglong_st
108 const char *expected; \/* expected string *\/ member in struct:curloff_st
    [all...]
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ColorUtils.java 25 public static void verifyColor(int expected, int observed) {
26 verifyColor(expected, observed, 0);
29 public static void verifyColor(int expected, int observed, int tolerance) {
30 String s = "expected " + Integer.toHexString(expected)
33 assertEquals(s, Color.red(expected), Color.red(observed), tolerance);
34 assertEquals(s, Color.green(expected), Color.green(observed), tolerance);
35 assertEquals(s, Color.blue(expected), Color.blue(observed), tolerance);
36 assertEquals(s, Color.alpha(expected), Color.alpha(observed), tolerance);
  /cts/tests/tests/net/src/android/net/cts/
NetworkInfo_StateTest.java 34 State[] expected = State.values(); local
35 assertEquals(6, expected.length);
36 assertEquals(State.CONNECTING, expected[0]);
37 assertEquals(State.CONNECTED, expected[1]);
38 assertEquals(State.SUSPENDED, expected[2]);
39 assertEquals(State.DISCONNECTING, expected[3]);
40 assertEquals(State.DISCONNECTED, expected[4]);
41 assertEquals(State.UNKNOWN, expected[5]);
  /external/clang/bindings/python/tests/cindex/
test_code_completion.py 3 def check_completion_results(cr, expected):
9 for c in expected:
30 expected = [
35 check_completion_results(cr, expected)
59 expected = [
66 check_completion_results(cr, expected)
69 expected = [
75 check_completion_results(cr, expected)
  /external/clang/test/Sema/
decl-invalid.c 4 typedef union <anonymous> __mbstate_t; // expected-error {{declaration of anonymous union must be a definition}} expected-warning {{typedef requires a name}}
10 int r[x()]; // expected-error {{size of array has non-integer type 'void'}}
12 static y ?; // expected-error{{unknown type name 'y'}} \
13 expected-error{{expected identifier or '('}}
16 int; // expected-warning {{declaration does not declare anything}}
17 typedef int; // expected-warning {{typedef requires a name}}
18 const int; // expected-warning {{declaration does not declare anything}}
19 struct; // expected-error {{declaration of anonymous struct must be a definition}} // expected-warning {{declaration d (…)
    [all...]
  /external/compiler-rt/test/builtins/Unit/
absvdi2_test.c 27 di_int expected = a; local
28 if (expected < 0)
29 expected = -expected;
30 if (x != expected || expected < 0)
31 printf("error in __absvdi2(0x%llX) = %lld, expected positive %lld\n",
32 a, x, expected);
33 return x != expected;

Completed in 935 milliseconds

1 23 4 5 6 7 8 91011>>