Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for calculateNumWorkersForConsoleDisplay (0.3 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/ConsoleLayoutCalculatorTest.groovy

            expect:
            consoleLayoutCalculator.calculateNumWorkersForConsoleDisplay(5) == 5
        }
    
        def "lines should be half the console size for small consoles"() {
            given:
            1 * consoleMetaData.getRows() >> rows
    
            expect:
            consoleLayoutCalculator.calculateNumWorkersForConsoleDisplay(10) == lines
    
            where:
            rows | lines
            6    | 3
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/ConsoleLayoutCalculator.java

        /**
         * Calculate number of Console lines to use for work-in-progress display.
         *
         * @param ideal number of Console lines
         * @return height of progress area.
         */
        public int calculateNumWorkersForConsoleDisplay(int ideal) {
            if (maximumAvailableLines == -1) {
                // Disallow work-in-progress to take up more than half of the console display
                // If the screen size is unknown, allow 4 lines
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/WorkInProgressRenderer.java

        private void resizeTo(int newBuildProgressLabelCount) {
            int previousBuildProgressLabelCount = progressArea.getBuildProgressLabels().size();
            newBuildProgressLabelCount = consoleLayoutCalculator.calculateNumWorkersForConsoleDisplay(newBuildProgressLabelCount);
            if (previousBuildProgressLabelCount >= newBuildProgressLabelCount) {
                // We don't support shrinking at the moment
                return;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top