Home
last modified time | relevance | path

Searched +full:test +full:. +full:rgb (Results 1 – 25 of 1107) sorted by relevance

12345678910>>...45

/aosp_15_r20/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
H A DHumanEyeMatcherTest.kt1 package platform.test.screenshot.matchers in <lambda>()
3 import android.graphics.Color in <lambda>()
4 import android.graphics.Color.argb in <lambda>()
5 import android.graphics.Color.rgb in <lambda>()
6 import android.graphics.Rect in <lambda>()
7 import com.google.common.truth.Truth.assertThat in <lambda>()
8 import org.junit.Test in <lambda>()
9 import platform.test.screenshot.toIntArray in <lambda>()
10 import platform.test.screenshot.utils.loadBitmap in <lambda>()
15 @Test in <lambda>()
[all …]
H A DAlmostPerfectMatcherTest.kt5 * 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.
17 package platform.test.screenshot.matchers
19 import android.graphics.Color.rgb
20 import android.graphics.Rect
21 import com.google.common.truth.Truth.assertThat
22 import org.junit.Test
23 import platform.test.screenshot.toIntArray
[all …]
/aosp_15_r20/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
H A DShadowNativeColorSpaceTest.java5 * 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 …]
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/
H A DColorSpaceTest.java5 * 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 android.graphics.cts;
18 import static org.junit.Assert.assertEquals;
19 import static org.junit.Assert.assertFalse;
20 import static org.junit.Assert.assertNotNull;
21 import static org.junit.Assert.assertNull;
22 import static org.junit.Assert.assertSame;
[all …]
/aosp_15_r20/external/angle/src/image_util/
H A DLoadToNative_unittest.cpp2 // 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 …]
/aosp_15_r20/external/AFLplusplus/benchmark/
H A Dbenchmark.ipynb9 "# 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 …]
/aosp_15_r20/external/mesa3d/src/gallium/drivers/r600/ci/
H A Dr600-turks-fails.txt1 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 …]
/aosp_15_r20/external/giflib/tests/
H A Dmakefile1 # Regression-test suite for the giflib library and tools
2 # All utilities have tests except gifbg, gifcolor, and gifhisto.
4 .SUFFIXES: .gif .rgb
7 test: render-regress \ target
27 UTILS = ..
28 PICS = ../pic
30 GIFS := $(shell ls ../pic/*.gif)
32 # Test decompression and rendering by unpacking images,
33 # converting them to RGB, and comparing that result to a check file.
35 @for test in $(GIFS); \
[all …]
/aosp_15_r20/cts/apps/CameraITS/tests/scene0/
H A Dtest_solid_color_test_pattern.py4 # 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.
14 """CameraITS test to check solid color test pattern generation."""
41 _NAME = os.path.basename(__file__).split('.')[0]
46 'RGB': (0, 0, 0)}
49 'RGB': (255, 255, 255)}
52 'RGB': (255, 0, 0)}
55 'RGB': (0, 255, 0)}
[all …]
/aosp_15_r20/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
H A DGlRectDrawerTest.java2 * 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 …]
/aosp_15_r20/frameworks/base/tools/aapt2/link/
H A DNoDefaultResourceRemover_test.cpp5 * 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.
17 #include "link/NoDefaultResourceRemover.h"
19 #include "test/Test.h"
23 TEST(NoDefaultResourceRemoverTest, RemoveEntryWithNoDefaultAndOnlyLocales) { in TEST() function
24 std::unique_ptr<IAaptContext> context = test::ContextBuilder().SetPackageId(0x01).Build(); in TEST()
26 test::ResourceTableBuilder() in TEST()
27 .AddSimple("android:string/foo") in TEST()
[all …]
/aosp_15_r20/external/kotlinx.serialization/docs/
H A Dserializers.md5 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 …]
/aosp_15_r20/external/perfetto/ui/src/core/
H A Dcolor_unittest.ts4 // 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 '../public/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 …]
/aosp_15_r20/external/deqp/external/openglcts/modules/common/
H A DglcBlendEquationAdvancedTests.cpp2 * OpenGL Conformance Test Suite
5 * Copyright (c) 2014-2016 The Khronos Group Inc.
8 * you may not use this file except in compliance with the License.
11 * http://www.apache.org/licenses/LICENSE-2.0
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * limitations under the License.
24 #include "glcBlendEquationAdvancedTests.hpp"
26 #include "deRandom.hpp"
27 #include "deString.h"
29 #include "tcuRGBA.hpp"
[all …]
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_imgfile.py1 """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 …]
Dtest_imageop.py1 """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 …]
/aosp_15_r20/external/chromium-trace/catapult/third_party/polymer/components/shadycss/tests/
H A Ddynamic-scoping.html4 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 …]
/aosp_15_r20/external/rust/crabbyavif/tests/
Ddecoder_tests.rs4 // 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.
19 use crabby_avif::reformat::rgb;
22 #[path = "./mod.rs"]
29 // From avifalphanoispetest.cc
30 #[test]
32 // See https://github.com/AOMediaCodec/libavif/pull/745. in alpha_no_ispe()
33 let mut decoder = get_decoder("alpha_noispe.avif"); in alpha_no_ispe()
[all …]
/aosp_15_r20/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
H A DRuntimeShaderTests.kt5 * you may not use this file except in compliance with the License. in <lambda>()
8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. in <lambda>()
14 * limitations under the License. in <lambda>()
17 package android.uirendering.cts.testclasses in <lambda>()
19 import android.graphics.Bitmap in <lambda>()
20 import android.graphics.BitmapShader in <lambda>()
21 import android.graphics.BlendMode in <lambda>()
22 import android.graphics.Canvas in <lambda>()
23 import android.graphics.Color in <lambda>()
[all …]
/aosp_15_r20/cts/tests/media/src/android/mediav2/cts/
H A DDecodeGlAccuracyTest.java5 * 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.
17 package android.mediav2.cts;
19 import static android.media.MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface;
20 import static android.media.MediaCodecInfo.CodecCapabilities.COLOR_FormatYUVP010;
21 import static android.mediav2.common.cts.CodecTestBase.SupportClass.CODEC_ALL;
22 import static android.mediav2.common.cts.CodecTestBase.SupportClass.CODEC_OPTIONAL;
24 import static org.junit.Assert.assertEquals;
[all …]
/aosp_15_r20/external/rust/crabbyavif/src/reformat/
Dalpha.rs4 // 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.
18 use super::rgb;
23 use crate::reformat::rgb::Format;
27 ((pixel as f32) * (alpha as f32) / 255.0).floor() as u8 in premultiply_u8()
31 ((pixel as f32) * (alpha as f32) / max_channel_f).floor() as u16 in premultiply_u16()
35 ((pixel as f32) * 255.0 / (alpha as f32)).floor().min(255.0) as u8 in unpremultiply_u8()
40 .floor() in unpremultiply_u16()
[all …]
/aosp_15_r20/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp5 * 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.
17 #include <gmock/gmock.h>
18 #include <gtest/gtest.h>
19 #include <vndk/hardware_buffer.h>
20 #include <android-base/logging.h>
22 #include "EventGenerator.h"
23 #include "InputFrame.h"
[all …]
/aosp_15_r20/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenccli_toplevel_help.cpp6 // use this file except in compliance with the License. You may obtain a copy
9 // http://www.apache.org/licenses/LICENSE-2.0
13 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 // under the License.
19 * @brief Functions for printing build info and help messages.
22 #include "astcenccli_internal.h"
23 #include "astcenccli_version.h"
25 /** @brief The version header. */
28 Copyright (c) 2011-%s Arm Limited. All rights reserved.
31 /** @brief The short-form help text. */
[all …]
/aosp_15_r20/cts/apps/CameraITS/tests/scene1_2/
H A Dtest_param_tonemap_mode.py4 # 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.
14 """Verifies android.tonemap.mode parameter applies."""
18 import os.path
31 _MIN_RGB_RATIO_DIFF = 0.1 # min RGB ratio diff for different tonemaps
32 _NAME = os.path.splitext(os.path.basename(__file__))[0]
41 """Compute the RGB means of a capture and save image.
44 cap: 'YUV' or 'JPEG' capture.
[all …]
/aosp_15_r20/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/task/thumbnail/
DTaskThumbnailViewModelImplTest.kt5 * 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.
17 package com.android.quickstep.task.thumbnail
19 import android.content.ComponentName
20 import android.content.Intent
21 import android.graphics.Bitmap
22 import android.graphics.Color
23 import android.graphics.Matrix
[all …]

12345678910>>...45