When I am running cts cases, the following question is comming.This is my error: 05-17 03:06:36.854 10093 5379 5396 E TestRunner: failed: testSameAs_hardware(android.graphics.cts.BitmapTest) 05-17 03:06 :36.855 10093 5379 5396 E TestRunner: —– begin exception —– 05-17 03:06:36.857 10093 5379 5396 E TestRunner: java.lang.AssertionError 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.Assert.fail(Assert.java:87) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.Assert.assertTrue(Assert.java:42) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.Assert.assertTrue(Assert.java:53) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at android.graphics.cts.BitmapTest.testSameAs_hardware (BitmapTest.java:2029) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at java.lang.reflect.Method.invoke(Native Method) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) 05-17 03:06:36 857 10093 5379 5396 E TestRunner: at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners. model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:61) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at junitparams.internal.InvokeNonParameterisedMethod.evaluate(InvokeNonParameterisedMethod06:056.83.java:93:21) 5379 5396 E TestRunner: at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$3. evaluate(ParentRunner.java:306) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at junitparams.internal.InvokableFrameworkMethod.runMethodInvoker(InvokableFrameworkMethod.java:48) 05-17 03:06:36.857 E TestRunner 5379 : at junitparams.internal.NonParameterisedFrameworkMethod.run(NonParameterisedFrameworkMethod.java:39) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:424) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:100683): ​​056.83-17 5396 E TestRunner: at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$1.schedule(ParentRunner. java:79) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) 05 -17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit. runners.ParentRunner.run(ParentRunner.java:413) 05-1 7 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.Suite.runChild(Suite.java:128) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners. Suite.runChild(Suite.java:27) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner.runChildren(ParentRunner) .java:329) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) 05-17 03:06:36.857 10093 5379 5396 E TestRunner : at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) ) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runners.ParentRunner.run(ParentRunner.java:41 3) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org.junit.runner.JUnitCore.run(JUnitCore.java:137) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at org. junit.runner.JUnitCore.run(JUnitCore.java:115) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:56) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:442) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: at android.app.Instrumentation$InstrumentationThread .run(Instrumentation.java:2248) 05-17 03:06:36.857 10093 5379 5396 E TestRunner: —– end exception —– 05-17 03:06:36.861 10093 5379 5396 I TestRunner: finished : testSameAs_hardware(android.graphics.cts.BitmapTest)

The error is bitmap1 is not the same as bitmap2, but the source of assignment is consistent

wonder is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.