/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | splay.js | 73 var key; 75 key = GenerateKey(); 76 } while (splayTree.find(key) != null); 77 var payload = GeneratePayloadTree(kSplayTreePayloadDepth, String(key)); 78 splayTree.insert(key, payload); 79 return key; 115 var key = InsertNewNode(); 116 var greatest = splayTree.findGreatestLessThan(key); 117 if (greatest == null) splayTree.remove(key); 118 else splayTree.remove(greatest.key); [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
D | StaticMetadata.java | 387 Key<Float> key = CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE; in getMinimumFocusDistanceChecked() local 396 minFocusDistance = getValueFromKeyNonNull(key); in getMinimumFocusDistanceChecked() 398 minFocusDistance = mCharacteristics.get(key); in getMinimumFocusDistanceChecked() 405 checkTrueForKey(key, " minFocusDistance value shouldn't be negative", in getMinimumFocusDistanceChecked() 420 Key<Integer> key = CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION; in getFocusDistanceCalibrationChecked() local 421 Integer calibration = getValueFromKeyNonNull(key); in getFocusDistanceCalibrationChecked() 427 checkTrueForKey(key, " value is out of range" , in getFocusDistanceCalibrationChecked() 478 Key<int[]> key = CameraCharacteristics.CONTROL_AE_AVAILABLE_ANTIBANDING_MODES; in getAeAvailableAntiBandingModesChecked() local 479 int[] modes = getValueFromKeyNonNull(key); in getAeAvailableAntiBandingModesChecked() 485 checkTrueForKey(key, "mode value " + mode + " is out if range", in getAeAvailableAntiBandingModesChecked() [all …]
|
D | CameraErrorCollector.java | 637 CameraCharacteristics.Key<T> key) { in expectKeyValueNotNull() argument 639 T value = characteristics.get(key); in expectKeyValueNotNull() 641 addMessage("Key " + key.getName() + " shouldn't be null"); in expectKeyValueNotNull() 656 CaptureRequest.Key<T> key) { in expectKeyValueNotNull() argument 658 T value = request.get(key); in expectKeyValueNotNull() 660 addMessage("Key " + key.getName() + " shouldn't be null"); in expectKeyValueNotNull() 673 public <T> T expectKeyValueNotNull(Builder request, CaptureRequest.Key<T> key) { in expectKeyValueNotNull() argument 675 T value = request.get(key); in expectKeyValueNotNull() 677 addMessage("Key " + key.getName() + " shouldn't be null"); in expectKeyValueNotNull() 690 public <T> T expectKeyValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull() argument [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | KeyValueArgsParser.java | 32 String key = null; in parse() local 34 if (key == null) { in parse() 38 key = s; in parse() 40 map.put(key, s); in parse() 41 key = null; in parse() 44 if (key != null) { in parse()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | RSACipherTest.java | 43 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 49 PublicKey publicKey = key.getKeystoreBackedKeyPair().getPublic(); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 50 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 66 throw new RuntimeException("Failed for key " + key.getAlias(), e); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 76 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 82 PublicKey publicKey = key.getKeystoreBackedKeyPair().getPublic(); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 83 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate(); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 95 throw new RuntimeException("Failed for key " + key.getAlias(), e); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 104 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 110 PublicKey publicKey = key.getKeystoreBackedKeyPair().getPublic(); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() [all …]
|
D | MacTest.java | 214 SecretKey key = importDefaultKatKey(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() local 218 mac.init(key); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() 231 SecretKey key = importDefaultKatKey(algorithm); in testMacGeneratedForEmptyMessage() local 235 mac.init(key); in testMacGeneratedForEmptyMessage() 252 SecretKey key = importDefaultKatKey(algorithm); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() local 256 mac.init(key); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 260 assertMacVerifiesOneShot(algorithm, provider, key, message, macBytes); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 273 SecretKey key = getDefaultKatKey(algorithm); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() local 282 assertMacVerifiesOneShot(algorithm, key, message, macBytes); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() 296 SecretKey key = getDefaultKatKey(algorithm); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() local [all …]
|
D | TestUtils.java | 117 static int getKeySizeBits(Key key) { in getKeySizeBits() argument 118 if (key instanceof ECKey) { in getKeySizeBits() 119 return ((ECKey) key).getParams().getCurve().getField().getFieldSize(); in getKeySizeBits() 120 } else if (key instanceof RSAKey) { in getKeySizeBits() 121 return ((RSAKey) key).getModulus().bitLength(); in getKeySizeBits() 123 throw new IllegalArgumentException("Unsupported key type: " + key.getClass()); in getKeySizeBits() 177 private static void assertKeyMaterialExportable(Key key) { in assertKeyMaterialExportable() argument 178 if (key instanceof PublicKey) { in assertKeyMaterialExportable() 179 assertEquals("X.509", key.getFormat()); in assertKeyMaterialExportable() 180 } else if (key instanceof PrivateKey) { in assertKeyMaterialExportable() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorStats.java | 69 public synchronized void addValue(String key, Object value) { in addValue() argument 73 mValues.put(key, value); in addValue() 83 public synchronized void addSensorStats(String key, SensorStats stats) { in addSensorStats() argument 87 mSensorStats.put(key, stats); in addSensorStats() 102 public synchronized Object getValue(String key) { in getValue() argument 103 return mValues.get(key); in getValue() 118 String key = statsEntry.getKey() + DELIMITER + valueEntry.getKey(); in flatten() local 119 flattenedMap.put(key, valueEntry.getValue()); in flatten() 130 for (String key : getSortedKeys(flattened)) { in log() 131 Object value = flattened.get(key); in log() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | StaticMetadataCollectionTest.java | 158 String key = (String)keys.next(); in dumpJsonObjectAsCtsResult() local 159 if (obj.get(key) instanceof JSONObject) { in dumpJsonObjectAsCtsResult() 160 dumpJsonObjectAsCtsResult(name+"."+key, (JSONObject)obj.get(key)); in dumpJsonObjectAsCtsResult() 161 } else if (obj.get(key) instanceof JSONArray) { in dumpJsonObjectAsCtsResult() 162 dumpJsonArrayAsCtsResult(name+"."+key, (JSONArray)obj.get(key)); in dumpJsonObjectAsCtsResult() 163 } else if (!(obj.get(key) instanceof String)) { in dumpJsonObjectAsCtsResult() 164 dumpDoubleAsCtsResult(name+"."+key, in dumpJsonObjectAsCtsResult() 165 getJsonValueAsDouble(name+"."+key, obj.get(key))); in dumpJsonObjectAsCtsResult() 166 } else if (obj.get(key) instanceof String) { in dumpJsonObjectAsCtsResult() 167 dumpDoubleAsCtsResult(name+"."+key + " = " + (String)obj.get(key), 0); in dumpJsonObjectAsCtsResult() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmInfoRequestTest.java | 73 final String key = (String) keys.next(); in testPutAndGetKeys() local 74 request.put(key, attributes.get(key)); in testPutAndGetKeys() 80 final String key = (String) keys.next(); in testPutAndGetKeys() local 81 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 86 final String key = (String) infoKeys.next(); in testPutAndGetKeys() local 87 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys()
|
D | DrmInfoTest.java | 83 final String key = (String) keys.next(); in testPutAndGetKeys() local 84 info.put(key, attributes.get(key)); in testPutAndGetKeys() 90 final String key = (String) keys.next(); in testPutAndGetKeys() local 91 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys() 96 final String key = (String) infoKeys.next(); in testPutAndGetKeys() local 97 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 79 String key = "not-set"; in testDefaults() local 80 assertFalse(prefs.contains(key)); in testDefaults() 83 assertEquals(false, prefs.getBoolean(key, false)); in testDefaults() 84 assertEquals(true, prefs.getBoolean(key, true)); in testDefaults() 85 assertEquals(0.5f, prefs.getFloat(key, 0.5f)); in testDefaults() 86 assertEquals(123, prefs.getInt(key, 123)); in testDefaults() 87 assertEquals(999L, prefs.getLong(key, 999L)); in testDefaults() 88 assertEquals("default", prefs.getString(key, "default")); in testDefaults() 247 String key = new Integer(rand.nextInt(25)).toString(); in testTorture() local 252 Log.d(TAG, "Setting " + key + "=" + value); in testTorture() [all …]
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceTest.java | 111 String key = mPreference.getKey(); in testGetKey() local 113 assertEquals(keyExp, key); in testGetKey() 117 final String key = "key1"; in testSetKey() local 120 mPreference.setKey(key); in testSetKey() 123 assertEquals(key, mPreference.getKey()); in testSetKey() 184 String key = "" + Math.random(); in testPersistInt() local 185 mCustomPreference.setKey(key); in testPersistInt() 201 String key = "" + Math.random(); in testPersistBoolean() local 202 mCustomPreference.setKey(key); in testPersistBoolean() 219 String key = "" + Math.random(); in testPersistString() local [all …]
|
/cts/tools/signature-tools/src/signature/converter/dex/ |
D | FieldPool.java | 66 FieldKey key = new FieldKey(qualifiedClassName, fieldName); in getField() local 67 SigField sigField = fieldStore.get(key); in getField() 70 fieldStore.put(key, sigField); in getField() 77 FieldKey key = new FieldKey(qualifiedName, fieldName); in getEnumConstant() local 78 SigEnumConstant sigField = constantStore.get(key); in getEnumConstant() 81 constantStore.put(key, sigField); in getEnumConstant()
|
/cts/tests/sample/src/android/sample/ |
D | SampleDeviceActivity.java | 47 public void savePreference(String key, String value) { in savePreference() argument 51 editor.putString(key, value); in savePreference() 62 public String getPreference(String key) { in getPreference() argument 63 return mPreferences.getString(key, null); in getPreference()
|
/cts/tests/leanbackjank/src/android/cts/leanbackjank/ |
D | CtsJankTestBase.java | 34 private void printIntValueWithKey(String source, Bundle metrics, String key, in printIntValueWithKey() argument 36 if (!metrics.containsKey(key)) { in printIntValueWithKey() 39 mLog.printValue(source, key, metrics.getInt(key), resultType, resultUnit); in printIntValueWithKey() 42 private void printDoubleValueWithKey(String source, Bundle metrics, String key, in printDoubleValueWithKey() argument 44 if (!metrics.containsKey(key)) { in printDoubleValueWithKey() 47 mLog.printValue(source, key, metrics.getDouble(key), resultType, resultUnit); in printDoubleValueWithKey()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 165 Object key = array.keyAt(i); in compareMaps() local 166 Object expValue = map.get(key); in compareMaps() 169 + " at key " + key); in compareMaps() 274 String key = iterator1.next(); in compareBundles() local 275 int value1 = bundle1.getInt(key); in compareBundles() 276 if (bundle2.get(key) == null) { in compareBundles() 277 fail("Bad Bundle: bundle2 didn't have expected key " + key); in compareBundles() 279 int value2 = bundle2.getInt(key); in compareBundles() 281 fail("Bad Bundle: at key key " + key + " expected " + value1 + ", got " + value2); in compareBundles() 287 String key = iterator2.next(); in compareBundles() local [all …]
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | KeyboardTest.java | 36 for (final Key key : keyboard.getKeys()) { in testKeyOnPressedAndReleased() 37 if (!key.sticky) { in testKeyOnPressedAndReleased() 38 nonStickyKey = key; in testKeyOnPressedAndReleased() 42 for (final Key key : keyboard.getModifierKeys()) { in testKeyOnPressedAndReleased() 43 if (key.sticky) { in testKeyOnPressedAndReleased() 44 stickyKey = key; in testKeyOnPressedAndReleased()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | SensorOperation.java | 78 protected void addSensorStats(String key, SensorStats stats) { in addSensorStats() argument 79 getStats().addSensorStats(key, stats); in addSensorStats() 88 protected void addSensorStats(String key, int index, SensorStats stats) { in addSensorStats() argument 89 addSensorStats(String.format("%s_%03d", key, index), stats); in addSensorStats()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | ExtraAssistDataTest.java | 85 for (String key : extraExpectedBundle.keySet()) { in testAssistContentAndAssistData() 86 assertTrue("Assist bundle does not contain expected extra context key: " + key, in testAssistContentAndAssistData() 87 extraAssistBundle.containsKey(key)); in testAssistContentAndAssistData() 88 assertEquals("Extra assist context bundle values do not match for key: " + key, in testAssistContentAndAssistData() 89 extraExpectedBundle.get(key), extraAssistBundle.get(key)); in testAssistContentAndAssistData()
|
/cts/suite/cts/utils/ |
D | get_csv_report.py | 119 def addKV(self, key, value): argument 120 self.infoKeys.append(key) 135 def getInfoV(self, key): argument 136 if key in self.infoKeys: 137 return self.infoValues[self.infoKeys.index(key)] 166 for key in deviceResult.getResults().keys(): 167 if not key in tests: 168 tests.append(key) 199 for key in reportInfo: 200 f.write(key) [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerHardwareScanFilterActivity.java | 148 public void addItem(String key) { in addItem() argument 149 if (!mData.containsKey(key)) { in addItem() 150 mKeys.add(key); in addItem() 151 mData.put(key, new Integer(1)); in addItem() 153 mData.put(key, mData.get(key) + 1); in addItem() 164 String key = mKeys.get(pos); in getView() local 168 text1.setText(key); in getView()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 165 String key = "key"; in testCursorDoubleToContentValues() local 167 DatabaseUtils.cursorDoubleToContentValues(cursor, "age", contentValues, key); in testCursorDoubleToContentValues() 168 assertEquals(20.0, contentValues.getAsDouble(key)); in testCursorDoubleToContentValues() 170 DatabaseUtils.cursorDoubleToContentValues(cursor, "Error Field Name", contentValues, key); in testCursorDoubleToContentValues() 171 assertNull(contentValues.getAsDouble(key)); in testCursorDoubleToContentValues() 173 DatabaseUtils.cursorDoubleToContentValues(cursor, "name", contentValues, key); in testCursorDoubleToContentValues() 174 assertEquals(0.0, contentValues.getAsDouble(key)); in testCursorDoubleToContentValues() 203 String key = "key"; in testCursorIntToContentValues() local 205 DatabaseUtils.cursorIntToContentValues(cursor, "age", contentValues, key); in testCursorIntToContentValues() 206 assertEquals(Integer.valueOf(20), contentValues.getAsInteger(key)); in testCursorIntToContentValues() [all …]
|
/cts/tools/signature-tools/src/signature/model/util/ |
D | TypePool.java | 56 String key = packageName + "<>" + className; in getClass() local 57 SigClassDefinition clazz = classPool.get(key); in getClass() 60 classPool.put(key, clazz); in getClass() 116 TypeVariableKey key = new TypeVariableKey(name, genericDeclaration); in containsTypeVariableDefinition() local 117 return typeVariablePool.get(key) != null; in containsTypeVariableDefinition() 125 TypeVariableKey key = new TypeVariableKey(name, genericDeclaration); in getTypeVariable() local 126 SigTypeVariableDefinition sigTypeVariable = typeVariablePool.get(key); in getTypeVariable() 130 typeVariablePool.put(key, sigTypeVariable); in getTypeVariable()
|
/cts/common/host-side/xml-plan-generator/src/com/android/compatibility/common/xmlgenerator/ |
D | TestListParser.java | 52 final String key = parts[0]; in parse() local 55 if (!"suite".equals(key)) { in parse() 77 if (!"case".equals(key)) { in parse() 83 if (!"test".equals(key)) { in parse()
|