Home
last modified time | relevance | path

Searched refs:Assert (Results 1 – 25 of 1264) sorted by relevance

12345678910>>...51

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java144 import junit.framework.Assert;
409 Assert.assertTrue(message.hasOptionalInt32 ()); in assertAllFieldsSet()
410 Assert.assertTrue(message.hasOptionalInt64 ()); in assertAllFieldsSet()
411 Assert.assertTrue(message.hasOptionalUint32 ()); in assertAllFieldsSet()
412 Assert.assertTrue(message.hasOptionalUint64 ()); in assertAllFieldsSet()
413 Assert.assertTrue(message.hasOptionalSint32 ()); in assertAllFieldsSet()
414 Assert.assertTrue(message.hasOptionalSint64 ()); in assertAllFieldsSet()
415 Assert.assertTrue(message.hasOptionalFixed32 ()); in assertAllFieldsSet()
416 Assert.assertTrue(message.hasOptionalFixed64 ()); in assertAllFieldsSet()
417 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DTestUtil.java236 import junit.framework.Assert;
503 Assert.assertTrue(message.hasOptionalInt32 ()); in assertAllFieldsSet()
504 Assert.assertTrue(message.hasOptionalInt64 ()); in assertAllFieldsSet()
505 Assert.assertTrue(message.hasOptionalUint32 ()); in assertAllFieldsSet()
506 Assert.assertTrue(message.hasOptionalUint64 ()); in assertAllFieldsSet()
507 Assert.assertTrue(message.hasOptionalSint32 ()); in assertAllFieldsSet()
508 Assert.assertTrue(message.hasOptionalSint64 ()); in assertAllFieldsSet()
509 Assert.assertTrue(message.hasOptionalFixed32 ()); in assertAllFieldsSet()
510 Assert.assertTrue(message.hasOptionalFixed64 ()); in assertAllFieldsSet()
511 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsServTest.java24 import junit.framework.Assert;
98 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
101 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
121 Assert.assertEquals(1010, serv.getStartTime()); in testParceling()
122 Assert.assertEquals(2021, serv.getRunningSince()); in testParceling()
123 Assert.assertTrue(serv.getRunning()); in testParceling()
124 Assert.assertEquals(4042, serv.getStarts()); in testParceling()
125 Assert.assertEquals(5053, serv.getLaunchedTime()); in testParceling()
126 Assert.assertEquals(6064, serv.getLaunchedSince()); in testParceling()
127 Assert.assertTrue(serv.getLaunched()); in testParceling()
[all …]
/frameworks/base/tools/locked_region_code_injection/test/lockedregioncodeinjection/
DTestMain.java16 import org.junit.Assert;
65 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedBlock()
66 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
67 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
70 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedBlock()
71 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
75 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedBlock()
76 Assert.assertEquals(TestTarget.unboostCount, 1); in testSimpleSynchronizedBlock()
77 Assert.assertEquals(TestTarget.invokeCount, 1); in testSimpleSynchronizedBlock()
85 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedMethod()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
57Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
[all …]
DGeneratedMessageTest.cs63 Assert.AreEqual(false, message.SingleBool); in DefaultValues()
64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues()
65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues()
66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues()
67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues()
68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues()
69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
70 Assert.IsNull(message.SingleForeignMessage); in DefaultValues()
71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues()
72 Assert.IsNull(message.SingleImportMessage); in DefaultValues()
[all …]
DByteStringTest.cs54 Assert.IsTrue(b1 == b1); in Equality()
55 Assert.IsTrue(b1 == b2); in Equality()
56 Assert.IsFalse(b1 == b3); in Equality()
57 Assert.IsFalse(b1 == b4); in Equality()
58 Assert.IsFalse(b1 == null); in Equality()
59 Assert.IsTrue((ByteString) null == null); in Equality()
60 Assert.IsFalse(b1 != b1); in Equality()
61 Assert.IsFalse(b1 != b2); in Equality()
63 Assert.IsTrue(b1 != b3); in Equality()
64 Assert.IsTrue(b1 != b4); in Equality()
[all …]
DCodedInputStreamTest.cs63 Assert.AreEqual((uint) value, input.ReadRawVarint32()); in AssertReadVarint()
66 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
67 Assert.IsTrue(input.IsAtEnd); in AssertReadVarint()
73 Assert.AreEqual((uint) value, input.ReadRawVarint32()); in AssertReadVarint()
76 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
77 Assert.IsTrue(input.IsAtEnd); in AssertReadVarint()
87 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
88 Assert.AreEqual(data.Length, memoryStream.Position); in AssertReadVarint()
99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
100 Assert.AreEqual(expected.Message, exception.Message); in AssertReadVarintFailure()
[all …]
DJsonTokenizerTest.cs90 Assert.AreEqual(0, tokenizer.ObjectDepth); in ObjectDepth()
91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
92 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth()
93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth()
94 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth()
95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
96 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth()
97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth()
98 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth()
99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor()
52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor()
54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor()
55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor()
58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor()
59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor()
60Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor()
62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor()
63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor()
66 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in FileDescriptor()
[all …]
DFieldAccessTest.cs48Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
57Assert.AreEqual(message.SingleImportMessage, fields[TestAllTypes.SingleImportMessageFieldNumber].A… in GetValue()
[all …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerProfileTest.java31 import org.junit.Assert;
58 Assert.assertEquals(12.0f, audio.onMa, EPSILON); in testReadGood()
63 Assert.assertEquals(0.02f, bluetooth.idleMa, EPSILON); in testReadGood()
64 Assert.assertEquals(3.0f, bluetooth.rxMa, EPSILON); in testReadGood()
65 Assert.assertEquals(5.0f, bluetooth.txMa, EPSILON); in testReadGood()
69 Assert.assertEquals(941.0f, camera.onMa, EPSILON); in testReadGood()
73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood()
74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood()
75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood()
76 Assert.assertEquals(2, cpu.clusters.length); in testReadGood()
[all …]
DRawBatteryStatsTest.java24 import org.junit.Assert;
54 Assert.assertEquals(0, bs.getWarnings().size()); in testVersion()
55 Assert.assertEquals(true, line.complete); in testVersion()
57 Assert.assertEquals(9, line.lineVersion); in testVersion()
58 Assert.assertEquals(0, line.uid); in testVersion()
59 Assert.assertEquals(RawBatteryStats.Category.INFO, line.category); in testVersion()
60 Assert.assertEquals("vers", line.lineType); in testVersion()
62 Assert.assertEquals(BS_VERSION, line.dumpsysVersion); in testVersion()
63 Assert.assertEquals(177, line.parcelVersion); in testVersion()
64 Assert.assertEquals("PPR1.180326.002", line.startPlatformVersion); in testVersion()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs55 Assert.AreEqual(20, clone["x"].C); in Clone_ClonesMessages()
70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
137 Assert.IsFalse(map.Equals(new object())); in Equality_Simple()
177 Assert.AreEqual(expected, map2); in Add_Dictionary()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
196 Assert.AreEqual("y", map["x"]); in Add_Pair()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
[all …]
DRepeatedFieldTest.cs51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
72 Assert.AreEqual(2, list.Count); in Add_Sequence()
73 Assert.AreEqual("foo", list[0]); in Add_Sequence()
74 Assert.AreEqual("bar", list[1]); in Add_Sequence()
[all …]
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java27 import org.junit.Assert;
83 Assert.fail(); in vWriteNewFile()
130 Assert.assertTrue(TEMP_DIR_FILE.mkdir()); in before()
180 Assert.assertEquals(obj.getName(), mainStorageDir.getPath()); in testMtpObjectGetNameRoot()
190 Assert.assertEquals(stream.get(0).getName(), newFile.getName()); in testMtpObjectGetNameNonRoot()
198 Assert.assertEquals(obj.getId(), mainMtpStorage.getStorageId()); in testMtpObjectGetIdRoot()
208 Assert.assertEquals(stream.get(0).getId(), 1); in testMtpObjectGetIdNonRoot()
216 Assert.assertTrue(obj.isDir()); in testMtpObjectIsDirTrue()
226 Assert.assertFalse(stream.get(0).isDir()); in testMtpObjectIsDirFalse()
236 Assert.assertEquals(stream.get(0).getFormat(), MtpConstants.FORMAT_ASSOCIATION); in testMtpObjectGetFormatDir()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java26 import junit.framework.Assert;
42 Assert.assertEquals(id, item.getItemId()); in testItemId()
43 Assert.assertEquals(item, mMenu.findItem(id)); in testItemId()
44 Assert.assertEquals(0, mMenu.findItemIndex(id)); in testItemId()
58 Assert.assertEquals(groupId, item.getGroupId()); in testGroupId()
59 Assert.assertEquals(groupId, item2.getGroupId()); in testGroupId()
60 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId)); in testGroupId()
61 Assert.assertEquals(item2Index, mMenu.findGroupIndex(groupId, item1Index + 1)); in testGroupId()
75 Assert.assertEquals(mMenu.findGroupIndex(GROUP_ONE), 0); in testGroup()
76 Assert.assertEquals(mMenu.findGroupIndex(GROUP_TWO), -1); in testGroup()
[all …]
/frameworks/multidex/library/test/src/androidx/multidex/
DMultiDexTest.java19 import org.junit.Assert;
28 Assert.assertFalse(MultiDex.isVMMultidexCapable(null)); in testVersionCheck()
29 Assert.assertFalse(MultiDex.isVMMultidexCapable("-1.32.54")); in testVersionCheck()
30 Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32.54")); in testVersionCheck()
31 Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32")); in testVersionCheck()
32 Assert.assertFalse(MultiDex.isVMMultidexCapable("2.0")); in testVersionCheck()
33 Assert.assertFalse(MultiDex.isVMMultidexCapable("2.000.1254")); in testVersionCheck()
34 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1.1254")); in testVersionCheck()
35 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1")); in testVersionCheck()
36 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.2")); in testVersionCheck()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs47 Assert.IsNull(message.StringField); in NullIsDefault()
48 Assert.IsNull(message.BytesField); in NullIsDefault()
49 Assert.IsNull(message.BoolField); in NullIsDefault()
50 Assert.IsNull(message.FloatField); in NullIsDefault()
51 Assert.IsNull(message.DoubleField); in NullIsDefault()
52 Assert.IsNull(message.Int32Field); in NullIsDefault()
53 Assert.IsNull(message.Int64Field); in NullIsDefault()
54 Assert.IsNull(message.Uint32Field); in NullIsDefault()
55 Assert.IsNull(message.Uint64Field); in NullIsDefault()
77 Assert.AreEqual("x", parsed.StringField); in NonDefaultSingleValues()
[all …]
DDurationTest.cs43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan()
44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan()
45Assert.AreEqual(TimeSpan.FromMilliseconds(1), new Duration { Nanos = 1000000 }.ToTimeSpan()); in ToTimeSpan()
46Assert.AreEqual(TimeSpan.FromMilliseconds(-1), new Duration { Nanos = -1000000 }.ToTimeSpan()); in ToTimeSpan()
47 Assert.AreEqual(TimeSpan.FromTicks(1), new Duration { Nanos = 100 }.ToTimeSpan()); in ToTimeSpan()
48 Assert.AreEqual(TimeSpan.FromTicks(-1), new Duration { Nanos = -100 }.ToTimeSpan()); in ToTimeSpan()
51 Assert.AreEqual(TimeSpan.FromTicks(2), new Duration { Nanos = 250 }.ToTimeSpan()); in ToTimeSpan()
52 Assert.AreEqual(TimeSpan.FromTicks(-2), new Duration { Nanos = -250 }.ToTimeSpan()); in ToTimeSpan()
58 Assert.AreEqual(new Duration { Seconds = 2, Nanos = 100000000 }, in Addition()
60 Assert.AreEqual(new Duration { Seconds = -2, Nanos = -100000000 }, in Addition()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_constant.java29 private void Assert(boolean b) { in Assert() method in UT_constant
36 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
37 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
38 Assert(ScriptC_constant.const_charTest == -8); in run()
39 Assert(ScriptC_constant.const_shortTest == -16); in run()
40 Assert(ScriptC_constant.const_intTest == -32); in run()
41 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
42 Assert(ScriptC_constant.const_longlongTest == 68719476736l); in run()
44 Assert(ScriptC_constant.const_ucharTest == 8); in run()
45 Assert(ScriptC_constant.const_ushortTest == 16); in run()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_constant.java27 private void Assert(boolean b) { in Assert() method in UT_constant
34 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
35 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
36 Assert(ScriptC_constant.const_charTest == -8); in run()
37 Assert(ScriptC_constant.const_shortTest == -16); in run()
38 Assert(ScriptC_constant.const_intTest == -32); in run()
39 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
40 Assert(ScriptC_constant.const_longlongTest == 68719476736l); in run()
42 Assert(ScriptC_constant.const_ucharTest == 8); in run()
43 Assert(ScriptC_constant.const_ushortTest == 16); in run()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_constant.java31 private void Assert(boolean b) { in Assert() method in UT_constant
38 Assert(ScriptC_constant.const_floatTest == 1.99f); in run()
39 Assert(ScriptC_constant.const_doubleTest == 2.05); in run()
40 Assert(ScriptC_constant.const_charTest == -8); in run()
41 Assert(ScriptC_constant.const_shortTest == -16); in run()
42 Assert(ScriptC_constant.const_intTest == -32); in run()
43 Assert(ScriptC_constant.const_longTest == 17179869184l); in run()
44 Assert(ScriptC_constant.const_longlongTest == 68719476736l); in run()
46 Assert(ScriptC_constant.const_ucharTest == 8); in run()
47 Assert(ScriptC_constant.const_ushortTest == 16); in run()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DClientWakelockAccountantTest.java26 import junit.framework.Assert;
46 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
48 Assert.assertEquals(1, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
50 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
63 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStopAttributingWakelock()
64 Assert.assertEquals(0, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock()
67 Assert.assertEquals(1, mClient.mRequestStats.getRequestHistograms().size()); in testStopAttributingWakelock()
69 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStopAttributingWakelock()
70 Assert.assertEquals(2, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock()
71 Assert.assertEquals(600, mClient.mRequestStats.getCompletedRequestsWakelockTime()); in testStopAttributingWakelock()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/
DNoActivityJUnit3Test.java31 import junit.framework.Assert;
46 Assert.assertEquals(10, TestApplication.get(true)); in testExceptionInMainDex()
51 Assert.assertEquals(11, IntermediateClass.get3(true)); in testExceptionInIntermediate()
52 Assert.assertEquals(11, MiniIntermediateClass.get3(true)); in testExceptionInIntermediate()
53 Assert.assertEquals(11, IntermediateClass.get4(true)); in testExceptionInIntermediate()
54 Assert.assertEquals(1, IntermediateClass.get5(null)); in testExceptionInIntermediate()
55 Assert.assertEquals(10, IntermediateClass.get5(new ExceptionInMainDex())); in testExceptionInIntermediate()
56 Assert.assertEquals(11, IntermediateClass.get5(new ExceptionInSecondaryDex())); in testExceptionInIntermediate()
57 Assert.assertEquals(12, IntermediateClass.get5(new ExceptionInMainDex2())); in testExceptionInIntermediate()
58 Assert.assertEquals(13, IntermediateClass.get5(new ExceptionInSecondaryDex2())); in testExceptionInIntermediate()
[all …]

12345678910>>...51