Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 81) sorted by relevance

1234

/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_camera_StatsImage.cpp67 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/tests/tests/media/src/android/media/cts/
DDecoderTestXheAac.java571 for (int ch = 0; ch < procNch; ch++) { in checkEnergyUSAC()
572 offset[ch] = -1; in checkEnergyUSAC()
575 final int smpStart = (signalStart * nCh) + (seg * nSegSmpTot) + ch; in checkEnergyUSAC()
580 nrgPerChannel[ch] += decSamples[smpl] * decSamples[smpl]; in checkEnergyUSAC()
582 nrg[ch][seg] += nrgPerChannel[ch]; in checkEnergyUSAC()
587 if (nrg[ch][seg] > zeroNrgThresh && offset[ch] < 0) { in checkEnergyUSAC()
588 offset[ch] = seg / nSegChOffst; in checkEnergyUSAC()
592 if (nrg[ch][seg] > totMaxNrg) { in checkEnergyUSAC()
593 totMaxNrg = nrg[ch][seg]; in checkEnergyUSAC()
597 sigSeg[seg] |= nrg[ch][seg] > zeroNrgThresh; in checkEnergyUSAC()
[all …]
DDecoderTest.java1283 for (int ch = 0; ch < procNch; ch++) { in checkEnergy()
1284 offset[ch] = -1; in checkEnergy()
1286 final int smpStart = (signalStart * nCh) + (seg * nSegSmpTot) + ch; in checkEnergy()
1289 nrg[ch][seg] += decSamples[smpl] * decSamples[smpl]; // accumulate segment nrg in checkEnergy()
1291 if (nrg[ch][seg] > zeroNrgThresh && offset[ch] < 0) { // store 1st segment (index) in checkEnergy()
1292 offset[ch] = seg / nSegChOffst; // ... per ch which has energy above the in checkEnergy()
1294 if (nrg[ch][seg] > totMaxNrg) { in checkEnergy()
1295 totMaxNrg = nrg[ch][seg]; // store the max segment nrg over all ch in checkEnergy()
1297 sigSeg[seg] |= nrg[ch][seg] > zeroNrgThresh; // store whether the channel has in checkEnergy()
1300 if (offset[ch] < 0) { // if one channel has no signal it is in checkEnergy()
[all …]
DEncoderTest.java145 for (int ch = 1; ch <= 2; ++ch) { in testAACEncoders()
155 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, ch); in testAACEncoders()
/cts/tools/dasm/src/java_cup/
Dlexer.java200 protected static boolean id_start_char(int ch) in id_start_char() argument
202 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || in id_start_char()
203 (ch == '_'); in id_start_char()
213 protected static boolean id_char(int ch) in id_char() argument
215 return id_start_char(ch) || (ch >= '0' && ch <= '9'); in id_char()
223 protected static int find_single_char(int ch) in find_single_char() argument
227 result = (Integer)char_symbols.get(new Integer((char)ch)); in find_single_char()
/cts/apps/CameraITS/tests/inprog/
Dtest_rawstats.py40 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/
Dtest_dng_noise_model.py90 ch = cfa_idxs[i]
91 s, o = noise_profile[ch]
108 mean_img_ch = (mean_img[x, y, ch]-black_level)/level_range
109 var_measured[i].append(var_img[x, y, ch]/level_range**2)
112 for i, ch in enumerate(BAYER_LIST):
114 label=ch+' expected')
116 label=ch+' measured')
123 for i, ch in enumerate(BAYER_LIST):
126 print 'Diffs (%s):'%(ch), diffs
Dtest_capture_result.py105 for ch in range(4):
111 zs = numpy.array(lsc_map[ch::4]).reshape(h_map, w_map)
113 matplotlib.pyplot.savefig("%s_plot_lsc_%s_ch%d.png"%(NAME, name, ch))
Dtest_crop_region_raw.py118 h,w,ch = img.shape
/cts/apps/CameraITS/tools/
Drotation_rig.py92 ch = rotator_ids[2]
99 ch = rotator_ids[0]
106 ch = ROT_RIG_CHAN
118 set_relay_channel_state(vid, pid, ch, 'ON')
120 set_relay_channel_state(vid, pid, ch, 'OFF')
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java221 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()
716 for (int ch = 0; ch < 3; ch++) { in deserialize()
717 JSONArray ja = obj.getJSONArray(names[ch]); in deserialize()
718 curves[ch] = new float[ja.length()]; in deserialize()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java92 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/
Dtest_aaudio_stream_builder.cpp41 char ch = buf[0]; in my_property_get_bool() local
42 if (ch == '0' || ch == 'n') { in my_property_get_bool()
44 } else if (ch == '1' || ch == 'y') { in my_property_get_bool()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java378 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/
Ddsa-1024.x509.pem8 ch+0D7JrbqmR1w5S3VBtTnONLiBYnaz1Ri3Pfiw5FHKfJcfFcQopIOLJwfdBmY4b
/cts/tests/tests/util/src/android/util/cts/
DXmlEncodingTest.java213 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()
DXmlTest.java131 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/
DBleCocServerService.java744 for (BluetoothGattCharacteristic ch : service.getCharacteristics()) { in dumpService()
745 Log.d(TAG, indent + " UUID: " + ch.getUuid()); in dumpService()
747 + String.format("0x%02X", ch.getProperties())); in dumpService()
749 + String.format("0x%02X", ch.getPermissions())); in dumpService()
751 for (BluetoothGattDescriptor d : ch.getDescriptors()) { in dumpService()
DBleServerService.java1289 for (BluetoothGattCharacteristic ch : service.getCharacteristics()) { in dumpService()
1290 Log.d(TAG, indent + " UUID: " + ch.getUuid()); in dumpService()
1291 Log.d(TAG, indent + " properties: " + String.format("0x%02X", ch.getProperties())); in dumpService()
1292 … Log.d(TAG, indent + " permissions: " + String.format("0x%02X", ch.getPermissions())); in dumpService()
1294 for (BluetoothGattDescriptor d : ch.getDescriptors()) { in dumpService()
/cts/apps/CameraITS/pymodules/its/
Dimage.py792 ch = img.reshape(h*w*chans)[i::chans].reshape(h,w)
793 ch = ch.reshape(h,w/f,f).mean(2).reshape(h,w/f)
794 ch = ch.T.reshape(w/f,h/f,f).mean(2).T.reshape(h/f,w/f)
795 chs.append(ch.reshape(h*w/(f*f)))
Ddevice.py248 ch = self.sock.recv(1)
249 if len(ch) == 0:
252 chars.append(ch)
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DCodecTest.java64 int ch; in printCpuInfo() local
69 while ( ( ch = in.read() ) != -1 ) { in printCpuInfo()
70 sb.append((char) ch); in printCpuInfo()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java2257 Camera.CameraInfo info, CameraCharacteristics ch) { in matchParametersToCharacteritics() argument
2258 Integer facing = ch.get(CameraCharacteristics.LENS_FACING); in matchParametersToCharacteritics()
2275 Integer orientation = ch.get(CameraCharacteristics.SENSOR_ORIENTATION); in matchParametersToCharacteritics()
2280 StaticMetadata staticMeta = new StaticMetadata(ch); in matchParametersToCharacteritics()
2341 for (CameraCharacteristics ch : chars) { in testLegacyCameraDeviceParity()
2342 if (matchParametersToCharacteritics(legacyParams, legacyInfo, ch)) { in testLegacyCameraDeviceParity()
2343 found = ch; in testLegacyCameraDeviceParity()
/cts/tests/tests/media/assets/hls_variant/387360/
D08.ts103 …���e��{��b�M��� ��!�n��e!��W��!��u�>��LhuA�IP2�; �8���� �܏~�'�M���ch�G�m��b��m��-�BG��…
128 …e��k@����V������ׁ��~.wE��-�~�l?�:M�0��,Ve�푑on�㊷��_] �9]c0�ȏR@�Wҽ~�ch�Lk\�g�Fɣ�>�_/H��2�…
/cts/tests/tests/media/assets/hls_variant/344388/
D04.ts123 �Wch�Z�V���%}䯵�����0j���{�ݲ7$����}
165 &~6h��W����\5�`���OM���{|`UU_�T�,W@��� ��N��!"/}"U�H�jPo�甽%��ج��G�M�x.L�o��ch��o���عb���…

1234