Home
last modified time | relevance | path

Searched refs:deserialized (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java429 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize() local
431 assertEquals(PersistentData.TYPE_SP, deserialized.type); in testPersistentData_serializeUnserialize()
432 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, deserialized.qualityForUi); in testPersistentData_serializeUnserialize()
433 assertArrayEquals(PAYLOAD, deserialized.payload); in testPersistentData_serializeUnserialize()
438 PersistentData deserialized = PersistentData.fromBytes(null); in testPersistentData_unserializeNull() local
439 assertSame(PersistentData.NONE, deserialized); in testPersistentData_unserializeNull()
444 PersistentData deserialized = PersistentData.fromBytes(new byte[0]); in testPersistentData_unserializeEmptyArray() local
445 assertSame(PersistentData.NONE, deserialized); in testPersistentData_unserializeEmptyArray()
451 PersistentData deserialized = PersistentData.fromBytes(new byte[]{5}); in testPersistentData_unserializeInvalid() local
452 assertSame(PersistentData.NONE, deserialized); in testPersistentData_unserializeInvalid()
[all …]
DSyntheticPasswordTests.java458 PasswordData deserialized = PasswordData.fromBytes(data.toBytes()); in testPasswordData_serializeDeserialize() local
460 assertEquals(11, deserialized.scryptN); in testPasswordData_serializeDeserialize()
461 assertEquals(22, deserialized.scryptR); in testPasswordData_serializeDeserialize()
462 assertEquals(33, deserialized.scryptP); in testPasswordData_serializeDeserialize()
463 assertEquals(CREDENTIAL_TYPE_PASSWORD, deserialized.passwordType); in testPasswordData_serializeDeserialize()
464 assertArrayEquals(PAYLOAD, deserialized.salt); in testPasswordData_serializeDeserialize()
465 assertArrayEquals(PAYLOAD2, deserialized.passwordHandle); in testPasswordData_serializeDeserialize()
482 PasswordData deserialized = PasswordData.fromBytes(serialized); in testPasswordData_deserialize() local
484 assertEquals(11, deserialized.scryptN); in testPasswordData_deserialize()
485 assertEquals(22, deserialized.scryptR); in testPasswordData_deserialize()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java250 Location deserialized = Location.CREATOR.createFromParcel(parcel); in testParcel() local
253 assertEquals(expectedLat, deserialized.getLatitude()); in testParcel()
254 assertEquals(expectedLon, deserialized.getLongitude()); in testParcel()
255 assertEquals(expectedAccuracy, deserialized.getAccuracy()); in testParcel()
256 assertTrue(deserialized.hasAccuracy()); in testParcel()
257 assertEquals(expectedSpeed, deserialized.getSpeed()); in testParcel()
258 assertTrue(deserialized.hasSpeed()); in testParcel()
259 assertFalse(deserialized.hasBearing()); in testParcel()
260 assertFalse(deserialized.hasAltitude()); in testParcel()
261 assertFalse(deserialized.isFromMockProvider()); in testParcel()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DXmlUtilsTest.java46 HashMap<String, ?> deserialized = XmlUtils.readMapXml(mapInput); in testMapWithNullKeys() local
47 assertEquals("nullValue", deserialized.get(null)); in testMapWithNullKeys()
48 assertEquals("fooValue", deserialized.get("foo")); in testMapWithNullKeys()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java136 PackageParser.Package deserialized = new PackageParser.Package(p); in test_serializePackage() local
138 assertPackagesEqual(pkg, deserialized); in test_serializePackage()
152 PackageParser.Package deserialized = new PackageParser.Package(p); in test_roundTripKnownFields() local
153 assertAllFieldsExist(deserialized); in test_roundTripKnownFields()
165 PackageParser.Package deserialized = new PackageParser.Package(p); in test_stringInterning() local
170 assertSame(deserialized.packageName, deserialized2.packageName); in test_stringInterning()
171 assertSame(deserialized.applicationInfo.permission, in test_stringInterning()
173 assertSame(deserialized.requestedPermissions.get(0), in test_stringInterning()
175 assertSame(deserialized.protectedBroadcasts.get(0), in test_stringInterning()
177 assertSame(deserialized.usesLibraries.get(0), in test_stringInterning()
[all …]