/packages/modules/Bluetooth/system/bta/test/gatt/ |
D | database_test.cc | 63 std::vector<StoredAttribute> serialized = db.Serialize(); in TEST() local 66 EXPECT_EQ(serialized[0].handle, 0x0001); in TEST() 67 EXPECT_EQ(serialized[0].type, PRIMARY_SERVICE); in TEST() 68 EXPECT_EQ(serialized[0].value.service.uuid, SERVICE_1_UUID); in TEST() 69 EXPECT_EQ(serialized[0].value.service.end_handle, 0x000f); in TEST() 72 EXPECT_EQ(serialized[1].handle, 0x0010); in TEST() 73 EXPECT_EQ(serialized[1].type, SECONDARY_SERVICE); in TEST() 74 EXPECT_EQ(serialized[1].value.service.uuid, SERVICE_2_UUID); in TEST() 75 EXPECT_EQ(serialized[1].value.service.end_handle, 0x001f); in TEST() 78 EXPECT_EQ(serialized[2].handle, 0x0002); in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsService_test.cpp | 75 string serialized = config.SerializeAsString(); in TEST() local 78 {serialized.begin(), serialized.end()})); in TEST() 90 string serialized = ""; in TEST() local 94 {serialized.begin(), serialized.end()})); in TEST() 106 string serialized = "Invalid config!"; in TEST() local 109 service->addConfigurationChecked(123, 12345, {serialized.begin(), serialized.end()})); in TEST()
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr_hash.cc | 123 std::vector<uint8_t> serialized(len); in gatts_calculate_database_hash() local 124 fill_database_info(lst_ptr, serialized.data()); in gatts_calculate_database_hash() 126 std::reverse(serialized.begin(), serialized.end()); in gatts_calculate_database_hash() 127 Octet16 db_hash = crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in gatts_calculate_database_hash() 128 serialized.size()); in gatts_calculate_database_hash()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/com/android/ondevicepersonalization/internal/util/ |
D | PersistableBundleUtilsTest.java | 60 byte[] serialized = PersistableBundleUtils.toByteArray(bundle); in testRoundTrip() 62 PersistableBundle deserialized = PersistableBundleUtils.fromByteArray(serialized); in testRoundTrip() 82 byte[] serialized = PersistableBundleUtils.toByteArray(bundle); in testRoundTripLarge() 84 PersistableBundle deserialized = PersistableBundleUtils.fromByteArray(serialized); in testRoundTripLarge()
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_client_test.cc | 1563 std::vector<uint8_t> serialized; in TEST_F() local 1571 .WillOnce(SaveArg<1>(&serialized)); in TEST_F() 1579 ASSERT_TRUE(HasDevice::DeserializePresets(serialized.data(), in TEST_F() 1580 serialized.size(), clone)); in TEST_F() 3100 std::vector<uint8_t> serialized(sp_sz); in TEST_F() local 3110 ASSERT_EQ(preset.Serialize(serialized.data(), serialized.size()), in TEST_F() 3111 serialized.data() + serialized.size()); in TEST_F() 3115 ASSERT_EQ(HasPreset::Deserialize(serialized.data(), serialized.size(), clone), in TEST_F() 3116 serialized.data() + serialized.size()); in TEST_F() 3130 std::vector<uint8_t> serialized(preset.SerializedSize() - 1); in TEST_F() local [all …]
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | database.cc | 255 std::vector<uint8_t> serialized(len); in Hash() local 256 uint8_t* p = serialized.data(); in Hash() 315 std::reverse(serialized.begin(), serialized.end()); in Hash() 316 return crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in Hash() 317 serialized.size()); in Hash()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 549 byte[] serialized = perBssid.toAccessPoint().toByteArray(); in makeSerializedAccessPointExample() 550 return serialized; in makeSerializedAccessPointExample() 615 byte[] serialized = makeSerializedAccessPointExample(); in testAccessPointSerialization() 618 AccessPoint ap = AccessPoint.parseFrom(serialized); in testAccessPointSerialization() 657 byte[] serialized = makeSerializedAccessPointExample(); in testReproducableSerialization() 659 assertArrayEquals(serialized, makeSerializedAccessPointExample()); in testReproducableSerialization() 667 byte[] serialized = makeSerializedAccessPointExample(); in testAccessPointDeserialization() 672 AccessPoint.parseFrom(serialized)); in testAccessPointDeserialization() 675 String diag = hexStringFromByteArray(serialized); in testAccessPointDeserialization() 686 byte[] serialized = mWifiScoreCard.getNetworkListByteArray(false); in testNetworksSerialization() [all …]
|
D | WifiHealthMonitorTest.java | 389 byte[] serialized = makeSerializedExample(); in makeSwBuildChangeExample() 411 mBlobListeners.get(0).onBlobRetrieved(serialized); in makeSwBuildChangeExample() 462 byte[] serialized = wifiSystemInfoStats.toSystemInfoStats().toByteArray(); in testSerializationDeserialization() 463 SystemInfoStats systemInfoStats = SystemInfoStats.parseFrom(serialized); in testSerializationDeserialization() 748 byte[] serialized = makeSerializedExample(); in testClearReallyDoesClearTheState() 749 assertNotEquals(0, serialized.length); in testClearReallyDoesClearTheState() 759 byte [] serialized = makeSerializedExample(); in testPostBootAbnormalScanDetection() 783 mBlobListeners.get(0).onBlobRetrieved(serialized); in testPostBootAbnormalScanDetection() 785 SystemInfoStats systemInfoStats = SystemInfoStats.parseFrom(serialized); in testPostBootAbnormalScanDetection()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | ReportUtilTest.java | 67 JSONArray serialized = ReportUtil.serializeUnsignedLongs(UNSIGNED_LONGS); in serializeUnsignedLongs_returnsJSONArray() local 68 assertEquals(UNSIGNED_LONGS.get(0).toString(), serialized.optString(0)); in serializeUnsignedLongs_returnsJSONArray() 69 assertEquals(UNSIGNED_LONGS.get(1).toString(), serialized.optString(1)); in serializeUnsignedLongs_returnsJSONArray()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/ |
D | BinarySerializerSignedContextualAdsTest.java | 144 byte[] serialized = new SignedContextualAdsHashUtil().serialize(contextualAds); in testContextualAdSerialization_fullObject_success() 183 assertThat(bytesToString(serialized)).isEqualTo(expected); in testContextualAdSerialization_fullObject_success() 216 byte[] serialized = new SignedContextualAdsHashUtil().serialize(contextualAds); in testContextualAdSerialization_minimalistObject_success() 223 assertThat(bytesToString(serialized)).isEqualTo(expected); in testContextualAdSerialization_minimalistObject_success()
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | le_audio_types_test.cc | 95 std::vector<uint8_t> serialized(ltv_map.RawPacketSize()); in TEST() local 96 ASSERT_TRUE(ltv_map.RawPacket(serialized.data())); in TEST() 97 ASSERT_THAT(serialized, ElementsAreArray(ltv_test_vec_expected)); in TEST() 143 std::vector<uint8_t> serialized(ltv_map.RawPacketSize()); in TEST() local 144 ASSERT_TRUE(ltv_map.RawPacket(serialized.data())); in TEST() 145 ASSERT_THAT(serialized, ElementsAre(0x02, 0x01, 0x0a, 0x03, 0x02, 0xaa, 0xbb, in TEST() 171 std::vector<uint8_t> serialized(ltv_map.RawPacketSize()); in TEST() local 172 ASSERT_TRUE(ltv_map.RawPacket(serialized.data())); in TEST() 173 ASSERT_THAT(serialized, ElementsAreArray(ltv_test_vec)); in TEST()
|
/packages/modules/Bluetooth/system/rust/src/utils/ |
D | packet.rs | 12 let serialized = AttBuilder { _child_: child, opcode }.to_vec().unwrap(); in build_att_view_or_crash() localVariable 13 OwnedAttView::try_parse(serialized.into_boxed_slice()).unwrap() in build_att_view_or_crash()
|
/packages/modules/Bluetooth/system/osi/src/ |
D | config.cc | 275 std::stringstream serialized; in config_save() local 302 serialized << "[" << section.name << "]" << std::endl; in config_save() 305 serialized << entry.key << " = " << entry.value << std::endl; in config_save() 307 serialized << std::endl; in config_save() 310 if (fprintf(fp, "%s", serialized.str().c_str()) < 0) { in config_save()
|
/packages/services/Car/service/proto/android/car/telemetry/ |
D | metrics_report.proto | 30 // A wrapper around a metrics report. It contains the bytes of a serialized PersistableBundle and 33 // Bytes from a serialized PersistableBundle (the metrics report).
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 888 String serialized = in getLastMediaSourcesInternal() local 890 List<String> componentNames = getComponentNameList(serialized); in getLastMediaSourcesInternal() 1513 String serialized = mSharedPrefs.getString(key, null); in saveLastMediaSource() local 1519 if (serialized == null) { in saveLastMediaSource() 1526 Deque<String> componentNames = new ArrayDeque<>(getComponentNameList(serialized)); in saveLastMediaSource() 1532 componentName, modeName, userId, key, serialized, newSerialized); in saveLastMediaSource() 1541 String serialized = mSharedPrefs.getString(key, ""); in getLastMediaSource() local 1542 if (!TextUtils.isEmpty(serialized)) { in getLastMediaSource() 1543 for (String name : getComponentNameList(serialized)) { in getLastMediaSource() 1569 private List<String> getComponentNameList(String serialized) { in getComponentNameList() argument [all …]
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | config_cache.cc | 385 std::stringstream serialized; in SerializeToLegacyFormat() local 388 serialized << "[" << section.first << "]" << std::endl; in SerializeToLegacyFormat() 390 serialized << property.first << " = " << property.second << std::endl; in SerializeToLegacyFormat() 392 serialized << std::endl; in SerializeToLegacyFormat() 395 return serialized.str(); in SerializeToLegacyFormat()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 234 String serialized = Base64.getEncoder().encodeToString(MessageNano.toByteArray(playlist)); in saveState() local 236 editor.putString(CURRENT_PLAYLIST_KEY, serialized); in saveState() 302 String serialized = mSharedPrefs.getString(CURRENT_PLAYLIST_KEY, null); in maybeRestoreState() local 303 if (serialized == null) { in maybeRestoreState() 308 Playlist playlist = Playlist.parseFrom(Base64.getDecoder().decode(serialized)); in maybeRestoreState()
|
/packages/modules/AdServices/adservices/libraries/cobalt/proto/ |
D | unencrypted_observation_store.proto | 38 // EncryptedMessage that contains a serialized and encrypted Observation. 40 // Unlike the EncryptedMessage, the Observations are not yet serialized or
|
/packages/modules/Bluetooth/system/common/ |
D | metrics_linux.cc | 75 void BluetoothMetricsLogger::WriteString(std::string* serialized) {} in WriteString() argument 77 void BluetoothMetricsLogger::WriteBase64String(std::string* serialized) {} in WriteBase64String() argument
|
D | metrics.h | 238 void WriteBase64String(std::string* serialized); 239 void WriteString(std::string* serialized);
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiScoreCard.java | 901 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead() 902 if (serialized == null) return; in finishPendingRead() 905 ap = AccessPoint.parseFrom(serialized); in finishPendingRead() 1816 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead() 1817 if (serialized == null) return; in finishPendingRead() 1820 ns = NetworkStats.parseFrom(serialized); in finishPendingRead() 2073 void readBackListener(byte[] serialized) { in readBackListener() argument 2074 if (serialized == null) return; in readBackListener() 2075 byte[] old = mPendingReadFromStore.getAndSet(serialized); in readBackListener() 2225 byte[] serialized = perBssid.toAccessPoint(/* No BSSID */ true).toByteArray(); in doWritesBssid() [all …]
|
D | WifiHealthMonitor.java | 825 final byte[] serialized = finishPendingReadBytes(); in finishPendingRead() 826 if (serialized == null) { in finishPendingRead() 832 systemInfoStats = SystemInfoStats.parseFrom(serialized); in finishPendingRead() 863 byte[] serialized = toSystemInfoStats().toByteArray(); in writeToMemory() 864 mMemoryStore.write(getL2Key(), SYSTEM_INFO_DATA_NAME, serialized); in writeToMemory() local
|
/packages/services/Telecomm/flags/ |
D | telecom_ringer_flag_declarations.aconfig | 8 description: "Gates whether to use a serialized, device-specific ring vibration."
|
/packages/modules/StatsD/lib/libkll/proto/ |
D | kll-quantiles.proto | 32 // Used for values which cannot be serialized in a packed format. 39 // Used for values for which can be serialized in a packed format and
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/ |
D | ProtectedAudienceSignatureManager.java | 117 byte[] serialized = serializeSignedContextualAds(signedContextualAds); in isVerified() 123 publicKey, serialized, signedContextualAds.getSignature())) { in isVerified()
|