Home
last modified time | relevance | path

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

/libnativehelper/
DExpandableString.c28 free(s->data); in ExpandableStringRelease()
35 char* data = (char*) realloc(s->data, requiredSize); in ExpandableStringAppend() local
36 if (data == NULL) { in ExpandableStringAppend()
39 s->data = data; in ExpandableStringAppend()
40 memcpy(s->data + s->dataSize, text, textSize + 1); in ExpandableStringAppend()
DExpandableString.h28 char* data; // The C string data. member
DJNIHelp.c230 const char* details = (summary.data != NULL) ? summary.data : "Unknown"; in DiscardPendingException()
261 ALOGF("%s", summary.data); in jniRegisterNativeMethods()
274 const char* details = (summary.data != NULL) ? summary.data : "No memory to report exception"; in jniLogException()
/libnativehelper/tests/
DExpandableString_test.cpp30 EXPECT_TRUE(s.data == NULL); in TEST()
33 EXPECT_TRUE(s.data != NULL); in TEST()
36 EXPECT_TRUE(s.data == NULL); in TEST()
46 EXPECT_TRUE(s.data == NULL); in TEST()
49 EXPECT_TRUE(s.data != NULL); in TEST()
52 EXPECT_TRUE(s.data != NULL); in TEST()
55 EXPECT_TRUE(s.data != NULL); in TEST()
58 EXPECT_TRUE(s.data == NULL); in TEST()
91 EXPECT_EQ(c, expandableString.data[position]); in TEST_P()
96 EXPECT_EQ(0, strncmp(expected.c_str(), expandableString.data + position, expected.size())); in TEST_P()
DJniSafeRegisterNativeMethods_test.cpp999 jbyteArray data, in android_os_Parcel_unmarshall() argument
/libnativehelper/tests_mts/src/android/libnativehelper/mts/
DJniHelpTest.java200 byte [] data = new byte[8]; in checkNioHeapBuffers()
201 for (int i = 0; i < 4; ++i, bb.get(data)) { in checkNioHeapBuffers()
207 assertEquals(i * data.length, position); in checkNioHeapBuffers()