/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_ASurfaceTextureTest.cpp | 33 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 …]
|
D | MediaTestHelpers.cpp | 30 #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 …]
|
D | NativeTestHelpers.h | 24 #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__)
|
D | android_graphics_cts_CameraVulkanGpuTest.cpp | 64 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadCameraAndVerifyFrameImport() 71 ASSERT(imageReader.initImageReader() >= 0, in loadCameraAndVerifyFrameImport() 73 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImport() 75 ASSERT(camera.isCameraReady(), "Camera is not ready."); in loadCameraAndVerifyFrameImport() 78 ASSERT(camera.takePicture() >= 0, "Camera failed to take picture."); in loadCameraAndVerifyFrameImport() 88 …ASSERT(vkImage.init(buffer, true /* useExternalFormat */), "Could not initialize VkAHardwareBuffer… in loadCameraAndVerifyFrameImport() 92 ASSERT(renderer.renderImageAndReadback( in loadCameraAndVerifyFrameImport() 98 ASSERT(isNoisy(imageData), "Camera data should be noisy."); in loadCameraAndVerifyFrameImport()
|
D | android_graphics_cts_VulkanPreTransformCtsActivity.cpp | 50 ASSERT(jAssetManager, "jAssetManager is NULL"); in createNativeTest() 51 ASSERT(jSurface, "jSurface is NULL"); in createNativeTest() 55 ASSERT(ret >= 0, "Failed to initialize Vulkan device"); in createNativeTest() 62 ASSERT(!swapchainInfo.init(setPreTransform), "Failed to initialize Vulkan swapchain"); in createNativeTest() 65 ASSERT(!renderer.init(env, jAssetManager), "Failed to initialize Vulkan renderer"); in createNativeTest() 68 ASSERT(!renderer.drawFrame(), "Failed to draw frame"); in createNativeTest() 71 ASSERT(validatePixelValues(env, setPreTransform), "Not properly rotated"); in createNativeTest()
|
D | android_graphics_cts_MediaVulkanGpuTest.cpp | 81 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadMediaAndVerifyFrameImport() 87 ASSERT(imageReader.initImageReader() >= 0, in loadMediaAndVerifyFrameImport() 90 ASSERT(media.init(env, assetMgr, jfilename, imageReader.getNativeWindow()), in loadMediaAndVerifyFrameImport() 94 ASSERT(media.processOneFrame(), in loadMediaAndVerifyFrameImport() 105 …ASSERT(vkImage.init(buffer, true /* useExternalFormat */), "Could not init VkAHardwareBufferImage.… in loadMediaAndVerifyFrameImport() 109 ASSERT(renderer.renderImageAndReadback( in loadMediaAndVerifyFrameImport() 113 ASSERT(framePixels.size() == kTestImageWidth * kTestImageHeight, in loadMediaAndVerifyFrameImport() 119 ASSERT(framePixels.size() == referenceSize, in loadMediaAndVerifyFrameImport() 130 ASSERT(fuzzyMatch(value1, value2, kTolerance), in loadMediaAndVerifyFrameImport()
|
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 68 ASSERT(bufferFormats.find(format) != bufferFormats.end(), in verifyBasicBufferImport() 80 ASSERT(renderer.init(env, assetMgr), "Unable to initialize VkRenderer."); in verifyBasicBufferImport() 102 ASSERT(0 == AHardwareBuffer_lock( in verifyBasicBufferImport() 121 ASSERT(vkImage.init(buffer, useExternalFormat, syncFd), in verifyBasicBufferImport() 126 ASSERT(renderer.renderImageAndReadback(vkImage.image(), vkImage.sampler(), in verifyBasicBufferImport() 130 ASSERT(framePixels.size() == in verifyBasicBufferImport() 139 ASSERT(framePixels[offset] == x + y, in verifyBasicBufferImport()
|
D | VulkanPreTransformTestHelpers.cpp | 25 #define ASSERT(a) \ macro 30 #define VK_CALL(a) ASSERT(VK_SUCCESS == (a)) 128 ASSERT(jSurface); in init() 131 ASSERT(mWindow); in init() 134 ASSERT(enumerateInstanceExtensions(&supportedInstanceExtensions)); in init() 138 ASSERT(hasExtension(extension, supportedInstanceExtensions)); in init() 184 ASSERT(enumerateDeviceExtensions(mGpu, &supportedDeviceExtensions)); in init() 188 ASSERT(hasExtension(extension, supportedDeviceExtensions)); in init() 194 ASSERT(queueFamilyCount); in init() 205 ASSERT(queueFamilyIndex < queueFamilyCount); in init() [all …]
|
D | VulkanTestHelpers.cpp | 29 #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/ |
D | nativeTestHelper.h | 26 #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/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 32 #define ASSERT(condition, format, args...) \ macro 100 ASSERT(cb1->count == 1, "Choreographer failed to invoke callback 1"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 101 ASSERT(cb1->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 103 ASSERT(cb2->count == 1, "Choreographer failed to invoke callback 2"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 104 ASSERT(cb2->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 107 ASSERT(delta == delta.zero() || delta > delta.zero() && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 116 ASSERT(cb1->count == 2, "Choreographer failed to invoke callback 1 a second time"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 117 ASSERT(cb1->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 119 ASSERT(cb2->count == 1, "Choreographer invoked callback 2 when not posted"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 134 ASSERT(cb1->count == 0, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioSignalFactory.cpp | 30 ASSERT(BPS == AudioHardware::E2BPS); in generateSineWave() 51 ASSERT(BPS == AudioHardware::E2BPS); in generateWhiteNoise() 76 ASSERT(BPS == AudioHardware::E2BPS); in generateZeroSound()
|
D | AudioLocal.cpp | 171 ASSERT(false); in threadLoop()
|
D | Buffer.cpp | 33 ASSERT(((long)mData & 0x3) == 0); in Buffer()
|
/cts/suite/audio_quality/lib/src/ |
D | RWBuffer.h | 60 ASSERT((mWrPoint + sizeToWrite) <= mCapacity); in assertWriteCapacity() 89 ASSERT((mRdPoint + sizeof(T)) <= mWrPoint); in read()
|
D | Semaphore.cpp | 23 ASSERT(false); in Semaphore()
|
D | Report.cpp | 30 ASSERT(mInstance->init(dirName)); in Instance()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | LogPrinterTest.java | 34 int[] priorities = { Log.ASSERT, Log.DEBUG, Log.ERROR, Log.INFO, in testConstructor()
|
/cts/suite/audio_quality/lib/include/ |
D | Log.h | 64 #define ASSERT(cond) if(!(cond)) { Log::Instance()->printf(Log::ELogE, \ macro
|
/cts/suite/audio_quality/lib/include/audio/ |
D | Buffer.h | 63 ASSERT(len <= mCapacity); in setData()
|
/cts/tests/vr/jni/ |
D | VrExtensionsJni.cpp | 73 #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((a - delta) <= (b) && (b) <= (a + delta), \
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskAsync.cpp | 97 ASSERT(getParent()->getType() == TaskGeneric::ETaskSequential); in getParentSequential()
|
D | TaskProcess.cpp | 333 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()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestCase.java | 121 CheckLevel.ASSERT, /*collector*/null); in setUp() 214 CheckLevel.ASSERT, /*collector*/null); in openDevice()
|
/cts/tests/camera/api25test/src/android/camera/cts/api25test/ |
D | EnableZslTest.java | 132 mCameraManager.getCameraCharacteristics(cameraId), CheckLevel.ASSERT, in testEnableZslValueByCamera()
|