Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/statsd/tests/
DStatsService_test.cpp41 string serialized = config.SerializeAsString(); in TEST() local
44 service->addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
49 string serialized = ""; in TEST() local
52 service->addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
57 string serialized = "Invalid config!"; in TEST() local
60 service->addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
/frameworks/av/services/mediametrics/
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_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_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_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_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_codec.cpp189 std::string serialized; in statsd_codec() local
190 if (!metrics_proto.SerializeToString(&serialized)) { in statsd_codec()
196 android::util::BytesField bf_serialized( serialized.c_str(), serialized.size()); in statsd_codec()
203 ALOGV("NOT sending: private data (len=%zu)", strlen(serialized.c_str())); in statsd_codec()
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.java508 byte[] serialized = perBssid.toAccessPoint().toByteArray(); in makeSerializedAccessPointExample()
509 return serialized; in makeSerializedAccessPointExample()
573 byte[] serialized = makeSerializedAccessPointExample(); in testAccessPointSerialization()
576 AccessPoint ap = AccessPoint.parseFrom(serialized); in testAccessPointSerialization()
614 byte[] serialized = makeSerializedAccessPointExample(); in testReproducableSerialization()
616 assertArrayEquals(serialized, makeSerializedAccessPointExample()); in testReproducableSerialization()
624 byte[] serialized = makeSerializedAccessPointExample(); in testAccessPointDeserialization()
629 AccessPoint.parseFrom(serialized)); in testAccessPointDeserialization()
632 String diag = hexStringFromByteArray(serialized); in testAccessPointDeserialization()
643 byte[] serialized = mWifiScoreCard.getNetworkListByteArray(false); in testNetworksSerialization()
[all …]
DWifiHealthMonitorTest.java336 byte[] serialized = makeSerializedExample(); in makeSwBuildChangeExample()
358 mBlobListeners.get(0).onBlobRetrieved(serialized); in makeSwBuildChangeExample()
409 byte[] serialized = wifiSystemInfoStats.toSystemInfoStats().toByteArray(); in testSerializationDeserialization()
410 SystemInfoStats systemInfoStats = SystemInfoStats.parseFrom(serialized); in testSerializationDeserialization()
693 byte[] serialized = makeSerializedExample(); in testClearReallyDoesClearTheState()
694 assertNotEquals(0, serialized.length); in testClearReallyDoesClearTheState()
704 byte [] serialized = makeSerializedExample(); in testPostBootAbnormalScanDetection()
728 mBlobListeners.get(0).onBlobRetrieved(serialized); in testPostBootAbnormalScanDetection()
730 SystemInfoStats systemInfoStats = SystemInfoStats.parseFrom(serialized); in testPostBootAbnormalScanDetection()
/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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java802 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead()
803 if (serialized == null) return; in finishPendingRead()
806 ap = AccessPoint.parseFrom(serialized); in finishPendingRead()
1234 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead()
1235 if (serialized == null) return; in finishPendingRead()
1238 ns = NetworkStats.parseFrom(serialized); in finishPendingRead()
1476 void readBackListener(byte[] serialized) { in readBackListener() argument
1477 if (serialized == null) return; in readBackListener()
1478 byte[] old = mPendingReadFromStore.getAndSet(serialized); in readBackListener()
1620 byte[] serialized = perBssid.toAccessPoint(/* No BSSID */ true).toByteArray(); in doWritesBssid()
[all …]
DWifiHealthMonitor.java781 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead()
782 if (serialized == null) { in finishPendingRead()
788 systemInfoStats = SystemInfoStats.parseFrom(serialized); in finishPendingRead()
819 byte[] serialized = toSystemInfoStats().toByteArray(); in writeToMemory()
820 mMemoryStore.write(getL2Key(), SYSTEM_INFO_DATA_NAME, serialized); in writeToMemory() local
/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/services/core/java/com/android/server/pm/parsing/
DPackageCacher.java108 byte[] serialized = p.marshall(); in toCacheEntryStatic()
111 return serialized; in toCacheEntryStatic()
/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/app/
DActivityManagerInternal.java293 String requiredPermission, Bundle bOptions, boolean serialized, boolean sticky, in broadcastIntentInPackage() argument
421 String[] requiredPermissions, boolean serialized, in broadcastIntent() argument
/frameworks/base/core/java/android/content/
DIntentSender.java117 Bundle extras, boolean serialized, boolean sticky, int sendingUser) { in performReceive() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java426 byte[] serialized = PersistentData.toBytes(PersistentData.TYPE_SP, SOME_USER_ID, in testPersistentData_serializeUnserialize()
428 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize()
DSyntheticPasswordTests.java463 byte[] serialized = new byte[] { in testPasswordData_deserialize()
473 PasswordData deserialized = PasswordData.fromBytes(serialized); in testPasswordData_deserialize()
/frameworks/ml/nn/common/
DExecutionBurstController.cpp370 const std::vector<FmqRequestDatum> serialized = serialize(request, measure, slots); in send() local
371 return sendPacket(serialized); in send()
DExecutionBurstServer.cpp468 const std::vector<FmqResultDatum> serialized = serialize(errorStatus, outputShapes, timing); in send() local
469 return sendPacket(serialized); in send()
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags35 # Discard an undelivered serialized broadcast (timeout/ANR/crash)
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1291 String serialized = getString(ENABLED_TRUST_AGENTS, userId); in getEnabledTrustAgents() local
1292 if (TextUtils.isEmpty(serialized)) { in getEnabledTrustAgents()
1295 String[] split = serialized.split(","); in getEnabledTrustAgents()

12