/test/vti/dashboard/src/main/java/com/android/vts/servlet/ |
D | ShowPlanReleaseServlet.java | 73 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 75 request.getParameter("type") == null ? "plan" : request.getParameter("type"); in getBreadcrumbLinks() 77 String planName = request.getParameter("plan"); in getBreadcrumbLinks() 131 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 134 request.getParameter("type") == null ? "plan" : request.getParameter("type"); in doGetHandler() 138 dispatcher = this.getTestPlanDispatcher(request, response); in doGetHandler() 140 dispatcher = this.getTestSuiteDispatcher(request, response); in doGetHandler() 144 request.setAttribute("testType", testType); in doGetHandler() 146 dispatcher.forward(request, response); in doGetHandler() 153 HttpServletRequest request, HttpServletResponse response) { in getTestPlanDispatcher() argument [all …]
|
D | ShowTableServlet.java | 59 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 61 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 90 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 92 boolean unfiltered = request.getParameter("unfiltered") != null; in doGetHandler() 93 boolean showPresubmit = request.getParameter("showPresubmit") != null; in doGetHandler() 94 boolean showPostsubmit = request.getParameter("showPostsubmit") != null; in doGetHandler() 104 if (request.getParameter("testName") == null) { in doGetHandler() 105 request.setAttribute("testName", TABLE_NAME_ERROR); in doGetHandler() 108 String testName = request.getParameter("testName"); in doGetHandler() 110 if (request.getParameter("startTime") != null) { in doGetHandler() [all …]
|
D | ShowCoverageServlet.java | 61 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 63 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 66 String startTime = request.getParameter("startTime"); in getBreadcrumbLinks() 72 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 76 String test = request.getParameter("testName"); in doGetHandler() 77 String timeString = request.getParameter("startTime"); in doGetHandler() 80 String currentUserEmail = request.getAttribute("email").toString(); in doGetHandler() 93 request.setAttribute("testName", test); in doGetHandler() 94 dispatcher = request.getRequestDispatcher(TREE_JSP); in doGetHandler() 108 request.setAttribute("isModerator", isModerator); in doGetHandler() [all …]
|
D | ShowPlanRunServlet.java | 54 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 56 String planName = request.getParameter("plan"); in getBreadcrumbLinks() 59 String time = request.getParameter("time"); in getBreadcrumbLinks() 65 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 71 String plan = request.getParameter("plan"); in doGetHandler() 73 if (request.getParameter("time") != null) { in doGetHandler() 74 String timeString = request.getParameter("time"); in doGetHandler() 147 request.setAttribute("plan", request.getParameter("plan")); in doGetHandler() 148 request.setAttribute("time", request.getParameter("time")); in doGetHandler() 150 request.setAttribute("resultNames", resultNames); in doGetHandler() [all …]
|
D | ShowTreeServlet.java | 71 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 73 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 105 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 107 boolean unfiltered = request.getParameter("unfiltered") != null; in doGetHandler() 108 boolean showPresubmit = request.getParameter("showPresubmit") != null; in doGetHandler() 109 boolean showPostsubmit = request.getParameter("showPostsubmit") != null; in doGetHandler() 118 if (request.getParameter("testName") == null) { in doGetHandler() 119 request.setAttribute("testName", TABLE_NAME_ERROR); in doGetHandler() 122 String testName = request.getParameter("testName"); in doGetHandler() 124 if (request.getParameter("startTime") != null) { in doGetHandler() [all …]
|
D | ShowReleaseServlet.java | 53 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 58 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 61 request.getParameter("type") == null ? "plan" : request.getParameter("type"); in doGetHandler() 65 dispatcher = this.getTestPlanDispatcher(request, response); in doGetHandler() 67 dispatcher = this.getTestSuiteDispatcher(request, response); in doGetHandler() 71 request.setAttribute("testType", testType); in doGetHandler() 73 dispatcher.forward(request, response); in doGetHandler() 80 HttpServletRequest request, HttpServletResponse response) { in getTestPlanDispatcher() argument 89 request.setAttribute("isAdmin", UserServiceFactory.getUserService().isUserAdmin()); in getTestPlanDispatcher() 90 request.setAttribute("planNames", plans); in getTestPlanDispatcher() [all …]
|
D | ShowGcsLogServlet.java | 139 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 144 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 147 request.setAttribute("error_title", "GCS Key file Error"); in doGetHandler() 148 request.setAttribute("error_message", "The GCS Key file is not existed!"); in doGetHandler() 149 RequestDispatcher dispatcher = request.getRequestDispatcher(ERROR_MESSAGE_JSP); in doGetHandler() 151 dispatcher.forward(request, response); in doGetHandler() 156 String pathInfo = request.getPathInfo(); in doGetHandler() 159 downloadHandler(request, response); in doGetHandler() 165 defaultHandler(request, response); in doGetHandler() 170 private void downloadHandler(HttpServletRequest request, HttpServletResponse response) in downloadHandler() argument [all …]
|
D | BaseServlet.java | 139 public abstract List<Page> getBreadcrumbLinks(HttpServletRequest request); in getBreadcrumbLinks() argument 163 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument 172 String requestUri = request.getRequestURI(); in doGet() 173 String requestArgs = request.getQueryString(); in doGet() 193 if (request.getParameter(TREE_DEFAULT_PARAM) != null) { in doGet() 194 HttpSession session = request.getSession(true); in doGet() 195 boolean treeDefault = request.getParameter(TREE_DEFAULT_PARAM).equals("true"); in doGet() 199 request.setAttribute("serverName", request.getServerName()); in doGet() 200 request.setAttribute("logoutURL", logoutURI); in doGet() 201 request.setAttribute("email", currentUserEmail); in doGet() [all …]
|
D | ShowGraphServlet.java | 71 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 73 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 76 String profilingPointName = request.getParameter("profilingPoint"); in getBreadcrumbLinks() 126 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 130 String testName = request.getParameter("testName"); in doGetHandler() 131 String profilingPointName = request.getParameter("profilingPoint"); in doGetHandler() 132 String selectedDevice = request.getParameter("device"); in doGetHandler() 134 if (request.getParameter("endTime") != null) { in doGetHandler() 135 String time = request.getParameter("endTime"); in doGetHandler() 234 String filterVal = request.getParameter("filterVal"); in doGetHandler() [all …]
|
D | ShowPerformanceDigestServlet.java | 64 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 66 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 163 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 166 String testName = request.getParameter("testName"); in doGetHandler() 167 String selectedDevice = request.getParameter("device"); in doGetHandler() 169 if (request.getParameter("startTime") != null) { in doGetHandler() 170 String time = request.getParameter("startTime"); in doGetHandler() 251 request.setAttribute("testName", testName); in doGetHandler() 252 request.setAttribute("tables", tables); in doGetHandler() 253 request.setAttribute("tableTitles", tableTitles); in doGetHandler() [all …]
|
D | ShowCoverageOverviewServlet.java | 85 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 90 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 94 request.getParameter("pageType") == null in doGetHandler() 96 : request.getParameter("pageType"); in doGetHandler() 100 dispatcher = this.getCoverageDispatcher(request, response); in doGetHandler() 102 request.setAttribute("pageType", pageType); in doGetHandler() 104 dispatcher.forward(request, response); in doGetHandler() 110 String testName = request.getParameter("testName"); in doGetHandler() 117 dsRequest = new DataSourceRequest(request); in doGetHandler() 138 dsRequest = DataSourceRequest.getDefaultDataSourceRequest(request); in doGetHandler() [all …]
|
D | ShowTestAcknowledgmentServlet.java | 47 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 53 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 67 request.setAttribute("testAcknowledgments", new Gson().toJson(testAcks)); in doGetHandler() 68 request.setAttribute("allTests", new Gson().toJson(allTestNames)); in doGetHandler() 69 request.setAttribute("branches", new Gson().toJson(DatastoreHelper.getAllBranches())); in doGetHandler() 70 request.setAttribute("devices", new Gson().toJson(DatastoreHelper.getAllBuildFlavors())); in doGetHandler() 71 …request.setAttribute("readOnly", new Gson().toJson(!UserServiceFactory.getUserService().isUserAdmi… in doGetHandler() 73 RequestDispatcher dispatcher = request.getRequestDispatcher(TEST_ACK_JSP); in doGetHandler() 75 dispatcher.forward(request, response); in doGetHandler()
|
D | ShowGreenReleaseServlet.java | 169 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 171 String planName = request.getParameter("plan"); in getBreadcrumbLinks() 195 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 199 request.getParameter("type") == null ? "plan" : request.getParameter("type"); in doGetHandler() 203 dispatcher = this.getTestPlanDispatcher(request, response); in doGetHandler() 205 dispatcher = this.getTestSuiteDispatcher(request, response); in doGetHandler() 209 request.setAttribute("testType", testType); in doGetHandler() 211 dispatcher.forward(request, response); in doGetHandler() 218 HttpServletRequest request, HttpServletResponse response) { in getTestPlanDispatcher() argument 221 String testPlan = request.getParameter("plan"); in getTestPlanDispatcher() [all …]
|
D | ShowProfilingOverviewServlet.java | 58 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 60 String testName = request.getParameter("testName"); in getBreadcrumbLinks() 66 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 71 String testName = request.getParameter("testName"); in doGetHandler() 77 Map<String, String[]> parameterMap = request.getParameterMap(); in doGetHandler() 185 FilterUtil.setAttributes(request, parameterMap); in doGetHandler() 186 request.setAttribute("plots", gson.toJson(plots)); in doGetHandler() 187 request.setAttribute("testName", request.getParameter("testName")); in doGetHandler() 188 request.setAttribute("branches", new Gson().toJson(DatastoreHelper.getAllBranches())); in doGetHandler() 189 request.setAttribute("devices", new Gson().toJson(DatastoreHelper.getAllBuildFlavors())); in doGetHandler() [all …]
|
D | DashboardMainServlet.java | 63 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 159 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 165 HttpSession session = request.getSession(true); in doGetHandler() 180 boolean showAll = request.getParameter("showAll") != null; in doGetHandler() 246 request.setAttribute("allTestsJson", new Gson().toJson(allTestNames)); in doGetHandler() 247 request.setAttribute("subscriptionMapJson", new Gson().toJson(subscriptionMap)); in doGetHandler() 248 request.setAttribute("testNames", displayedTests); in doGetHandler() 249 request.setAttribute("showAll", showAll); in doGetHandler() 250 request.setAttribute("error", error); in doGetHandler() 251 request.setAttribute("resultsUrl", referTo.defaultUrl); in doGetHandler() [all …]
|
D | ShowProfilingListServlet.java | 52 public List<Page> getBreadcrumbLinks(HttpServletRequest request) { in getBreadcrumbLinks() argument 57 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument 65 request.setAttribute("testNames", tests); in doGetHandler() 66 RequestDispatcher dispatcher = request.getRequestDispatcher(PROFILING_LIST_JSP); in doGetHandler() 68 dispatcher.forward(request, response); in doGetHandler()
|
/test/vti/test_serving/gae/webapp/src/endpoint/ |
D | job_queue.py | 45 def lease(self, request): argument 48 model.JobModel.hostname == request.hostname, 90 def heartbeat(self, request): argument 94 model.JobModel.hostname == request.hostname, 95 model.JobModel.manifest_branch == request.manifest_branch, 96 model.JobModel.build_target == request.build_target, 97 model.JobModel.test_name == request.test_name, 101 x for x in existing_jobs if set(x.serial) == set(request.serial) 109 request.hostname, request.manifest_branch, 110 request.build_target, request.test_name, request.serial)) [all …]
|
D | schedule_info.py | 41 def clear(self, request): argument 57 def set(self, request): argument 59 exist_on_both = self.GetCommonAttributes(request, model.ScheduleModel) 71 value = request.get_assigned_value(attr_name) 75 request.get_assigned_value(attr_name))) 82 request.get_assigned_value(attr_name)) 98 request.get_assigned_value(attr_name)) 116 def get(self, request): argument 118 return_list, more = self.Get(request=request, 131 def count(self, request): argument [all …]
|
D | build_info.py | 36 def set(self, request): argument 39 model.BuildModel.build_id == request.build_id, 40 model.BuildModel.build_target == request.build_target, 41 model.BuildModel.build_type == request.build_type, 42 model.BuildModel.artifact_type == request.artifact_type) 49 request.build_id, request.build_target, request.build_type, 50 request.artifact_type)) 54 if request.signed: 56 build.signed = request.signed 59 common_attributes = self.GetCommonAttributes(request, [all …]
|
D | lab_info.py | 41 def clear(self, request): argument 56 def set(self, request): argument 58 if "host" in [x.name for x in request.all_fields()]: 60 for host in request.host: 62 model.LabModel.name == request.name, 63 model.LabModel.owner == request.owner, 70 lab.name = request.name 71 lab.owner = request.owner 72 lab.admin = request.admin 139 def set_version(self, request): argument [all …]
|
D | host_info.py | 73 def set(self, request): argument 81 for request_device in request.devices: 97 device.hostname = request.hostname 113 def get(self, request): argument 115 return_list, more = self.Get(request=request, 127 def count(self, request): argument 130 filter_string=request.filter, metaclass=model.DeviceModel)
|
/test/vti/test_serving/gae/webapp/src/handlers/ |
D | base.py | 36 def initialize(self, request, response): argument 38 webapp2.RequestHandler.initialize(self, request, response) 44 request_host = self.request.headers.get('Host') 45 request_referer = self.request.headers.get('Referer') 61 self.session_store = sessions.get_store(request=self.request) 146 return urlparse.urlsplit(self.request.url) 155 method = self.request.POST.get('__method__') 157 method = self.request.POST.get('_method') 162 self.request.route.handler_method, method) 163 self.request.route.handler_method = method [all …]
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/ |
D | VtsDashboardApiTransport.java | 98 public <T> T post(String path, Object request, Type responseType) throws IOException { in post() argument 104 "application/json", new Gson().toJson(request).getBytes(Charsets.UTF_8)); in post() 129 HttpRequest request = requestFactory.buildPostRequest(url, fileContent); in postFile() local 131 return request.execute().parseAsString(); in postFile() 156 HttpRequest request = requestFactory.buildPostRequest(url, multipartContent); in postMultiFiles() local 158 return request.execute().parseAsString(); in postMultiFiles() 167 return httpTransport.createRequestFactory(request -> { in getHttpRequestFactory() 168 request.setConnectTimeout((int) Duration.ofMinutes(1).toMillis()); in getHttpRequestFactory() 169 request.setReadTimeout((int) Duration.ofMinutes(1).toMillis()); in getHttpRequestFactory() 171 request.setHeaders(httpHeaders); in getHttpRequestFactory() [all …]
|
/test/vti/dashboard/src/main/java/com/android/vts/api/ |
D | CoverageRestServlet.java | 47 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument 48 String pathInfo = request.getPathInfo(); in doGet() 52 String key = request.getParameter("key"); in doGet() 76 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument 79 String pathInfo = request.getPathInfo(); in doPost() 83 String cmd = request.getParameter("cmd"); in doPost() 84 String coverageId = request.getParameter("coverageId"); in doPost() 85 String testName = request.getParameter("testName"); in doPost() 86 String testRunId = request.getParameter("testRunId"); in doPost() 89 String urlSafeKey = request.getParameter("urlSafeKey"); in doPost()
|
/test/vti/dashboard/src/test/java/com/android/vts/api/ |
D | DataRestServletTest.java | 50 @Mock private HttpServletRequest request; field in DataRestServletTest 105 when(request.getPathInfo()).thenReturn("/branch"); in testBranchData() 106 when(request.getParameter("schKey")).thenReturn("*"); in testBranchData() 113 servlet.doGet(request, response); in testBranchData() 126 when(request.getPathInfo()).thenReturn("/device"); in testDeviceData() 127 when(request.getParameter("schKey")).thenReturn("*"); in testDeviceData() 134 servlet.doGet(request, response); in testDeviceData()
|