Searched refs:numFields (Results 1 – 3 of 3) sorted by relevance
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | BearerData.java | 237 bData.userData.numFields = inStream.read(8); in decodeUserData() 244 private static String decodeUtf8(byte[] data, int offset, int numFields) in decodeUtf8() argument 246 return decodeCharset(data, offset, numFields, 1, "UTF-8"); in decodeUtf8() 249 private static String decodeUtf16(byte[] data, int offset, int numFields) in decodeUtf16() argument 253 numFields -= (offset + padding) / 2; in decodeUtf16() 254 return decodeCharset(data, offset, numFields, 2, "utf-16be"); in decodeUtf16() 257 private static String decodeCharset(byte[] data, int offset, int numFields, int width, in decodeCharset() argument 259 if (numFields < 0 || (numFields * width + offset) > data.length) { in decodeCharset() 267 + numFields + " data.length = " + data.length + " maxNumFields = " in decodeCharset() 269 numFields = maxNumFields; in decodeCharset() [all …]
|
D | UserData.java | 135 public int numFields; field in UserData 151 builder.append(", numFields=" + numFields); in toString()
|
/packages/modules/StatsD/lib/libstatspull/tests/ |
D | pull_atom_metadata_test.cpp | 57 const int numFields = 3; in TEST() local 58 int inputFields[numFields] = {2, 4, 6}; in TEST() 60 AStatsManager_PullAtomMetadata_setAdditiveFields(metadata, inputFields, numFields); in TEST() 63 EXPECT_EQ(AStatsManager_PullAtomMetadata_getNumAdditiveFields(metadata), numFields); in TEST() 64 int outputFields[numFields]; in TEST() 66 for (int i = 0; i < numFields; i++) { in TEST() 75 const int numFields = 3; in TEST() local 76 int inputFields[numFields] = {2, 4, 6}; in TEST() 81 AStatsManager_PullAtomMetadata_setAdditiveFields(metadata, inputFields, numFields); in TEST() 85 EXPECT_EQ(AStatsManager_PullAtomMetadata_getNumAdditiveFields(metadata), numFields); in TEST() [all …]
|