Loading apex/jobscheduler/service/java/com/android/server/job/controllers/QuotaController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3153,7 +3153,8 @@ public final class QuotaController extends StateController { private static final int DEFAULT_MAX_SESSION_COUNT_PER_RATE_LIMITING_WINDOW = 20; private static final long DEFAULT_TIMING_SESSION_COALESCING_DURATION_MS = 5000; // 5 seconds private static final long DEFAULT_MIN_QUOTA_CHECK_DELAY_MS = MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_EXEMPTED_MS = 45 * MINUTE_IN_MILLIS; // TODO(267949143): set a different limit for headless system apps private static final long DEFAULT_EJ_LIMIT_EXEMPTED_MS = 60 * MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_ACTIVE_MS = 30 * MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_WORKING_MS = DEFAULT_EJ_LIMIT_ACTIVE_MS; private static final long DEFAULT_EJ_LIMIT_FREQUENT_MS = 10 * MINUTE_IN_MILLIS; Loading cmds/screencap/screencap.cpp +20 −19 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ #include <binder/ProcessState.h> #include <ftl/concat.h> #include <ftl/optional.h> #include <gui/ISurfaceComposer.h> #include <gui/SurfaceComposerClient.h> #include <gui/SyncScreenCaptureListener.h> Loading @@ -45,14 +47,7 @@ using namespace android; #define COLORSPACE_SRGB 1 #define COLORSPACE_DISPLAY_P3 2 static void usage(const char* pname, std::optional<PhysicalDisplayId> displayId) { std::string defaultDisplayStr = ""; if (!displayId) { defaultDisplayStr = ""; } else { defaultDisplayStr = " (default: " + to_string(*displayId) + ")"; } void usage(const char* pname, ftl::Optional<DisplayId> displayIdOpt) { fprintf(stderr, "usage: %s [-hp] [-d display-id] [FILENAME]\n" " -h: this message\n" Loading @@ -61,7 +56,13 @@ static void usage(const char* pname, std::optional<PhysicalDisplayId> displayId) " see \"dumpsys SurfaceFlinger --display-id\" for valid display IDs.\n" "If FILENAME ends with .png it will be saved as a png.\n" "If FILENAME is not given, the results will be printed to stdout.\n", pname, defaultDisplayStr.c_str()); pname, displayIdOpt .transform([](DisplayId id) { return std::string(ftl::Concat(" (default: ", id.value, ')').str()); }) .value_or(std::string()) .c_str()); } static int32_t flinger2bitmapFormat(PixelFormat f) Loading Loading @@ -132,7 +133,7 @@ int main(int argc, char** argv) fprintf(stderr, "Failed to get ID for any displays.\n"); return 1; } std::optional<PhysicalDisplayId> displayId; std::optional<DisplayId> displayIdOpt; const char* pname = argv[0]; bool png = false; int c; Loading @@ -142,8 +143,8 @@ int main(int argc, char** argv) png = true; break; case 'd': displayId = DisplayId::fromValue<PhysicalDisplayId>(atoll(optarg)); if (!displayId) { displayIdOpt = DisplayId::fromValue(atoll(optarg)); if (!displayIdOpt) { fprintf(stderr, "Invalid display ID: %s\n", optarg); return 1; } Loading @@ -151,15 +152,15 @@ int main(int argc, char** argv) case '?': case 'h': if (ids.size() == 1) { displayId = ids.front(); displayIdOpt = ids.front(); } usage(pname, displayId); usage(pname, displayIdOpt); return 1; } } if (!displayId) { // no diplsay id is specified displayId = ids.front(); if (!displayIdOpt) { displayIdOpt = ids.front(); if (ids.size() > 1) { fprintf(stderr, "[Warning] Multiple displays were found, but no display id was specified! " Loading Loading @@ -191,7 +192,7 @@ int main(int argc, char** argv) } if (fd == -1) { usage(pname, displayId); usage(pname, displayIdOpt); return 1; } Loading @@ -208,7 +209,7 @@ int main(int argc, char** argv) ProcessState::self()->startThreadPool(); sp<SyncScreenCaptureListener> captureListener = new SyncScreenCaptureListener(); status_t result = ScreenshotClient::captureDisplay(*displayId, captureListener); status_t result = ScreenshotClient::captureDisplay(*displayIdOpt, captureListener); if (result != NO_ERROR) { close(fd); return 1; Loading core/java/Android.bp +11 −0 Original line number Diff line number Diff line Loading @@ -510,6 +510,17 @@ filegroup { ], } // common protolog sources without classes that rely on Android SDK filegroup { name: "protolog-common-no-android-src", srcs: [ ":protolog-common-src", ], exclude_srcs: [ "com/android/internal/protolog/common/ProtoLog.java", ], } java_library { name: "protolog-lib", platform_apis: true, Loading core/java/android/app/WallpaperManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -853,7 +853,7 @@ public class WallpaperManager { private static boolean isLockscreenLiveWallpaperEnabledHelper() { if (sGlobals == null) { sIsLockscreenLiveWallpaperEnabled = SystemProperties.getBoolean( "persist.wm.debug.lockscreen_live_wallpaper", false); "persist.wm.debug.lockscreen_live_wallpaper", true); } if (sIsLockscreenLiveWallpaperEnabled == null) { try { Loading core/java/android/view/InsetsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1374,7 +1374,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation // The requested visibilities should be delayed as well. Otherwise, we might override // the insets visibility before playing animation. setRequestedVisibleTypes(mReportedRequestedVisibleTypes, typesReady); setRequestedVisibleTypes(mReportedRequestedVisibleTypes, types); Trace.asyncTraceEnd(TRACE_TAG_VIEW, "IC.showRequestFromApi", 0); if (!fromIme) { Loading Loading
apex/jobscheduler/service/java/com/android/server/job/controllers/QuotaController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3153,7 +3153,8 @@ public final class QuotaController extends StateController { private static final int DEFAULT_MAX_SESSION_COUNT_PER_RATE_LIMITING_WINDOW = 20; private static final long DEFAULT_TIMING_SESSION_COALESCING_DURATION_MS = 5000; // 5 seconds private static final long DEFAULT_MIN_QUOTA_CHECK_DELAY_MS = MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_EXEMPTED_MS = 45 * MINUTE_IN_MILLIS; // TODO(267949143): set a different limit for headless system apps private static final long DEFAULT_EJ_LIMIT_EXEMPTED_MS = 60 * MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_ACTIVE_MS = 30 * MINUTE_IN_MILLIS; private static final long DEFAULT_EJ_LIMIT_WORKING_MS = DEFAULT_EJ_LIMIT_ACTIVE_MS; private static final long DEFAULT_EJ_LIMIT_FREQUENT_MS = 10 * MINUTE_IN_MILLIS; Loading
cmds/screencap/screencap.cpp +20 −19 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ #include <binder/ProcessState.h> #include <ftl/concat.h> #include <ftl/optional.h> #include <gui/ISurfaceComposer.h> #include <gui/SurfaceComposerClient.h> #include <gui/SyncScreenCaptureListener.h> Loading @@ -45,14 +47,7 @@ using namespace android; #define COLORSPACE_SRGB 1 #define COLORSPACE_DISPLAY_P3 2 static void usage(const char* pname, std::optional<PhysicalDisplayId> displayId) { std::string defaultDisplayStr = ""; if (!displayId) { defaultDisplayStr = ""; } else { defaultDisplayStr = " (default: " + to_string(*displayId) + ")"; } void usage(const char* pname, ftl::Optional<DisplayId> displayIdOpt) { fprintf(stderr, "usage: %s [-hp] [-d display-id] [FILENAME]\n" " -h: this message\n" Loading @@ -61,7 +56,13 @@ static void usage(const char* pname, std::optional<PhysicalDisplayId> displayId) " see \"dumpsys SurfaceFlinger --display-id\" for valid display IDs.\n" "If FILENAME ends with .png it will be saved as a png.\n" "If FILENAME is not given, the results will be printed to stdout.\n", pname, defaultDisplayStr.c_str()); pname, displayIdOpt .transform([](DisplayId id) { return std::string(ftl::Concat(" (default: ", id.value, ')').str()); }) .value_or(std::string()) .c_str()); } static int32_t flinger2bitmapFormat(PixelFormat f) Loading Loading @@ -132,7 +133,7 @@ int main(int argc, char** argv) fprintf(stderr, "Failed to get ID for any displays.\n"); return 1; } std::optional<PhysicalDisplayId> displayId; std::optional<DisplayId> displayIdOpt; const char* pname = argv[0]; bool png = false; int c; Loading @@ -142,8 +143,8 @@ int main(int argc, char** argv) png = true; break; case 'd': displayId = DisplayId::fromValue<PhysicalDisplayId>(atoll(optarg)); if (!displayId) { displayIdOpt = DisplayId::fromValue(atoll(optarg)); if (!displayIdOpt) { fprintf(stderr, "Invalid display ID: %s\n", optarg); return 1; } Loading @@ -151,15 +152,15 @@ int main(int argc, char** argv) case '?': case 'h': if (ids.size() == 1) { displayId = ids.front(); displayIdOpt = ids.front(); } usage(pname, displayId); usage(pname, displayIdOpt); return 1; } } if (!displayId) { // no diplsay id is specified displayId = ids.front(); if (!displayIdOpt) { displayIdOpt = ids.front(); if (ids.size() > 1) { fprintf(stderr, "[Warning] Multiple displays were found, but no display id was specified! " Loading Loading @@ -191,7 +192,7 @@ int main(int argc, char** argv) } if (fd == -1) { usage(pname, displayId); usage(pname, displayIdOpt); return 1; } Loading @@ -208,7 +209,7 @@ int main(int argc, char** argv) ProcessState::self()->startThreadPool(); sp<SyncScreenCaptureListener> captureListener = new SyncScreenCaptureListener(); status_t result = ScreenshotClient::captureDisplay(*displayId, captureListener); status_t result = ScreenshotClient::captureDisplay(*displayIdOpt, captureListener); if (result != NO_ERROR) { close(fd); return 1; Loading
core/java/Android.bp +11 −0 Original line number Diff line number Diff line Loading @@ -510,6 +510,17 @@ filegroup { ], } // common protolog sources without classes that rely on Android SDK filegroup { name: "protolog-common-no-android-src", srcs: [ ":protolog-common-src", ], exclude_srcs: [ "com/android/internal/protolog/common/ProtoLog.java", ], } java_library { name: "protolog-lib", platform_apis: true, Loading
core/java/android/app/WallpaperManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -853,7 +853,7 @@ public class WallpaperManager { private static boolean isLockscreenLiveWallpaperEnabledHelper() { if (sGlobals == null) { sIsLockscreenLiveWallpaperEnabled = SystemProperties.getBoolean( "persist.wm.debug.lockscreen_live_wallpaper", false); "persist.wm.debug.lockscreen_live_wallpaper", true); } if (sIsLockscreenLiveWallpaperEnabled == null) { try { Loading
core/java/android/view/InsetsController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1374,7 +1374,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation // The requested visibilities should be delayed as well. Otherwise, we might override // the insets visibility before playing animation. setRequestedVisibleTypes(mReportedRequestedVisibleTypes, typesReady); setRequestedVisibleTypes(mReportedRequestedVisibleTypes, types); Trace.asyncTraceEnd(TRACE_TAG_VIEW, "IC.showRequestFromApi", 0); if (!fromIme) { Loading