/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | RegexUtils.java | 33 public static void assertContains(String pattern, String input) throws Exception { in assertContains() argument 34 assertFind(pattern, input, false, false); in assertContains() 37 public static void assertContainsMultiline(String pattern, String input) throws Exception { in assertContainsMultiline() argument 38 assertFind(pattern, input, false, true); in assertContainsMultiline() 41 public static void assertNotContains(String pattern, String input) throws Exception { in assertNotContains() argument 42 assertFind(pattern, input, true, false); in assertNotContains() 45 public static void assertNotContainsMultiline(String pattern, String input) throws Exception { in assertNotContainsMultiline() argument 46 assertFind(pattern, input, true, true); in assertNotContainsMultiline() 50 String pattern, String input, boolean shouldFind, boolean multiline) { in assertFind() argument 52 TimeoutCharSequence timedInput = new TimeoutCharSequence(input, TIMEOUT_DURATION); in assertFind() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/ |
D | AbstractTraceParser.kt | 28 protected open fun onBeforeParse(input: InputTypeTrace) {} in onBeforeParse() 29 protected abstract fun getEntries(input: InputTypeTrace): Collection<InputTypeEntry> in getEntries() 46 final override fun parse(input: InputTypeTrace, clearCache: Boolean): OutputTypeTrace { in parse() 48 input, in parse() 56 final override fun doParse(input: InputTypeTrace): OutputTypeTrace { in doParse() 58 input, in doParse() 74 input: InputTypeTrace, in doParse() 79 onBeforeParse(input) in doParse() 81 val rawEntries = getEntries(input) in doParse() 106 input: InputTypeTrace, in parse() [all …]
|
D | AbstractParser.kt | 26 protected abstract fun doParse(input: InputTypeTrace): OutputTypeTrace in doDecodeByteArray() 35 val input = decodeByteArray(bytes) in doDecodeByteArray() constant 36 return parse(input, clearCache) in doDecodeByteArray() 45 open fun parse(input: InputTypeTrace, clearCache: Boolean = true): OutputTypeTrace { in parse() 47 doParse(input) in parse() 55 protected fun decodeByteArray(input: ByteArray): InputTypeTrace { in decodeByteArray() 56 return doDecodeByteArray(input) in decodeByteArray()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | ValidatingResourceParser.java | 63 public boolean parse(InputStream input) in parse() argument 68 Closeables.close(input, true /* swallowIOException */); in parse() 76 Closeables.close(input, true /* swallowIOException */); in parse() 87 if (input instanceof FileInputStream) { in parse() 88 input = new BufferedInputStream(input); in parse() 90 parser.setInput(input, SdkConstants.UTF_8); in parse() 97 Closeables.close(input, true /* swallowIOException */); in parse()
|
D | IdResourceParser.java | 69 public boolean parse(InputStream input) in parse() argument 75 if (input instanceof FileInputStream) { in parse() 76 input = new BufferedInputStream(input); in parse() 78 parser.setInput(input, SdkConstants.UTF_8); in parse() 85 Closeables.close(input, true /* swallowIOException */); in parse()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | ResultUploader.java | 48 InputStream input = new FileInputStream(reportFile); in uploadResult() local 50 byte[] data = getBytes(input); in uploadResult() 57 input.close(); in uploadResult() 61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() argument 66 while ((count = input.read(buffer)) > 0) { in getBytes()
|
D | FileUtil.java | 57 public static void writeToFile(InputStream input, File destFile) throws IOException { in writeToFile() argument 61 origStream = new BufferedInputStream(input); in writeToFile()
|
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/ |
D | ShuffleTestBase.java | 42 List<Integer> input = IntStream.range(1, 10).boxed().collect(Collectors.toList()); in testShuffleSeedRespected() local 43 List<Integer> output = getShuffle().apply(getArguments(true, seedValue), input); in testShuffleSeedRespected() 45 Collections.shuffle(input, new Random(seedValue)); in testShuffleSeedRespected() 46 assertThat(input).isEqualTo(output); in testShuffleSeedRespected()
|
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/ |
D | ShuffleBase.java | 41 public List<U> apply(T args, List<U> input) { in apply() argument 45 Collections.shuffle(input, new Random(seed)); in apply() 47 return input; in apply()
|
D | IterateBase.java | 48 public List<U> apply(T args, List<U> input) { in apply() argument 53 return Collections.nCopies(iterations, input) in apply() 58 return input.stream() in apply()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | MockTraceParser.kt | 35 override fun getEntries(input: WindowManagerTrace): Collection<WindowManagerState> = in createTrace() 36 input.entries in createTrace() 39 override fun onBeforeParse(input: WindowManagerTrace) {} in createTrace()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/ |
D | WindowManagerTraceParser.kt | 42 override fun getEntries(input: WindowManagerTraceFileProto) = input.entry.toList() in doDecodeByteArray() 52 override fun onBeforeParse(input: WindowManagerTraceFileProto) { in onBeforeParse() 53 realToElapsedTimeOffsetNanos = input.realToElapsedTimeOffsetNanos in onBeforeParse()
|
D | ShellTransitionTraceParser.kt | 51 input: WmShellTransitionTraceProto in getEntries() 52 ): Collection<com.android.wm.shell.nano.Transition> = input.transitions.toList() in getEntries() 75 override fun onBeforeParse(input: WmShellTransitionTraceProto) { in onBeforeParse() 77 for (mapping in input.handlerMappings) { in onBeforeParse() 83 input: WmShellTransitionTraceProto, in doParse() 88 val uncompressedTransitionsTrace = super.doParse(input, from, to, addInitialEntry) in doParse()
|
D | WindowManagerDumpParser.kt | 31 override fun doParse(input: WindowManagerServiceDumpProto): WindowManagerTrace { in doDecodeByteArray() 32 val parsedEntry = WindowManagerStateBuilder().forProto(input).build() in doDecodeByteArray()
|
D | WmTransitionTraceParser.kt | 50 input: TransitionTraceProto in getEntries() 51 ): Collection<com.android.server.wm.shell.nano.Transition> = input.transitions.toList() in getEntries() 75 override fun onBeforeParse(input: TransitionTraceProto) {} in onBeforeParse() 78 input: TransitionTraceProto, in doParse() 83 val uncompressedTransitionsTrace = super.doParse(input, from, to, addInitialEntry) in doParse()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/ |
D | ViewTraceParser.kt | 31 override fun onBeforeParse(input: ExportedData) { in doDecodeByteArray() 35 override fun getEntries(input: ExportedData): Collection<WindowData> = input.windowDataList in getEntries()
|
D | WindowDataParser.kt | 35 override fun getEntries(input: WindowData): Collection<FrameData> = input.frameDataList in doDecodeByteArray() 44 override fun onBeforeParse(input: WindowData) { in onBeforeParse()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | TransactionsTraceParser.kt | 45 override fun getEntries(input: TraceProcessorSession): List<TransactionsTraceEntry> { in <lambda>() 49 queryRealToMonotonicTimeOffsetNs(input, "surfaceflinger_transactions") in <lambda>() 50 val entriesCount = queryTraceEntriesCount(input) in <lambda>() 55 val batchRows = input.query(getSqlQueryTransactions(startEntryId, endEntryId)) { it } in <lambda>() 70 override fun onBeforeParse(input: TraceProcessorSession) {} in <lambda>()
|
D | TransitionsTraceParser.kt | 44 override fun getEntries(input: TraceProcessorSession): List<Transition> { in <lambda>() 48 input.query(getSqlQueryHandlerMappings()) { in <lambda>() 55 input.query(getSqlQueryTransitions()) { transitionsRows -> in <lambda>() 72 override fun onBeforeParse(input: TraceProcessorSession) {} in <lambda>()
|
D | ProtoLogTraceParser.kt | 40 override fun getEntries(input: TraceProcessorSession): List<ProtoLogMessage> { in <lambda>() 43 input.query(getSqlQueryProtoLogMessages()) { rows -> in <lambda>()
|
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | ReadElfTest.java | 280 try (InputStream input = openResourceAsStream(fileName); in getResrouceFile() argument 284 while ((length = input.read(buffer)) > 0) { in getResrouceFile() 298 InputStream input = getClass().getResourceAsStream("/" + fileName); in openResourceAsStream() local 299 assertNotNull(input); in openResourceAsStream() 300 return input; in openResourceAsStream()
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/ |
D | Profile.java | 145 public List<Runner> getRunnerSequence(List<Runner> input) { in getRunnerSequence() argument 147 return input; in getRunnerSequence() 149 return getTestSequenceFromConfiguration(mConfiguration, input); in getRunnerSequence() 153 Configuration config, List<Runner> input) { in getTestSequenceFromConfiguration() argument 155 input.stream() in getTestSequenceFromConfiguration()
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/tradefed/testtype/ |
D | SecurityTestCase.java | 183 public void assertMatches(String pattern, String input) throws Exception { in assertMatches() argument 184 RegexUtils.assertContains(pattern, input); in assertMatches() 188 public void assertMatchesMultiLine(String pattern, String input) throws Exception { in assertMatchesMultiLine() argument 189 RegexUtils.assertContainsMultiline(pattern, input); in assertMatchesMultiLine() 193 public void assertNotMatches(String pattern, String input) throws Exception { in assertNotMatches() argument 194 RegexUtils.assertNotContains(pattern, input); in assertNotMatches() 198 public void assertNotMatchesMultiLine(String pattern, String input) throws Exception { in assertNotMatchesMultiLine() argument 199 RegexUtils.assertNotContainsMultiline(pattern, input); in assertNotMatchesMultiLine()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | CoolDownRule.java | 192 static String unescapeOptionStr(String input) { in unescapeOptionStr() argument 194 final StringCharacterIterator iterator = new StringCharacterIterator(input); in unescapeOptionStr() 204 + input); in unescapeOptionStr()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | TimedStatement.java | 86 FileInputStream input = new FileInputStream(tmpFile); in calibrateMethod() local 89 input.read(readBuffer); in calibrateMethod() 94 input.close(); in calibrateMethod()
|