Home
last modified time | relevance | path

Searched refs:testData (Results 1 – 6 of 6) sorted by relevance

/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java84 byte[] testData) { in WriteToDisk() argument
88 mTestData = testData; in WriteToDisk()
150 byte[] testData = new String(builder).getBytes(); in onBind()
154 new WriteToDisk("data", dataPartitionFile, fileSize, testData).start(); in onBind()
155 new WriteToDisk("external", externalPartitionFile, fileSize, testData).start(); in onBind()
/system/media/tests/
DEffectParamWrapper_tests.cpp132 constexpr uint16_t testData[dataLength] = {0x200, 0x0, 0xffffu, 0xbead, in TEST() local
135 char buf[sizeof(effect_param_t) + sizeof(testData)]; in TEST()
138 param->vsize = sizeof(testData); in TEST()
142 ASSERT_EQ(OK, wrapper.writeToData(&testData, sizeof(testData) /* len */, in TEST()
143 0 /* offset */, sizeof(testData) /* max */)) in TEST()
152 EXPECT_EQ(0, std::memcmp(&testData, &targetData, in TEST()
156 std::memset(&targetData, 0, sizeof(testData)); in TEST()
160 sizeof(testData) /* max */)) in TEST()
162 EXPECT_EQ(0, std::memcmp(testData + dataLength / 2, &targetData, in TEST()
166 std::memset(&targetData, 0, sizeof(testData)); in TEST()
[all …]
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp988 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
989 native_handle_t* h = native_handle_create(0, testData.size()); in TEST_F()
990 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
991 std::memcpy(h->data, testData.data(), sizeof(testData)); in TEST_F()
1040 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
1041 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
1050 native_handle* h = native_handle_create(1 /* numFds */, testData.size() /* numInts */); in TEST_F()
1051 std::memcpy(&(h->data[1]), testData.data(), sizeof(testData)); in TEST_F()
1095 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
1096 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
[all …]
/system/tools/aidl/tests/java/src/android/aidl/tests/
DTestServiceClient.java517 private void writeToFd(FileDescriptor fd, byte[] testData) throws IOException { in writeToFd() argument
519 fdStream.write(testData); in writeToFd()
523 private void verifyFileContents(String file, byte[] testData) throws IOException { in verifyFileContents() argument
525 byte[] readData = new byte[testData.length]; in verifyFileContents()
528 assertThat(readData, is(testData)); in verifyFileContents()
543 String testData = "FrazzleSnazzleFlimFlamFlibbityGumboChops"; in testFileDescriptorPassing() local
544 writeToFd(journeyed, testData.getBytes()); in testFileDescriptorPassing()
545 verifyFileContents(file, testData.getBytes()); in testFileDescriptorPassing()
572 String testData = "Something " + i; in testFileDescriptorArrayPassing() local
574 writeToFd(reversed[kTestSize - 1 - i], testData.getBytes()); in testFileDescriptorArrayPassing()
[all …]
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp2289 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
2290 native_handle_t* h = native_handle_create(0, testData.size()); in TEST_F()
2291 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
2292 std::memcpy(h->data, testData.data(), sizeof(testData)); in TEST_F()
2341 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
2342 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
2351 native_handle* h = native_handle_create(1 /* numFds */, testData.size() /* numInts */); in TEST_F()
2352 std::memcpy(&(h->data[1]), testData.data(), sizeof(testData)); in TEST_F()
2396 const std::array<int, 6> testData{2, -32, 10, -4329454, 11, 24}; in TEST_F() local
2397 ASSERT_EQ(sizeof(testData), testData.size() * sizeof(int)); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp4001 std::vector<TestData> testData; in TEST_F() local
4007 testData.push_back( in TEST_F()
4013 testData.push_back( in TEST_F()
4020 testData.push_back({StringPrintf("networkAddInterface(65123, %s)", sTun.name().c_str()), in TEST_F()
4029 testData.push_back( in TEST_F()
4037 testData.push_back({"networkDestroy(65123)", "networkDestroy.*65123"}); in TEST_F()
4054 for (const TestData& td : testData) { in TEST_F()