Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ASurfaceTextureTest.cpp33 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_fromSurfaceTexture"), in basicTests()
35 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_release"), in basicTests()
37 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_acquireANativeWindow"), in basicTests()
39 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_attachToGLContext"), in basicTests()
41 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_detachFromGLContext"), in basicTests()
43 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_updateTexImage"), in basicTests()
45 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_getTransformMatrix"), in basicTests()
47 ASSERT(dlsym(RTLD_DEFAULT, "ASurfaceTexture_getTimestamp"), in basicTests()
51 ASSERT(ast, "ASurfaceTexture_fromSurfaceTexture failed") in basicTests()
54 ASSERT(win, "ASurfaceTexture_acquireANativeWindow returned nullptr") in basicTests()
[all …]
DMediaTestHelpers.cpp30 #define ASSERT(a) \ macro
36 #define MEDIA_CALL(a) ASSERT(AMEDIA_OK == (a))
53 ASSERT(createExtractor(env, assetMgr, jfilename)); in init()
56 ASSERT(createMediaCodec(window)); in init()
62 ASSERT(mCodec); in processOneFrame()
68 ASSERT(processOneInputBuffer()); in processOneFrame()
69 ASSERT(processOneOutputBuffer(&gotOutputBuffer)); in processOneFrame()
77 ASSERT(nullptr == mExtractor); in createExtractor()
79 ASSERT(filename); in createExtractor()
95 ASSERT(releaseFd.fd >= 0); in createExtractor()
[all …]
Dandroid_graphics_cts_CameraVulkanGpuTest.cpp54 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadCameraAndVerifyFrameImport()
61 ASSERT(imageReader.initImageReader() >= 0, in loadCameraAndVerifyFrameImport()
63 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImport()
65 ASSERT(camera.isCameraReady(), "Camera is not ready."); in loadCameraAndVerifyFrameImport()
68 ASSERT(camera.takePicture() >= 0, "Camera failed to take picture."); in loadCameraAndVerifyFrameImport()
78ASSERT(vkImage.init(buffer, true /* useExternalFormat */), "Could not initialize VkAHardwareBuffer… in loadCameraAndVerifyFrameImport()
82 ASSERT(renderer.renderImageAndReadback( in loadCameraAndVerifyFrameImport()
100 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
107 ASSERT(imageReader.initImageReader() >= 0, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
109 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
[all …]
DNativeTestHelpers.h24 #define ASSERT(condition, format, args...) \ macro
30 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
31 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__)
33 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
35 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
37 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
39 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
41 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
43 ASSERT((a) <= (b), "assert failed on (" #a " <= " #b ") at " __FILE__ ":%d", __LINE__)
Dandroid_graphics_cts_VulkanPreTransformCtsActivity.cpp47 ASSERT(jAssetManager, "jAssetManager is NULL"); in createNativeTest()
48 ASSERT(jSurface, "jSurface is NULL"); in createNativeTest()
57 ASSERT(ret == VK_TEST_SUCCESS, "Failed to initialize Vulkan device"); in createNativeTest()
60 ASSERT(swapchainInfo.init(setPreTransform, &preTransformHint) == VK_TEST_SUCCESS, in createNativeTest()
64 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest()
70 ASSERT(ret == VK_TEST_SUCCESS, "Failed to draw frame(%u) ret(%d)", i, (int)ret); in createNativeTest()
72 ASSERT(ret == VK_TEST_SUCCESS_SUBOPTIMAL, "Failed to draw suboptimal frame(%u) ret(%d)", in createNativeTest()
78 ASSERT(validatePixelValues(env, surfaceSize.width, surfaceSize.height, setPreTransform, in createNativeTest()
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp84 ASSERT(imageReader.initImageReader() >= 0, in loadMediaAndVerifyFrameImport()
87 ASSERT(media.init(env, assetMgr, jfilename, imageReader.getNativeWindow()), in loadMediaAndVerifyFrameImport()
91 ASSERT(media.processOneFrame(), in loadMediaAndVerifyFrameImport()
105 ASSERT(bufferDesc.width >= kTestImageWidth, "Unexpectedly small image width read from video."); in loadMediaAndVerifyFrameImport()
106 ASSERT(bufferDesc.height >= kTestImageHeight, "Unexpectedly small image height read from video."); in loadMediaAndVerifyFrameImport()
111 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadMediaAndVerifyFrameImport()
115 ASSERT(vkImage.init(buffer, true /* useExternalFormat */), in loadMediaAndVerifyFrameImport()
120 ASSERT(renderer.renderImageAndReadback( in loadMediaAndVerifyFrameImport()
124 ASSERT(framePixels.size() == bufferDesc.width * bufferDesc.height, in loadMediaAndVerifyFrameImport()
130 ASSERT(referenceSize == kTestImageWidth * kTestImageHeight, in loadMediaAndVerifyFrameImport()
[all …]
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp68 ASSERT(bufferFormats.find(format) != bufferFormats.end(), in verifyBasicBufferImport()
98 ASSERT(renderer.init(env, assetMgr), "Unable to initialize VkRenderer."); in verifyBasicBufferImport()
103 ASSERT(0 == AHardwareBuffer_lock( in verifyBasicBufferImport()
122 ASSERT(vkImage.init(buffer, useExternalFormat, syncFd), in verifyBasicBufferImport()
127 ASSERT(renderer.renderImageAndReadback(vkImage.image(), vkImage.sampler(), in verifyBasicBufferImport()
131 ASSERT(framePixels.size() == in verifyBasicBufferImport()
140 ASSERT(framePixels[offset] == x + y, in verifyBasicBufferImport()
Dandroid_graphics_cts_ComputeAhbTest.cpp96 ASSERT(shaderModule.init(&init, env, assetMgr, "shaders/compute_write.spv"), in verifyComputeShaderWrite()
139 ASSERT(VK_SUCCESS == vkCreateComputePipelines( in verifyComputeShaderWrite()
146 ASSERT(vkImage.init(buffer, false, -1, VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT), in verifyComputeShaderWrite()
251 ASSERT(VK_SUCCESS == vkEndCommandBuffer(res.mCommandBuffer), in verifyComputeShaderWrite()
267 ASSERT(0 == AHardwareBuffer_lock( in verifyComputeShaderWrite()
277 ASSERT(fabsf(target[0] / 255.f - (x&7) / 8.f) <= 1/255.f, in verifyComputeShaderWrite()
279 ASSERT(fabsf(target[1] / 255.f - (y&7) / 8.f) <= 1/255.f, in verifyComputeShaderWrite()
281 ASSERT(fabsf(target[2] / 255.f - (x) / 64.f) <= 1/255.f, in verifyComputeShaderWrite()
283 ASSERT(fabsf(target[3] / 255.f - (y) / 64.f) <= 1/255.f, in verifyComputeShaderWrite()
DVulkanPreTransformTestHelpers.cpp33 #define ASSERT(a) \ macro
38 #define VK_CALL(a) ASSERT(VK_SUCCESS == (a))
138 ASSERT(jSurface); in init()
147 ASSERT(mWindow); in init()
150 ASSERT(enumerateInstanceExtensions(&supportedInstanceExtensions)); in init()
154 ASSERT(hasExtension(extension, supportedInstanceExtensions)); in init()
200 ASSERT(enumerateDeviceExtensions(mGpu, &supportedDeviceExtensions)); in init()
204 ASSERT(hasExtension(extension, supportedDeviceExtensions)); in init()
210 ASSERT(queueFamilyCount); in init()
221 ASSERT(queueFamilyIndex < queueFamilyCount); in init()
[all …]
DVulkanTestHelpers.cpp29 #define ASSERT(a) \ macro
35 #define VK_CALL(a) ASSERT(VK_SUCCESS == (a))
121 ASSERT(status == VK_SUCCESS || status == VK_INCOMPLETE); in init()
122 ASSERT(gpuCount > 0); in init()
134 ASSERT(ycbcrFeatures.samplerYcbcrConversion == VK_TRUE); in init()
151 ASSERT(enumerateDeviceExtensions(mGpu, &supportedDeviceExtensions)); in init()
153 ASSERT(hasExtension(extension, supportedDeviceExtensions)); in init()
165 ASSERT(externalSemaphoreProperties.externalSemaphoreFeatures & in init()
170 ASSERT(queueFamilyCount != 0); in init()
182 ASSERT(queueFamilyIndex < queueFamilyCount); in init()
[all …]
/cts/tests/sensor/jni/
DnativeTestHelper.h26 #define ASSERT(condition, format, args...) \ macro
33 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
34 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__)
36 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
38 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
40 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
42 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
44 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
46 ASSERT((a) <= (b), "assert failed on (" #a " <= " #b ") at " __FILE__ ":%d", __LINE__)
48 ASSERT((a) == nullptr, "assert failed on isNull(" #a ") at " __FILE__ ":%d", __LINE__)
[all …]
/cts/tests/tests/uirendering/jni/
DNativeTestHelpers.h26 #define ASSERT(condition, format, args...) \ macro
32 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
33 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__)
35 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
37 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
39 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
41 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
43 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
45 ASSERT((a) <= (b), "assert failed on (" #a " <= " #b ") at " __FILE__ ":%d", __LINE__)
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp63 ASSERT(AInputEvent_getType(event) == AINPUT_EVENT_TYPE_MOTION, "Wrong event type %d.", in nativeMotionEventTest()
66 ASSERT(action == AMotionEvent_getAction(event), "Wrong action %d not equal to %d", in nativeMotionEventTest()
69 ASSERT(downTime == AMotionEvent_getDownTime(event), in nativeMotionEventTest()
73 ASSERT(eventTime == AMotionEvent_getEventTime(event), in nativeMotionEventTest()
77 ASSERT(metaState == AMotionEvent_getMetaState(event), "Wrong metaState %d not equal to %d", in nativeMotionEventTest()
80 ASSERT(AMotionEvent_getPointerCount(event) == pointerCount, in nativeMotionEventTest()
84 ASSERT(AMotionEvent_getActionButton(event) == actionButton, in nativeMotionEventTest()
88 ASSERT(AMotionEvent_getClassification(event) == classification, in nativeMotionEventTest()
95 ASSERT(fabs(rawX - AMotionEvent_getRawX(event, i)) == 0.0f, "Point X:%f not same as %f", in nativeMotionEventTest()
98 ASSERT(fabs(rawY - AMotionEvent_getRawY(event, i)) == 0.0f, "Point Y:%f not same as %f", in nativeMotionEventTest()
[all …]
Dandroid_view_cts_InputQueueTest.cpp44 ASSERT(nativeQueue != nullptr, "Native input queue not returned"); in inputQueueTest()
46 ASSERT(AInputQueue_getEvent(nativeQueue, &event) >= 0, "getEvent did not succeed"); in inputQueueTest()
47 ASSERT(AInputEvent_getType(event) == AINPUT_EVENT_TYPE_MOTION, "Wrong event type"); in inputQueueTest()
48 ASSERT(AKeyEvent_getAction(event) == AKEY_EVENT_ACTION_DOWN, "Wrong action"); in inputQueueTest()
DjniAssert.h38 #define ASSERT(condition, format, args...) \ macro
/cts/tests/surfacecontrol/jni/
Dandroid_view_surfacecontrol_cts_ChoreographerNativeTest.cpp101 ASSERT(cb.count >= expectedMin, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyRefreshRateCallback()
107 ASSERT(cb.vsyncPeriod > ZERO, in verifyRefreshRateCallback()
110 ASSERT(gSupportedRefreshPeriods.count(cb.vsyncPeriod.count()) > 0, in verifyRefreshRateCallback()
156 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
180 ASSERT(vsyncId >= 0, "Invalid vsync ID"); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid()
181 ASSERT(std::count_if(cb1.getTimeline().begin(), cb1.getTimeline().end(), in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid()
206 ASSERT(deadline > std::chrono::nanoseconds{start}, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
209 ASSERT(deadline > cb1.frameTime, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
212 ASSERT(deadline > lastValue, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
222 ASSERT(timeDelta > threshold, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
[all …]
DChoreographerTestUtils.h86 ASSERT(index < length, "Preferred frame timeline index out of bounds"); in populate()
136 ASSERT(cb.count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback()
139 ASSERT(cb.frameTime - startTime < maxTime, in verifyCallback()
DjniAssert.h38 #define ASSERT(condition, format, args...) \ macro
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DSlogfTest.java19 import static android.car.cts.builtin.util.LogcatHelper.Level.ASSERT;
299 setLogLevel(ASSERT); in testE_noMsg1()
308 setLogLevel(ASSERT); in testE_noMsg2()
377 setCarTestTagLogLevel(ASSERT); in testIsLoggableFalse()
394 setCarTestTagLogLevel(ASSERT); in testSlogfIsfLoggableWorksSameAsLogIsLoggable()
DLogcatHelper.java58 VERBOSE("V"), DEBUG("D"), INFO("I"), WARN("W"), ERROR("E"), ASSERT("A"); enumConstant
/cts/tests/tests/util/src/android/util/cts/
DLogPrinterTest.java35 int[] priorities = { Log.ASSERT, Log.DEBUG, Log.ERROR, Log.INFO, in testConstructor()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp73 #define ASSERT(condition, format, args...) \ macro
80 ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
82 ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__)
84 ASSERT((a) == (b), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
86 ASSERT((a) != (b), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
88 ASSERT((a) > (b), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)
90 ASSERT(areNearRgba(a, b, delta), \
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java148 CheckLevel.ASSERT, /*collector*/null); in setUp()
158 CheckLevel.ASSERT, /*collector*/null); in setUp()
639 CheckLevel.ASSERT, /*collector*/null); in openDevice()
867 CheckLevel.ASSERT, /*collector*/ null); in isReprocessSupported()
DCamera2ConcurrentAndroidTestCase.java123 CheckLevel.ASSERT, /*collector*/null); in setUp()
132 CheckLevel.ASSERT, /*collector*/null); in setUp()
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java132 mCameraManager.getCameraCharacteristics(cameraId), CheckLevel.ASSERT, in testEnableZslValueByCamera()

12