Home
last modified time | relevance | path

Searched refs:toJson (Results 1 – 25 of 33) sorted by relevance

12

/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowTableServlet.java192 request.setAttribute("headerRow", new Gson().toJson(testResults.headerRow)); in doGetHandler()
193 request.setAttribute("timeGrid", new Gson().toJson(testResults.timeGrid)); in doGetHandler()
194 request.setAttribute("durationGrid", new Gson().toJson(testResults.durationGrid)); in doGetHandler()
195 request.setAttribute("summaryGrid", new Gson().toJson(testResults.summaryGrid)); in doGetHandler()
196 request.setAttribute("resultsGrid", new Gson().toJson(testResults.resultsGrid)); in doGetHandler()
199 request.setAttribute("resultNamesJson", new Gson().toJson(resultNames)); in doGetHandler()
200 request.setAttribute("logInfoMap", new Gson().toJson(testResults.logInfoMap)); in doGetHandler()
204 "topBuildResultCounts", new Gson().toJson(testResults.totResultCounts)); in doGetHandler()
206 request.setAttribute("startTime", new Gson().toJson(testResults.startTime)); in doGetHandler()
207 request.setAttribute("endTime", new Gson().toJson(testResults.endTime)); in doGetHandler()
[all …]
DShowPlanRunServlet.java132 failingTestObjects.add(metadata.toJson()); in doGetHandler()
134 passingTestObjects.add(metadata.toJson()); in doGetHandler()
151 request.setAttribute("resultNamesJson", new Gson().toJson(resultNames)); in doGetHandler()
152 request.setAttribute("testRuns", new Gson().toJson(testRunObjects)); in doGetHandler()
153 request.setAttribute("testBuildId", new Gson().toJson(testBuildId)); in doGetHandler()
154 request.setAttribute("startTime", new Gson().toJson(startTime)); in doGetHandler()
155 request.setAttribute("endTime", new Gson().toJson(endTime)); in doGetHandler()
156 request.setAttribute("moduleCount", new Gson().toJson(moduleCount)); in doGetHandler()
157 request.setAttribute("passingTestCaseCount", new Gson().toJson(passCount)); in doGetHandler()
158 request.setAttribute("failingTestCaseCount", new Gson().toJson(failCount)); in doGetHandler()
[all …]
DShowTestAcknowledgmentServlet.java62 testAcks.add(ack.toJson()); in doGetHandler()
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()
DShowTreeServlet.java273 testRunObjects.add(metadata.toJson()); in doGetHandler()
300 request.setAttribute("resultNamesJson", new Gson().toJson(resultNames)); in doGetHandler()
301 request.setAttribute("testRuns", new Gson().toJson(testRunObjects)); in doGetHandler()
304 request.setAttribute("topBuildResultCounts", new Gson().toJson(topBuildResultCounts)); in doGetHandler()
306 request.setAttribute("startTime", new Gson().toJson(startTime)); in doGetHandler()
307 request.setAttribute("endTime", new Gson().toJson(endTime)); in doGetHandler()
310 new Gson().toJson(DatastoreHelper.hasNewer(testKey, TestRunEntity.KIND, endTime))); in doGetHandler()
314 .toJson(DatastoreHelper.hasOlder(testKey, TestRunEntity.KIND, startTime))); in doGetHandler()
319 request.setAttribute("branches", new Gson().toJson(DatastoreHelper.getAllBranches())); in doGetHandler()
320 request.setAttribute("devices", new Gson().toJson(DatastoreHelper.getAllBuildFlavors())); in doGetHandler()
DShowPlanReleaseServlet.java116 public JsonObject toJson() { in toJson() method in ShowPlanReleaseServlet.TestPlanRunMetadata
118 obj.add("testPlanRun", testPlanRun.toJson()); in toJson()
280 testPlanRunObjects.add(metadata.toJson()); in getTestPlanDispatcher()
289 .toJson( in getTestPlanDispatcher()
295 .toJson( in getTestPlanDispatcher()
298 request.setAttribute("planRuns", new Gson().toJson(testPlanRunObjects)); in getTestPlanDispatcher()
303 request.setAttribute("startTime", new Gson().toJson(startTime)); in getTestPlanDispatcher()
304 request.setAttribute("endTime", new Gson().toJson(endTime)); in getTestPlanDispatcher()
305 request.setAttribute("branches", new Gson().toJson(DatastoreHelper.getAllBranches())); in getTestPlanDispatcher()
306 request.setAttribute("devices", new Gson().toJson(DatastoreHelper.getAllBuildFlavors())); in getTestPlanDispatcher()
DShowCoverageServlet.java110 request.setAttribute("gerritURI", new Gson().toJson(GERRIT_URI)); in doGetHandler()
111 request.setAttribute("gerritScope", new Gson().toJson(GERRIT_SCOPE)); in doGetHandler()
112 request.setAttribute("clientId", new Gson().toJson(CLIENT_ID)); in doGetHandler()
DShowProfilingOverviewServlet.java186 request.setAttribute("plots", gson.toJson(plots)); in doGetHandler()
188 request.setAttribute("branches", new Gson().toJson(DatastoreHelper.getAllBranches())); in doGetHandler()
189 request.setAttribute("devices", new Gson().toJson(DatastoreHelper.getAllBuildFlavors())); in doGetHandler()
DShowCoverageOverviewServlet.java312 request.setAttribute("resultNamesJson", new Gson().toJson(resultNames)); in getCoverageDispatcher()
315 request.setAttribute("coveredLines", new Gson().toJson(coveredLines)); in getCoverageDispatcher()
316 request.setAttribute("uncoveredLines", new Gson().toJson(uncoveredLines)); in getCoverageDispatcher()
317 request.setAttribute("testStats", new Gson().toJson(testStats)); in getCoverageDispatcher()
DDashboardMainServlet.java246 request.setAttribute("allTestsJson", new Gson().toJson(allTestNames)); in doGetHandler()
247 request.setAttribute("subscriptionMapJson", new Gson().toJson(subscriptionMap)); in doGetHandler()
DShowGraphServlet.java242 request.setAttribute("endTime", new Gson().toJson(endTime)); in doGetHandler()
252 request.setAttribute("graphs", gson.toJson(graphList)); in doGetHandler()
DBaseServlet.java202 request.setAttribute("analyticsID", new Gson().toJson(ANALYTICS_ID)); in doGet()
/test/vti/dashboard/src/main/java/com/android/vts/api/
DDataRestServlet.java48 json = new Gson().toJson(BranchEntity.getByBranch(schKey)); in doGet()
50 json = new Gson().toJson(BuildTargetEntity.getByBuildTarget(schKey)); in doGet()
57 .toJson( in doGet()
63 .toJson( in doGet()
DTestAcknowledgmentRestServlet.java64 testAcks.add(ack.toJson()); in doGet()
68 writer.print(new Gson().toJson(testAcks)); in doGet()
105 writer.print(new Gson().toJson(KeyFactory.keyToString(key))); in doPost()
DCoverageRestServlet.java71 String apiCoverageEntityJson = new Gson().toJson(apiCoverageEntity); in apiCoverageData()
137 String json = new Gson().toJson(halApiNumMap); in postCoverageDataSum()
179 String json = new Gson().toJson("Success!"); in postCoverageData()
DTestRunRestServlet.java130 writer.print(new Gson().toJson(details.toJson())); in doGet()
DTestSuiteResultRestServlet.java124 String json = new Gson().toJson(resultMap); in doPost()
/test/vti/dashboard/src/main/java/com/android/vts/util/
DTestRunDetails.java52 public JsonObject toJson() { in toJson() method in TestRunDetails.ResultColumn
91 public JsonElement toJson() { in toJson() method in TestRunDetails
95 jsonColumns.add(column.toJson()); in toJson()
DTestRunMetadata.java130 public JsonObject toJson() { in toJson() method in TestRunMetadata
135 json.add(TEST_RUN, this.testRun.toJson()); in toJson()
137 json.add(TEST_DETAILS, this.details.toJson()); in toJson()
DLineGraph.java117 public JsonObject toJson() { in toJson() method in LineGraph
118 JsonObject json = super.toJson(); in toJson()
DHistogram.java147 public JsonObject toJson() { in toJson() method in Histogram
156 JsonObject json = super.toJson(); in toJson()
DBoxPlot.java148 public JsonObject toJson() { in toJson() method in BoxPlot
149 JsonObject json = super.toJson(); in toJson()
DGraphSerializer.java28 return src.toJson(); in serialize()
DGraph.java82 public JsonObject toJson() { in toJson() method in Graph
/test/vti/dashboard/src/test/java/com/android/vts/entity/
DTestAcknowledgmentEntityTest.java136 JsonObject json = TestAcknowledgmentEntity.fromEntity(e).toJson(); in testJsonSerialization()
157 JsonObject json = TestAcknowledgmentEntity.fromEntity(e).toJson(); in testJsonSerializationWithNulls()
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsDashboardApiTransport.java105 "application/json", new Gson().toJson(request).getBytes(Charsets.UTF_8)); in post()

12