summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorKweku Adams <kwekua@google.com>2019-05-30 14:45:39 -0700
committerKweku Adams <kwekua@google.com>2019-05-31 10:57:48 -0700
commit966e72b82216ce866d1d4203c3e121a656ceee87 (patch)
tree32aa7e0db41ac48defd46a8f36c5316ee321d7dc /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2e45d4fb47f781680cb8d26a65e5556b56b94f72 (diff)
Adding checks for bad periodic job scheduling.
1. There are cases where a periodic job is scheduled in a past time period. Without any other constraints, the job could be run much too frequently and spam the system. Adding these checks makes sure the jobs are scheduled with sane values. 2. Adding an upper limit on the job period to avoid overflow cases. 3. Changing int to long to avoid overflow. Bug: 133654009 Test: atest com.android.server.job.JobSchedulerServiceTest Test: atest com.android.server.job.controllers.QuotaControllerTest Test: atest com.android.server.job.controllers.TimeControllerTest Test: atest CtsJobSchedulerTestCases Change-Id: I97616efb6c37b7201eb926d16c0d9be450bf2ba4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions