/cts/tools/signature-tools/templates/delta/ |
D | deltas.stg | 4 ADDED(delta) ::= "Added $ElementType(element=delta.to)$" 7 REMOVED(delta) ::= "Removed $ElementType(element=delta.from)$" 10 CHANGED(delta) ::= "$DeltaType(delta)$" 13 DeltaType(delta) ::= "$({$delta.class.simpleName$})(delta)$" 16 DeltaTypeSwitch(delta) ::= "$delta:({$delta.type$})(delta)$" 24 $deltas:{<li>$DeltaTypeSwitch(delta=it)$</li>}$ 31 SigAnnotationDelta(delta) ::= << 32 $MultiSubDelta(desc="Annotation Elements changed:", deltas=delta.annotationElementDeltas)$ 37 SigAnnotationElementDelta(delta) ::= << 38 $SingleSubDelta(desc="Value changed:", delta=delta.valueDelta)$ [all …]
|
/cts/tools/signature-tools/src/signature/io/html/ |
D | PackageOverviewPage.java | 34 private final IPackageDelta delta; field in PackageOverviewPage 42 public PackageOverviewPage(IPackageDelta delta, in PackageOverviewPage() argument 44 this.delta = delta; in PackageOverviewPage() 51 .getRemoved(delta.getClassDeltas())); in prepareData() 55 .getAdded(delta.getClassDeltas())); in prepareData() 59 .getChanged(delta.getClassDeltas())); in prepareData() 66 template.setAttribute("package_delta", delta); in writeTo()
|
D | HtmlDeltaExternalizer.java | 110 private static <T> T getAnElement(IDelta<T> delta) { in getAnElement() argument 111 if (delta.getFrom() != null) { in getAnElement() 112 return delta.getFrom(); in getAnElement() 114 return delta.getTo(); in getAnElement()
|
/cts/tools/signature-tools/src/signature/compare/ |
D | ApiComparator.java | 129 SigApiDelta delta = null; in compare() local 131 delta = new SigApiDelta(from, to); in compare() 132 delta.setPackageDeltas(packageDeltas); in compare() 134 return delta; in compare() 162 SigPackageDelta delta = null; in comparePackage() local 164 delta = new SigPackageDelta(from, to); in comparePackage() 165 delta.setClassDeltas(classDeltas); in comparePackage() 172 if (delta != null) { in comparePackage() 173 delta = new SigPackageDelta(from, to); in comparePackage() 175 delta.setAnnotationDeltas(annotationDeltas); in comparePackage() [all …]
|
D | Main.java | 147 IApiDelta delta = comparator.compare(fromApi, toApi); in main() local 148 if (delta == null) { in main() 149 delta = new EmptyDelta(fromApi, toApi); in main() 152 externalizer.externalize(output, delta); in main()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SweepGradientTest.java | 109 double delta = (relPos - positions[i1]) / (positions[i2] - positions[i1]); in checkColors() local 110 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in checkColors() 111 delta * Color.alpha(colors[i2])); in checkColors() 112 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in checkColors() 113 delta * Color.red(colors[i2])); in checkColors() 114 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in checkColors() 115 delta * Color.green(colors[i2])); in checkColors() 116 int blue = (int) ((1d - delta) * Color.blue(colors[i1]) + in checkColors() 117 delta * Color.blue(colors[i2])); in checkColors()
|
/cts/tools/signature-tools/src/signature/io/impl/ |
D | ToStringExternalizer.java | 28 public void externalize(String location, IApiDelta delta) in externalize() argument 34 if (delta == null) { in externalize() 37 outputStreamWriter.write(delta.toString()); in externalize()
|
/cts/tools/signature-tools/src/signature/compare/model/impl/ |
D | SigDelta.java | 59 for (T delta : deltas) { in getDeltas() 60 if (type.equals(delta.getType())) { in getDeltas() 61 addedElements.add(delta); in getDeltas() 104 Object delta = field.get(this); in toString() local 105 if (delta != null) { in toString() 108 builder.append(delta); in toString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 86 long delta = timestamp - mLastActiveTimestamp; in onLocationChanged() local 90 mCb.log("(ignored) active " + mProvider + " update (" + delta + "ms)"); in onLocationChanged() 99 mActiveDeltas.add(delta); in onLocationChanged() 100 mCb.log("active " + mProvider + " update (" + delta + "ms)"); in onLocationChanged() 173 long delta = timestamp - mLastPassiveTimestamp; in onLocationChanged() local 177 mCb.log("(ignored) passive " + mProvider + " update (" + delta + "ms)"); in onLocationChanged() 186 mPassiveDeltas.add(delta); in onLocationChanged() 187 mCb.log("passive " + mProvider + " update (" + delta + "ms)"); in onLocationChanged()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Matrix4fTest.java | 22 final float delta = 0.00001f; field in Matrix4fTest 30 void checkIdentity(Matrix4f m, float delta) { in checkIdentity() argument 34 assertEquals(1.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 36 assertEquals(0.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 55 void checkData(Matrix4f m, float[] data, float delta) { in checkData() argument 57 assertEquals(data[i], m.getArray()[i], delta); in checkData() 222 checkIdentity(m, delta); in testInverse() 231 checkIdentity(m, delta); in testInverse()
|
D | Matrix2fTest.java | 22 final float delta = 0.00001f; field in Matrix2fTest 28 void checkIdentity(Matrix2f m, float delta) { in checkIdentity() argument 32 assertEquals(1.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 34 assertEquals(0.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 53 void checkData(Matrix2f m, float[] data, float delta) { in checkData() argument 55 assertEquals(data[i], m.getArray()[i], delta); in checkData()
|
D | Matrix3fTest.java | 22 final float delta = 0.00001f; field in Matrix3fTest 29 void checkIdentity(Matrix3f m, float delta) { in checkIdentity() argument 33 assertEquals(1.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 35 assertEquals(0.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 54 void checkData(Matrix3f m, float[] data, float delta) { in checkData() argument 56 assertEquals(data[i], m.getArray()[i], delta); in checkData()
|
D | BNNMTest.java | 52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise() local 54 delta = -delta; in addByteNoise() 56 int newValue = (originalValue + delta); in addByteNoise() 93 int delta = (expectedValue - actualValue); in testWithTolerance() local 95 if ((delta < -1) || (delta > 1)) { in testWithTolerance() 99 if (delta != 0) { in testWithTolerance()
|
D | Target.java | 340 double delta = ulp * ulpFactor; in ExpandMin() local 341 double newValue = mMinValue + delta; in ExpandMin() 375 double delta = ulp * ulpFactor; in ExpandMax() local 376 double newValue = mMaxValue + delta; in ExpandMax()
|
/cts/tools/signature-tools/templates/ |
D | DeltaTableRow.st | 5 <td class="delta"> 6 $DeltaTypeSwitch(delta=it)$
|
/cts/tools/signature-tools/test/signature/comparator/ |
D | MethodCompareTests.java | 62 IApiDelta delta = compare(fromApi, toApi); in compareMissingMethod() local 63 assertNotNull(delta); in compareMissingMethod() 64 …IClassDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().ite… in compareMissingMethod() 82 IApiDelta delta = compare(fromApi, toApi); in compareAddedMethod() local 83 assertNotNull(delta); in compareAddedMethod() 84 …IClassDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().ite… in compareAddedMethod() 103 IApiDelta delta = compare(fromApi, toApi); in compareChangedMethod() local 104 assertNotNull(delta); in compareChangedMethod() 105 …IClassDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().ite… in compareChangedMethod() 124 IApiDelta delta = compare(fromApi, toApi); in compareAddedParameterMethod() local [all …]
|
D | ClassCompareTest.java | 67 IApiDelta delta = compare(fromApi, toApi); in compareMissingClass() local 68 IClassDefinitionDelta classDelta = getSingleClassDelta(delta); in compareMissingClass() 83 IApiDelta delta = compare(fromApi, toApi); in compareAddedClass() local 84 IClassDefinitionDelta classDelta = getSingleClassDelta(delta); in compareAddedClass() 100 IApiDelta delta = compare(fromApi, toApi); in compareAnnotationsOnClass() local 101 IClassDefinitionDelta classDelta = getSingleClassDelta(delta); in compareAnnotationsOnClass()
|
D | PackageCompareTest.java | 43 IApiDelta delta = compare(fromApi, toApi); in compareEqualPackageTest0() local 44 assertNull(delta); in compareEqualPackageTest0()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GlVboPerfTest.java | 70 float delta = minMaxVbo[1] - (1f - FPS_COMPARISON_MARGIN) in testVboWithVaryingIndexBufferNumbers() local 72 assertTrue("VBO performance worse than non-VBO " + msgVbo + msgNonVbo, delta > 0f); in testVboWithVaryingIndexBufferNumbers() 130 float delta = fpsVbo - (1f - FPS_COMPARISON_MARGIN) * mFps; in doRunVboVsNonVboPerfTest() local 134 assertTrue(testMsg.toString(), delta > 0f); in doRunVboVsNonVboPerfTest()
|
/cts/tools/signature-tools/ |
D | README.txt | 13 #Comparator : Put two signature models into the comparator and you get a delta model 15 #Report engine : Translates a delta model to a html output based on templates (utilizing the Stri… 32 | | model : the delta model
|
/cts/tools/signature-tools/src/signature/io/ |
D | IApiDeltaExternalizer.java | 24 void externalize(String location, IApiDelta delta) throws IOException; in externalize() argument
|
/cts/tests/tests/media/src/android/media/cts/ |
D | PresentationSyncTest.java | 185 double delta = (double) deltaNsec / expectedNsec; in runThroughputTest() local 187 if (delta > MAX_DELTA) { in runThroughputTest() 190 " actual=" + actualNsec + " p=" + delta); in runThroughputTest() 194 " actual=" + actualNsec + " p=" + delta); in runThroughputTest()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 123 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument 124 …if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not wi… in assertEquals()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | JitterVerification.java | 150 for (long delta : deltas) { in getJitterValues() 151 jitters.add(Math.abs(delta - deltaMean)); in getJitterValues()
|
D | StandardDeviationVerification.java | 204 float delta = event.values[i] - mMeans[i]; in addSensorEventInternal() local 205 mMeans[i] += delta / mCount; in addSensorEventInternal() 206 mM2s[i] += delta * (event.values[i] - mMeans[i]); in addSensorEventInternal()
|