/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsSerializer.java | 305 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/ |
D | CameraDeviceInfo.java | 362 private void storeEntry(Type keyType, Object keyObj, in storeEntry() argument 371 if (keyType == int.class || keyType == Integer.class) { in storeEntry() 374 } else if (keyType == float.class || keyType == Float.class) { in storeEntry() 377 } else if (keyType == long.class || keyType == Long.class) { in storeEntry() 380 } else if (keyType == double.class || keyType == Double.class) { in storeEntry() 383 } else if (keyType == boolean.class || keyType == Boolean.class) { in storeEntry() 386 } else if (keyType == byte.class || keyType == Byte.class) { in storeEntry() 391 } else if (keyType == Rational.class) { in storeEntry() 394 } else if (keyType == Size.class) { in storeEntry() 397 } else if (keyType == SizeF.class) { in storeEntry() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmClearkeyTest.java | 178 Vector<String> keyIds, Vector<String> keys, int keyType) { in createJsonWebKeySet() argument 188 if (keyType == MediaDrm.KEY_TYPE_OFFLINE || keyType == MediaDrm.KEY_TYPE_RELEASE) { in createJsonWebKeySet() 203 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in retrieveKeys() argument 207 keyType, null); in retrieveKeys() 237 String jwkSet = createJsonWebKeySet(keyIds, keys, keyType); in retrieveKeys() 258 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in getKeys() argument 259 mKeySetId = retrieveKeys(drm, initDataType, sessionId, drmInitData, keyType, clearKeyIds); in getKeys() 263 final UUID drmSchemeUuid, int keyType) { in startDrm() argument 309 keyType, clearKeyIds); in startDrm() 313 keyType, clearKeyIds); in startDrm() [all …]
|
D | MediaPlayerDrmTestBase.java | 787 int keyType) throws Exception { in setupDrm() argument 795 switch (keyType) { in setupDrm() 826 keyTypeStr = (keyType == MediaDrm.KEY_TYPE_STREAMING) ? in setupDrm() 838 fail("setupDrm: Unexpected keyType " + keyType); in setupDrm() 842 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm() 845 keyType, in setupDrm() 858 (keyType == MediaDrm.KEY_TYPE_RELEASE) ? mKeySetId : null, in setupDrm() 862 mKeySetId = (keyType == MediaDrm.KEY_TYPE_OFFLINE) ? keySetId : null; in setupDrm()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TextKeyListenerTest.java | 222 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/ |
D | native-mediadrm-jni.cpp | 625 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener() 629 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener() 636 AMediaDrmKeyType keyType) { in acquireLicense() argument 646 "video/mp4" /*mimeType*/, keyType, in acquireLicense()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyStoreTest.java | 105 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() 388 public static void assertPrivateKey(String keyType, Key actual) in assertPrivateKey() argument 390 assertEquals(getPrivateKey(keyType).getPrivateKey(), actual); in assertPrivateKey() [all …]
|
D | KeyPairGeneratorTest.java | 1812 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { in chooseClientAlias() argument 1817 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, in chooseEngineClientAlias() argument 1823 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument 1828 public String chooseEngineServerAlias(String keyType, Principal[] issuers, in chooseEngineServerAlias() argument 1839 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument 1844 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
|
D | AndroidKeyStoreTest.java | 765 private PrivateKey generatePrivateKey(String keyType, byte[] fakeKey1) throws Exception { in generatePrivateKey() argument 766 KeyFactory kf = KeyFactory.getInstance(keyType); in generatePrivateKey() 1112 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, in assertPrivateKeyEntryEquals() argument 1114 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
|