/external/libchrome/base/metrics/ |
histogram_base_unittest.cc | 56 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); local 57 EXPECT_EQ(histogram, deserialized); 62 deserialized = DeserializeHistogramInfo(&iter2); 63 EXPECT_TRUE(deserialized); 64 EXPECT_NE(histogram, deserialized); 65 EXPECT_EQ("TestHistogram", deserialized->histogram_name()); 66 EXPECT_TRUE(deserialized->HasConstructionArguments(1, 1000, 10)); 69 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); 81 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); local 82 EXPECT_EQ(histogram, deserialized); 103 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); local 130 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); local 152 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); local [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
TreeSetTest.java | 43 @Override protected void verify(NavigableSet<String> deserialized) { 44 assertEquals(0, deserialized.comparator().compare("X", "x")); 61 @Override protected void verify(SortedSet<String> deserialized) { 62 assertBounded(deserialized, deserialized == subSet); 79 @Override protected void verify(SortedSet<String> deserialized) { 80 assertBounded(deserialized, deserialized == subSet); 89 private void assertBounded(SortedSet<String> deserialized, boolean bounded) { 92 deserialized.add("e") [all...] |
/system/keymaster/ |
android_keymaster_messages_test.cpp | 43 Message* deserialized = new Message(ver); local 45 EXPECT_TRUE(deserialized->Deserialize(&p, p + size)); 47 return deserialized; 71 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 5)); 80 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 4)); 89 UniquePtr<SupportedByAlgorithmRequest> deserialized(round_trip(ver, req, 4)); 90 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm); 100 UniquePtr<SupportedByAlgorithmAndPurposeRequest> deserialized(round_trip(ver, req, 8)); 101 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm); 102 EXPECT_EQ(KM_PURPOSE_DECRYPT, deserialized->purpose) 218 UniquePtr<BeginOperationResponse> deserialized; local 267 UniquePtr<UpdateOperationRequest> deserialized; local 293 UniquePtr<UpdateOperationResponse> deserialized; local 337 UniquePtr<FinishOperationRequest> deserialized; local 364 UniquePtr<FinishOperationResponse> deserialized; local 485 GetVersionRequest deserialized; local 504 GetVersionResponse deserialized; local [all...] |
/external/guava/guava-gwt/src/com/google/common/collect/ |
ImmutableEnumMap_CustomFieldSerializer.java | 39 Map<K, V> deserialized = Maps.newHashMap(); local 40 Map_CustomFieldSerializerBase.deserialize(reader, deserialized); 46 return (ImmutableEnumMap<?, ?>) Maps.immutableEnumMap(deserialized);
|
ImmutableEnumSet_CustomFieldSerializer.java | 39 List<E> deserialized = Lists.newArrayList(); local 40 Collection_CustomFieldSerializerBase.deserialize(reader, deserialized); 46 return (ImmutableEnumSet<?>) Sets.immutableEnumSet(deserialized);
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
XmlUtilsTest.java | 37 HashMap<String, ?> deserialized = XmlUtils.readMapXml(mapInput); local 38 assertEquals("nullValue", deserialized.get(null)); 39 assertEquals("fooValue", deserialized.get("foo"));
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
TCKZoneIdSerialization.java | 128 ZoneId deserialized = deserialize(input); local 129 assertEquals(deserialized, ZoneId.of(input)); 130 assertEquals(deserialized, ZoneId.of(resolvedId)); 135 ZoneId deserialized = deserialize("UTC" + input); local 136 assertEquals(deserialized, ZoneId.of("UTC" + input)); 137 assertEquals(deserialized, ZoneId.of("UTC" + resolvedId)); 142 ZoneId deserialized = deserialize("GMT" + input); local 143 assertEquals(deserialized, ZoneId.of("GMT" + input)); 144 assertEquals(deserialized, ZoneId.of("GMT" + resolvedId)); 149 ZoneId deserialized = deserialize("UT" + input) local [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
InvocationContextTest.java | 105 InvocationContext deserialized = local 109 assertNotNull(deserialized.getDeviceBuildMap()); 110 assertNotNull(deserialized.getConfigurationDescriptor()); 111 assertEquals(info, deserialized.getBuildInfo("test-device")); 114 assertTrue(deserialized.getDevices().isEmpty()); 116 deserialized.addAllocatedDevice("test-device", device);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
LockSettingsStorageTests.java | 352 PersistentData deserialized = PersistentData.fromBytes(serialized); local 354 assertEquals(PersistentData.TYPE_SP, deserialized.type); 355 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, deserialized.qualityForUi); 356 assertArrayEquals(PAYLOAD, deserialized.payload); 360 PersistentData deserialized = PersistentData.fromBytes(null); local 361 assertSame(PersistentData.NONE, deserialized); 365 PersistentData deserialized = PersistentData.fromBytes(new byte[0]); local 366 assertSame(PersistentData.NONE, deserialized); 379 PersistentData deserialized = PersistentData.fromBytes(serializedVersion1); local 380 assertEquals(PersistentData.TYPE_SP, deserialized.type) 395 CredentialHash deserialized = CredentialHash.fromBytes(serialized); local 412 CredentialHash deserialized = CredentialHash.fromBytes(serialized); local [all...] |
/libcore/luni/src/test/java/libcore/util/ |
SerializationTester.java | 48 * Verifies that {@code deserialized} is valid. Implementations of this 49 * method may mutate {@code deserialized}. 51 protected void verify(T deserialized) throws Exception {} 61 T deserialized = (T) deserialize(HexEncoding.decode(golden)); local 62 assertTrue("User-constructed value doesn't equal deserialized golden value", 63 equals(value, deserialized)); 72 verify(deserialized); 96 * Returns a serialized-and-deserialized copy of {@code object}.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
MalformedInputExceptionTest.java | 54 Serializable deserialized) { 58 deserialized); 61 MalformedInputException desrEx = (MalformedInputException) deserialized;
|
UnmappableCharacterExceptionTest.java | 55 Serializable deserialized) { 59 deserialized); 62 UnmappableCharacterException desrEx = (UnmappableCharacterException) deserialized;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
DuplicateFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 DuplicateFormatFlagsException desrEx = (DuplicateFormatFlagsException) deserialized;
|
FormatFlagsConversionMismatchExceptionTest.java | 82 Serializable deserialized) { 85 deserialized); 88 FormatFlagsConversionMismatchException desrEx = (FormatFlagsConversionMismatchException) deserialized;
|
IllegalFormatCodePointExceptionTest.java | 61 Serializable deserialized) { 64 deserialized); 67 IllegalFormatCodePointException desrEx = (IllegalFormatCodePointException) deserialized;
|
IllegalFormatConversionExceptionTest.java | 82 Serializable deserialized) { 85 deserialized); 88 IllegalFormatConversionException desrEx = (IllegalFormatConversionException) deserialized;
|
IllegalFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 IllegalFormatFlagsException desrEx = (IllegalFormatFlagsException) deserialized;
|
IllegalFormatPrecisionExceptionTest.java | 62 Serializable deserialized) { 65 deserialized); 68 IllegalFormatPrecisionException desrEx = (IllegalFormatPrecisionException) deserialized;
|
IllegalFormatWidthExceptionTest.java | 64 Serializable deserialized) { 67 deserialized); 70 IllegalFormatWidthException desrEx = (IllegalFormatWidthException) deserialized;
|
MissingFormatArgumentExceptionTest.java | 66 Serializable deserialized) { 69 deserialized); 72 MissingFormatArgumentException desrEx = (MissingFormatArgumentException) deserialized;
|
MissingFormatWidthExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 MissingFormatWidthException desrEx = (MissingFormatWidthException) deserialized;
|
UnknownFormatConversionExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 UnknownFormatConversionException desrEx = (UnknownFormatConversionException) deserialized;
|
UnknownFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 UnknownFormatFlagsException desrEx = (UnknownFormatFlagsException) deserialized;
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
LocationTest.java | 250 Location deserialized = Location.CREATOR.createFromParcel(parcel); local 253 assertEquals(expectedLat, deserialized.getLatitude()); 254 assertEquals(expectedLon, deserialized.getLongitude()); 255 assertEquals(expectedAccuracy, deserialized.getAccuracy()); 256 assertTrue(deserialized.hasAccuracy()); 257 assertEquals(expectedSpeed, deserialized.getSpeed()); 258 assertTrue(deserialized.hasSpeed()); 259 assertFalse(deserialized.hasBearing()); 260 assertFalse(deserialized.hasAltitude()); 261 assertFalse(deserialized.isFromMockProvider()) [all...] |
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
SerializationTest.java | 47 * compares reference and deserialized objects (needed only if tested objects do 81 * Tests that data objects can be serialized and deserialized without 96 * Tests that data objects can be deserialized from golden files, to verify 177 * Compares deserialized and reference objects. 180 * @param deserialized - deserialized object 182 void assertDeserialized(Serializable initial, Serializable deserialized); 187 public void assertDeserialized(Serializable initial, Serializable deserialized) { 188 assertEquals(initial, deserialized); 193 * Comparator for verifying that deserialized object is the same as initial 322 Serializable deserialized = getObject(test, ".golden.ser"); local 360 Serializable deserialized = getObject(test, ".golden." + i + ".ser"); local [all...] |