/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 | metadata_encryption_tests.cpp | 149 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()
|
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 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,
|
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,
|
/test/vts/utils/python/instrumentation/ |
D | test_framework_instrumentation_categories.py | 36 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/vti/dashboard/src/test/java/com/android/vts/entity/ |
D | TestAcknowledgmentEntityTest.java | 56 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/webapp/src/scheduler/ |
D | schedule_worker_test.py | 66 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/catbox/report/src/com/android/catbox/result/ |
D | JsonResultReporter.java | 216 for (String key : metrics.keySet()) { in writeAllMetrics() 218 double value = Double.parseDouble(metrics.get(key)); in writeAllMetrics() 219 reportLog.addValue(key, value, ResultType.NEUTRAL, ResultUnit.NONE); in writeAllMetrics() 225 metrics.get(key), key)); in writeAllMetrics() 241 for (String key : mReportMetricKeyMap.keySet()) { in writeMetricsForGivenKeys() 242 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys() 243 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys() 247 double value = Double.parseDouble(metrics.get(key)); in writeMetricsForGivenKeys() 249 mReportMetricKeyMap.get(key), value, ResultType.NEUTRAL, ResultUnit.NONE); in writeMetricsForGivenKeys() 255 metrics.get(key), key)); in writeMetricsForGivenKeys()
|
/test/vti/test_serving/gae/frontend/src/app/shared/ |
D | dict.pipe.ts | 22 for (const key in value) { constant 23 if (value.hasOwnProperty(key)) { 24 dict.push({key: key, value: value[key]});
|
/test/vti/dashboard/src/main/java/com/android/vts/servlet/ |
D | ShowTreeServlet.java | 93 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 …]
|
D | ShowPlanReleaseServlet.java | 220 for (Key key : gets) { in getTestPlanDispatcher() 221 if (!entityMap.containsKey(key)) { in getTestPlanDispatcher() 224 TestPlanRunEntity testPlanRun = TestPlanRunEntity.fromEntity(entityMap.get(key)); in getTestPlanDispatcher() 230 testPlanMap.put(key, metadata); in getTestPlanDispatcher() 231 if (minKey == null || key.compareTo(minKey) < 0) { in getTestPlanDispatcher() 232 minKey = key; in getTestPlanDispatcher() 234 if (maxKey == null || key.compareTo(maxKey) > 0) { in getTestPlanDispatcher() 235 maxKey = key; in getTestPlanDispatcher() 258 for (Key key : devices.keySet()) { in getTestPlanDispatcher() 259 if (!testPlanMap.containsKey(key.getParent())) continue; in getTestPlanDispatcher() [all …]
|
/test/vti/test_serving/gae/webapp/src/endpoint/ |
D | job_queue_test.py | 84 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/vts/utils/python/common/ |
D | cmd_result.py | 113 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/webapp/js/ |
D | search_header.js | 30 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);
|
D | test_acknowledgments.js | 47 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/vti/dashboard/src/main/java/com/android/vts/util/ |
D | FilterUtil.java | 208 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 …]
|
/test/vti/dashboard/src/main/java/com/android/vts/entity/ |
D | UserFavoriteEntity.java | 49 @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()
|
D | TestAcknowledgmentEntity.java | 65 @Ignore private final Key key; field in TestAcknowledgmentEntity 95 Key key, in TestAcknowledgmentEntity() argument 117 this.key = key; in TestAcknowledgmentEntity() 151 if (this.key == null) ackEntity = new Entity(KIND); in toEntity() 152 else ackEntity = new Entity(key); in toEntity() 252 Key key = null; in fromJson() local 254 key = KeyFactory.stringToKey(json.get(KEY).getAsString()); in fromJson() 257 key, -1l, testKey, user, branches, devices, testCaseNames, note); in fromJson() 270 json.add(KEY, new JsonPrimitive(KeyFactory.keyToString(this.key))); in toJson()
|
D | UserEntity.java | 90 Key key = Key.create(UserEntity.class, adminEmail); in getAdminUser() local 93 .filterKey(key) in getAdminUser() 120 Key key = Key.create(UserEntity.class, email); in getUser() local 123 .filterKey(key) in getUser()
|
/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/vti/dashboard/src/main/java/com/android/vts/api/ |
D | CoverageRestServlet.java | 52 String key = request.getParameter("key"); in doGet() local 53 json = apiCoverageData(key); in doGet() 69 private String apiCoverageData(String key) { in apiCoverageData() argument 70 ApiCoverageEntity apiCoverageEntity = ApiCoverageEntity.getByUrlSafeKey(key); in apiCoverageData() 108 Key<TestPlanRunEntity> key = Key.create(urlSafeKey); in postCoverageDataSum() local 109 TestPlanRunEntity testPlanRunEntity = ofy().load().key(key).safe(); in postCoverageDataSum()
|
D | TestAcknowledgmentRestServlet.java | 100 Key key = datastore.put(ack.toEntity()); in doPost() local 105 writer.print(new Gson().toJson(KeyFactory.keyToString(key))); in doPost() 142 Key key = KeyFactory.stringToKey(stringKey); in doDelete() local 143 if (!key.getKind().equals(TestAcknowledgmentEntity.KIND)) { in doDelete() 147 datastore.delete(key); in doDelete()
|
/test/vts/utils/python/library/vtable/ |
D | vtable_dumper.py | 76 key = other.begin_addr 78 key = other 79 return self.begin_addr < key 252 for key in inv_table: 253 inv_table[key] = sorted(set(inv_table[key]))
|
/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
|