/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_ibinder.cpp | 41 EXPECT_EQ(SampleData::kClass, AIBinder_getClass(binder)); in TEST_F() 68 EXPECT_EQ(data, AIBinder_getUserData(binder)); in TEST_F() 79 EXPECT_EQ(nullptr, destroyedPointer); in TEST_F() 84 EXPECT_EQ(data, destroyedPointer); in TEST_F() 94 EXPECT_EQ(STATUS_INVALID_OPERATION, in TEST_F() 104 EXPECT_EQ(getuid(), AIBinder_getCallingUid()); in TEST_F() 105 EXPECT_EQ(getpid(), AIBinder_getCallingPid()); in TEST_F() 110 EXPECT_EQ(1, AIBinder_debugGetRefCount(binder)); in TEST_F() 118 EXPECT_EQ(binder, promoted); in TEST_F() 130 EXPECT_EQ(nullptr, promoted); in TEST_F() [all …]
|
D | test_native_aidl_client.cpp | 55 EXPECT_EQ(test, ITest::fromBinder(binder)); in TEST_F() 82 EXPECT_EQ(GetParam().expectedName, name); in TEST_P() 99 EXPECT_EQ(STATUS_OK, AIBinder_ping(ext.get())); in TEST_P() 116 EXPECT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, fd)); in dumpToString() 137 EXPECT_EQ("", dumpToString(iface, {})); in TEST_P() 138 EXPECT_EQ("", dumpToString(iface, {"", ""})); in TEST_P() 139 EXPECT_EQ("Hello World!", dumpToString(iface, {"Hello ", "World!"})); in TEST_P() 140 EXPECT_EQ("ABC", dumpToString(iface, {"A", "B", "C"})); in TEST_P() 158 EXPECT_EQ(getpid(), res); in TEST_P() 161 EXPECT_EQ(getuid(), res); in TEST_P() [all …]
|
D | test_status.cpp | 69 EXPECT_EQ(std::string(), AStatus_getMessage(status)); in checkIsOkay() 70 EXPECT_EQ(EX_NONE, AStatus_getExceptionCode(status)); in checkIsOkay() 71 EXPECT_EQ(0, AStatus_getServiceSpecificError(status)); in checkIsOkay() 72 EXPECT_EQ(STATUS_OK, AStatus_getStatus(status)); in checkIsOkay() 78 EXPECT_EQ(message, AStatus_getMessage(status)); in checkIsErrorException() 79 EXPECT_EQ(exception, AStatus_getExceptionCode(status)); in checkIsErrorException() 81 EXPECT_EQ(0, AStatus_getServiceSpecificError(status)); in checkIsErrorException() 82 EXPECT_EQ(exception == EX_TRANSACTION_FAILED ? STATUS_FAILED_TRANSACTION in checkIsErrorException() 89 EXPECT_EQ(message, AStatus_getMessage(status)); in checkIsServiceSpecific() 90 EXPECT_EQ(EX_SERVICE_SPECIFIC, AStatus_getExceptionCode(status)); in checkIsServiceSpecific() [all …]
|
D | test_parcel.cpp | 143 EXPECT_EQ( in TEST_F() 149 EXPECT_EQ(STATUS_FAILED_TRANSACTION, in TEST_F() 155 EXPECT_EQ(STATUS_FAILED_TRANSACTION, in TEST_F() 160 EXPECT_EQ(STATUS_UNKNOWN_ERROR, AParcel_writeStatusHeader(in, status)); in TEST_F() 164 EXPECT_EQ(STATUS_BAD_VALUE, AParcel_writeStatusHeader(in, status)); in TEST_F() 245 EXPECT_EQ(expectedString, readString); in TEST_F() 249 EXPECT_EQ(expectedVector, readVector); in TEST_F() 275 EXPECT_EQ(STATUS_NOT_ENOUGH_DATA, AParcel_readBool(out, &readTarget)); in TEST_F() 286 EXPECT_EQ(position, AParcel_getDataPosition(out)); in TEST_F() 288 EXPECT_EQ(position, AParcel_getDataPosition(out)); in TEST_F() [all …]
|
D | utilities.h | 150 EXPECT_EQ(count, data->numberTransactions) in ExpectLifetimeTransactions() 166 EXPECT_EQ(instances, ThisShouldBeDestroyed::numInstances()); in TearDown()
|
D | test_ibinder_jni.cpp | 49 EXPECT_EQ(binder, fromJavaBinder); in TEST_F()
|
D | utilities.cpp | 74 EXPECT_EQ(JNI_OK, attach); in GetEnv()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 159 EXPECT_EQ(BAD_VALUE, res); in TEST() 161 EXPECT_EQ(BAD_VALUE, res); in TEST() 163 EXPECT_EQ(BAD_VALUE, res); in TEST() 177 EXPECT_EQ(BAD_VALUE, res); in TEST() 181 EXPECT_EQ(NO_ERROR, res); in TEST() 182 EXPECT_EQ(desc, GetDescription(buffer)); in TEST() 198 EXPECT_EQ(NO_ERROR, res); in TEST() 199 EXPECT_EQ(desc, GetDescription(buffer)); in TEST() 209 EXPECT_EQ(NO_ERROR, res); in TEST() 210 EXPECT_EQ(desc, GetDescription(buffer)); in TEST() [all …]
|
D | AHardwareBufferGLTest.cpp | 331 EXPECT_EQ(golden, actual) << "Pixel doesn't match at X=" << x << ", Y=" << y; in CheckGoldenPixel() 1825 EXPECT_EQ(GLenum{GL_NO_ERROR}, glGetError()) << "GL error during compute shader execution"; in TEST_P() 1838 EXPECT_EQ(0, memcmp(expected_data.data(), data, desc.width)) << s.str(); in TEST_P()
|
/cts/tests/tests/net/native/qtaguid/src/ |
D | NativeQtaguidTest.cpp | 83 EXPECT_EQ(0, legacy_tagSocket(sockfd, tag, uid)); in checkNoSocketPointerLeaks() 84 EXPECT_EQ(0, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt)); in checkNoSocketPointerLeaks() 85 EXPECT_EQ(expect_addr, sk_addr); in checkNoSocketPointerLeaks() 87 EXPECT_EQ(-ENOENT, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt)); in checkNoSocketPointerLeaks() 98 EXPECT_EQ(0, legacy_tagSocket(sockfd, tag, uid)); in TEST() 99 EXPECT_EQ(0, getCtrlSkInfo(tag, uid, &dummy_sk, &ref_cnt)); in TEST() 100 EXPECT_EQ(2, ref_cnt); in TEST() 102 EXPECT_EQ(-ENOENT, getCtrlSkInfo(tag, uid, &dummy_sk, &ref_cnt)); in TEST() 113 EXPECT_EQ(0, legacy_tagSocket(sockfd, tag, uid)); in TEST() 114 EXPECT_EQ(0, getCtrlSkInfo(tag, uid, &dummy_sk, &ref_cnt)); in TEST() [all …]
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio.cpp | 88 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P() 89 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P() 112 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P() 113 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P() 131 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P() 132 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P() 145 EXPECT_EQ(framesReadAtStop, AAudioStream_getFramesRead(stream())); in TEST_P() 146 EXPECT_EQ(framesWrittenAtStop, AAudioStream_getFramesWritten(stream())); in TEST_P() 152 EXPECT_EQ(AAUDIO_ERROR_UNIMPLEMENTED, AAudioStream_requestPause(stream())); in TEST_P() 153 EXPECT_EQ(AAUDIO_ERROR_UNIMPLEMENTED, AAudioStream_requestFlush(stream())); in TEST_P() [all …]
|
D | test_aaudio_attributes.cpp | 79 EXPECT_EQ(expectedUsage, AAudioStream_getUsage(aaudioStream)); in checkAttributes() 85 EXPECT_EQ(expectedContentType, AAudioStream_getContentType(aaudioStream)); in checkAttributes() 91 EXPECT_EQ(expectedPreset, AAudioStream_getInputPreset(aaudioStream)); in checkAttributes() 97 EXPECT_EQ(expectedCapturePolicy, AAudioStream_getAllowedCapturePolicy(aaudioStream)); in checkAttributes() 99 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkAttributes() 102 EXPECT_EQ(kNumFrames, in checkAttributes() 105 EXPECT_EQ(kNumFrames, in checkAttributes() 109 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkAttributes() 111 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in checkAttributes()
|
D | test_session_id.cpp | 59 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream1)); in checkSessionIdNone() 61 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream1)); in checkSessionIdNone() 122 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream1)); in checkSessionIdAllocate() 151 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream2)); in checkSessionIdAllocate() 153 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream2)); in checkSessionIdAllocate() 156 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream1)); in checkSessionIdAllocate()
|
D | test_aaudio_mmap.cpp | 108 EXPECT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&builder)); in TEST()
|
D | test_aaudio_callback.cpp | 190 EXPECT_EQ(oldCallbackCount, mCbData->callbackCount); // expect not advancing in TEST_P() 298 EXPECT_EQ(oldCallbackCount, mCbData->callbackCount); // expect not advancing in TEST_P()
|
D | test_aaudio_stream_builder.cpp | 142 EXPECT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in TEST() 143 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in TEST()
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.cpp | 61 #define EXPECT_EQ(env, expected, actual, msg) \ macro 88 EXPECT_EQ(env, -1, read(fd, &dummy, sizeof(dummy)), "res_nresult check for closing fd"); in getAsyncResponse() 89 EXPECT_EQ(env, EBADF, errno, "res_nresult check for errno"); in getAsyncResponse() 131 EXPECT_EQ(env, expectedRcode, rcode, "rcode is not expected"); in expectAnswersValid() 158 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck() 164 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck() 187 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 189 EXPECT_EQ(env, 0, expectAnswersValid(env, fd1, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 205 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET6, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 207 EXPECT_EQ(env, 0, expectAnswersValid(env, fd1, AF_INET6, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() [all …]
|
/cts/tests/tests/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 49 EXPECT_EQ(-1, read(fd, &dummy, sizeof dummy)); in getAsyncResponse() 50 EXPECT_EQ(EBADF, errno); in getAsyncResponse() 83 EXPECT_EQ(rcode, expectedRcode); in expectAnswersValid() 90 EXPECT_EQ(1, inet_pton(ipType, answer.c_str(), pton)); in expectAnswersValid() 99 EXPECT_EQ(expectedErrno, res); in expectAnswersNotValid() 200 EXPECT_EQ(err, 0); in TEST() 218 EXPECT_EQ(-EMSGSIZE, fd); in TEST() 221 EXPECT_EQ(-EMSGSIZE, fd); in TEST() 235 EXPECT_EQ(-EMSGSIZE, fd); in TEST() 240 EXPECT_EQ(-EMSGSIZE, fd); in TEST() [all …]
|
/cts/tests/tests/libnativehelper/jni/ |
D | libnativehelper_test.cpp | 23 EXPECT_EQ(JNI_OK, result); in SetUp()
|