Home
last modified time | relevance | path

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

12

/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()
33 ASSERT_EQ(ASensorManager_getDynamicSensorList(nullptr, nullptr), -EINVAL); in testInvalidParameter()
34 ASSERT_EQ(ASensorManager_getDynamicSensorList(nullptr, &dummyList), -EINVAL); in testInvalidParameter()
36 ASSERT_EQ(ASensorManager_getDefaultSensor(nullptr, ASENSOR_TYPE_ACCELEROMETER), nullptr); in testInvalidParameter()
38 ASSERT_EQ(ASensorManager_getDefaultSensorEx( in testInvalidParameter()
43 ASSERT_EQ(ASensorManager_createEventQueue(nullptr, nullptr, 0, nullptr, nullptr), nullptr); in testInvalidParameter()
44 ASSERT_EQ(ASensorManager_createEventQueue( in testInvalidParameter()
46 ASSERT_EQ(ASensorManager_createEventQueue( in testInvalidParameter()
50 ASSERT_EQ(ASensorManager_destroyEventQueue(nullptr, nullptr), -EINVAL); in testInvalidParameter()
[all …]
DnativeTestHelper.h35 #define ASSERT_EQ(a, b) \ macro
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_AImageDecoderTest.cpp51 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
53 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
61 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
63 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
71 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate()
73 ASSERT_EQ(nullptr, *outDecoder); in testEmptyCreate()
106 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder()
114 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder()
123 ASSERT_EQ(start, offset); in testNullDecoder()
126 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
Dandroid_graphics_cts_ANativeWindowTest.cpp105 ASSERT_EQ(STATUS_OK, result); in writeToParcel()
/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()
57ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer.get(), kNumFrames, NANOS_PER_SECOND… in checkSessionIdNone()
93 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate()
104 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdAllocate()
113 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream1)); in checkSessionIdAllocate()
116 ASSERT_EQ(kNumFrames, AAudioStream_read(aaudioStream1, in checkSessionIdAllocate()
119 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, in checkSessionIdAllocate()
[all …]
Dtest_aaudio_stream_builder.cpp45 ASSERT_EQ(AAUDIO_OK, result); in create_stream_builder()
60 ASSERT_EQ(nullptr, aaudioStream); in try_opening_audio_stream()
62 ASSERT_EQ(AAUDIO_OK, result); in try_opening_audio_stream()
75 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in try_opening_audio_stream()
78 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in try_opening_audio_stream()
124 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in TEST_F()
454 ASSERT_EQ(nullptr, aaudioStream); in testChannelMask()
456 ASSERT_EQ(AAUDIO_OK, result); in testChannelMask()
468 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in testChannelMask()
470 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in testChannelMask()
[all …]
Dutils.cpp112 ASSERT_EQ(1U, sMaxFramesPerBurstMs.count(mRequested.perfMode)); in initBuilder()
116 ASSERT_EQ(AAUDIO_OK, result); in initBuilder()
138 ASSERT_EQ(AAUDIO_OK, result); in createAndVerifyStream()
140 ASSERT_EQ(AAUDIO_STREAM_STATE_OPEN, AAudioStream_getState(mStream)); in createAndVerifyStream()
141 ASSERT_EQ(mDirection, AAudioStream_getDirection(mStream)); in createAndVerifyStream()
169 ASSERT_EQ(mRequested.dataFormat, mActual.dataFormat); in createAndVerifyStream()
202 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(mBuilder)); in close()
205 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(mStream)); in close()
211 ASSERT_EQ(AAUDIO_OK, cmd(mStream)); in streamCommand()
213 ASSERT_EQ(AAUDIO_OK, in streamCommand()
[all …]
Dtest_aaudio_basic.cpp51 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in testConfiguration()
60 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in testConfiguration()
Dtest_aaudio_callback.cpp250 ASSERT_EQ(framesPerDataCallback, streamFramesPerDataCallback); in TEST_P()
272 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
299 ASSERT_EQ(streamFramesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
302 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
429 ASSERT_EQ(framesPerDataCallback, streamFramesPerDataCallback); in TEST_P()
452 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
482 ASSERT_EQ(streamFramesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
493 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
Dtest_aaudio_attributes.cpp102 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes()
140 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
789 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST_P()
855 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST_P()
/cts/hostsidetests/media/app/MediaMetricsTest/jni/
Daaudio_stream.cpp32 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&builder)); in tryOpeningStream()
38 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(builder, &stream)); in tryOpeningStream()
40 ASSERT_EQ(direction, AAudioStream_getDirection(stream)); in tryOpeningStream()
42 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(stream)); in tryOpeningStream()
50 ASSERT_EQ(kNumFrames, in tryOpeningStream()
53 ASSERT_EQ(kNumFrames, in tryOpeningStream()
69 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStop(stream)); in tryOpeningStream()
72 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(builder)); in tryOpeningStream()
73 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/nativehardware/jni/
DAHardwareBufferGLTest.cpp237 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "glTexSubImage2D failed"; in UploadData()
242 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "glTexSubImage3D failed"; in UploadData()
249 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in UploadRedPixels()
336 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixel()
345 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixel()
511ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "Could not read pixel at " << golden.x << "," << g… in CheckGoldenPixels()
525 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixels()
535 ASSERT_EQ(GLenum{GL_NO_ERROR}, glGetError()); in CheckGoldenPixels()
554 ASSERT_EQ(NO_ERROR, result) << "AHardwareBuffer_lock failed with error " << result; in CheckCpuGoldenPixelsRgba()
626 ASSERT_EQ(NO_ERROR, result) << "AHardwareBuffer_lock failed with error " << result; in CheckCpuGoldenPixelsYuv()
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp122 ASSERT_EQ(shouldBeRemote, iface->isRemote()); in TEST_P()
126 ASSERT_EQ(STATUS_OK, AIBinder_ping(iface->asBinder().get())); in TEST_P()
131 ASSERT_EQ(STATUS_OK, AIBinder_getExtension(iface->asBinder().get(), ext.getR())); in TEST_P()
137 ASSERT_EQ(nullptr, ext.get()); in TEST_P()
191 ASSERT_EQ(STATUS_UNKNOWN_ERROR, AStatus_getStatus(iface->TestOneway().get())); in TEST_P()
218 ASSERT_EQ(0, ITest::kZero); in TEST_P()
219 ASSERT_EQ(1, ITest::kOne); in TEST_P()
220 ASSERT_EQ(0xffffffff, ITest::kOnes); in TEST_P()
221 ASSERT_EQ(1, ITest::kByteOne); in TEST_P()
222 ASSERT_EQ(0xffffffffffffffff, ITest::kLongOnes); in TEST_P()
[all …]
Dtest_parcel_jni.cpp38 ASSERT_EQ(0, AParcel_getDataPosition(parcel.get())); in TEST()
Dtest_persistable_bundle.cpp273 ASSERT_EQ(outSizeBytes, 0); in TEST_F()
279 ASSERT_EQ(outSizeBytes, sizeof(char*)); in TEST_F()
302 ASSERT_EQ(inBytes, outBytes); in checkAndFree()
Dtest_ibinder.cpp267 ASSERT_EQ(ext, getExt); in TEST_F()
283 ASSERT_EQ(ext2, getExt); in TEST_F()
/cts/flags/cc_tests/src/
DFlagMacrosTests.cpp117 ASSERT_EQ(expected_executed_tests, executed_tests); in TEST_F()
214 ASSERT_EQ( in TEST()
/cts/tests/tests/net/native/src/
DTagSocketTest.cpp52 ASSERT_EQ(android::OK, ret) in dumpBpfMaps()

12