Loading .prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShimPriv_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_arm64/CtsShimPriv.apk" } Loading .prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShim_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_arm64/CtsShim.apk" } Loading .prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShimPriv_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_x86_64/CtsShimPriv.apk" } Loading .prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShim_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_x86_64/CtsShim.apk" } Loading apex/jobscheduler/service/java/com/android/server/alarm/AlarmManagerService.java +8 −5 Original line number Diff line number Diff line Loading @@ -2006,16 +2006,12 @@ public class AlarmManagerService extends SystemService { windowLength = INTERVAL_DAY; } else if ((flags & FLAG_PRIORITIZE) == 0 && windowLength < minAllowedWindow) { // Prioritized alarms are exempt from minimum window limits. if (CompatChanges.isChangeEnabled( if (!isExemptFromMinWindowRestrictions(callingUid) && CompatChanges.isChangeEnabled( AlarmManager.ENFORCE_MINIMUM_WINDOW_ON_INEXACT_ALARMS, callingPackage, UserHandle.getUserHandleForUid(callingUid))) { Slog.w(TAG, "Window length " + windowLength + "ms too short; expanding to " + minAllowedWindow + "ms."); windowLength = minAllowedWindow; } else { // TODO (b/185199076): Remove temporary log to catch breaking apps. Slog.wtf(TAG, "Short window " + windowLength + "ms specified by " + callingPackage); } } maxElapsed = triggerElapsed + windowLength; Loading Loading @@ -2408,6 +2404,13 @@ public class AlarmManagerService extends SystemService { return hasPermission; } /** * Returns true if the given uid can set window to be as small as it wants. */ boolean isExemptFromMinWindowRestrictions(int uid) { return isExemptFromExactAlarmPermission(uid); } /** * Returns true if the given uid does not require SCHEDULE_EXACT_ALARM to set exact, * allow-while-idle alarms. Loading Loading
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShimPriv_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_arm64/CtsShimPriv.apk" } Loading
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShim_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_arm64/CtsShim.apk" } Loading
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShimPriv_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_x86_64/CtsShimPriv.apk" } Loading
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShim_apk.asciipb +1 −1 Original line number Diff line number Diff line drops { android_build_drop { build_id: "7396576" build_id: "7464984" target: "CtsShim" source_file: "aosp_x86_64/CtsShim.apk" } Loading
apex/jobscheduler/service/java/com/android/server/alarm/AlarmManagerService.java +8 −5 Original line number Diff line number Diff line Loading @@ -2006,16 +2006,12 @@ public class AlarmManagerService extends SystemService { windowLength = INTERVAL_DAY; } else if ((flags & FLAG_PRIORITIZE) == 0 && windowLength < minAllowedWindow) { // Prioritized alarms are exempt from minimum window limits. if (CompatChanges.isChangeEnabled( if (!isExemptFromMinWindowRestrictions(callingUid) && CompatChanges.isChangeEnabled( AlarmManager.ENFORCE_MINIMUM_WINDOW_ON_INEXACT_ALARMS, callingPackage, UserHandle.getUserHandleForUid(callingUid))) { Slog.w(TAG, "Window length " + windowLength + "ms too short; expanding to " + minAllowedWindow + "ms."); windowLength = minAllowedWindow; } else { // TODO (b/185199076): Remove temporary log to catch breaking apps. Slog.wtf(TAG, "Short window " + windowLength + "ms specified by " + callingPackage); } } maxElapsed = triggerElapsed + windowLength; Loading Loading @@ -2408,6 +2404,13 @@ public class AlarmManagerService extends SystemService { return hasPermission; } /** * Returns true if the given uid can set window to be as small as it wants. */ boolean isExemptFromMinWindowRestrictions(int uid) { return isExemptFromExactAlarmPermission(uid); } /** * Returns true if the given uid does not require SCHEDULE_EXACT_ALARM to set exact, * allow-while-idle alarms. Loading