Home
last modified time | relevance | path

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

/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java105 CharSequence chars = null; field in RegexUtils.TimeoutCharSequence
107 TimeoutCharSequence(CharSequence chars, long timeout) { in TimeoutCharSequence() argument
108 this.chars = chars; in TimeoutCharSequence()
118 return chars.charAt(index); in charAt()
123 return chars.length(); in length()
128 return new TimeoutCharSequence(chars.subSequence(start, end), in subSequence()
134 return chars.toString(); in toString()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp53 inline void operator()(ACameraMetadata* chars) const { ACameraMetadata_free(chars); } in operator ()()
690 explicit StaticInfo(ACameraMetadata* chars) : mChars(chars) {} in StaticInfo() argument
954 ACameraMetadata* chars; in getCameraChars() local
956 mCameraManager, mCameraIdList->cameraIds[idx], &chars); in getCameraChars()
961 return chars; in getCameraChars()
970 ACameraMetadata* chars; in getCameraChars() local
971 camera_status_t ret = ACameraManager_getCameraCharacteristics(mCameraManager, id, &chars); in getCameraChars()
976 return chars; in getCameraChars()
1743 ACameraMetadata* chars = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative() local
1756 mgr, cameraIdList->cameraIds[i], &chars); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
[all …]
/cts/tests/tests/content/jni/
DNativeCursorWindow.cpp79 const char* chars = env->GetStringUTFChars(filename, NULL); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd() local
81 ALOGI("opening %s", chars); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
85 int fd = open(chars, O_CREAT | O_RDWR | O_CLOEXEC, 0700); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
89 ALOGE("open(%s) failed: %d", chars, errno); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
97 ALOGE("mmap(%s) failed: %d", chars, errno); in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/
DModuleDetector.java94 final char[] chars = new char[charCount]; in getSignatureDigest() local
97 chars[i * 3] = HEX_ARRAY[byteHex >>> 4]; in getSignatureDigest()
98 chars[i * 3 + 1] = HEX_ARRAY[byteHex & 0x0F]; in getSignatureDigest()
100 chars[i * 3 + 2] = ':'; in getSignatureDigest()
104 String ret = new String(chars); in getSignatureDigest()
/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java134 final char[] chars = new char[charCount]; in computePackageSignatureDigest() local
137 chars[i * 3] = HEX_ARRAY[byteHex >>> 4]; in computePackageSignatureDigest()
138 chars[i * 3 + 1] = HEX_ARRAY[byteHex & 0x0F]; in computePackageSignatureDigest()
140 chars[i * 3 + 2] = ':'; in computePackageSignatureDigest()
143 return new String(chars); in computePackageSignatureDigest()
/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.java42 private final char[] chars = {'A', 'B', 'C'}; field in KeyCharacterMapTest
297 assertEquals('\0', mKeyCharacterMap.getMatch(getCharacterKeyCode('E'), chars)); in testGetMatch()
298 assertEquals('A', mKeyCharacterMap.getMatch(getCharacterKeyCode('A'), chars)); in testGetMatch()
299 assertEquals('B', mKeyCharacterMap.getMatch(getCharacterKeyCode('B'), chars)); in testGetMatch()
304 char[] chars = new char[] {Character.toLowerCase(oneChar)}; in getCharacterKeyCode() local
305 KeyEvent[] events = mKeyCharacterMap.getEvents(chars); in getCharacterKeyCode()
316 assertEquals('\0', mKeyCharacterMap.getMatch(1000, chars, 2)); in testGetMatchMetaState()
317 assertEquals('\0', mKeyCharacterMap.getMatch(10000, chars, 2)); in testGetMatchMetaState()
318 assertEquals('\0', mKeyCharacterMap.getMatch(getCharacterKeyCode('E'), chars)); in testGetMatchMetaState()
319 assertEquals('A', mKeyCharacterMap.getMatch(getCharacterKeyCode('A'), chars)); in testGetMatchMetaState()
[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/tests/tests/identity/src/android/security/identity/cts/
DHkdfTest.java42 String chars = "0123456789abcdef"; in hexEncode() local
47 result.append(chars.charAt(val / 16)); in hexEncode()
48 result.append(chars.charAt(val % 16)); in hexEncode()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java175 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in checkCamera2Features() local
176 Integer hwLevel = chars.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in checkCamera2Features()
177 int[] capabilities = chars.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in checkCamera2Features()
202 Boolean flashAvailable = chars.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in checkCamera2Features()
/cts/apps/CameraITS/pymodules/its/
Ddevice.py248 chars = []
249 while len(chars) == 0 or chars[-1] != '\n':
254 chars.append(ch)
255 line = ''.join(chars)
/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.java375 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(camId); in openCameraDevice() local
377 chars, ImageFormat.YUV_420_888); in openCameraDevice()
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java294 String chars = getDevice().getProperty("ro.build.characteristics"); in testPerfetto() local
295 if (chars.contains("watch")) { in testPerfetto()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java524 final int newDisplayCount = 1 + (int) value.chars().filter(ch -> ch == ';').count(); in set()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java1989 final char[] chars = { 'a', 'b', 'a', 'b' };
1993 paint.getTextRunAdvances(chars, 0, 4, 0, 4, false /* isRtl */, buffer, 0), 0.0f);
2001 paint.getTextRunAdvances(chars, 1, 2, 1, 2, false /* isRtl */, buffer, 5), 0.0f);
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java2305 ArrayList<CameraCharacteristics> chars = new ArrayList<> (mCharacteristics); in testLegacyCameraDeviceParity() local
2326 for (CameraCharacteristics ch : chars) { in testLegacyCameraDeviceParity()
2334 chars.remove(found); in testLegacyCameraDeviceParity()