/test/framework/harnesses/host_controller/build/ |
D | build_info.py | 29 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/ |
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/framework/harnesses/host_controller/acloud/ |
D | acloud_config.py | 52 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/ |
D | shared_dict.py | 41 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/ |
D | DynamicConfigFileReader.java | 42 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()
|
D | CollectorUtil.java | 156 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/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/suite_harness/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()
|
D | DynamicConfig.java | 64 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/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/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/vts/harnesses/tradefed/src/com/android/tradefed/util/ |
D | JsonUtil.java | 42 String key = iter.next(); in deepMergeJsonObjects() local 43 Object source_value = source.get(key); in deepMergeJsonObjects() 46 target_value = target.get(key); in deepMergeJsonObjects() 48 CLog.d("Merging Json key '%s' into target object.", key); in deepMergeJsonObjects() 49 target.put(key, source_value); in deepMergeJsonObjects()
|
/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/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/ |
D | CertificationResultXml.java | 125 for (String key : build.getBuildAttributes().keySet()) { in addBuildInfoAttributes() 126 if (key.startsWith(getAttributesPrefix())) { in addBuildInfoAttributes() 127 String newKey = key.split(getAttributesPrefix())[1]; in addBuildInfoAttributes() 128 serializer.attribute(NS, newKey, build.getBuildAttributes().get(key)); in addBuildInfoAttributes() 141 String key = parser.getAttributeName(index); in parseBuildInfoAttributes() local 142 String value = parser.getAttributeValue(NS, key); in parseBuildInfoAttributes() 143 context.addInvocationAttribute(key, value); in parseBuildInfoAttributes()
|
/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/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/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/framework/harnesses/host_controller/tfc/ |
D | api_message.py | 32 for key, value in kwargs.iteritems(): 33 if key not in all_keys: 34 raise KeyError(key) 35 setattr(self, key, value)
|
/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()
|
/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()
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | DynamicConfigHandler.java | 79 String key = keys.getString(i); in parseJsonToConfigMap() local 80 JSONArray jsonValues = configObject.getJSONObject(key).getJSONArray("configValues"); in parseJsonToConfigMap() 85 configMap.put(key, values); in parseJsonToConfigMap() 101 for (String key : configMap.keySet()) { in storeMergedConfigFile() 103 serializer.attribute(NS, DynamicConfig.KEY_ATTR, key); in storeMergedConfigFile() 104 for (String value : configMap.get(key)) { in storeMergedConfigFile()
|