Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java305 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeEntry() argument
313 } else if (keyType == Float.class) { in serializeEntry()
320 } else if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class || in serializeEntry()
321 keyType == Boolean.class || keyType == String.class) { in serializeEntry()
323 } else if (keyType == Rational.class) { in serializeEntry()
325 } else if (keyType == Size.class) { in serializeEntry()
327 } else if (keyType == SizeF.class) { in serializeEntry()
329 } else if (keyType == Rect.class) { in serializeEntry()
331 } else if (keyType == Face.class) { in serializeEntry()
333 } else if (keyType == StreamConfigurationMap.class) { in serializeEntry()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java226 private void storeEntry(Type keyType, Object keyObj, in storeEntry() argument
235 if (keyType == int.class || keyType == Integer.class) { in storeEntry()
238 } else if (keyType == float.class || keyType == Float.class) { in storeEntry()
241 } else if (keyType == long.class || keyType == Long.class) { in storeEntry()
244 } else if (keyType == double.class || keyType == Double.class) { in storeEntry()
247 } else if (keyType == boolean.class || keyType == Boolean.class) { in storeEntry()
250 } else if (keyType == byte.class || keyType == Byte.class) { in storeEntry()
255 } else if (keyType == Rational.class) { in storeEntry()
258 } else if (keyType == Size.class) { in storeEntry()
261 } 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/tests/media/src/android/media/cts/
DMediaDrmClearkeyTest.java164 private String createJsonWebKeySet(Vector<String> keyIds, Vector<String> keys, int keyType) { in createJsonWebKeySet() argument
174 if (keyType == MediaDrm.KEY_TYPE_OFFLINE || keyType == MediaDrm.KEY_TYPE_RELEASE) { in createJsonWebKeySet()
187 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in getKeys() argument
191 keyType, null); in getKeys()
221 String jwkSet = createJsonWebKeySet(keyIds, keys, keyType); in getKeys()
237 final UUID drmSchemeUuid, int keyType) { in startDrm() argument
271 keyType, clearKeyIds); in startDrm()
275 keyType, clearKeyIds); in startDrm()
370 int videoWidth, int videoHeight, boolean scrambled, int keyType) throws Exception { in testClearKeyPlayback() argument
380 drm = startDrm(clearKeyIds, initDataType, drmSchemeUuid, keyType); in testClearKeyPlayback()
[all …]
DMediaPlayerDrmTestBase.java778 int keyType) throws Exception { in setupDrm() argument
786 switch (keyType) { in setupDrm()
817 keyTypeStr = (keyType == MediaDrm.KEY_TYPE_STREAMING) ? in setupDrm()
829 fail("setupDrm: Unexpected keyType " + keyType); in setupDrm()
833 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm()
836 keyType, in setupDrm()
849 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm()
853 mKeySetId = (keyType == MediaDrm.KEY_TYPE_OFFLINE) ? keySetId : null; in setupDrm()
/cts/tests/tests/text/src/android/text/method/cts/
DTextKeyListenerTest.java222 int keyType = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD).getKeyboardType(); in testPressKey() local
223 if (KeyCharacterMap.ALPHA == keyType in testPressKey()
224 || KeyCharacterMap.FULL == keyType) { in testPressKey()
226 } else if (KeyCharacterMap.NUMERIC == keyType) { in testPressKey()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp588 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener()
592 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener()
599 AMediaDrmKeyType keyType) { in acquireLicense() argument
609 "video/mp4" /*mimeType*/, keyType, in acquireLicense()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java105 private static PrivateKeyEntry getPrivateKey(String keyType) { in getPrivateKey() argument
115 PrivateKeyEntry entry = sPrivateKeys.get(keyType); in getPrivateKey()
117 if ("RSA".equals(keyType)) { in getPrivateKey()
119 } else if ("DH".equals(keyType)) { in getPrivateKey()
121 } else if ("DSA".equals(keyType)) { in getPrivateKey()
123 } else if ("EC".equals(keyType)) { in getPrivateKey()
126 throw new IllegalArgumentException("Unexpected key type " + keyType); in getPrivateKey()
128 sPrivateKeys.put(keyType, entry); in getPrivateKey()
387 public static void assertPrivateKey(String keyType, Key actual) in assertPrivateKey() argument
389 assertEquals(getPrivateKey(keyType).getPrivateKey(), actual); in assertPrivateKey()
[all …]
DKeyPairGeneratorTest.java1811 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
1816 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, in chooseEngineClientAlias() argument
1822 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
1827 public String chooseEngineServerAlias(String keyType, Principal[] issuers, in chooseEngineServerAlias() argument
1838 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
1843 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
DAndroidKeyStoreTest.java761 private PrivateKey generatePrivateKey(String keyType, byte[] fakeKey1) throws Exception { in generatePrivateKey() argument
762 KeyFactory kf = KeyFactory.getInstance(keyType); in generatePrivateKey()
1108 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, in assertPrivateKeyEntryEquals() argument
1110 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
/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