/cts/apps/CtsVerifier/jni/verifier/ |
D | com_android_cts_verifier_camera_StatsImage.cpp | 67 int ch = chnOffset + (x & 1); in com_android_cts_verifier_camera_its_computeStatsImage() local 68 sum[ch] += pixelValue; in com_android_cts_verifier_camera_its_computeStatsImage() 69 sumSq[ch] += pixelValue * pixelValue; in com_android_cts_verifier_camera_its_computeStatsImage() 70 count[ch] += 1; in com_android_cts_verifier_camera_its_computeStatsImage() 73 for (int ch = 0; ch < 4; ch++) { in com_android_cts_verifier_camera_its_computeStatsImage() local 74 float m = (float)sum[ch] / count[ch]; in com_android_cts_verifier_camera_its_computeStatsImage() 75 float mSq = (float)sumSq[ch] / count[ch]; in com_android_cts_verifier_camera_its_computeStatsImage() 76 mean[gy*ngx*4 + gx*4 + ch] = m; in com_android_cts_verifier_camera_its_computeStatsImage() 77 var[gy*ngx*4 + gx*4 + ch] = mSq - m*m; in com_android_cts_verifier_camera_its_computeStatsImage()
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_post_raw_sensitivity_boost.py | 109 pylab.plot(idx, [ch[i] for ch in yuv_means], '-'+'rgb'[i]+'s', label='YUV', 111 pylab.plot(idx, [ch[i] for ch in raw_means], '-'+'rgb'[i]+'o', label='RAW', 185 for ch, _ in enumerate(_COLORS): 186 ratio_per_step = raw_means[step-1][ch] / raw_means[step][ch] 188 step - 1, step, _COLORS[ch], raw_means[step - 1][ch], 189 raw_means[step][ch], ratio_per_step) 190 if raw_means[step][ch] <= _RAW_PIXEL_THRESH: 198 for ch, _ in enumerate(_COLORS): 199 vals = [val[ch] for val in yuv_means] 201 if raw_means[idx][ch] <= _RAW_PIXEL_THRESH: [all …]
|
D | test_reprocess_noise_reduction.py | 73 for ch, color in enumerate(_COLORS): 74 pylab.plot(_NR_MODES_LIST, snrs[ch], f'-{color.lower()}o') 150 for ch, _ in enumerate(_COLORS): 151 snrs[ch].append(0) 169 for ch, x_snrs in enumerate([r_snrs, g_snrs, b_snrs]): 170 snrs[ch].append(rgb_avg_snrs[ch]) 173 _COLORS[ch], rgb_avg_snrs[ch], min(x_snrs), max(x_snrs))
|
D | test_raw_exposure.py | 131 for ch, color in enumerate(COLORS): 133 sens, color, exps[i-1], mean[ch], 135 prev_mean[ch], IMG_DELTA_THRESH*100) 136 if mean[ch] <= prev_mean[ch] * IMG_DELTA_THRESH:
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecoderTestXheAac.java | 983 for (int ch = 0; ch < procNch; ch++) { in checkEnergyUSAC() 984 offset[ch] = -1; in checkEnergyUSAC() 987 final int smpStart = (signalStart * nCh) + (seg * nSegSmpTot) + ch; in checkEnergyUSAC() 992 nrgPerChannel[ch] += decSamples[smpl] * decSamples[smpl]; in checkEnergyUSAC() 994 nrg[ch][seg] += nrgPerChannel[ch]; in checkEnergyUSAC() 999 if (nrg[ch][seg] > zeroNrgThresh && offset[ch] < 0) { in checkEnergyUSAC() 1000 offset[ch] = seg / nSegChOffst; in checkEnergyUSAC() 1004 if (nrg[ch][seg] > totMaxNrg) { in checkEnergyUSAC() 1005 totMaxNrg = nrg[ch][seg]; in checkEnergyUSAC() 1009 sigSeg[seg] |= nrg[ch][seg] > zeroNrgThresh; in checkEnergyUSAC() [all …]
|
D | DecoderTest.java | 1746 for (int ch = 0; ch < procNch; ch++) { in checkEnergy() 1747 offset[ch] = -1; in checkEnergy() 1749 final int smpStart = (signalStart * nCh) + (seg * nSegSmpTot) + ch; in checkEnergy() 1752 nrg[ch][seg] += decSamples[smpl] * decSamples[smpl]; // accumulate segment nrg in checkEnergy() 1754 if (nrg[ch][seg] > zeroNrgThresh && offset[ch] < 0) { // store 1st segment (index) in checkEnergy() 1755 offset[ch] = seg / nSegChOffst; // ... per ch which has energy above the in checkEnergy() 1757 if (nrg[ch][seg] > totMaxNrg) { in checkEnergy() 1758 totMaxNrg = nrg[ch][seg]; // store the max segment nrg over all ch in checkEnergy() 1760 sigSeg[seg] |= nrg[ch][seg] > zeroNrgThresh; // store whether the channel has in checkEnergy() 1763 if (offset[ch] < 0) { // if one channel has no signal it is in checkEnergy() [all …]
|
D | EncoderTest.java | 155 for (int ch = 1; ch <= 2; ++ch) { in testAACEncoders() 165 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, ch); in testAACEncoders()
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_rawstats.py | 40 for ch in range(4): 41 m = mean_image[:,:,ch].reshape(h,w,1)/1023.0 42 v = var_image[:,:,ch].reshape(h,w,1) 43 its.image.write_image(m, "%s_mean_ch%d.jpg" % (NAME,ch), True) 44 its.image.write_image(v, "%s_var_ch%d.jpg" % (NAME,ch), True)
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_dng_noise_model.py | 107 for i, ch in enumerate(BAYER_LIST): 143 ch, mean_img_ch, var, var_model) 153 for i, ch in enumerate(BAYER_LIST): 154 pylab.plot(sens_valid, var_exp[i], 'rgkb'[i], label=ch+' expected') 155 pylab.plot(sens_valid, var_meas[i], 'rgkb'[i]+'.--', label=ch+' measured') 164 for i, ch in enumerate(BAYER_LIST): 167 logging.debug('%s variance diffs: %s', ch, str(var_diffs))
|
D | test_param_exposure_time.py | 92 for ch, means in enumerate([r_means, g_means, b_means]): 93 pylab.plot(exp_times, means, '-'+'rgb'[ch]+'o') 102 for ch, means in enumerate([r_means, g_means, b_means]): 104 e_msg = '%s [i+1]: %.4f, [i]: %.4f' % (COLORS[ch], means[i+1], means[i])
|
D | test_black_white.py | 139 for ch, mean in enumerate(black_means): 141 COLOR_PLANES[ch], mean, CH_THRESH_BLACK) 145 for ch, mean in enumerate(white_means): 147 COLOR_PLANES[ch], mean, CH_THRESH_WHITE)
|
D | test_exposure.py | 268 for ch, _ in enumerate(['r', 'gr', 'gb', 'b']): 269 values = [raw_r_means, raw_gr_means, raw_gb_means, raw_b_means][ch] 270 check_line_fit(ch, mults, values, thresh_max_level_diff) 273 for ch, _ in enumerate(['r', 'g', 'b']): 274 values = [r_means, g_means, b_means][ch] 275 check_line_fit(ch, mults, values, thresh_max_level_diff)
|
D | test_capture_result.py | 54 for ch in range(4): 60 zs = np.array(lsc_map[ch::4]).reshape(lsc_map_h, lsc_map_w) 63 os.path.join(log_path, NAME), name, ch))
|
D | test_param_color_correction.py | 126 for ch, means in enumerate([r_means, g_means, b_means]): 127 pylab.plot(capture_idxs, means, '-'+'rgb'[ch]+'o')
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 87 Camera.CameraInfo info, CameraCharacteristics ch) { in matchParametersToCharacteristics() argument 88 Integer facing = ch.get(CameraCharacteristics.LENS_FACING); in matchParametersToCharacteristics() 110 Integer orientation = ch.get(CameraCharacteristics.SENSOR_ORIENTATION); in matchParametersToCharacteristics() 115 StaticMetadata staticMeta = new StaticMetadata(ch); in matchParametersToCharacteristics() 121 boolean isExternal = (ch.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL) == in matchParametersToCharacteristics() 139 if (ch.get(CameraCharacteristics.LENS_INFO_AVAILABLE_FOCAL_LENGTHS) != null) { in matchParametersToCharacteristics()
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils.py | 114 def canakit_set_relay_channel_state(canakit_port, ch, state): argument 125 if ch in CANAKIT_VALID_CH and state in CANAKIT_VALID_CMD: 126 canakit_cmd_send(canakit_port, CANAKIT_SET_CMD + ch + '.' + state + '\r\n') 129 logging.debug('Invalid ch (%s) or state (%s), no command sent.', ch, state) 175 def arduino_rotate_servo_to_angle(ch, angle, serial_port, delay=0): argument 190 cmd = [struct.pack('B', i) for i in [ARDUINO_START_BYTE, int(ch), angle]] 195 def arduino_rotate_servo(ch, serial_port): argument 205 ch, angle_norm, serial_port, ARDUINO_MOVE_TIME)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsSerializer.java | 221 for (int ch = 0; ch < 3; ch++) { in serializeTonemapCurve() 223 int len = curve.getPointCount(ch); in serializeTonemapCurve() 225 curveArr.put(curve.getPoint(ch,i).x); in serializeTonemapCurve() 226 curveArr.put(curve.getPoint(ch,i).y); in serializeTonemapCurve() 228 curveObj.put(names[ch], curveArr); in serializeTonemapCurve() 270 for (int ch = 0; ch < 4; ch++) { in serializeLensShadingMap() 271 mapArr.put(map.getGainFactor(ch, col, row)); in serializeLensShadingMap() 722 for (int ch = 0; ch < 3; ch++) { in deserialize() 723 JSONArray ja = obj.getJSONArray(names[ch]); in deserialize() 724 curves[ch] = new float[ja.length()]; in deserialize() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | EditorState.java | 92 final char ch = token.charAt(1); in setByString() local 93 if (!isGraphicAscii(ch)) { in setByString() 96 "Use U+" + Integer.toHexString(ch).toUpperCase() + " instead"); in setByString()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_stream_builder.cpp | 42 char ch = buf[0]; in my_property_get_bool() local 43 if (ch == '0' || ch == 'n') { in my_property_get_bool() 45 } else if (ch == '1' || ch == 'y') { in my_property_get_bool()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraMetadataGetter.java | 378 for (int ch = 0; ch < 3; ch++) { in serializeTonemapCurve() 380 int len = curve.getPointCount(ch); in serializeTonemapCurve() 382 curveArr.put(curve.getPoint(ch, i).x); in serializeTonemapCurve() 383 curveArr.put(curve.getPoint(ch, i).y); in serializeTonemapCurve() 385 curveObj.put(names[ch], curveArr); in serializeTonemapCurve() 426 for (int ch = 0; ch < 4; ch++) { in serializeLensShadingMap() 427 mapObj.put(map.getGainFactor(ch, col, row)); in serializeLensShadingMap()
|
/cts/hostsidetests/appsecurity/certs/pkgsigverify/ |
D | dsa-1024.x509.pem | 8 ch+0D7JrbqmR1w5S3VBtTnONLiBYnaz1Ri3Pfiw5FHKfJcfFcQopIOLJwfdBmY4b
|
/cts/tests/tests/util/src/android/util/cts/ |
D | XmlEncodingTest.java | 213 public void characters(char[] ch, int start, int length) throws SAXException { in characters() argument 214 mVec.add(STR_CHARACTERS_TAG + new String(ch)); in characters() 234 public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { in ignorableWhitespace() argument 235 mVec.add(STR_IGNORABLE_WHITESPACE_TAG + new String(ch)); in ignorableWhitespace()
|
D | XmlTest.java | 131 public void characters(char[] ch, int start, int length) throws SAXException { in characters() argument 132 mVec.add(STR_CHARACTERS_TAG + new String(ch)); in characters() 152 public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { in ignorableWhitespace() argument 153 mVec.add(STR_IGNORABLE_WHITESPACE_TAG + new String(ch)); in ignorableWhitespace()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleCocServerService.java | 750 for (BluetoothGattCharacteristic ch : service.getCharacteristics()) { in dumpService() 751 Log.d(TAG, indent + " UUID: " + ch.getUuid()); in dumpService() 753 + String.format("0x%02X", ch.getProperties())); in dumpService() 755 + String.format("0x%02X", ch.getPermissions())); in dumpService() 757 for (BluetoothGattDescriptor d : ch.getDescriptors()) { in dumpService()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | PerformanceTest.java | 156 CameraCharacteristics ch = in testCameraLaunch() local 158 mTestRule.setStaticInfo(new StaticMetadata(ch)); in testCameraLaunch() 1234 CameraCharacteristics ch = mTestRule.getStaticInfo().getCharacteristics(); in prepareStillCaptureAndStartPreview() local 1235 StreamConfigurationMap config = ch.get( in prepareStillCaptureAndStartPreview() 1247 boolean useSessionKeys = isFpsRangeASessionKey(ch); in prepareStillCaptureAndStartPreview() 1260 private boolean isFpsRangeASessionKey(CameraCharacteristics ch) { in isFpsRangeASessionKey() argument 1261 List<CaptureRequest.Key<?>> sessionKeys = ch.getAvailableSessionKeys(); in isFpsRangeASessionKey() 1424 CameraCharacteristics ch = mTestRule.getStaticInfo().getCharacteristics(); in configureReaderAndPreviewOutputs() local 1426 ch.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in configureReaderAndPreviewOutputs() 1443 boolean useSessionKeys = isFpsRangeASessionKey(ch); in configureReaderAndPreviewOutputs()
|