/cts/tests/sensor/jni/ |
D | SensorTestCases.cpp | 31 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 …]
|
D | nativeTestHelper.h | 35 #define ASSERT_EQ(a, b) \ macro
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_session_id.cpp | 43 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 …]
|
D | utils.cpp | 102 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 …]
|
D | test_aaudio_callback.cpp | 171 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()
|
D | test_aaudio_stream_builder.cpp | 71 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()
|
D | test_aaudio_attributes.cpp | 50 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes() 71 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
|
D | test_aaudio.cpp | 144 ASSERT_EQ(0, TEMP_FAILURE_RETRY(usleep(100 * MICROS_PER_MILLISECOND))); in TEST_P()
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
D | sles.cpp | 72 #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/ |
D | file_descriptor_ndk_test.cpp | 25 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/ |
D | VrExtensionsJni.cpp | 83 #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/ |
D | android_graphics_cts_BitmapTest.cpp | 32 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()
|
D | NativeTestHelpers.h | 32 #define ASSERT_EQ(a, b) \ macro
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 231 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() 505 …ASSERT_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/ |
D | test_native_aidl_client.cpp | 86 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 …]
|
D | test_parcel_jni.cpp | 38 ASSERT_EQ(0, AParcel_getDataPosition(parcel.get())); in TEST()
|
D | test_ibinder.cpp | 166 ASSERT_EQ(ext, getExt); in TEST_F() 182 ASSERT_EQ(ext2, getExt); in TEST_F()
|