/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FixedByteArrayOutputStreamTest.java | 31 private static final String TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " field in FixedByteArrayOutputStreamTest 63 String text = TEXT.substring(0, BUF_SIZE - 5); in testLessThanBuffer() 71 String text = TEXT.substring(0, BUF_SIZE); in testEqualsBuffer() 79 String text = TEXT.substring(0, BUF_SIZE + 1); in testBufferPlusOne() 88 String expected = TEXT.substring(TEXT.length() - BUF_SIZE); in testBufferPlusPlus() 89 assertEquals(expected, writeTextIntoStreamAndReturn(TEXT)); in testBufferPlusPlus() 112 String text = TEXT.substring(0, BUF_SIZE); in testLessThanBufferWithOffset()
|
D | TarUtilTest.java | 106 listener.testLog(EasyMock.eq(baseName + "_TEST.log"), EasyMock.eq(LogDataType.TEXT), in testExtractAndLog() 108 listener.testLog(EasyMock.eq(baseName + "_TEST2.log"), EasyMock.eq(LogDataType.TEXT), in testExtractAndLog()
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
D | TopItem.java | 44 public static final String TEXT = "TEXT"; field in TopItem 47 USER, NICE, SYSTEM, IDLE, IOW, IRQ, SIRQ, TOTAL, TEXT)); 176 return (String) getAttribute(TEXT); in getText() 183 setAttribute(TEXT, text); in setText()
|
D | MemInfoItem.java | 30 public static final String TEXT = "TEXT"; field in MemInfoItem 56 object.put(TEXT, getText()); in toJson()
|
D | SystemPropsItem.java | 30 public static final String TEXT = "TEXT"; field in SystemPropsItem 56 object.put(TEXT, getText()); in toJson()
|
D | ProcrankItem.java | 49 public static final String TEXT = "TEXT"; field in ProcrankItem 196 object.put(TEXT, getText()); in toJson()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | ShardListenerTest.java | 144 EasyMock.eq("run-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding() 145 LogFile runFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding() 149 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 154 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 159 EasyMock.eq("test-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding() 160 LogFile testFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding() 164 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 169 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 202 "run-file", LogDataType.TEXT, new ByteArrayInputStreamSource("test".getBytes())); in testLogOrderingForSharding() 206 LogDataType.TEXT, in testLogOrderingForSharding()
|
D | TestInvocationTest.java | 539 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 545 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 551 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 555 EasyMock.eq(LogDataType.TEXT), in testInvoke_resume() 557 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 571 EasyMock.eq(LogDataType.TEXT), (InputStreamSource)EasyMock.anyObject()); in testInvoke_resume() 608 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 614 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 620 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume() 624 EasyMock.eq(LogDataType.TEXT), in testInvoke_resume() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | FilePullerDeviceMetricCollectorTest.java | 59 testLog(key, LogDataType.TEXT, source); in setUp() 67 testLog(key, LogDataType.TEXT, source); in setUp() 101 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKey() 123 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKeyPattern() 140 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPatternNotMatching() 162 .testLog(Mockito.eq("coverageDirectory"), Mockito.eq(LogDataType.TEXT), in testPullMatchingDirectory()
|
D | IonHeapInfoMetricCollectorTest.java | 66 .testLog(anyString(), eq(LogDataType.TEXT), any(InputStreamSource.class)); in setup() 87 verify(mListener).testLog(eq("ion-system-2"), eq(LogDataType.TEXT), any()); in testCollect() 88 verify(mListener).testLog(eq("ion-audio-1"), eq(LogDataType.TEXT), any()); in testCollect()
|
D | TraceMetricCollectorTest.java | 66 .testLog(anyString(), eq(LogDataType.TEXT), any(InputStreamSource.class)); in setup() 83 verify(mListener).testLog(eq("trace-1"), eq(LogDataType.TEXT), any()); in testCollect()
|
D | BuddyInfoMetricCollectorTest.java | 65 .testLog(anyString(), eq(LogDataType.TEXT), any(InputStreamSource.class)); in setup() 81 verify(mListener).testLog(eq("unusable-index-1"), eq(LogDataType.TEXT), any()); in testCollect()
|
/tools/loganalysis/tests/src/com/android/loganalysis/item/ |
D | TopItemTest.java | 38 assertTrue(output.has(TopItem.TEXT)); in testToJson() 39 assertEquals("User 20%, System 20%, IOW 5%, IRQ 3%", output.get(TopItem.TEXT)); in testToJson()
|
D | SystemPropsItemTest.java | 42 assertTrue(output.has(SystemPropsItem.TEXT)); in testToJson() 43 assertEquals("[foo]: [123]\n[bar]: [456]", output.get(SystemPropsItem.TEXT)); in testToJson()
|
D | MemInfoItemTest.java | 42 assertTrue(output.has(MemInfoItem.TEXT)); in testToJson() 43 assertEquals("foo: 123 kB\nbar: 456 kB", output.get(MemInfoItem.TEXT)); in testToJson()
|
D | ProcrankItemTest.java | 43 assertTrue(output.has(ProcrankItem.TEXT)); in testToJson() 44 assertEquals("foo\nbar", output.get(ProcrankItem.TEXT)); in testToJson()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | LogFileSaverTest.java | 158 logFile = saver.saveLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveLogData() 185 logFile = saver.saveAndGZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndGZipLogData() 209 logFile = saver.saveAndZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndZipLogData() 237 logFile = saver.createCompressedLogFile("testSaveAndGZipLogData", LogDataType.TEXT); in testCreateAndGZipLogData() 238 assertTrue(logFile.getName().endsWith(LogDataType.TEXT.getFileExt() + "." + in testCreateAndGZipLogData() 269 "testSaveLogData", LogDataType.TEXT.getFileExt(), mockInput); in testSaveLogDataRaw()
|
D | TestRunResultTest.java | 128 result.testLogSaved("test", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_testCases() 131 result.testLogSaved("afterFailure", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_testCases() 146 result.testLogSaved("outsideTestCase", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_runLogs() 154 result.testLogSaved("insideTestCase", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_runLogs() 155 result.testLogSaved("insideTestCase2", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_runLogs() 157 result.testLogSaved("outsideTestCase2", new LogFile("path", "url", LogDataType.TEXT)); in testLogSavedFile_runLogs() 337 result1.testLogSaved("run log", new LogFile("path1", "url", LogDataType.TEXT)); in testMergeRetriedRunResults_CheckMergeMapAttributes() 345 result1.testLogSaved("run log", new LogFile("path2", "url", LogDataType.TEXT)); in testMergeRetriedRunResults_CheckMergeMapAttributes()
|
D | SubprocessResultsReporterTest.java | 145 EasyMock.eq(LogDataType.TEXT), in testTestLog() 149 mReporter.testLog("foo", LogDataType.TEXT, logStreamSource); in testTestLog() 177 mReporter.testLog("foo", LogDataType.TEXT, logStreamSource); in testTestLog_disabled()
|
D | ConsoleResultReporterTest.java | 102 null, null, null, new LogFile("/path/to/log1", "http://log1", LogDataType.TEXT)); in testGetInvocationSummary_logs() 104 null, null, null, new LogFile("/path/to/log2", null, LogDataType.TEXT)); in testGetInvocationSummary_logs() 189 null, null, null, new LogFile("/path/to/log1", "http://log1", LogDataType.TEXT)); in testGetInvocationSummary_all() 191 null, null, null, new LogFile("/path/to/log2", null, LogDataType.TEXT)); in testGetInvocationSummary_all()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | IonHeapInfoMetricCollector.java | 53 LogDataType.TEXT, in collectIonAudio() 71 LogDataType.TEXT, in collectIonSystem()
|
D | PagetypeInfoMetricCollector.java | 45 LogDataType.TEXT, in collect()
|
D | TraceMetricCollector.java | 46 LogDataType.TEXT, in collect()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LogDataType.java | 23 TEXT("txt", "text/plain", false, true), enumConstant
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 84 EasyMock.eq(LogDataType.TEXT), in testRun() 150 EasyMock.eq(LogDataType.TEXT), in testRunFail_failureOnly()
|