| /external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/ |
| D | ShadowNativeColorSpaceTest.java | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * limitations under the License. 16 package org.robolectric.shadows; 18 import static android.os.Build.VERSION_CODES.O; 19 import static android.os.Build.VERSION_CODES.P; 20 import static android.os.Build.VERSION_CODES.Q; 21 import static android.os.Build.VERSION_CODES.TIRAMISU; 22 import static org.junit.Assert.assertEquals; [all …]
|
| D | ShadowNativeLightingColorFilterTest.java | 1 package org.robolectric.shadows; 3 import static android.os.Build.VERSION_CODES.O; 5 import android.graphics.Bitmap; 6 import android.graphics.Canvas; 7 import android.graphics.Color; 8 import android.graphics.LightingColorFilter; 9 import android.graphics.Paint; 10 import androidx.test.ext.junit.runners.AndroidJUnit4; 11 import org.junit.Test; 12 import org.junit.runner.RunWith; [all …]
|
| /external/angle/src/image_util/ |
| D | LoadToNative_unittest.cpp | 2 // Copyright 2023 The ANGLE Project Authors. All rights reserved. 4 // found in the LICENSE file. 6 // LoadToNative_unittest.cpp: Unit tests for pixel loading functions. 8 #include <gmock/gmock.h> 10 #include "common/debug.h" 11 #include "common/mathutil.h" 12 #include "image_util/loadimage.h" 30 ASSERT(rgbInput.size() == inputDepthPitch * depth + inputByteOffset); in initializeRGBInput() 64 ASSERT(rgbInput.size() == inputDepthPitch * depth + inputByteOffset); in verifyRGBToRGBAResults() 65 ASSERT(rgbaOutput.size() == outputDepthPitch * depth + outputByteOffset); in verifyRGBToRGBAResults() [all …]
|
| /external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
| D | GlRectDrawerTest.java | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 11 package org.webrtc; 13 import static org.junit.Assert.assertEquals; 14 import static org.junit.Assert.assertTrue; 15 import static org.junit.Assert.fail; 17 import android.opengl.GLES20; 18 import androidx.test.filters.MediumTest; [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_imgfile.py | 1 """Simple test script for imgfile.c 2 Roger E. Masse 5 from test.test_support import verbose, unlink, findfile, import_module 13 on the image passed in name. 24 # of the image in pixels and z is the number of bytes per pixel. Only 25 # 3 byte RGB pixels and 1 byte greyscale pixels are supported. 26 sizes = imgfile.getsizes(name) 27 except imgfile.error: 28 # get a more qualified path component of the script... 30 ourname = sys.argv[0] [all …]
|
| D | test_imageop.py | 1 """Test script for the imageop module. This has the side 2 effect of partially testing the imgfile module as well. 3 Roger E. Masse 6 from test.test_support import verbose, unlink, import_module, run_unittest 19 class InputValidationTests(unittest.TestCase): 38 except (ValueError, imageop.error): 43 self._check(name, size, *extra) 46 self._check(name, None, *extra) 49 self.check_size("crop", 0, 0, 0, 0) 50 self.check_size("scale", 1, 0) [all …]
|
| D | test_colorsys.py | 1 import unittest, test.test_support 9 class ColorsysTest(unittest.TestCase): 12 self.assertEqual(len(tr1), 3) 13 self.assertEqual(len(tr2), 3) 14 self.assertAlmostEqual(tr1[0], tr2[0]) 15 self.assertAlmostEqual(tr1[1], tr2[1]) 16 self.assertAlmostEqual(tr1[2], tr2[2]) 22 rgb = (r, g, b) 23 self.assertTripleEqual( 24 rgb, [all …]
|
| /external/perfetto/ui/src/core/ |
| D | color_unittest.ts | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // limitations under the License. 15 import {HSLColor, hslToRgb, HSLuvColor} from './color'; 20 test('cssString', () => { 21 expect(col.cssString).toBe('rgb(39 190 47)'); 22 expect(new HSLColor({h: 0, s: 0, l: 0}).cssString).toBe('rgb(0 0 0)'); 23 expect(new HSLColor({h: 0, s: 100, l: 100}).cssString).toBe( 24 'rgb(255 255 255)', [all …]
|
| /external/AFLplusplus/benchmark/ |
| D | benchmark.ipynb | 9 "# benchmark.ipynb\n", 10 "# Part of the aflplusplus project, requires an ipynb (Jupyter) editor or viewer.\n", 11 "# Author: Chris Ball <chris@printf.net>\n", 14 "with open(\"benchmark-results.jsonl\") as f:\n", 15 " lines = f.read().splitlines()\n", 16 "json_lines = [json.loads(line) for line in lines]\n" 25 "We have JSON Lines in [benchmark-results.jsonl](benchmark-results.jsonl) that look like this:" 43 " \"compiler\": \"clang version 16.0.6\",\n", 52 " \"test-instr\": {\n", 65 "print(json.dumps(json.loads(lines[0]), indent=2))" [all …]
|
| /external/rust/crates/arbitrary/ |
| D | README.md | 5 …<p><strong>The trait for generating structured data from arbitrary, unstructured input.</strong></… 7 …img alt="GitHub Actions Status" src="https://github.com/rust-fuzz/rust_arbitrary/workflows/Rust/ba… 13 The `Arbitrary` crate lets you construct arbitrary instances of a type. 16 and `cargo-fuzz`](https://github.com/rust-fuzz/cargo-fuzz) or 17 [AFL](https://github.com/rust-fuzz/afl.rs), and to help you turn the raw, 19 values. This allows you to combine structure-aware test case generation with 20 coverage-guided, mutation-based fuzzers. 24 [**Read the API documentation on `docs.rs`!**](https://docs.rs/arbitrary) 28 Say you're writing a color conversion library, and you have an `Rgb` struct to 29 represent RGB colors. You might want to implement `Arbitrary` for `Rgb` so that [all …]
|
| /external/mesa3d/src/gallium/drivers/r600/ci/ |
| D | r600-turks-fails.txt | 1 KHR-GLES31.core.compute_shader.pipeline-compute-chain,Fail 3 KHR-GLES31.core.draw_buffers_indexed.blending,Fail 5 KHR-GLES31.core.draw_indirect.basic-indicesDataType-unsigned_byte,Fail 7 # "find_hw_atomic_counter: Assertion `0' failed." 9 # nir_to_tgsi's gives us a .Index of -1, and we obviously can't find that in a 10 # counter declaration. 11 KHR-GLES31.core.geometry_shader.api.max_atomic_counters,Crash 13 KHR-GLES31.core.gpu_shader5.texture_gather_offset_color_clamp_to_border,Fail 14 KHR-GLES31.core.gpu_shader5.texture_gather_offset_color_clamp_to_edge,Fail 16 KHR-GLES31.core.layout_binding.image2D_layout_binding_imageLoad_ComputeShader,Fail [all …]
|
| /external/chromium-trace/catapult/third_party/polymer/components/shadycss/tests/ |
| D | dynamic-scoping.html | 4 Copyright (c) 2017 The Polymer Project Authors. All rights reserved. 5 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 7 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 9 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 17 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}} 19 <script src="./test-flags.js"></script> 20 <script src="../node_modules/wct-browser-legacy/browser.js"></script> 21 …<script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></sc… 22 <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script> [all …]
|
| D | mixin-ordering.html | 4 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}} 6 <script src="./test-flags.js"></script> 7 <script src="../node_modules/wct-browser-legacy/browser.js"></script> 8 …<script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></sc… 9 <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script> 10 <script src="../node_modules/@webcomponents/template/template.js"></script> 11 <script src="../node_modules/@webcomponents/html-imports/html-imports.min.js"></script> 12 <script src="../node_modules/@webcomponents/shadydom/shadydom.min.js"></script> 13 <script src="../node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script> 14 <script src="../scoping-shim.min.js"></script> [all …]
|
| /external/libpng/contrib/testpngs/ |
| D | makepngs.sh | 3 # Make a set of test PNG files, MAKEPNG is the name of the makepng executable 4 # built from contrib/libtests/makepng.c 8 # This code is released under the libpng license. 10 # and license in png.h 13 # ones that extend the code-coverage of libpng from the existing test files in 14 # contrib/pngsuite. 15 test -n "$MAKEPNG" || MAKEPNG=./makepng 19 ${MAKEPNG} $opts $1 "$3" "$4" "$3-$4$2.png" 23 if test "$1" = "none" 32 if test "$1" = "none" [all …]
|
| /external/rust/crates/plotters/src/ |
| D | test.rs | 4 #[test] 9 let mut backend = SVGBackend::new("blub.png", (800, 600)); in regression_test_issue_267() 12 .draw_line(p1, p2, &RGBColor(0, 0, 0).stroke_width(0)) in regression_test_issue_267() 13 .unwrap(); in regression_test_issue_267() 16 #[test] 18 let rgb = RGBColor(1, 2, 3); in from_trait_impl_rgba_color() localVariable 19 let c = RGBAColor::from(rgb); in from_trait_impl_rgba_color() 21 assert_eq!(c.rgb(), rgb.rgb()); in from_trait_impl_rgba_color()
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/ |
| D | ColorParserTest.java | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * limitations under the License. 16 package com.google.android.exoplayer2.util; 18 import static android.graphics.Color.BLACK; 19 import static android.graphics.Color.RED; 20 import static android.graphics.Color.WHITE; 21 import static android.graphics.Color.argb; 22 import static android.graphics.Color.parseColor; [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/ |
| D | ColorParserTest.java | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * limitations under the License. 16 package com.google.android.exoplayer2.util; 18 import static android.graphics.Color.BLACK; 19 import static android.graphics.Color.RED; 20 import static android.graphics.Color.WHITE; 21 import static android.graphics.Color.argb; 22 import static android.graphics.Color.parseColor; [all …]
|
| /external/kotlinx.serialization/docs/ |
| D | serializers.md | 5 This is the third chapter of the [Kotlin Serialization Guide](serialization-guide.md). 6 …'ll take a look at serializers in more detail, and we'll see how custom serializers can be written. 43 into its constituent properties is controlled by a _serializer_. So far we've been using automatica… 45 the [Serializable classes](/docs/basic-serialization.md#serializable-classes) section, or using bui… 46 the [Builtin classes](/docs/builtin-classes.md) section. 48 …ing example, let us take the following `Color` class with an integer value storing its `rgb` bytes. 51 import kotlinx.serialization.* 52 import kotlinx.serialization.json.* 57 class Color(val rgb: Int) 61 println(Json.encodeToString(green)) [all …]
|
| /external/rust/crates/arbitrary/tests/ |
| D | derive.rs | 3 // used except to exercise the derive. 10 T::arbitrary(&mut buf).expect("can create arbitrary instance OK") in arbitrary_from() 14 pub struct Rgb { struct 20 #[test] 22 let rgb: Rgb = arbitrary_from(&[4, 5, 6]); in struct_with_named_fields() argument 23 assert_eq!(rgb.r, 4); in struct_with_named_fields() 24 assert_eq!(rgb.g, 5); in struct_with_named_fields() 25 assert_eq!(rgb.b, 6); in struct_with_named_fields() 27 assert_eq!((3, Some(3)), <Rgb as Arbitrary>::size_hint(0)); in struct_with_named_fields() 33 #[test] [all …]
|
| /external/angle/src/tests/compiler_tests/ |
| D | EXT_YUV_target_test.cpp | 2 // Copyright 2017 The ANGLE Project Authors. All rights reserved. 4 // found in the LICENSE file. 6 // EXT_YUV_target.cpp: 7 // Test for EXT_YUV_target implementation. 10 #include "tests/test_utils/ShaderExtensionTest.h" 24 ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed."; in InitializeCompiler() 38 // Shader that samples the texture and writes to FragColor. 47 // Shader that samples the texture and swizzle and writes to FragColor. 53 fragColor = vec4(texture(uSampler, vec2(0.0)).zyx, 1.0); 56 // Shader that specifies yuv layout qualifier multiple times. [all …]
|
| /external/libdrm/tests/util/ |
| D | pattern.c | 3 * Jakob Bornecrantz <jakob@tungstengraphics.com> 5 * Jesse Barnes <jesse.barnes@intel.com> 15 * all copies or substantial portions of the Software. 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 * IN THE SOFTWARE. 26 #include <stdint.h> 27 #include <stdio.h> 28 #include <stdlib.h> 29 #include <string.h> 31 #include <drm_fourcc.h> [all …]
|
| /external/deqp-deps/amber/tests/cases/ |
| D | draw_triangle_list_in_r8g8b8a8_srgb_color_frame.vkscript | 1 # Copyright 2019 The Amber Authors. 4 # you may not use this file except in compliance with the License. 7 # https://www.apache.org/licenses/LICENSE-2.0 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # limitations under the License. 84 [test] 88 # e.g., exponential. It needs enough tolerance. 92 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0) 95 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0) 96 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0) [all …]
|
| D | draw_triangle_list_in_r8g8b8a8_snorm_color_frame.vkscript | 1 # Copyright 2019 The Amber Authors. 4 # you may not use this file except in compliance with the License. 7 # https://www.apache.org/licenses/LICENSE-2.0 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # limitations under the License. 84 [test] 87 # R8G8B8A8_SNORM has only 128 slots and it needs enough tolerance. 91 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0) 94 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0) 95 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0) [all …]
|
| D | draw_triangle_list_in_r32g32b32a32_sfloat_color_frame.vkscript | 1 # Copyright 2019 The Amber Authors. 4 # you may not use this file except in compliance with the License. 7 # https://www.apache.org/licenses/LICENSE-2.0 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # limitations under the License. 84 [test] 88 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0) 91 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0) 92 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0) 95 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0) [all …]
|
| D | draw_triangle_list_in_r16g16b16a16_snorm_color_frame.vkscript | 1 # Copyright 2019 The Amber Authors. 4 # you may not use this file except in compliance with the License. 7 # https://www.apache.org/licenses/LICENSE-2.0 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # limitations under the License. 84 [test] 88 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0) 91 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0) 92 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0) 95 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0) [all …]
|