Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 13 of 13) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPackageUtil.java102 final char[] chars = new char[charCount]; in computePackageSignatureDigest() local
105 chars[i * 3] = HEX_ARRAY[byteHex >>> 4]; in computePackageSignatureDigest()
106 chars[i * 3 + 1] = HEX_ARRAY[byteHex & 0x0F]; in computePackageSignatureDigest()
108 chars[i * 3 + 2] = ':'; in computePackageSignatureDigest()
111 return new String(chars); in computePackageSignatureDigest()
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java1036 private JsonToken decodeNumber(char[] chars, int offset, int length) { in decodeNumber() argument
1038 int c = chars[i]; in decodeNumber()
1041 c = chars[++i]; in decodeNumber()
1045 c = chars[++i]; in decodeNumber()
1047 c = chars[++i]; in decodeNumber()
1049 c = chars[++i]; in decodeNumber()
1056 c = chars[++i]; in decodeNumber()
1058 c = chars[++i]; in decodeNumber()
1063 c = chars[++i]; in decodeNumber()
1065 c = chars[++i]; in decodeNumber()
[all …]
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java201 final char[] chars = str.toCharArray(); in fromHexToByteArray() local
202 final int charLength = chars.length; in fromHexToByteArray()
207 (byte)(((getIndex(chars[i * 2]) << 4) & 0xF0) in fromHexToByteArray()
208 | (getIndex(chars[i * 2 + 1]) & 0x0F)); in fromHexToByteArray()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java69 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in storeCameraInfo() local
72 storeCameraChars(chars); in storeCameraInfo()
222 private static Object getKeyValue(CameraCharacteristics chars, Object keyObj) { in getKeyValue() argument
223 return chars.get((CameraCharacteristics.Key) keyObj); in getKeyValue()
227 CameraCharacteristics chars) throws Exception { in storeEntry() argument
230 Object keyValue = getKeyValue(chars, keyObj); in storeEntry()
295 CameraCharacteristics chars) throws Exception { in storeArrayEntry() argument
298 Object keyValue = getKeyValue(chars, keyObj); in storeArrayEntry()
377 CameraCharacteristics chars) throws Exception { in storeCameraChars() argument
379 Field[] allFields = chars.getClass().getDeclaredFields(); in storeCameraChars()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyCharacterMapTest.java41 private final char[] chars = {'A', 'B', 'C'}; field in KeyCharacterMapTest
296 assertEquals('\0', mKeyCharacterMap.getMatch(getCharacterKeyCode('E'), chars)); in testGetMatch()
297 assertEquals('A', mKeyCharacterMap.getMatch(getCharacterKeyCode('A'), chars)); in testGetMatch()
298 assertEquals('B', mKeyCharacterMap.getMatch(getCharacterKeyCode('B'), chars)); in testGetMatch()
303 char[] chars = new char[] {Character.toLowerCase(oneChar)}; in getCharacterKeyCode() local
304 KeyEvent[] events = mKeyCharacterMap.getEvents(chars); in getCharacterKeyCode()
315 assertEquals('\0', mKeyCharacterMap.getMatch(1000, chars, 2)); in testGetMatchMetaState()
316 assertEquals('\0', mKeyCharacterMap.getMatch(10000, chars, 2)); in testGetMatchMetaState()
317 assertEquals('\0', mKeyCharacterMap.getMatch(getCharacterKeyCode('E'), chars)); in testGetMatchMetaState()
318 assertEquals('A', mKeyCharacterMap.getMatch(getCharacterKeyCode('A'), chars)); in testGetMatchMetaState()
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp535 explicit StaticInfo(ACameraMetadata* chars) : mChars(chars) {} in StaticInfo() argument
1284 ACameraMetadata* chars = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative() local
1296 mgr, cameraIdList->cameraIds[i], &chars); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1304 ret = ACameraMetadata_getAllTags(chars, &numTags, &tags); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1321 ret = ACameraMetadata_getConstEntry(chars, ACAMERA_REQUEST_AVAILABLE_CAPABILITIES, &entry); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1355 ret = ACameraMetadata_getConstEntry(chars, badTag, &entry); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1361 ACameraMetadata_free(chars); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1362 chars = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1367 if (chars) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1368 ACameraMetadata_free(chars); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
[all …]
/cts/apps/CameraITS/pymodules/its/
Ddevice.py239 chars = []
240 while len(chars) == 0 or chars[-1] != '\n':
245 chars.append(ch)
246 line = ''.join(chars)
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java156 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in checkCamera2Features() local
157 Integer hwLevel = chars.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in checkCamera2Features()
158 int[] capabilities = chars.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in checkCamera2Features()
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java277 String chars = getDevice().getProperty("ro.build.characteristics"); in testPerfetto() local
278 if (chars.contains("watch")) { in testPerfetto()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java483 CameraCharacteristics chars = (CameraCharacteristics) md; in serialize() local
484 List<CameraCharacteristics.Key<?>> charsKeys = chars.getKeys(); in serialize()
485 List<CaptureRequest.Key<?>> requestKeys = chars.getAvailableCaptureRequestKeys(); in serialize()
486 Set<String> physicalCamIds = chars.getPhysicalCameraIds(); in serialize()
DItsService.java360 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(camId); in openCameraDevice() local
361 Size maxYuvSize = ItsUtils.getYuvOutputSizes(chars)[0]; in openCameraDevice()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jar ... .lang.String) char c char[] chars int i String string int length public static java. ...
Dguava-testlib-20.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...