Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 21 of 21) sorted by relevance

/cts/tests/sensor/jni/
DSensorTestCases.cpp31 ASSERT_EQ(ASensorManager_getSensorList(nullptr, nullptr), -EINVAL); in testInvalidParameter()
32 ASSERT_EQ(ASensorManager_getSensorList(nullptr, &dummyList), -EINVAL); in testInvalidParameter()
34 ASSERT_EQ(ASensorManager_getDefaultSensor(nullptr, ASENSOR_TYPE_ACCELEROMETER), nullptr); in testInvalidParameter()
36 ASSERT_EQ(ASensorManager_getDefaultSensorEx( in testInvalidParameter()
41 ASSERT_EQ(ASensorManager_createEventQueue(nullptr, nullptr, 0, nullptr, nullptr), nullptr); in testInvalidParameter()
42 ASSERT_EQ(ASensorManager_createEventQueue( in testInvalidParameter()
44 ASSERT_EQ(ASensorManager_createEventQueue( in testInvalidParameter()
48 ASSERT_EQ(ASensorManager_destroyEventQueue(nullptr, nullptr), -EINVAL); in testInvalidParameter()
49 ASSERT_EQ(ASensorManager_destroyEventQueue(nullptr, nonNullQueue), -EINVAL); in testInvalidParameter()
50 ASSERT_EQ(ASensorManager_destroyEventQueue(nonNullManager, nullptr), -EINVAL); in testInvalidParameter()
[all …]
DnativeTestHelper.h35 #define ASSERT_EQ(a, b) \ macro
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_AImageDecoderTest.cpp49 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
51 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
57 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
59 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
65 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
67 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
100 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder()
108 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder()
117 ASSERT_EQ(start, offset); in testNullDecoder()
120 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder()
[all …]
Dandroid_graphics_cts_BitmapTest.cpp39 ASSERT_EQ(ANDROID_BITMAP_RESULT_SUCCESS, err); in validateBitmapInfo()
41 ASSERT_EQ((uint32_t) width, info.width); in validateBitmapInfo()
42 ASSERT_EQ((uint32_t) height, info.height); in validateBitmapInfo()
44 ASSERT_EQ(format, info.format); in validateBitmapInfo()
50 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_JNI_EXCEPTION); in validateNdkAccessFails()
53 ASSERT_EQ(ADATASPACE_UNKNOWN, dataSpace); in validateNdkAccessFails()
57 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_JNI_EXCEPTION); in validateNdkAccessFails()
64 ASSERT_EQ(AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM, description.format); in fillRgbaHardwareBuffer()
100 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_BAD_PARAMETER); in testNullBitmap()
103 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_SUCCESS); in testNullBitmap()
[all …]
DNativeTestHelpers.h32 #define ASSERT_EQ(a, b) \ macro
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_session_id.cpp43 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdNone()
49 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdNone()
53 ASSERT_EQ(AAUDIO_SESSION_ID_NONE, sessionId1); in checkSessionIdNone()
55 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in checkSessionIdNone()
57 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer, kNumFrames, NANOS_PER_SECOND)); in checkSessionIdNone()
92 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate()
103 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdAllocate()
112 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in checkSessionIdAllocate()
115 ASSERT_EQ(kNumFrames, AAudioStream_read(aaudioStream1, in checkSessionIdAllocate()
118 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, in checkSessionIdAllocate()
[all …]
Dutils.cpp102 ASSERT_EQ(1U, sMaxFramesPerBurstMs.count(mRequested.perfMode)); in initBuilder()
106 ASSERT_EQ(AAUDIO_OK, result); in initBuilder()
128 ASSERT_EQ(AAUDIO_OK, result); in createAndVerifyStream()
130 ASSERT_EQ(AAUDIO_STREAM_STATE_OPEN, AAudioStream_getState(mStream)); in createAndVerifyStream()
131 ASSERT_EQ(mDirection, AAudioStream_getDirection(mStream)); in createAndVerifyStream()
153 ASSERT_EQ(mRequested.dataFormat, mActual.dataFormat); in createAndVerifyStream()
181 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(mBuilder)); in close()
184 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(mStream)); in close()
190 ASSERT_EQ(AAUDIO_OK, cmd(mStream)); in streamCommand()
192 ASSERT_EQ(AAUDIO_OK, in streamCommand()
[all …]
Dtest_aaudio_callback.cpp227 ASSERT_EQ(framesPerDataCallback, streamFramesPerDataCallback); in TEST_P()
247 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
266 ASSERT_EQ(streamFramesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
269 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
377 ASSERT_EQ(framesPerDataCallback, streamFramesPerDataCallback); in TEST_P()
397 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
419 ASSERT_EQ(streamFramesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
430 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
Dtest_aaudio_stream_builder.cpp72 ASSERT_EQ(AAUDIO_OK, result); in create_stream_builder()
86 ASSERT_EQ(nullptr, aaudioStream); in try_opening_audio_stream()
88 ASSERT_EQ(AAUDIO_OK, result); in try_opening_audio_stream()
96 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in try_opening_audio_stream()
98 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in try_opening_audio_stream()
139 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in TEST()
Dtest_aaudio_attributes.cpp54 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes()
84 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
332 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST()
Dtest_aaudio.cpp299 ASSERT_EQ(0, TEMP_FAILURE_RETRY(usleep(100 * MICROS_PER_MILLISECOND))); in TEST_P()
/cts/hostsidetests/media/app/MediaMetricsTest/jni/
Daaudio_stream.cpp28 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&builder)); in tryOpeningStream()
34 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(builder, &stream)); in tryOpeningStream()
36 ASSERT_EQ(direction, AAudioStream_getDirection(stream)); in tryOpeningStream()
38 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(stream)); in tryOpeningStream()
39 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStop(stream)); in tryOpeningStream()
42 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(builder)); in tryOpeningStream()
43 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(stream)); in tryOpeningStream()
/cts/tests/tests/libnativehelper/jni/
Dfile_descriptor_ndk_test.cpp25 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F()
26 ASSERT_EQ(kInvalidFd, AFileDescriptor_getFd(mEnv, jifd)); in TEST_F()
31 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F()
32 ASSERT_EQ(unixFd, AFileDescriptor_getFd(mEnv, jifd)); in TEST_F()
33 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F()
Djni_invocation_api_ndk_test.cpp51 ASSERT_EQ(JNI_OK, JNI_GetCreatedJavaVMs(vmBuf, std::size(vmBuf), &nVMs)); in TEST_F()
52 ASSERT_EQ(1, nVMs); in TEST_F()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp83 #define ASSERT_EQ(a, b) \ macro
139 ASSERT_EQ(glGetError(), GL_NO_ERROR); in testEglImageArray()
155 ASSERT_EQ(glGetError(), GL_NO_ERROR); in testEglImageArray()
156 ASSERT_EQ(glCheckFramebufferStatus(GL_FRAMEBUFFER), in testEglImageArray()
220 ASSERT_EQ(error, NO_ERROR); in testExternalBuffer()
230 ASSERT_EQ(glGetError(), GL_NO_ERROR); in testExternalBuffer()
234 ASSERT_EQ(glGetError(), GL_NO_ERROR); in testExternalBuffer()
242 ASSERT_EQ(error, NO_ERROR); in testExternalBuffer()
246 ASSERT_EQ(error, NO_ERROR); in testExternalBuffer()
251 ASSERT_EQ(glGetError(), GL_NO_ERROR); in testExternalBuffer()
[all …]
/cts/tests/tests/uirendering/jni/
Dandroid_uirendering_cts_AImageDecoderTest.cpp37 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, AImageDecoder_advanceFrame(nullptr)); in testNullDecoder()
39 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, AImageDecoder_rewind(nullptr)); in testNullDecoder()
67 ASSERT_EQ(0, strcmp(item.string, str)); in testToString()
73 ASSERT_EQ(nullptr, AImageDecoder_resultToString(i)); in testToString()
206 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, AImageDecoder_getFrameInfo(nullptr, in testNullFrameInfo()
214 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, getFrameInfo(env, nullptr, decoder, in testNullFrameInfo()
222 ASSERT_EQ(0, rect.left); in testNullFrameInfo()
223 ASSERT_EQ(0, rect.top); in testNullFrameInfo()
224 ASSERT_EQ(0, rect.right); in testNullFrameInfo()
225 ASSERT_EQ(0, rect.bottom); in testNullFrameInfo()
[all …]
DNativeTestHelpers.h34 #define ASSERT_EQ(a, b) \ macro
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp110 ASSERT_EQ(shouldBeRemote, iface->isRemote()); in TEST_P()
114 ASSERT_EQ(STATUS_OK, AIBinder_ping(iface->asBinder().get())); in TEST_P()
119 ASSERT_EQ(STATUS_OK, AIBinder_getExtension(iface->asBinder().get(), ext.getR())); in TEST_P()
125 ASSERT_EQ(nullptr, ext.get()); in TEST_P()
179 ASSERT_EQ(STATUS_UNKNOWN_ERROR, AStatus_getStatus(iface->TestOneway().get())); in TEST_P()
206 ASSERT_EQ(0, ITest::kZero); in TEST_P()
207 ASSERT_EQ(1, ITest::kOne); in TEST_P()
208 ASSERT_EQ(0xffffffff, ITest::kOnes); in TEST_P()
209 ASSERT_EQ(1, ITest::kByteOne); in TEST_P()
210 ASSERT_EQ(0xffffffffffffffff, ITest::kLongOnes); in TEST_P()
[all …]
Dtest_parcel_jni.cpp38 ASSERT_EQ(0, AParcel_getDataPosition(parcel.get())); in TEST()
Dtest_ibinder.cpp263 ASSERT_EQ(ext, getExt); in TEST_F()
279 ASSERT_EQ(ext2, getExt); in TEST_F()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp231 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "glTexSubImage2D failed"; in UploadData()
236 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "glTexSubImage3D failed"; in UploadData()
243 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in UploadRedPixels()
330 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixel()
339 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixel()
505ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "Could not read pixel at " << golden.x << "," << g… in CheckGoldenPixels()
519 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixels()
529 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixels()
548 ASSERT_EQ(NO_ERROR, result) << "AHardwareBuffer_lock failed with error " << result; in CheckCpuGoldenPixelsRgba()
620 ASSERT_EQ(NO_ERROR, result) << "AHardwareBuffer_lock failed with error " << result; in CheckCpuGoldenPixelsYuv()
[all …]