Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 34) 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 …]
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_VulkanSurfaceSupportTest.cpp38 ASSERT(jAssetManager, "jAssetManager is NULL"); in createNativeTest()
39 ASSERT(jSurface, "jSurface is NULL"); in createNativeTest()
48 ASSERT(jSupported == false, "Surface format should not be supported"); in createNativeTest()
51 ASSERT(ret == VK_TEST_SUCCESS, "Failed to initialize Vulkan device"); in createNativeTest()
52 ASSERT(jSupported == true, "Surface format should be supported"); in createNativeTest()
55 ASSERT(swapchainInfo.init(false, nullptr) == VK_TEST_SUCCESS, in createNativeTest()
59 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest()
63 ASSERT(renderer.drawFrame() == VK_TEST_SUCCESS, "Failed to draw frame"); in createNativeTest()
Dandroid_graphics_cts_VulkanPreTransformCtsActivity.cpp45 ASSERT(jAssetManager, "jAssetManager is NULL"); in createNativeTest()
46 ASSERT(jSurface, "jSurface is NULL"); in createNativeTest()
55 ASSERT(ret == VK_TEST_SUCCESS, "Failed to initialize Vulkan device"); in createNativeTest()
58 ASSERT(swapchainInfo.init(setPreTransform, &preTransformHint) == VK_TEST_SUCCESS, in createNativeTest()
62 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest()
68 ASSERT(ret == VK_TEST_SUCCESS, "Failed to draw frame"); in createNativeTest()
70 ASSERT(ret == VK_TEST_SUCCESS_SUBOPTIMAL, "Failed to draw suboptimal frame"); in createNativeTest()
74 ASSERT(validatePixelValues(env, setPreTransform, preTransformHint), "Not properly rotated"); 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_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()
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()
DVulkanPreTransformTestHelpers.cpp31 #define ASSERT(a) \ macro
36 #define VK_CALL(a) ASSERT(VK_SUCCESS == (a))
134 ASSERT(jSurface); in init()
137 ASSERT(mWindow); in init()
140 ASSERT(enumerateInstanceExtensions(&supportedInstanceExtensions)); in init()
144 ASSERT(hasExtension(extension, supportedInstanceExtensions)); in init()
190 ASSERT(enumerateDeviceExtensions(mGpu, &supportedDeviceExtensions)); in init()
194 ASSERT(hasExtension(extension, supportedDeviceExtensions)); in init()
200 ASSERT(queueFamilyCount); in init()
211 ASSERT(queueFamilyIndex < queueFamilyCount); in init()
[all …]
DVulkanTestHelpers.cpp29 #define ASSERT(a) \ macro
35 #define VK_CALL(a) ASSERT(VK_SUCCESS == (a))
108 ASSERT(status == VK_SUCCESS || status == VK_INCOMPLETE); in init()
109 ASSERT(gpuCount > 0); in init()
113 ASSERT(queueFamilyCount != 0); in init()
125 ASSERT(queueFamilyIndex < queueFamilyCount); in init()
155 ASSERT(mPfnGetAndroidHardwareBufferPropertiesANDROID); in init()
169 ASSERT(getFeatures); in init()
171 ASSERT(ycbcrFeatures.samplerYcbcrConversion == VK_TRUE); in init()
218 ASSERT(bufferDesc.layers == 1); 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/view/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp56 #define ASSERT(condition, format, args...) \ macro
371 ASSERT(context != 0, "invalid context") in SurfaceTransaction_checkOnComplete()
384 ASSERT(data >= 1, "did not receive a callback") in SurfaceTransaction_checkOnComplete()
385 ASSERT(data <= 1, "received too many callbacks") in SurfaceTransaction_checkOnComplete()
391 ASSERT(syncFileInfo, "invalid fence"); in SurfaceTransaction_checkOnComplete()
395 ASSERT(syncFileInfo->status == 1, "fence did not signal") in SurfaceTransaction_checkOnComplete()
412ASSERT(presentTime < desiredPresentTime + 0.188 * 1e9, "transaction was presented too late"); in SurfaceTransaction_checkOnComplete()
413 ASSERT(presentTime >= desiredPresentTime, "transaction was presented too early"); in SurfaceTransaction_checkOnComplete()
415 ASSERT(presentFence == -1, "invalid fences should be -1"); in SurfaceTransaction_checkOnComplete()
419 ASSERT(callbackTime < desiredPresentTime + (0.188 + 0.031) * 1e9, in SurfaceTransaction_checkOnComplete()
[all …]
Dandroid_view_cts_ChoreographerNativeTest.cpp32 #define ASSERT(condition, format, args...) \ macro
86 ASSERT(cb->count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback()
90 ASSERT(duration < maxTime, "Callback '%s' has incorrect frame time in invocation %d", in verifyCallback()
123 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
173 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
227 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback()
/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp30 ASSERT(BPS == AudioHardware::E2BPS); in generateSineWave()
51 ASSERT(BPS == AudioHardware::E2BPS); in generateWhiteNoise()
76 ASSERT(BPS == AudioHardware::E2BPS); in generateZeroSound()
DAudioLocal.cpp171 ASSERT(false); in threadLoop()
/cts/suite/audio_quality/lib/src/
DRWBuffer.h60 ASSERT((mWrPoint + sizeToWrite) <= mCapacity); in assertWriteCapacity()
89 ASSERT((mRdPoint + sizeof(T)) <= mWrPoint); in read()
DSemaphore.cpp23 ASSERT(false); in Semaphore()
DReport.cpp30 ASSERT(mInstance->init(dirName)); in Instance()
/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/suite/audio_quality/lib/src/task/
DTaskProcess.cpp333 ASSERT((type == TaskProcess::EId) || (type == TaskProcess::EVal)); in Param()
351 ASSERT((mType == TaskProcess::EId) || (mType == TaskProcess::EVal)); in getParamString()
357 ASSERT(mType == TaskProcess::EConst); in getValue()
363 ASSERT(mType == TaskProcess::EConst); in getValuePtr()
DTaskAsync.cpp97 ASSERT(getParent()->getType() == TaskGeneric::ETaskSequential); in getParentSequential()
/cts/tests/tests/util/src/android/util/cts/
DLogPrinterTest.java35 int[] priorities = { Log.ASSERT, Log.DEBUG, Log.ERROR, Log.INFO, in testConstructor()
/cts/suite/audio_quality/lib/include/
DLog.h64 #define ASSERT(cond) if(!(cond)) { Log::Instance()->printf(Log::ELogE, \ macro
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h63 ASSERT(len <= mCapacity); in setData()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java151 CheckLevel.ASSERT, /*collector*/null); in setUp()
161 CheckLevel.ASSERT, /*collector*/null); in setUp()
642 CheckLevel.ASSERT, /*collector*/null); in openDevice()
870 CheckLevel.ASSERT, /*collector*/ null); in isReprocessSupported()

12