/cts/tests/tests/view/src/android/view/cts/ |
D | FocusFinderTest.java | 139 int[] deltas = new int[2]; in testFindNearestTouchable() local 140 View view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_DOWN, deltas); in testFindNearestTouchable() 142 assertEquals(0, deltas[0]); in testFindNearestTouchable() 143 assertEquals(0, deltas[1]); in testFindNearestTouchable() 146 deltas = new int[2]; in testFindNearestTouchable() 149 view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_LEFT, deltas); in testFindNearestTouchable() 151 assertEquals(-1, deltas[0]); in testFindNearestTouchable() 152 assertEquals(0, deltas[1]); in testFindNearestTouchable() 155 deltas = new int[2]; in testFindNearestTouchable() 158 view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_RIGHT, deltas); in testFindNearestTouchable() [all …]
|
/cts/tools/signature-tools/templates/delta/ |
D | deltas.stg | 1 group deltas; 19 MultiSubDelta(desc, deltas) ::= << 20 $if(deltas)$ 21 $if(!deltas.empty)$ 24 $deltas:{<li>$DeltaTypeSwitch(delta=it)$</li>}$ 32 $MultiSubDelta(desc="Annotation Elements changed:", deltas=delta.annotationElementDeltas)$ 62 $MultiSubDelta(desc="Annotations changed:", deltas=delta.annotationDeltas)$ 66 $MultiSubDelta(desc="Modifiers changed:", deltas=delta.modifierDeltas)$ 70 $MultiSubDelta(desc="Type Variables changed:", deltas=delta.typeVariableDeltas)$ 74 $MultiSubDelta(desc="Exceptions changed:", deltas=delta.exceptionDeltas)$ [all …]
|
/cts/tools/signature-tools/src/signature/compare/model/impl/ |
D | SigDelta.java | 56 private static <T extends IDelta<?>> Set<T> getDeltas(Set<T> deltas, in getDeltas() argument 59 for (T delta : deltas) { in getDeltas() 67 public static <T extends IDelta<?>> Set<T> getAdded(Set<T> deltas) { in getAdded() argument 68 return getDeltas(deltas, DeltaType.ADDED); in getAdded() 71 public static <T extends IDelta<?>> Set<T> getRemoved(Set<T> deltas) { in getRemoved() argument 72 return getDeltas(deltas, DeltaType.REMOVED); in getRemoved() 75 public static <T extends IDelta<?>> Set<T> getChanged(Set<T> deltas) { in getChanged() argument 76 return getDeltas(deltas, DeltaType.CHANGED); in getChanged()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 117 private void assertMeanAndStdev(String provider, List<Long> deltas, double minMeanRatio) { in assertMeanAndStdev() argument 118 double mean = computeMean(deltas); in assertMeanAndStdev() 119 double stdev = computeStdev(mean, deltas); in assertMeanAndStdev() 139 private double computeMean(List<Long> deltas) { in computeMean() argument 141 for (long d : deltas) { in computeMean() 144 return accumulator / deltas.size(); in computeMean() 147 private double computeStdev(double mean, List<Long> deltas) { in computeStdev() argument 149 for (long d : deltas) { in computeStdev() 153 return Math.sqrt(accumulator / (deltas.size() - 1)); in computeStdev()
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_tonemap_sequence.py | 61 deltas = [numpy.max(numpy.fabs(means[i+1]-means[i])) \ 63 print "Deltas between consecutive frames:", deltas 65 assert(all([abs(deltas[i]) < MAX_SAME_DELTA for i in [0,1,3,4]])) 66 assert(abs(deltas[2]) > MIN_DIFF_DELTA)
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | JitterVerification.java | 144 List<Long> deltas = new ArrayList<Long>(mTimestamps.size() - 1); in getJitterValues() local 146 deltas.add(mTimestamps.get(i) - mTimestamps.get(i - 1)); in getJitterValues() 148 double deltaMean = StatisticsUtils.getMean(deltas); in getJitterValues() 149 List<Double> jitters = new ArrayList<Double>(deltas.size()); in getJitterValues() 150 for (long delta : deltas) { in getJitterValues()
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_burst_sameness_fullres_auto.py | 83 deltas = (imgs[i] - img_mean).reshape(h*w*3/16) 84 delta_max_pos = numpy.max(deltas) 85 delta_max_neg = numpy.min(deltas)
|
/cts/tools/signature-tools/src/signature/compare/ |
D | ApiComparator.java | 299 Set<ITypeReferenceDelta<?>> deltas = in compareInterfaces() local 310 deltas.add(new SigTypeDelta<ITypeReference>(type, null)); in compareInterfaces() 323 deltas.add(new SigTypeDelta<ITypeReference>(null, type)); in compareInterfaces() 327 return deltas.isEmpty() ? null : deltas; in compareInterfaces() 470 Set<IMethodDelta> deltas = new HashSet<IMethodDelta>(); 477 deltas.add(new SigMethodDelta(method, null)); 484 deltas.add(delta); 494 deltas.add(new SigMethodDelta(null, method)); 498 return deltas.isEmpty() ? null : deltas; 925 Set<IParameterDelta> deltas = new HashSet<IParameterDelta>(); [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_jitter.py | 44 deltas = [tstamps[i]-tstamps[i-1] for i in range(1,len(tstamps))] 45 deltas_ms = [d/1000000.0 for d in deltas]
|