Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 233) sorted by relevance

12345678910

/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DPerAlignedUtils.java44 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 …]
DAsn1Integer.java62 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 …]
DPerUnalignedUtils.java39 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/
Dtest_param_shading_mode.py39 for mode in range(_NUM_SHADING_MODES):
40 for i in range(_NUM_SWITCH_LOOPS):
44 pylab.plot(range(num_map_gains), shading_maps[mode][i], '-r.',
46 pylab.plot(range(num_map_gains), reference_maps[mode], '-g.',
59 pylab.plot(range(num_map_gains), shading_ref_ratio, '-b.', clip_on=False)
130 reference_maps = [[] for mode in range(_NUM_SHADING_MODES)]
132 for mode in range(1, _NUM_SHADING_MODES):
148 for i in range(_NUM_SWITCH_LOOPS):
149 for mode in range(_NUM_SHADING_MODES):
150 for _ in range(_NUM_FRAMES):
[all …]
Dtest_param_tonemap_mode.py111 for i in range(_L_TMAP)], []),
113 for i in range(_L_TMAP)], []),
115 for i in range(_L_TMAP)], [])}
121 rgb_ratios = [means_1[1][i]/means_1[0][i] for i in range(_NUM_COLORS)]
125 for i in range(_NUM_COLORS-1):
134 tonemap_curve = sum([[i/(size-1)]*2 for i in range(size)], [])
144 rgb_diffs = [means_2[1][i] - means_2[0][i] for i in range(_NUM_COLORS)]
Dtest_tonemap_sequence.py38 _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)]
Dtest_yuv_jpeg_all.py119 pylab.plot(range(len(rgbs)), [r[0] for r in rgbs], '-ro')
120 pylab.plot(range(len(rgbs)), [g[1] for g in rgbs], '-go')
121 pylab.plot(range(len(rgbs)), [b[2] for b in rgbs], '-bo')
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/
DConsumerIrTest.java64 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { in test_getCarrierFrequencies()
66 assertTrue(range.getMinFrequency() > 0); in test_getCarrierFrequencies()
67 assertTrue(range.getMaxFrequency() > 0); in test_getCarrierFrequencies()
68 assertTrue(range.getMinFrequency() <= range.getMaxFrequency()); in test_getCarrierFrequencies()
87 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { in test_timing()
90 mCIR.transmit(range.getMinFrequency(), pattern); in test_timing()
99 mCIR.transmit(range.getMaxFrequency(), pattern); in test_timing()
/cts/apps/CameraITS/utils/
Dsensor_fusion_utils.py31 ARDUINO_ANGLES = [0]*5 +list(range(0, 90, 3)) + [90]*5 +list(range(90, -1, -3))
135 for _ in range(ARDUINO_CMD_LENGTH):
142 for i in range(ARDUINO_CMD_LENGTH):
242 for _ in range(num_rotations):
272 for i_cam in range(len(cam_times)-1):
282 for i_gyro in range(i_gyro_window0, i_gyro_window1):
379 for t in range(pts[0], pts[1], step):
381 for t in range(pts[1], pts[2], step):
383 for t in range(pts[2], pts[3], step):
385 for t in range(pts[3], pts[4], step):
[all …]
Dimage_processing_utils.py42 for i in range(MAX_LUT_SIZE)])
377 for i in range(chans):
416 black_levels = [get_black_level(i, props, cap_res) for i in range(4)]
662 for i in range(chans):
678 for i in range(chans):
714 for i in range(chans):
828 for i in range(len_rgb_x)]) / len_rgb_x)
849 check_list = random.sample(range(0, 1024), img_h*img_w)
853 for row_start in range(0, len(check_list), img_w):
856 for pixel in range(img_w):
[all …]
/cts/tests/tests/rsblas/assets/
Dblas_gen.py29 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/
Dtest_capture_result.py54 for ch in range(4):
57 xs = np.array([range(lsc_map_w)] * lsc_map_h).reshape(lsc_map_h, lsc_map_w)
58 ys = np.array([[i]*lsc_map_w for i in range(lsc_map_h)]).reshape(
125 for i in range(AWB_XFORM_NUM)])
184 atol=ISCLOSE_ATOL) for i in range(AWB_GAINS_NUM)]) or
186 atol=ISCLOSE_ATOL) for i in range(AWB_GAINS_NUM)]) or
188 atol=ISCLOSE_ATOL) for i in range(AWB_GAINS_NUM)]))
190 for i in range(AWB_XFORM_NUM)]))
200 for i in range(0, len(c), 2)])
Dtest_linearity.py44 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)], []))
77 sensitivities = [s_mid*x/NUM_STEPS for x in range(1, NUM_STEPS)]
126 range(len(sensitivities)), means, 1, full=True)
Dtest_param_noise_reduction.py100 for channel in range(NUM_COLORS):
106 for n in range(NUM_FRAMES_PER_MODE):
134 for chan in range(NUM_COLORS):
139 for j in range(NUM_COLORS):
148 for j in range(NUM_COLORS):
Dtest_burst_sameness_manual.py87 for j in range(NUM_BURSTS):
106 for i in range(1, NUM_FRAMES):
111 frames = range(NUM_FRAMES)
/cts/apps/CameraITS/tests/inprog/
Dtest_param_black_level_lock.py51 sensitivities = range(sens_range[0],
63 pylab.plot(range(16), hist.tolist()[:16])
72 assert(all([modes[i] == modes[0] for i in range(len(modes))]))
Dtest_black_level.py53 sensitivities = [sens_range[0] + i*sens_step for i in range(NUM_STEPS)]
84 pylab.plot(range(32), yhist.tolist()[0:32], 'rgb'[si])
85 pylab.plot(range(32), uhist.tolist()[112:144], 'rgb'[si]+'--')
86 pylab.plot(range(32), vhist.tolist()[112:144], 'rgb'[si]+'--')
Dtest_burst_sameness_fullres_auto.py62 for j in range(BURSTS):
71 for i in range(FRAMES):
82 for i in range(FRAMES):
/cts/suite/audio_quality/test_description/processing/
Dgen_random.py41 for i in range(iHigh, freqSamples - 1):
53 for i in range(len(filteredData)):
57 for i in range(len(filteredData)):
/cts/tests/tests/media/src/android/media/cts/
DVisualizerTest.java104 int[] range = mVisualizer.getCaptureSizeRange(); in test1_1CaptureSize() local
106 range[0] <= MAX_CAPTURE_SIZE_MIN); in test1_1CaptureSize()
108 range[1] >= MIN_CAPTURE_SIZE_MAX); in test1_1CaptureSize()
109 mVisualizer.setCaptureSize(range[0]); in test1_1CaptureSize()
111 range[0], mVisualizer.getCaptureSize()); in test1_1CaptureSize()
112 mVisualizer.setCaptureSize(range[1]); in test1_1CaptureSize()
114 range[1], mVisualizer.getCaptureSize()); in test1_1CaptureSize()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dluts_for_speedup_f32.rsh13 // 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/tests/media/src/android/mediav2/cts/
DEncoderColorAspectsTest.java63 int range, int standard, int transferCurve) { in EncoderColorAspectsTest() argument
65 mRange = range; in EncoderColorAspectsTest()
125 for (int range : ranges) { in input()
129 .add(new Object[]{mime, 176, 144, range, standard, transfer}); in input()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_direct_range/d/
DT_invoke_direct_range_12.smali23 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
DT_invoke_direct_range_13.smali23 invoke-direct/range {v1}, Ldot/junit/opcodes/invoke_direct_range/TAbstract;-><init>()V
29 invoke-direct/range {v2}, Ldot/junit/opcodes/invoke_direct_range/TAbstract;->toInt()I
DT_invoke_direct_range_1.smali23 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

12345678910