/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutGetRangeForRectTest.java | 117 int[] range = mLayout.getRangeForRect( in character_anyOverlap() local 120 assertThat(range).asList().containsExactly(37, 38).inOrder(); in character_anyOverlap() 133 int[] range = mLayout.getRangeForRect( in character_anyOverlap_multiLine() local 136 assertThat(range).asList().containsExactly(4, 38).inOrder(); in character_anyOverlap_multiLine() 145 int[] range = mLayout.getRangeForRect( in character_containsCenter() local 148 assertThat(range).asList().containsExactly(1, 3).inOrder(); in character_containsCenter() 159 int[] range = mLayout.getRangeForRect( in character_containsCenter_partialCharacterButNotCenter() local 163 assertThat(range).asList().containsExactly(1, 3).inOrder(); in character_containsCenter_partialCharacterButNotCenter() 172 int[] range = mLayout.getRangeForRect( in character_containsCenter_rtl() local 175 assertThat(range).asList().containsExactly(25, 27).inOrder(); in character_containsCenter_rtl() [all …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | PerAlignedUtils.java | 44 int range = maximumValue - minimumValue; in encodeSmallConstrainedWholeNumber() local 45 return encodeNormalizedSmallConstrainedWholeNumber(normalizedValue, range); in encodeSmallConstrainedWholeNumber() 58 int normalizedValue, int range) { in encodeNormalizedSmallConstrainedWholeNumber() argument 59 Preconditions.checkArgument(range < SIXTYFOUR_K, "range >= 64K"); in encodeNormalizedSmallConstrainedWholeNumber() 63 if (range == 0) { in encodeNormalizedSmallConstrainedWholeNumber() 66 if (range < 128) { in encodeNormalizedSmallConstrainedWholeNumber() 67 result.appendLowBits(leastBitsToEncode((byte) range), in encodeNormalizedSmallConstrainedWholeNumber() 71 if (range >= 255) { in encodeNormalizedSmallConstrainedWholeNumber() 74 if (range < 256) { in encodeNormalizedSmallConstrainedWholeNumber() 90 int range = maximumValue - minimumValue; in decodeSmallConstrainedWholeNumber() local [all …]
|
D | Asn1Integer.java | 62 BigInteger normalizedValue, BigInteger range) { in encodeNormalizedIntegerWithRangeAligned() argument 63 if (range.compareTo(BigInteger.valueOf(SIXTYFOUR_K)) < 0) { in encodeNormalizedIntegerWithRangeAligned() 65 normalizedValue.intValue(), range.intValue()); in encodeNormalizedIntegerWithRangeAligned() 71 PerAlignedUtils.encodeBigNonNegativeWholeNumber(range).length); in encodeNormalizedIntegerWithRangeAligned() 76 BigInteger normalizedValue, BigInteger range) { in encodeNormalizedIntegerWithRangeUnaligned() argument 78 normalizedValue.longValue(), range.longValue()); in encodeNormalizedIntegerWithRangeUnaligned() 118 BigInteger range = maximumValue.subtract(minimumValue); in encodePerImpl() local 120 ? encodeNormalizedIntegerWithRangeAligned(normalizedValue, range) in encodePerImpl() 121 : encodeNormalizedIntegerWithRangeUnaligned(normalizedValue, range); in encodePerImpl() 161 BitStreamReader reader, BigInteger range) { in decodeNormalizedIntegerWithRangeAligned() argument [all …]
|
D | PerUnalignedUtils.java | 39 int range = maximumValue - minimumValue; in encodeConstrainedWholeNumber() local 40 return encodeNormalizedConstrainedWholeNumber(normalizedValue, range); in encodeConstrainedWholeNumber() 53 long normalizedValue, long range) { in encodeNormalizedConstrainedWholeNumber() argument 55 int bits = leastBitsToEncodeLong(range); in encodeNormalizedConstrainedWholeNumber() 65 long range = (long) maximumValue - (long) minimumValue; in decodeConstrainedWholeNumber() local 67 decodeNormalizedConstrainedWholeNumber(reader, range); in decodeConstrainedWholeNumber() 80 BitStreamReader reader, long range) { in decodeNormalizedConstrainedWholeNumber() argument 82 int bits = leastBitsToEncodeLong(range); in decodeNormalizedConstrainedWholeNumber()
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_param_shading_mode.py | 40 for mode in range(_NUM_SHADING_MODES): 41 for i in range(_NUM_SWITCH_LOOPS): 45 pylab.plot(range(num_map_gains), shading_maps[mode][i], '-r.', 47 pylab.plot(range(num_map_gains), reference_maps[mode], '-g.', 60 pylab.plot(range(num_map_gains), shading_ref_ratio, '-b.', clip_on=False) 128 reference_maps = [[] for mode in range(_NUM_SHADING_MODES)] 130 for mode in range(1, _NUM_SHADING_MODES): 146 for i in range(_NUM_SWITCH_LOOPS): 147 for mode in range(_NUM_SHADING_MODES): 148 for _ in range(_NUM_FRAMES): [all …]
|
D | test_param_tonemap_mode.py | 114 for i in range(_L_TMAP)], []), 116 for i in range(_L_TMAP)], []), 118 for i in range(_L_TMAP)], [])} 124 rgb_ratios = [means_1[1][i]/means_1[0][i] for i in range(_NUM_COLORS)] 128 for i in range(_NUM_COLORS-1): 137 tonemap_curve = sum([[i/(size-1)]*2 for i in range(size)], []) 147 rgb_diffs = [means_2[1][i] - means_2[0][i] for i in range(_NUM_COLORS)]
|
D | test_raw_burst_sensitivity.py | 96 for sens in range(sens_min, sens_max, sens_step): 99 for i in range(_NUM_FRAMES): 124 x = range(len(variances)) 137 for i in range(_NUM_STEPS): 139 for j in range(_NUM_FRAMES):
|
D | test_tonemap_sequence.py | 38 _TMAP_NO_DELTA_FRAMES = list(range(_NUM_CAPTURES-1)) + list( 39 range(_NUM_CAPTURES, 2*_NUM_CAPTURES-1)) 59 for i in range(_NUM_CAPTURES): 138 deltas = [np.fabs(means[i+1]-means[i]) for i in range(2*_NUM_CAPTURES-1)]
|
D | test_param_noise_reduction.py | 103 for channel in range(_NUM_COLORS): 109 for n in range(_NUM_FRAMES_PER_MODE): 136 for chan in range(_NUM_COLORS): 142 for j in range(_NUM_COLORS): 152 for j in range(_NUM_COLORS):
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CellBroadcastIdRangeTest.java | 65 CellBroadcastIdRange range = new CellBroadcastIdRange(CHANNEL_VALUES[i][0], in testCreateCellBroadcastIdRange() local 67 assertEquals(range.getStartId(), CHANNEL_VALUES[i][0]); in testCreateCellBroadcastIdRange() 68 assertEquals(range.getEndId(), CHANNEL_VALUES[i][1]); in testCreateCellBroadcastIdRange() 69 assertEquals(range.getType(), TYPE_VALUES[j]); in testCreateCellBroadcastIdRange() 70 assertEquals(range.isEnabled(), ENABLED_VALUES[k]); in testCreateCellBroadcastIdRange() 113 CellBroadcastIdRange range = new CellBroadcastIdRange(CHANNEL_VALUES[i][0], in testDescribeContents() local 115 assertEquals(0, range.describeContents()); in testDescribeContents() 130 CellBroadcastIdRange range = new CellBroadcastIdRange(CHANNEL_VALUES[i][0], in testParcelUnparcel() local 134 range.writeToParcel(parcel, 0); in testParcelUnparcel() 140 assertEquals(range, range2); in testParcelUnparcel()
|
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/ |
D | ConsumerIrTest.java | 69 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { in test_getCarrierFrequencies() 71 assertTrue(range.getMinFrequency() > 0); in test_getCarrierFrequencies() 72 assertTrue(range.getMaxFrequency() > 0); in test_getCarrierFrequencies() 73 assertTrue(range.getMinFrequency() <= range.getMaxFrequency()); in test_getCarrierFrequencies() 90 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { in test_timing() 93 mCIR.transmit(range.getMinFrequency(), pattern); in test_timing() 102 mCIR.transmit(range.getMaxFrequency(), pattern); in test_timing()
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils_tests.py | 34 for t in range(pts[0], pts[1], step): 36 for t in range(pts[1], pts[2], step): 38 for t in range(pts[2], pts[3], step): 40 for t in range(pts[3], pts[4], step): 42 for t in range(pts[4], pts[5], step): 44 for t in range(pts[5], pts[6], step): 46 for t in range(pts[6], pts[7], step): 48 for t in range(pts[7], pts[8], step): 50 for t in range(pts[8], pts[9], step): 95 cam_times = np.array(range(pts[0], pts[9], self._CAM_FRAME_TIME)) [all …]
|
D | image_processing_utils_tests.py | 49 check_list = random.sample(range(0, 1024), img_h*img_w) 53 for row_start in range(0, len(check_list), img_w): 56 for pixel in range(img_w): 94 for i in range(len(blur_levels)-1): 107 lut = numpy.array([i*2 for i in range(lut_max)])
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | Requirements.java.tmpl | 106 {{- range $r := .ReqList.GetRequirements }} 120 {{- range $v_id, $v := $r.GetVariants }} 136 {{- end }}{{/* range $v_id, $v */}} 153 {{- range $m_id, $m := $r.GetMeasurements }} 160 {{- range $mpc, $s := $r.GetSpecs }} 170 {{- range $m_id, $m := $r.GetMeasurements }}, 175 {{- range $v_id, $v := $r.GetVariants }} 183 {{- range $m_id, $m := $r.GetMeasurements }} 190 {{- range $mpc, $s := $r.GetSpecs }} 198 {{- end}}{{/* range $mpc, $s */}} [all …]
|
/cts/tests/tests/rsblas/assets/ |
D | blas_gen.py | 29 for i in range(1, a.shape[0]): 30 for j in range(0, i): 33 for i in range(0, a.shape[0]-1): 34 for j in range(i+1, a.shape[1]): 39 for i in range(1, a.shape[0]): 40 for j in range(0, i): 45 for i in range(0, a.shape[0]): 47 for i in range(1, a.shape[0]): 48 for j in range(0, i): 53 for i in range(0, a.shape[0]): [all …]
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_capture_result.py | 55 for ch in range(4): 58 xs = np.array([range(lsc_map_w)] * lsc_map_h).reshape(lsc_map_h, lsc_map_w) 59 ys = np.array([[i]*lsc_map_w for i in range(lsc_map_h)]).reshape( 135 for i in range(_AWB_XFORM_NUM)]): 200 for i in range(_AWB_GAINS_NUM)]) or 203 for i in range(_AWB_GAINS_NUM)]) or 206 for i in range(_AWB_GAINS_NUM)])): 211 for i in range(_AWB_XFORM_NUM)])): 225 for i in range(0, len(c), 2)]):
|
D | test_linearity.py | 44 sum([[i/_L, math.pow(i/_L, 1/2.2)] for i in range(_L+1)], [])) 46 sum([[i/_L, math.pow(i/_L, 2.2)] for i in range(_L+1)], [])) 78 sensitivities = [s_mid*x/_NUM_STEPS for x in range(1, _NUM_STEPS)] 131 range(len(sensitivities)), means, 1, full=True)
|
D | test_burst_sameness_manual.py | 88 for j in range(_NUM_BURSTS): 105 frames = range(_NUM_FRAMES) 129 for i in range(1, _NUM_FRAMES):
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | ScrollBarUtils.java | 23 public static int getThumbLength(int size, int thickness, int extent, int range) { in getThumbLength() argument 26 int length = Math.round((float) size * extent / range); in getThumbLength()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | VisualizerTest.java | 115 int[] range = mVisualizer.getCaptureSizeRange(); in test1_1CaptureSize() local 117 range[0] <= MAX_CAPTURE_SIZE_MIN); in test1_1CaptureSize() 119 range[1] >= MIN_CAPTURE_SIZE_MAX); in test1_1CaptureSize() 122 size >= range[0]); in test1_1CaptureSize() 124 size <= range[1]); in test1_1CaptureSize() 125 mVisualizer.setCaptureSize(range[0]); in test1_1CaptureSize() 127 range[0], mVisualizer.getCaptureSize()); in test1_1CaptureSize() 128 mVisualizer.setCaptureSize(range[1]); in test1_1CaptureSize() 130 range[1], mVisualizer.getCaptureSize()); in test1_1CaptureSize() 146 int[] range = mVisualizer.getCaptureSizeRange(); in test1_2SetIllegalCaptureSize() local [all …]
|
/cts/tests/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/ |
D | ServiceKillTestService.java | 496 private Map<Measure, Float> getAllResults(Range range) { in getAllResults() argument 499 results.put(measure, getResult(measure, range)); in getAllResults() 512 private List<Long> filter(List<Long> source, Range range) { in filter() argument 515 if (range == null) { in filter() 521 if (!range.inRange(i.next())) { in filter() 549 public float getResult(Measure measure, Range range) { in getResult() argument 552 return (getResult(Measure.WORK, range) + (2 * getResult(Measure.ALARM, range)) + in getResult() 553 getResult(Measure.MAIN, range)) / 4f; in getResult() 556 List<Long> events = filter(getEvents(measure), range); in getResult() 559 .min(1, events.size() / (getDuration(range) / (float) measure.interval)); in getResult() [all …]
|
/cts/hostsidetests/gwp_asan/common/jni/ |
D | gwp_asan_cts_library.cpp | 68 return std::any_of(ranges.cbegin(), ranges.cend(), [&](const auto& range) { in is_gwp_asan_pointer() argument 69 return untagged_ptr >= range.first && untagged_ptr < range.second; in is_gwp_asan_pointer()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 13 // The value range of both x and y is [0,g_kMaxDepthValue]. 14 // The value range of VisibilityProbability.lut[y][x] is [0,1]. 65 // The value range of r is [0,g_kMaxKernelRadius]. 66 // The value range of y is [-g_kMaxKernelRadius,g_kMaxKernelRadius].
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_direct_range/d/ |
D | T_invoke_direct_range_12.smali | 23 invoke-direct/range {v1}, Ldot/junit/opcodes/invoke_direct_range/TSuper;-><init>()V 30 invoke-direct/range {v2}, Ldot/junit/opcodes/invoke_direct_range/TSuper;->toIntPvt()I
|
D | T_invoke_direct_range_1.smali | 23 invoke-direct/range {v1}, Ldot/junit/opcodes/invoke_direct_range/TSuper;-><init>()V 30 invoke-direct/range {v2}, Ldot/junit/opcodes/invoke_direct_range/TSuper;->toInt()I
|