/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() 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 …]
|
D | nativeTestHelper.h | 35 #define ASSERT_EQ(a, b) \ macro
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 51 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 …]
|
D | android_graphics_cts_BitmapTest.cpp | 39 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 …]
|
D | NativeTestHelpers.h | 32 #define ASSERT_EQ(a, b) \ macro
|
D | android_graphics_cts_ANativeWindowTest.cpp | 105 ASSERT_EQ(STATUS_OK, result); in writeToParcel()
|
/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.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 …]
|
D | test_aaudio_stream_builder.cpp | 45 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 …]
|
D | utils.cpp | 112 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 …]
|
D | test_aaudio_basic.cpp | 51 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in testConfiguration() 60 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in testConfiguration()
|
D | test_aaudio_callback.cpp | 250 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()
|
D | test_aaudio_attributes.cpp | 102 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/ |
D | aaudio_stream.cpp | 32 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/ |
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()
|
D | jni_invocation_api_ndk_test.cpp | 51 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/ |
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/uirendering/jni/ |
D | android_uirendering_cts_AImageDecoderTest.cpp | 37 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 …]
|
D | NativeTestHelpers.h | 34 #define ASSERT_EQ(a, b) \ macro
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 237 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() 511 …ASSERT_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/ |
D | test_native_aidl_client.cpp | 122 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 …]
|
D | test_parcel_jni.cpp | 38 ASSERT_EQ(0, AParcel_getDataPosition(parcel.get())); in TEST()
|
D | test_persistable_bundle.cpp | 273 ASSERT_EQ(outSizeBytes, 0); in TEST_F() 279 ASSERT_EQ(outSizeBytes, sizeof(char*)); in TEST_F() 302 ASSERT_EQ(inBytes, outBytes); in checkAndFree()
|
D | test_ibinder.cpp | 267 ASSERT_EQ(ext, getExt); in TEST_F() 283 ASSERT_EQ(ext2, getExt); in TEST_F()
|
/cts/flags/cc_tests/src/ |
D | FlagMacrosTests.cpp | 117 ASSERT_EQ(expected_executed_tests, executed_tests); in TEST_F() 214 ASSERT_EQ( in TEST()
|
/cts/tests/tests/net/native/src/ |
D | TagSocketTest.cpp | 52 ASSERT_EQ(android::OK, ret) in dumpBpfMaps()
|