/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | ScheduledRunMetricListenerTest.java | 66 Bundle resultBundle = new Bundle(); in testPeriodicRun() local 67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun() 70 Assert.assertTrue(resultBundle.size() > 4); in testPeriodicRun() 71 assertEquals(TEST_RUN_VALUE + "0", resultBundle.getString(TEST_RUN_KEY + "0")); in testPeriodicRun() 72 assertEquals(TEST_RUN_VALUE + "1", resultBundle.getString(TEST_RUN_KEY + "1")); in testPeriodicRun() 73 assertEquals(TEST_RUN_VALUE + "2", resultBundle.getString(TEST_RUN_KEY + "2")); in testPeriodicRun()
|
D | GcaEventLogCollectorTest.java | 99 Bundle resultBundle = new Bundle(); in testGcaEventLogCollectionOnTestEnd_includeFailure() local 100 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectionOnTestEnd_includeFailure() 101 assertEquals(0, resultBundle.size()); in testGcaEventLogCollectionOnTestEnd_includeFailure() 154 Bundle resultBundle = new Bundle(); in testGcaEventLogCollectOnTestEnd_skipFailure() local 155 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectOnTestEnd_skipFailure() 157 assertEquals(0, resultBundle.size()); in testGcaEventLogCollectOnTestEnd_skipFailure() 207 Bundle resultBundle = new Bundle(); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() local 208 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() 210 assertEquals(1, resultBundle.size()); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() 211 for (String key : resultBundle.keySet()) { in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
|
D | LogcatCollectorTest.java | 119 Bundle resultBundle = new Bundle(); in testLogcatCollectionOnEveryTestEnd() local 120 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionOnEveryTestEnd() 121 assertEquals(0, resultBundle.size()); in testLogcatCollectionOnEveryTestEnd() 191 Bundle resultBundle = new Bundle(); in testLogcatCollectionWithBeforeDuration() local 192 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionWithBeforeDuration() 193 assertEquals(0, resultBundle.size()); in testLogcatCollectionWithBeforeDuration() 235 Bundle resultBundle = new Bundle(); in testLogcatCollectionWithDirectoryOption() local 236 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionWithDirectoryOption() 237 assertEquals(1, resultBundle.size()); in testLogcatCollectionWithDirectoryOption() 240 for (String key : resultBundle.keySet()) { in testLogcatCollectionWithDirectoryOption() [all …]
|
D | BaseMetricListenerInstrumentedTest.java | 110 Bundle resultBundle = new Bundle(); 111 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 126 assertEquals(RUN_START_VALUE, resultBundle.getString(RUN_START_KEY)); 127 assertEquals(RUN_END_VALUE, resultBundle.getString(RUN_END_KEY)); 128 assertEquals(2, resultBundle.size()); 400 Bundle resultBundle = new Bundle(); 401 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 422 assertEquals(RUN_START_VALUE, resultBundle.getString(RUN_START_KEY)); 423 assertEquals(RUN_END_VALUE, resultBundle.getString(RUN_END_KEY)); 424 assertEquals(2, resultBundle.size()); [all …]
|
D | BatteryStatsListenerTest.java | 117 Bundle resultBundle = new Bundle(); in testTestRunCollector() local 118 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunCollector() 121 for(String key : resultBundle.keySet()) { in testTestRunCollector() 167 Bundle resultBundle = new Bundle(); in testTestRunToBytesCollector() local 168 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunToBytesCollector() 213 Bundle resultBundle = new Bundle(); in testTestCaseCollector() local 214 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestCaseCollector()
|
D | ScreenshotOnFailureCollectorTest.java | 129 Bundle resultBundle = new Bundle(); in testSavePngAsFile() local 130 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSavePngAsFile() 166 Bundle resultBundle = new Bundle(); in testSaveUixAsFile() local 167 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSaveUixAsFile() 203 Bundle resultBundle = new Bundle(); in testNoUixWithoutOption() local 204 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testNoUixWithoutOption()
|
D | ScreenRecordCollectorTest.java | 138 Bundle resultBundle = new Bundle(); in testScreenRecord() local 139 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testScreenRecord()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseMetricListener.java | 201 PrintStream streamResult, Bundle resultBundle, Result junitResults) { in instrumentationRunFinished() argument 204 resultBundle.putAll(mRunData.createBundleFromMetrics()); in instrumentationRunFinished()
|