Home
last modified time | relevance | path

Searched refs:keyType (Results 1 – 15 of 15) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java320 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeEntry() argument
322 return serializeEntry(keyType, keyObj, getKeyValue(md, keyObj)); in serializeEntry()
326 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, Object keyValue) in serializeEntry() argument
333 } else if (keyType == Float.class) { in serializeEntry()
340 } else if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class || in serializeEntry()
341 keyType == Boolean.class || keyType == String.class) { in serializeEntry()
343 } else if (keyType == Rational.class) { in serializeEntry()
345 } else if (keyType == Size.class) { in serializeEntry()
347 } else if (keyType == SizeF.class) { in serializeEntry()
349 } else if (keyType == Rect.class) { in serializeEntry()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java412 private void storeEntry(Type keyType, Object keyObj, in storeEntry() argument
421 if (keyType == int.class || keyType == Integer.class) { in storeEntry()
424 } else if (keyType == float.class || keyType == Float.class) { in storeEntry()
427 } else if (keyType == long.class || keyType == Long.class) { in storeEntry()
430 } else if (keyType == double.class || keyType == Double.class) { in storeEntry()
433 } else if (keyType == boolean.class || keyType == Boolean.class) { in storeEntry()
436 } else if (keyType == byte.class || keyType == Byte.class) { in storeEntry()
441 } else if (keyType == Rational.class) { in storeEntry()
444 } else if (keyType == Size.class) { in storeEntry()
447 } else if (keyType == SizeF.class) { in storeEntry()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java460 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) { in serializeEntry() argument
467 } else if (keyType == Float.class) { in serializeEntry()
474 } else if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class || in serializeEntry()
475 keyType == Boolean.class || keyType == String.class) { in serializeEntry()
477 } else if (keyType == Rational.class) { in serializeEntry()
479 } else if (keyType == Size.class) { in serializeEntry()
481 } else if (keyType == SizeF.class) { in serializeEntry()
483 } else if (keyType == Rect.class) { in serializeEntry()
485 } else if (keyType == Face.class) { in serializeEntry()
487 } else if (keyType == StreamConfigurationMap.class) { in serializeEntry()
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DKeyRequester.java59 int keyType, in KeyRequester() argument
64 this(drm, sessionId, keyType, mediaType, emeInitData, initialServerUrl, WIDEVINE_UUID); in KeyRequester()
70 int keyType, in KeyRequester() argument
78 mKeyType = keyType; in KeyRequester()
263 public void updateKeyType(int keyType) { in updateKeyType() argument
264 mKeyType = keyType; in updateKeyType()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderDrmTestBase.java85 int keyType) { in createJsonWebKeySet() argument
94 if (keyType == MediaDrm.KEY_TYPE_OFFLINE || keyType == MediaDrm.KEY_TYPE_RELEASE) { in createJsonWebKeySet()
103 byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in retrieveKeys() argument
106 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, keyType, null); in retrieveKeys()
135 String jwkSet = createJsonWebKeySet(keyIds, keys, keyType); in retrieveKeys()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmClearkeyTest.java198 Vector<String> keyIds, Vector<String> keys, int keyType) { in createJsonWebKeySet() argument
208 if (keyType == MediaDrm.KEY_TYPE_OFFLINE || keyType == MediaDrm.KEY_TYPE_RELEASE) { in createJsonWebKeySet()
223 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in retrieveKeys() argument
227 keyType, null); in retrieveKeys()
257 String jwkSet = createJsonWebKeySet(keyIds, keys, keyType); in retrieveKeys()
278 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in getKeys() argument
279 mKeySetId = retrieveKeys(drm, initDataType, sessionId, drmInitData, keyType, clearKeyIds); in getKeys()
283 final UUID drmSchemeUuid, int keyType) { in startDrm() argument
329 keyType, clearKeyIds); in startDrm()
333 keyType, clearKeyIds); in startDrm()
[all …]
DMediaPlayerDrmTestBase.java791 int keyType) throws Exception { in setupDrm() argument
799 switch (keyType) { in setupDrm()
830 keyTypeStr = (keyType == MediaDrm.KEY_TYPE_STREAMING) ? in setupDrm()
842 fail("setupDrm: Unexpected keyType " + keyType); in setupDrm()
846 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm()
849 keyType, in setupDrm()
862 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm()
866 mKeySetId = (keyType == MediaDrm.KEY_TYPE_OFFLINE) ? keySetId : null; in setupDrm()
/cts/tests/tests/text/src/android/text/method/cts/
DTextKeyListenerTest.java220 int keyType = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD).getKeyboardType(); in testPressKey() local
221 if (KeyCharacterMap.ALPHA == keyType in testPressKey()
222 || KeyCharacterMap.FULL == keyType) { in testPressKey()
224 } else if (KeyCharacterMap.NUMERIC == keyType) { in testPressKey()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java314 private static boolean isBuildWithKeyType(String keyType) { in isBuildWithKeyType() argument
316 if (keyType.equals(tag.trim())) { in isBuildWithKeyType()
/cts/tests/tests/media/drmframework/jni/
Dnative-mediadrm-jni.cpp627 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener()
631 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener()
638 AMediaDrmKeyType keyType) { in acquireLicense() argument
648 "video/mp4" /*mimeType*/, keyType, in acquireLicense()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java440 public String chooseServerAlias(String keyType, in chooseServerAlias() argument
471 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
477 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20230/src/android/security/cts/CVE_2022_20230/
DDeviceTest.java317 KeyFactory kf = KeyFactory.getInstance(mContext.getString(R.string.keyType)); in testCVE_2022_20230()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java139 private static PrivateKeyEntry getPrivateKey(String keyType) { in getPrivateKey() argument
149 PrivateKeyEntry entry = sPrivateKeys.get(keyType); in getPrivateKey()
151 if ("RSA".equals(keyType)) { in getPrivateKey()
153 } else if ("DH".equals(keyType)) { in getPrivateKey()
155 } else if ("DSA".equals(keyType)) { in getPrivateKey()
157 } else if ("EC".equals(keyType)) { in getPrivateKey()
160 throw new IllegalArgumentException("Unexpected key type " + keyType); in getPrivateKey()
162 sPrivateKeys.put(keyType, entry); in getPrivateKey()
422 public static void assertPrivateKey(String keyType, Key actual) in assertPrivateKey() argument
424 assertEquals(getPrivateKey(keyType).getPrivateKey(), actual); in assertPrivateKey()
[all …]
DKeyPairGeneratorTest.java2060 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
2065 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, in chooseEngineClientAlias() argument
2071 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
2076 public String chooseEngineServerAlias(String keyType, Principal[] issuers, in chooseEngineServerAlias() argument
2087 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
2092 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
DAndroidKeyStoreTest.java786 private PrivateKey generatePrivateKey(String keyType, byte[] fakeKey1) throws Exception { in generatePrivateKey() argument
787 KeyFactory kf = KeyFactory.getInstance(keyType); in generatePrivateKey()
1161 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, in assertPrivateKeyEntryEquals() argument
1163 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()