Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 117) sorted by relevance

12345

/test/framework/harnesses/host_controller/build/
Dbuild_info.py29 def __setitem__(self, key, value): argument
39 if key in self and value != self[key]:
40 logging.info("Removing pre-fetched item: %s", self[key])
42 if os.path.isfile(self[key]):
43 os.remove(self[key])
44 elif os.path.isdir(self[key]):
45 shutil.rmtree(self[key])
47 logging.error("%s is not found", self[key])
51 super(BuildInfo, self).__setitem__(key, value)
69 for key in dict_keys:
[all …]
/test/vts/utils/python/instrumentation/
Dtest_framework_instrumentation_categories.py36 def Add(self, key, value): argument
44 if not key or not key[0].isalpha():
47 key, value)
50 if hasattr(self, key):
52 'Overwriting with %s.', key, getattr(self,key), value)
54 setattr(self, key, value)
/test/vts-testcase/kernel/encryption/
Dadiantum.cpp91 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 …]
DKeymaster.cpp55 std::string* key) { in generateKey() argument
61 if (key) in generateKey()
62 key->assign(reinterpret_cast<const char*>(&keyBlob[0]), keyBlob.size()); in generateKey()
78 km::KeyFormat format, const std::string& key, in importKey() argument
91 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(key.data())), in importKey()
92 static_cast<size_t>(key.size())); in importKey()
107 bool Keymaster::exportKey(const std::string& kmKey, std::string* key) { in exportKey() argument
115 if (key) in exportKey()
116 key->assign(reinterpret_cast<const char*>(&exportedKeyBlob[0]), in exportKey()
132 bool Keymaster::deleteKey(const std::string& key) { in deleteKey() argument
[all …]
Dmetadata_encryption_tests.cpp149 const std::vector<uint8_t> &key, bool is_wrapped_key);
150 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher);
188 const std::vector<uint8_t> &key, in CreateTestDevice() argument
193 cipher.c_str(), BytesToHex(key), in CreateTestDevice()
217 << "\", key=" << BytesToHex(key) in CreateTestDevice()
222 void DmDefaultKeyTest::VerifyDecryption(const std::vector<uint8_t> &key, in VerifyDecryption() argument
244 ASSERT_TRUE(cipher.Encrypt(key, reinterpret_cast<const uint8_t *>(iv.get()), in VerifyDecryption()
259 std::vector<uint8_t> key = GenerateTestKey(cipher.keysize()); in DoTest() local
261 if (!CreateTestDevice(cipher_string, key, false)) return; in DoTest()
263 VerifyDecryption(key, cipher); in DoTest()
Dvts_kernel_encryption.h30 bool Encrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Encrypt() argument
32 if (key.size() != keysize()) { in Encrypt()
36 return DoEncrypt(key.data(), iv, src, dst, nbytes); in Encrypt()
38 virtual bool DoEncrypt(const uint8_t *key, const uint8_t *iv,
53 bool DoEncrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
68 bool DoEncrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
/test/framework/harnesses/host_controller/acloud/
Dacloud_config.py52 for key in REQUIRED_KEYS:
53 if key not in self.configs:
55 'set for acloud config' % key)
88 key = line[:idx]
91 self.configs[key] = val
102 for key in self.configs:
103 f.write(key + separator + '"%s"' % self.configs[key])
/test/framework/harnesses/host_controller/utils/ipc/
Dshared_dict.py41 def __getitem__(self, key): argument
50 if key not in self._dict:
51 self._dict[key] = common._DEVICE_STATUS_DICT["unknown"]
52 return self._dict[key]
54 def __setitem__(self, key, value): argument
64 self._dict[key] = common._DEVICE_STATUS_DICT["unknown"]
66 self._dict[key] = value
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DDynamicConfigFileReader.java42 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument
46 return config.getValue(key); in getValueFromConfig()
57 public static List<String> getValuesFromConfig(File file, String key) in getValuesFromConfig() argument
61 return config.getValues(key); in getValuesFromConfig()
72 public static String getValueFromConfig(IBuildInfo info, String moduleName, String key) in getValueFromConfig() argument
80 return getValueFromConfig(dynamicConfig, key); in getValueFromConfig()
91 public static List<String> getValuesFromConfig(IBuildInfo info, String moduleName, String key) in getValuesFromConfig() argument
99 return getValuesFromConfig(dynamicConfig, key); in getValuesFromConfig()
DCollectorUtil.java156 String key = m.group(1); in reformatJsonString() local
158 if (!jsonMap.containsKey(key)) { in reformatJsonString()
159 jsonMap.put(key, new ArrayList<String>()); in reformatJsonString()
161 jsonMap.get(key).add(value); in reformatJsonString()
166 for (String key : jsonMap.keySet()) { in reformatJsonString()
172 newJsonBuilder.append("\"").append(key).append("\":["); in reformatJsonString()
174 for (String stream : jsonMap.get(key)) { in reformatJsonString()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DKeyValueArgsParser.java32 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()
DDynamicConfig.java64 public String getValue(String key) { in getValue() argument
66 List<String> singleValue = mDynamicConfigMap.get(key); in getValue()
74 public List<String> getValues(String key) { in getValues() argument
76 return mDynamicConfigMap.get(key); in getValues()
134 String key = parser.getAttributeValue(NS, KEY_ATTR); in createConfigMap() local
142 if (key != null && !key.isEmpty()) { in createConfigMap()
143 dynamicConfigMap.put(key, valueList); in createConfigMap()
/test/vti/dashboard/src/test/java/com/android/vts/entity/
DTestAcknowledgmentEntityTest.java56 Key key = KeyFactory.createKey(TestEntity.KIND, "test"); in testEntitySerialization() local
66 new TestAcknowledgmentEntity(key, user, branches, devices, testCaseNames, note); in testEntitySerialization()
70 Assert.assertEquals(key, e.getProperty(TestAcknowledgmentEntity.TEST_KEY)); in testEntitySerialization()
85 Assert.assertEquals(key, deserialized.test); in testEntitySerialization()
96 Key key = KeyFactory.createKey(TestEntity.KIND, "test"); in testEntitySerializationWithNulls() local
99 new TestAcknowledgmentEntity(key, user, null, null, null, null); in testEntitySerializationWithNulls()
103 Assert.assertEquals(key, e.getProperty(TestAcknowledgmentEntity.TEST_KEY)); in testEntitySerializationWithNulls()
112 Assert.assertEquals(key, deserialized.test); in testEntitySerializationWithNulls()
123 Key key = KeyFactory.createKey(TestEntity.KIND, "test"); in testJsonSerialization() local
133 new TestAcknowledgmentEntity(key, user, branches, devices, testCaseNames, note); in testJsonSerialization()
[all …]
/test/vti/test_serving/gae/frontend/src/app/shared/
Ddict.pipe.ts22 for (const key in value) { constant
23 if (value.hasOwnProperty(key)) {
24 dict.push({key: key, value: value[key]});
/test/vti/test_serving/gae/webapp/src/scheduler/
Dschedule_worker_test.py66 for key in build_dict:
67 build_dict[key].put()
108 for key in build_dict:
109 build_dict[key].put()
151 for key in build_dict:
152 build_dict[key].put()
172 jobs.sort(key=lambda x: x.timestamp, reverse=True) # latest first
190 jobs.sort(key=lambda x: x.timestamp, reverse=True) # latest first
247 for key in build_dict:
248 build_dict[key].put()
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DJsonUtil.java43 String key = iter.next(); in deepMergeJsonObjects() local
44 Object source_value = source.get(key); in deepMergeJsonObjects()
47 target_value = target.get(key); in deepMergeJsonObjects()
49 CLog.d("Merging Json key '%s' into target object.", key); in deepMergeJsonObjects()
50 target.put(key, source_value); in deepMergeJsonObjects()
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowTreeServlet.java93 for (Key key : entityMap.keySet()) { in processTestDetails()
94 TestCaseRunEntity testCaseRun = TestCaseRunEntity.fromEntity(entityMap.get(key)); in processTestDetails()
189 for (Key key : gets) { in doGetHandler()
190 if (!entityMap.containsKey(key)) { in doGetHandler()
193 TestRunEntity testRunEntity = TestRunEntity.fromEntity(entityMap.get(key)); in doGetHandler()
197 if (minKey == null || key.compareTo(minKey) < 0) { in doGetHandler()
198 minKey = key; in doGetHandler()
200 if (maxKey == null || key.compareTo(maxKey) > 0) { in doGetHandler()
201 maxKey = key; in doGetHandler()
205 metadataMap.put(key, metadata); in doGetHandler()
[all …]
/test/vti/test_serving/gae/webapp/src/endpoint/
Djob_queue_test.py84 for key in test_values:
85 setattr(job, key, test_values[key])
97 for key in test_values:
98 if key is "status":
100 getattr(response.jobs[0], key),
104 getattr(response.jobs[0], key), test_values[key])
/test/framework/harnesses/host_controller/tfc/
Dapi_message.py32 for key, value in kwargs.iteritems():
33 if key not in all_keys:
34 raise KeyError(key)
35 setattr(self, key, value)
/test/vts/utils/python/common/
Dcmd_result.py113 def __getitem__(self, key): argument
125 if key == cmd_utils.STDOUT:
127 elif key == cmd_utils.STDERR:
129 elif key == cmd_utils.EXIT_CODE:
132 raise KeyError(key)
/test/vti/dashboard/src/main/java/com/android/vts/entity/
DUserFavoriteEntity.java49 @Ignore private Key key = null; field in UserFavoriteEntity
69 private UserFavoriteEntity(Key key, User user, Key testKey, boolean muteNotifications) { in UserFavoriteEntity() argument
70 this.key = key; in UserFavoriteEntity()
95 if (this.key != null) { in toEntity()
96 favoriteEntity = new Entity(key); in toEntity()
/test/vti/dashboard/src/main/webapp/js/
Dsearch_header.js30 function _createInput(key, config) { argument
111 Object.keys(filters).forEach(function(key) { argument
112 col.append(_createInput(key, filters[key]));
168 var args = Object.keys(filters).reduce(function(acc, key) { argument
169 if (filters[key].value) {
170 return acc + '&' + key + '=' + encodeURIComponent(filters[key].value);
Dtest_acknowledgments.js47 function removeAcknowledgment(ack, key) { argument
53 url: '/api/test_acknowledgments/' + key,
154 function saveCallback(ack, modal, key, test, branchSet, deviceSet, testCaseSet, note) { argument
174 'key' : key, property
183 if (key == null) {
207 function showModal(ack, key, test, branches, devices, testCases, note) { argument
286 saveCallback(ack, wrapper, key, test, branchSet, deviceSet, testCaseSet, textArea.val());
326 function createAcknowledgment(key, test, branches, devices, testCases, note) { argument
334 showModal(wrapper, key, test, branches, devices, testCases, note);
367 clear.click(function() { removeAcknowledgment(wrapper, key); });
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationResultXml.java146 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/vti/dashboard/src/main/java/com/android/vts/util/
DFilterUtil.java208 public static String getFirstParameter(Map<String, String[]> parameterMap, String key) { in getFirstParameter() argument
209 String[] values = (String[]) parameterMap.get(key); in getFirstParameter()
222 for (String key : parameterMap.keySet()) { in getUserDeviceFilter()
223 if (!FilterKey.isDeviceKey(key)) continue; in getUserDeviceFilter()
224 String value = getFirstParameter(parameterMap, key); in getUserDeviceFilter()
226 FilterKey filterKey = FilterKey.parse(key); in getUserDeviceFilter()
245 for (String key : parameterMap.keySet()) { in getUserTestFilters()
246 if (!FilterKey.isTestKey(key)) continue; in getUserTestFilters()
247 String stringValue = getFirstParameter(parameterMap, key); in getUserTestFilters()
249 FilterKey filterKey = FilterKey.parse(key); in getUserTestFilters()
[all …]

12345