/external/skia/resources/sksl/folding/ |
D | VectorVectorFolding.sksl | 7 bool ok = true; 8 ok = ok && (half4(half2(1), half2(2, 3)) + half4(5, 6, 7, 8)) == half4(6, 7, 9, 11); 9 ok = ok && (half4(8, half3(10)) - half4(1)) == half4(7, 9, 9, 9); 10 ok = ok && (half4(2) * half4(1, 2, 3, 4)) == half4(2, 4, 6, 8); 11 ok = ok && (half4(12) / half4(1, 2, 3, 4)) == half4(12, 6, 4, 3); 12 ok = ok && !(half4(1) == half4(2)); 13 ok = ok && (half2(1) == half2(1, 1)); 14 ok = ok && (half2(1, 1) == half2(1, 1)); 15 ok = ok && !(half2(1) == half2(1, 0)); 16 ok = ok && (half4(1) == half4(half2(1), half2(1))); [all …]
|
D | IntFoldingES2.sksl | 7 bool ok = true; 9 ok = ok && (x == 34); 11 ok = ok && (x == 30); 13 ok = ok && (x == 64); 15 ok = ok && (x == 16); 17 ok = ok && (x == 1); 19 ok = ok && (x == -2); 21 ok = ok && (x == 3); 23 ok = ok && (x == -4); 25 ok = ok && (x == 5); [all …]
|
D | FloatFolding.sksl | 4 bool ok = true; 6 ok = ok && (x == 34); 8 ok = ok && (x == 30); 10 ok = ok && (x == 64); 12 ok = ok && (x == 16); 14 ok = ok && (x == 19); 16 ok = ok && (x == 1); 18 ok = ok && (x == -2); 20 ok = ok && (x == 3); 22 ok = ok && (x == -4); [all …]
|
D | VectorScalarFolding.sksl | 5 bool ok = true; 9 ok = ok && (x == half4(6, 6, 7, 8)); 11 ok = ok && (x == half4(7, 9, 9, 9)); 13 ok = ok && (x == half4(9, 9, 10, 10)); 15 ok = ok && (x == half4(6, 6, 6, 10)); 17 ok = ok && (x == half4(3, 3, 6, 10)); 21 ok = ok && (x == half4(6)); 25 ok = ok && (x == half4(6, 6, 7, 8)); 27 ok = ok && (x == half4(-7, -9, -9, -9)); 29 ok = ok && (x == half4(9, 9, 10, 10)); [all …]
|
D | MatrixFoldingES2.sksl | 5 bool ok = true; 6 ok = ok && (float2x2(float2(1.0, 0.0), float2(0.0, 1.0)) == 8 ok = ok && !(float2x2(float2(1.0, 0.0), float2(1.0, 1.0)) == 11 ok = ok && ( float2x2(1) == float2x2(1)); 12 ok = ok && !( float2x2(1) == float2x2(0)); 13 ok = ok && ( float2x2(-1) == -float2x2(1)); 14 ok = ok && ( float2x2(0) == -float2x2(0)); 15 ok = ok && (-float2x2(-1) == float2x2(1)); 16 ok = ok && (-float2x2(0) == -float2x2(-0)); 18 ok = ok && (float2x2(1) == float2x2(float2(1.0, 0.0), float2(0.0, 1.0))); [all …]
|
D | ShortCircuitBoolFolding.sksl | 7 int ok = 0, bad = 0; 10 if (true && expr) { ++ok; } else { ++bad; } // -> (expr) 11 if (false && expr) { ++bad; } else { ++ok; } // -> (false) -> block removed 12 if (true ^^ expr) { ++bad; } else { ++ok; } // -> unchanged 13 if (false ^^ expr) { ++ok; } else { ++bad; } // -> (expr) 14 if (true || expr) { ++ok; } else { ++bad; } // -> (true) 15 if (false || expr) { ++ok; } else { ++bad; } // -> (expr) 16 if (true == expr) { ++ok; } else { ++bad; } // -> (expr) 17 if (false == expr) { ++bad; } else { ++ok; } // -> unchanged 18 if (true != expr) { ++bad; } else { ++ok; } // -> unchanged [all …]
|
D | IntFoldingES3.sksl | 4 bool ok = true; 6 ok = ok && (x == 14); 8 ok = ok && (x == 6); 10 ok = ok && (x == 5); 12 ok = ok && (x == 16); 16 ok = ok && (x == -8); 18 ok = ok && (x == 32); 20 ok = ok && (x == 33); 21 return ok;
|
D | CastFolding.sksl | 9 bool ok = true; 12 ok = ok && (int(floatOne) == intOne); 13 ok = ok && (float(intOne) == floatOne); 16 ok = ok && (int4(half4One) == int4One); 17 ok = ok && (half4(int4One) == half4One); 20 ok = ok && (int4(half4One) == int4(intOne)); // cast(vector) == splat(scalar) 21 ok = ok && (half4(int4One) == half4(half(floatOne))); // cast(vector) == splat(cast(scalar)) 22 ok = ok && (half4(intOne) == half4(float4(floatOne))); // splatcast(sclr) == cast(splat(sclr)) 24 return ok;
|
D | SwizzleFolding.sksl | 7 bool ok = true; 9 ok = ok && (point.x >= 0 && point.x <= 100 && point.y >= 0 && point.y <= 100); 12 ok = ok && (colorWhite.x == 1); 13 ok = ok && (colorWhite.x + colorWhite.y == 2); 14 ok = ok && (colorWhite.x + colorWhite.y + colorWhite.z == 3); 15 ok = ok && (colorWhite.x + colorWhite.y + colorWhite.z + colorWhite.w == 4); 18 ok = ok && ((colorGreen * colorWhite.x) != (colorRed * colorWhite.y)); 22 ok = ok && (pointOffset == half2(61, 41)); 24 return ok;
|
/external/skia/resources/sksl/shared/ |
D | VectorScalarMath.sksl | 5 bool ok = true; 11 ok = ok && (x == half4(3, 2, 2, 3)); 13 ok = ok && (x == half4(-1, -1, -2, -2)); 15 ok = ok && (x == half4(2, 1, 1, 2)); 17 ok = ok && (x == half4(9, 9, 9, 2)); 19 ok = ok && (x == half4(18, 4, 9, 2)); 23 ok = ok && (x == half4(0, 5, 5, 0)); 27 ok = ok && (x == half4(3, 2, 2, 3)); 29 ok = ok && (x == half4(9, 9, 10, 10)); 31 ok = ok && (x == half4(1, 2, 1, 2)); [all …]
|
D | TernaryExpression.sksl | 7 bool ok = true; 10 ok = ok && (true ? true : false); 11 ok = ok && (false ? false : true); 14 ok = ok && (TRUE ? true : false); 15 ok = ok && (FALSE ? false : true); 18 ok = ok && (1 == 1 ? true : false); 19 ok = ok && (0 == 1 ? false : true); 22 ok = ok && (colorGreen.g == 1 ? true : false); 23 ok = ok && (colorGreen.r == 1 ? false : true); 25 return ok ? colorGreen : colorRed;
|
/external/flac/src/test_libFLAC/ |
D | bitwriter.c | 67 FLAC__bool ok; in test_bitwriter() local 178 ok = in test_bitwriter() 192 if(!ok) { in test_bitwriter() 225 ok = FLAC__bitwriter_write_raw_uint32(bw, 0x3d, 6); in test_bitwriter() 226 if(!ok) { in test_bitwriter() 260 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0; in test_bitwriter() 261 printf("%s\n", ok?"OK":"FAILED"); in test_bitwriter() 262 if(!ok) { in test_bitwriter() 270 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F; in test_bitwriter() 271 printf("%s\n", ok?"OK":"FAILED"); in test_bitwriter() [all …]
|
/external/skia/tests/sksl/folding/ |
D | VectorScalarFolding.glsl | 7 bool ok = true; 9 ok = ok && x == ivec4(6, 6, 7, 8); 11 ok = ok && x == ivec4(7, 9, 9, 9); 13 ok = ok && x == ivec4(9, 9, 10, 10); 15 ok = ok && x == ivec4(6, 6, 6, 10); 17 ok = ok && x == ivec4(3, 3, 6, 10); 19 ok = ok && x == ivec4(6); 21 ok = ok && x == ivec4(6, 6, 7, 8); 23 ok = ok && x == ivec4(-7, -9, -9, -9); 25 ok = ok && x == ivec4(9, 9, 10, 10); [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ok.pass.cpp | 32 ASSERT_NOEXCEPT( std::declval<const year_month_day>().ok()); in main() 33 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day>().ok())); in main() 35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main() 37 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main() 38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main() 39 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main() 41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main() 42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main() 43 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main() 45 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ok.pass.cpp | 31 ASSERT_NOEXCEPT( std::declval<const year_month_day>().ok()); in main() 32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day>().ok())); in main() 34 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main() 36 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main() 37 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main() 38 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main() 40 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main() 41 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main() 42 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main() 44 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main() [all …]
|
/external/skia/tests/sksl/shared/ |
D | VectorScalarMath.glsl | 7 bool ok = true; 11 ok = ok && x == ivec4(3, 2, 2, 3); 13 ok = ok && x == ivec4(-1, -1, -2, -2); 15 ok = ok && x == ivec4(2, 1, 1, 2); 17 ok = ok && x == ivec4(9, 9, 9, 2); 19 ok = ok && x == ivec4(3, 0, 9, 2); 21 ok = ok && x == ivec4(0, 5, 5, 0); 23 ok = ok && x == ivec4(3, 2, 2, 3); 25 ok = ok && x == ivec4(9, 9, 10, 10); 27 ok = ok && x == ivec4(1, 2, 1, 2); [all …]
|
D | VectorScalarMath.metal | 16 bool ok = true; 20 ok = ok && all(x == int4(3, 2, 2, 3)); 22 ok = ok && all(x == int4(-1, -1, -2, -2)); 24 ok = ok && all(x == int4(2, 1, 1, 2)); 26 ok = ok && all(x == int4(9, 9, 9, 2)); 28 ok = ok && all(x == int4(3, 0, 9, 2)); 30 ok = ok && all(x == int4(0, 5, 5, 0)); 32 ok = ok && all(x == int4(3, 2, 2, 3)); 34 ok = ok && all(x == int4(9, 9, 10, 10)); 36 ok = ok && all(x == int4(1, 2, 1, 2)); [all …]
|
/external/perfetto/src/profiling/ |
D | deobfuscator_unittest.cc | 43 .ok()); in TEST() 55 .ok()); in TEST() 62 .ok()); in TEST() 70 .ok()); in TEST() 73 .ok()); in TEST() 88 .ok()); in TEST() 89 ASSERT_TRUE(p.AddLine(" 15:15:boolean isMainThread():116:116 -> b").ok()); in TEST() 103 .ok()); in TEST() 104 ASSERT_TRUE(p.AddLine(" 15:15:boolean isMainThread():116:116 -> b").ok()); in TEST() 106 p.AddLine(" 15:15:boolean somethingDifferent(int):116:116 -> b").ok()); in TEST() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/ |
D | elementwise_test.cc | 32 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 37 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 42 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 47 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 52 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 57 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 62 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 67 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 72 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() 77 ASSERT_TRUE(status.ok()) << status.error_message(); in TEST_F() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
D | ok.pass.cpp | 41 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main() 42 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main() 44 static_assert(!year_month_weekday{}.ok(), ""); in main() 46 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main() 48 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 49 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 50 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main() 52 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 53 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main() 54 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
D | gl_buffer_test.cc | 32 ASSERT_TRUE(EglEnvironment::NewEglEnvironment(&env).ok()); in TEST() 35 ASSERT_TRUE(CreateReadOnlyShaderStorageBuffer<float>(test, &buffer).ok()); in TEST() 37 ASSERT_TRUE(AppendFromBuffer(buffer, &from_buffer).ok()); in TEST() 43 ASSERT_TRUE(EglEnvironment::NewEglEnvironment(&env).ok()); in TEST() 45 ASSERT_TRUE(CreateReadWriteShaderStorageBuffer<float>(4, &buffer).ok()); in TEST() 47 ASSERT_TRUE(buffer.Write<float>(test).ok()); in TEST() 49 ASSERT_TRUE(AppendFromBuffer(buffer, &from_buffer).ok()); in TEST() 55 ASSERT_TRUE(EglEnvironment::NewEglEnvironment(&env).ok()); in TEST() 57 ASSERT_TRUE(CreateReadWriteShaderStorageBuffer<float>(6, &buffer).ok()); in TEST() 64 ASSERT_TRUE(buffer.MakeView(4, 16, &view).ok()); in TEST() [all …]
|
/external/libvpx/libvpx/vpx_util/ |
D | vpx_thread.h | 133 int ok = 1; in pthread_cond_destroy() local 137 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy() 138 ok &= (CloseHandle(condition->received_sem_) != 0); in pthread_cond_destroy() 139 ok &= (CloseHandle(condition->signal_event_) != 0); in pthread_cond_destroy() 141 return !ok; in pthread_cond_destroy() 163 int ok = 1; in pthread_cond_broadcast() local 169 ok &= SetEvent(condition->signal_event_); in pthread_cond_broadcast() 172 ok &= (WaitForSingleObject(condition->received_sem_, INFINITE) != in pthread_cond_broadcast() 176 return !ok; in pthread_cond_broadcast() 180 int ok = 1; in pthread_cond_signal() local [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
D | ok.pass.cpp | 34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main() 35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main() 37 static_assert(!year_month_weekday{}.ok(), ""); in main() 39 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main() 41 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 42 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 43 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main() 45 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main() 46 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main() 47 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main() [all …]
|
/external/grpc-grpc/test/cpp/common/ |
D | alarm_test.cc | 41 bool ok; in TEST() local 43 cq.AsyncNext(&output_tag, &ok, grpc_timeout_seconds_to_deadline(10)); in TEST() 46 EXPECT_TRUE(ok); in TEST() 61 std::chrono::system_clock::now() + std::chrono::seconds(1), [c](bool ok) { in TEST() argument 62 EXPECT_TRUE(ok); in TEST() 78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST() argument 79 EXPECT_TRUE(ok); in TEST() 97 [c](bool ok) { in TEST() argument 98 EXPECT_TRUE(ok); in TEST() 114 bool ok; in TEST() local [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | ok.pass.cpp | 34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday_last>().ok()); in main() 35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday_last>().ok())); in main() 37 …static_assert(!year_month_weekday_last{year{-32768}, month{}, weekday_last{weekday{}}}.ok(), "");… in main() 39 …static_assert(!year_month_weekday_last{year{-32768}, January, weekday_last{Tuesday}}.ok(), "");… in main() 40 …static_assert(!year_month_weekday_last{year{2019}, month{}, weekday_last{Tuesday}}.ok(), "");… in main() 41 …static_assert(!year_month_weekday_last{year{2019}, January, weekday_last{weekday{7}}}.ok(), "");… in main() 43 …static_assert(!year_month_weekday_last{year{-32768}, month{}, weekday_last{Tuesday}}.ok(), "");… in main() 44 …static_assert(!year_month_weekday_last{year{2019}, month{}, weekday_last{weekday{7}}}.ok(), "");… in main() 45 …static_assert(!year_month_weekday_last{year{-32768}, January, weekday_last{weekday{7}}}.ok(), "");… in main() 47 …static_assert( year_month_weekday_last{year{2019}, January, weekday_last{Tuesday}}.ok(), "");… in main() [all …]
|