Home
last modified time | relevance | path

Searched refs:serialized (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/cmds/statsd/tests/
DStatsService_test.cpp39 string serialized = config.SerializeAsString(); in TEST() local
42 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
47 string serialized = ""; in TEST() local
50 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
55 string serialized = "Invalid config!"; in TEST() local
58 service.addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
/frameworks/av/services/mediaanalytics/
Dstatsd_extractor.cpp74 std::string serialized; in statsd_extractor() local
75 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_extractor()
81 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_extractor()
88 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_extractor()
Dstatsd_audiopolicy.cpp105 std::string serialized; in statsd_audiopolicy() local
106 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_audiopolicy()
112 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_audiopolicy()
119 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_audiopolicy()
Dstatsd_audiotrack.cpp129 std::string serialized; in statsd_audiotrack() local
130 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_audiotrack()
136 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_audiotrack()
143 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_audiotrack()
Dstatsd_audiorecord.cpp138 std::string serialized; in statsd_audiorecord() local
139 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_audiorecord()
145 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_audiorecord()
152 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_audiorecord()
Dstatsd_codec.cpp159 std::string serialized; in statsd_codec() local
160 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_codec()
166 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_codec()
173 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_codec()
Dstatsd_recorder.cpp169 std::string serialized; in statsd_recorder() local
170 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_recorder()
176 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_recorder()
183 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_recorder()
Dstatsd_nuplayer.cpp150 std::string serialized; in statsd_nuplayer() local
151 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_nuplayer()
157 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_nuplayer()
164 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_nuplayer()
Dstatsd_audiothread.cpp187 std::string serialized; in statsd_audiothread() local
188 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_audiothread()
194 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_audiothread()
201 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_audiothread()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java264 byte[] serialized = perBssid.toAccessPoint().toByteArray(); in makeSerializedAccessPointExample()
265 return serialized; in makeSerializedAccessPointExample()
293 byte[] serialized = makeSerializedAccessPointExample(); in testAccessPointSerialization()
296 AccessPoint ap = AccessPoint.parseFrom(serialized); in testAccessPointSerialization()
328 byte[] serialized = makeSerializedAccessPointExample(); in testReproducableSerialization()
330 assertArrayEquals(serialized, makeSerializedAccessPointExample()); in testReproducableSerialization()
338 byte[] serialized = makeSerializedAccessPointExample(); in testDeserialization()
343 AccessPoint.parseFrom(serialized)); in testDeserialization()
346 String diag = hexStringFromByteArray(serialized); in testDeserialization()
357 byte[] serialized = mWifiScoreCard.getNetworkListByteArray(false); in testNetworksSerialization()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DFlagNamespaceUtils.java137 private static List<String> toStringList(String serialized) { in toStringList() argument
138 if (serialized == null || serialized.length() == 0) { in toStringList()
141 return Arrays.asList(serialized.split(DELIMITER)); in toStringList()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java481 void lazyMerge(byte[] serialized) { in lazyMerge() argument
482 if (serialized == null) return; in lazyMerge()
483 byte[] old = mPendingReadFromStore.getAndSet(serialized); in lazyMerge()
497 final byte[] serialized = mPendingReadFromStore.getAndSet(null); in finishPendingRead()
498 if (serialized == null) return; in finishPendingRead()
501 ap = AccessPoint.parseFrom(serialized); in finishPendingRead()
570 byte[] serialized = perBssid.toAccessPoint(/* No BSSID */ true).toByteArray(); in doWrites()
571 mMemoryStore.write(perBssid.getL2Key(), serialized); in doWrites() local
574 bytes += serialized.length; in doWrites()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp114 std::string serialized; in TEST() local
115 ASSERT_TRUE(proto.serializeToString(&serialized)); in TEST()
116 ASSERT_TRUE(primitives.ParseFromString(serialized)); in TEST()
161 std::string serialized(vec.data(), vec.data() + vec.size()); in TEST() local
162 ASSERT_TRUE(primitives.ParseFromString(serialized)); in TEST()
244 std::string serialized; in TEST() local
245 ASSERT_TRUE(proto.serializeToString(&serialized)); in TEST()
246 ASSERT_TRUE(complex.ParseFromString(serialized)); in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java427 byte[] serialized = PersistentData.toBytes(PersistentData.TYPE_SP, SOME_USER_ID, in testPersistentData_serializeUnserialize()
429 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize()
482 byte[] serialized = CredentialHash.create( in testCredentialHash_serializeUnserialize()
484 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_serializeUnserialize()
496 byte[] serialized = new byte[] { in testCredentialHash_unserialize_versionGatekeeper()
502 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_unserialize_versionGatekeeper()
DSyntheticPasswordTests.java472 byte[] serialized = new byte[] { in testPasswordData_deserialize()
482 PasswordData deserialized = PasswordData.fromBytes(serialized); in testPasswordData_deserialize()
/frameworks/base/tools/aapt2/
Dformats.md29 If the `entry_type` is equal to `RES_TABLE (0x00000000)`, the `data` field contains a serialized
39 | `header_size` | `header` | The serialized Protobuf message [aapt.pb.internal.CompiledFi…
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java481 T serialized = deserialize(arr, klass); in serializeRoundTrip() local
482 return serialized; in serializeRoundTrip()
487 T serialized = serializeRoundTrip(obj); in assertEqualsAfterSerializing() local
488 assertEquals("Expected values to be equal after serialization round-trip", obj, serialized); in assertEqualsAfterSerializing()
/frameworks/base/core/java/android/content/
DIntentSender.java117 Bundle extras, boolean serialized, boolean sticky, int sendingUser) { in performReceive() argument
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java256 Bundle bOptions, boolean serialized, boolean sticky, int userId, in broadcastIntentInPackage() argument
/frameworks/ml/nn/common/
DExecutionBurstServer.cpp467 const std::vector<FmqResultDatum> serialized = serialize(errorStatus, outputShapes, timing); in send() local
468 return sendPacket(serialized); in send()
DExecutionBurstController.cpp368 const std::vector<FmqRequestDatum> serialized = serialize(request, measure, slots); in send() local
369 return sendPacket(serialized); in send()
/frameworks/base/tools/aapt2/compile/
DPng.cpp51 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, in serialize9Patch() local
53 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile(); in serialize9Patch()
54 return serialized; in serialize9Patch()
/frameworks/base/tools/aapt/
DImages.cpp58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch() local
59 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); in serialize9patch()
60 return serialized; in serialize9patch()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1595 String serialized = getString(ENABLED_TRUST_AGENTS, userId); in getEnabledTrustAgents() local
1596 if (TextUtils.isEmpty(serialized)) { in getEnabledTrustAgents()
1599 String[] split = serialized.split(","); in getEnabledTrustAgents()
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags62 # Discard an undelivered serialized broadcast (timeout/ANR/crash)

12