/test/dittosuite/src/ |
D | shared_variables.cpp | 39 std::size_t key = variables_.size(); in GetKey() local 40 keys_[thread_ids.back()].insert({variable_name, key}); in GetKey() 42 return key; in GetKey() 45 SharedVariables::Variant SharedVariables::Get(int key) { in Get() argument 46 if (key < 0 || static_cast<unsigned int>(key) >= variables_.size()) { in Get() 49 return variables_[key]; in Get() 57 void SharedVariables::Set(int key, const SharedVariables::Variant& value) { in Set() argument 58 if (key < 0 || static_cast<unsigned int>(key) >= variables_.size()) { in Set() 61 variables_[key] = value; in Set()
|
/test/vts-testcase/kernel/encryption/ |
D | Keymaster.cpp | 88 std::string* key) { in generateKey() argument 101 if (keyMetadata.key.blob == std::nullopt) { in generateKey() 105 if (key) in generateKey() 106 *key = in generateKey() 107 std::string(keyMetadata.key.blob->begin(), keyMetadata.key.blob->end()); in generateKey() 109 zeroize_vector(keyMetadata.key.blob.value()); in generateKey() 114 const std::string& key, std::string* outKeyBlob) { in importKey() argument 121 std::vector<uint8_t> key_vec(key.begin(), key.end()); in importKey() 128 if (keyMetadata.key.blob == std::nullopt) { in importKey() 135 std::string(keyMetadata.key.blob->begin(), keyMetadata.key.blob->end()); in importKey() [all …]
|
D | adiantum.cpp | 91 const uint8_t key[kChaChaKeySize], in ChaChaInitState() 99 state[4 + i] = get_unaligned_le32(&key[i * sizeof(__le32)]); in ChaChaInitState() 132 static void XChaCha(const uint8_t key[kXChaChaKeySize], in XChaCha() 141 ChaChaInitState(state, key, nonce); in XChaCha() 177 static void XChaCha12(const uint8_t key[kXChaChaKeySize], in XChaCha12() 180 XChaCha(key, nonce, src, dst, nbytes, 12); in XChaCha12() 187 static void Poly1305(const uint8_t key[kPoly1305KeySize], const uint8_t *msg, in Poly1305() 196 memcpy(mac_key, key, kPoly1305KeySize); in Poly1305() 214 static uint64_t NH_Pass(const uint32_t *key, const uint8_t *msg, int msglen) { in NH_Pass() argument 219 sum += NH_Add(msg + 0, key[0]) * NH_Add(msg + 8, key[2]); in NH_Pass() [all …]
|
D | vts_kernel_encryption.h | 30 bool Encrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Encrypt() argument 32 if (key.size() != keysize()) { in Encrypt() 36 return DoCrypt(key.data(), iv, src, dst, nbytes, true); in Encrypt() 38 bool Decrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Decrypt() argument 40 if (key.size() != keysize()) { in Decrypt() 44 return DoCrypt(key.data(), iv, src, dst, nbytes, false); in Decrypt() 50 virtual bool DoCrypt(const uint8_t *key, const uint8_t *iv, 67 bool DoCrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src, 84 bool DoCrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
|
D | metadata_encryption_tests.cpp | 147 const std::vector<uint8_t> &key, bool is_wrapped_key); 148 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher); 189 const std::vector<uint8_t> &key, in CreateTestDevice() argument 194 cipher.c_str(), BytesToHex(key), in CreateTestDevice() 218 << "\", key=" << BytesToHex(key) in CreateTestDevice() 223 void DmDefaultKeyTest::VerifyDecryption(const std::vector<uint8_t> &key, in VerifyDecryption() argument 245 ASSERT_TRUE(cipher.Encrypt(key, reinterpret_cast<const uint8_t *>(iv.get()), in VerifyDecryption() 260 std::vector<uint8_t> key = GenerateTestKey(cipher.keysize()); in DoTest() local 262 if (!CreateTestDevice(cipher_string, key, false)) return; in DoTest() 264 VerifyDecryption(key, cipher); in DoTest()
|
D | Keymaster.h | 48 bool generateKey(const km::AuthorizationSet& inParams, std::string* key); 51 bool exportKey(const std::string& kmKey, std::string* key); 53 bool importKey(const km::AuthorizationSet& inParams, const std::string& key,
|
D | aes_256_xts.cpp | 52 bool Aes256XtsCipher::DoCrypt(const uint8_t key[kAes256XtsKeySize], in DoCrypt() 77 key + kAes256KeySize, nullptr) != 1) { in DoCrypt() 94 if (EVP_CipherInit_ex(ctx.get(), EVP_aes_256_ecb(), nullptr, key, nullptr, in DoCrypt()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
D | DynamicConfigFileReader.java | 44 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument 48 return config.getValue(key); in getValueFromConfig() 59 public static List<String> getValuesFromConfig(File file, String key) in getValuesFromConfig() argument 63 return config.getValues(key); in getValuesFromConfig() 74 public static String getValueFromConfig(IBuildInfo info, String moduleName, String key) in getValueFromConfig() argument 82 return getValueFromConfig(dynamicConfig, key); in getValueFromConfig() 93 public static List<String> getValuesFromConfig(IBuildInfo info, String moduleName, String key) in getValuesFromConfig() argument 107 return getValuesFromConfig(dynamicConfig, key); in getValuesFromConfig() 119 String key) in getValuesFromConfig() argument 127 return getValuesFromConfig(dynamicConfig, key); in getValuesFromConfig()
|
D | CollectorUtil.java | 138 String key = m.group(1); in reformatJsonString() local 140 if (!jsonMap.containsKey(key)) { in reformatJsonString() 141 jsonMap.put(key, new ArrayList<String>()); in reformatJsonString() 143 jsonMap.get(key).add(value); in reformatJsonString() 148 for (String key : jsonMap.keySet()) { in reformatJsonString() 154 newJsonBuilder.append("\"").append(key).append("\":["); in reformatJsonString() 156 for (String stream : jsonMap.get(key)) { in reformatJsonString()
|
/test/catbox/report/src/com/android/catbox/result/ |
D | JsonResultReporter.java | 228 for (String key : metrics.keySet()) { in writeAllMetrics() 230 double value = Double.parseDouble(metrics.get(key)); in writeAllMetrics() 231 reportLog.addValue(key, value, ResultType.NEUTRAL, ResultUnit.NONE); in writeAllMetrics() 237 metrics.get(key), key)); in writeAllMetrics() 253 for (String key : mReportMetricKeyMap.keySet()) { in writeMetricsForGivenKeys() 254 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys() 255 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys() 258 …estNameMap != null && mExcludeMetricTestNameMap.get(key) !=null && mExcludeMetricTestNameMap.get(k… in writeMetricsForGivenKeys() 259 …AndDisplay(LogLevel.WARN, String.format("Excluding %s metric key from %s test.", key, streamName)); in writeMetricsForGivenKeys() 263 double value = Double.parseDouble(metrics.get(key)); in writeMetricsForGivenKeys() [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/ |
D | TestMetricsJsonResultReporter.java | 197 for (String key : metricsMap.keySet()) { in writeAllMetrics() 199 double value = Double.parseDouble(metricsMap.get(key)); in writeAllMetrics() 200 reportLog.addValue(key, value, ResultType.NEUTRAL, ResultUnit.NONE); in writeAllMetrics() 206 metricsMap.get(key), key)); in writeAllMetrics() 222 for (String key : mReportMetricKeyMap.keySet()) { in writeMetricsForGivenKeys() 223 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys() 224 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys() 229 double value = Double.parseDouble(metricsMap.get(key)); in writeMetricsForGivenKeys() 231 mReportMetricKeyMap.get(key), value, ResultType.NEUTRAL, ResultUnit.NONE); in writeMetricsForGivenKeys() 237 metricsMap.get(key), key)); in writeMetricsForGivenKeys()
|
D | CertificationResultXml.java | 146 for (String key : build.getBuildAttributes().keySet()) { in addBuildInfoAttributes() 147 if (key.startsWith(getAttributesPrefix())) { in addBuildInfoAttributes() 148 String newKey = key.split(getAttributesPrefix())[1]; in addBuildInfoAttributes() 149 serializer.attribute(NS, newKey, build.getBuildAttributes().get(key)); in addBuildInfoAttributes() 162 String key = parser.getAttributeName(index); in parseBuildInfoAttributes() local 163 String value = parser.getAttributeValue(NS, key); in parseBuildInfoAttributes() 164 context.addInvocationAttribute(key, value); in parseBuildInfoAttributes()
|
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/ |
D | WatchdogEventLogger.java | 39 String key = PROP_PREFIX + type; in resetProperties() local 40 assertThat(mDevice.setProperty(key, "")).isTrue(); in resetProperties() 42 assertThat(mDevice.setProperty(key + "." + attr, "")).isTrue(); in resetProperties() 59 String key = PROP_PREFIX + type + "." + attr; in matchProperty() local 60 String val = mDevice.getProperty(key); in matchProperty()
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | DynamicConfigHandler.java | 104 String key = keys.getString(i); in parseJsonToConfigMap() local 105 JSONArray jsonValues = configObject.getJSONObject(key).getJSONArray("configValues"); in parseJsonToConfigMap() 110 configMap.put(key, values); in parseJsonToConfigMap() 126 for (String key : configMap.keySet()) { in storeMergedConfigFile() 128 serializer.attribute(NS, DynamicConfig.KEY_ATTR, key); in storeMergedConfigFile() 129 for (String value : configMap.get(key)) { in storeMergedConfigFile()
|
D | DynamicConfigHostSide.java | 46 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument 49 List<String> singleValue = configMap.get(key); in getValueFromConfig()
|
D | UrlReplacement.java | 104 String key = parser.getAttributeValue(NS, URL_ATTR); in init() local 111 if (key != null && value != null) { in init() 112 urlReplacementMap.put(key, value); in init()
|
/test/catbox/report/src/com/android/catbox/util/ |
D | TestMetricsUtil.java | 104 String key = entry.getKey(); in storeTestMetrics() local 106 if (key.indexOf(mTestIterationSeparator) != -1 && in storeTestMetrics() 107 key.contains(testDescription.getClassName())) { in storeTestMetrics() 108 key = key.substring(0, key.indexOf(mTestIterationSeparator)); in storeTestMetrics() 109 key = CLASS_METHOD_JOINER.join(key, testDescription.getTestName()); in storeTestMetrics() 111 storedMetricsForThisTest.put(key, entry.getValue()); in storeTestMetrics()
|
/test/dittosuite/include/ditto/ |
D | shared_variables.h | 30 static Variant Get(int key); 32 static void Set(int key, const Variant& value);
|
/test/vts-testcase/vndk/golden/ |
D | extract_lsdump.py | 34 def __getattr__(self, key): argument 37 return self[key] 39 raise AttributeError('Failed to get attribute: %s' % key) 41 def __setattr__(self, key, value): argument 43 self[key] = value
|
/test/vts-testcase/kernel/api/bpf_native_test/ |
D | kern.c | 47 uint32_t key = 1; local 48 uint32_t* config = bpf_test_configuration_map_lookup_elem(&key);
|
/test/vts/vndk_utils/library/vtable/ |
D | vtable_dumper.py | 76 key = other.begin_addr 78 key = other 79 return self.begin_addr < key 253 for key in inv_table: 254 inv_table[key] = sorted(set(inv_table[key]))
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildHelper.java | 136 String key = (moduleId == null) ? "" : moduleId; in setBusinessLogicHostFile() local 137 mBuildInfo.setFile(BUSINESS_LOGIC_HOST_FILE + key, hostFile, in setBusinessLogicHostFile() 175 String key = (moduleId == null) ? "" : moduleId; in hasBusinessLogicHostFile() local 176 return mBuildInfo.getFile(BUSINESS_LOGIC_HOST_FILE + key) != null; in hasBusinessLogicHostFile() 195 String key = (moduleId == null) ? "" : moduleId; in getBusinessLogicHostFile() local 196 return mBuildInfo.getFile(BUSINESS_LOGIC_HOST_FILE + key); in getBusinessLogicHostFile()
|
/test/dittosuite/test/ |
D | shared_variables_test.cpp | 24 auto key = SharedVariables::GetKey(thread_ids, "variable_name"); in TEST() local 29 SharedVariables::Set(key, shared_variable); in TEST() 30 ASSERT_EQ(SharedVariables::Get(key), shared_variable); in TEST()
|
/test/vts-testcase/kernel/isa/ |
D | vts_kernel_isa_test.cpp | 26 const std::map<std::string, std::string>& configs, const std::string& key) { in get_config() argument 27 auto it = configs.find(key); in get_config()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | AcceleratorSpecificTestSupport.java | 70 static String getTestParameter(String key, String defaultValue) { in getTestParameter() argument 71 return InstrumentationRegistry.getArguments().getString(key, defaultValue); in getTestParameter() 74 static boolean getBooleanTestParameter(String key, boolean defaultValue) { in getBooleanTestParameter() argument 77 InstrumentationRegistry.getArguments().getString(key, "" + defaultValue)); in getBooleanTestParameter()
|