Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 17 of 17) 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/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()
152 ASSERT_EQ(AAUDIO_FORMAT_PCM_I16, mActual.dataFormat); in createAndVerifyStream()
179 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(mBuilder)); in close()
182 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(mStream)); in close()
188 ASSERT_EQ(AAUDIO_OK, cmd(mStream)); in streamCommand()
190 ASSERT_EQ(AAUDIO_OK, in streamCommand()
[all …]
Dtest_aaudio_callback.cpp171 ASSERT_EQ(framesPerDataCallback, actualFramesPerDataCallback); in TEST_P()
182 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
193 ASSERT_EQ(framesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
196 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
271 ASSERT_EQ(framesPerDataCallback, actualFramesPerDataCallback); in TEST_P()
285 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
301 ASSERT_EQ(framesPerDataCallback, mCbData->actualFramesPerCallback); in TEST_P()
313 ASSERT_EQ(AAUDIO_OK, mCbData->callbackError); in TEST_P()
Dtest_aaudio_stream_builder.cpp71 ASSERT_EQ(AAUDIO_OK, result); in create_stream_builder()
85 ASSERT_EQ(nullptr, aaudioStream); in try_opening_audio_stream()
87 ASSERT_EQ(AAUDIO_OK, result); in try_opening_audio_stream()
95 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in try_opening_audio_stream()
97 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in try_opening_audio_stream()
138 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in TEST()
Dtest_aaudio_attributes.cpp50 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes()
71 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
Dtest_aaudio.cpp144 ASSERT_EQ(0, TEMP_FAILURE_RETRY(usleep(100 * MICROS_PER_MILLISECOND))); in TEST_P()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp72 #define ASSERT_EQ(x, y) do { if ((x) == (y)) ; else { fprintf(stderr, "0x%x != 0x%x\n", \ macro
130 ASSERT_EQ(SL_RESULT_SUCCESS, result); in recorderCallback()
195 ASSERT_EQ(SL_RESULT_SUCCESS, result); in playerCallback()
349 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
351 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
355 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
360 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
362 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
399 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
401 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
[all …]
/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()
/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/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp32 ASSERT_EQ(ANDROID_BITMAP_RESULT_SUCCESS, err); in validateBitmapInfo()
34 ASSERT_EQ((uint32_t) width, info.width); in validateBitmapInfo()
35 ASSERT_EQ((uint32_t) height, info.height); in validateBitmapInfo()
37 ASSERT_EQ(format, info.format); in validateBitmapInfo()
43 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_JNI_EXCEPTION); in validateNdkAccessAfterRecycle()
50 ASSERT_EQ(AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM, description.format); in fillRgbaHardwareBuffer()
DNativeTestHelpers.h32 #define ASSERT_EQ(a, b) \ macro
/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 …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp86 ASSERT_EQ(shouldBeRemote, iface->isRemote()); in TEST_P()
90 ASSERT_EQ(STATUS_OK, AIBinder_ping(iface->asBinder().get())); in TEST_P()
95 ASSERT_EQ(STATUS_OK, AIBinder_getExtension(iface->asBinder().get(), ext.getR())); in TEST_P()
101 ASSERT_EQ(nullptr, ext.get()); in TEST_P()
149 ASSERT_EQ(STATUS_UNKNOWN_ERROR, AStatus_getStatus(iface->TestOneway().get())); in TEST_P()
176 ASSERT_EQ(0, ITest::kZero); in TEST_P()
177 ASSERT_EQ(1, ITest::kOne); in TEST_P()
178 ASSERT_EQ(0xffffffff, ITest::kOnes); in TEST_P()
179 ASSERT_EQ(std::string(""), ITest::kEmpty); in TEST_P()
180 ASSERT_EQ(std::string("foo"), ITest::kFoo); in TEST_P()
[all …]
Dtest_parcel_jni.cpp38 ASSERT_EQ(0, AParcel_getDataPosition(parcel.get())); in TEST()
Dtest_ibinder.cpp166 ASSERT_EQ(ext, getExt); in TEST_F()
182 ASSERT_EQ(ext2, getExt); in TEST_F()