Commit Graph

824 Commits

Author SHA1 Message Date
Anton Hansson
b95b9d1458 Merge "Create stub and add api tracking for service-permission" into rvc-dev am: b943b6a183
Change-Id: Ifbe71384d5be9e9f87964e0fdde234934d9ce9f5
2020-03-23 18:57:50 +00:00
Anton Hansson
b943b6a183 Merge "Create stub and add api tracking for service-permission" into rvc-dev 2020-03-23 18:41:22 +00:00
Anton Hansson
d44130e6cf Merge "Add default configs for module service stubs" into rvc-dev am: 4299ac20c9
Change-Id: I7e933e1c68a6a2e3d7fb641cf0128242d958d48d
2020-03-23 17:13:09 +00:00
Anton Hansson
4299ac20c9 Merge "Add default configs for module service stubs" into rvc-dev 2020-03-23 16:54:05 +00:00
Anton Hansson
1db3316876 Create stub and add api tracking for service-permission
Bug: 147768409
Test: m
Change-Id: I824497fe4d3c3dc7bcd63bf1a2b0a2b0bd9172f1
2020-03-23 15:08:44 +00:00
Anton Hansson
9976ef97d7 Merge "Move statsd TEST_MAPPINGS to statsd root" into rvc-dev am: d83682eab3
Change-Id: I2a9c75a6e6931e955408ced2456f954e94825754
2020-03-23 15:08:25 +00:00
Anton Hansson
180ec39abe Add default configs for module service stubs
To be used by individual modules with service components that
define system_server APIs.

Bug: 147768409
Test: m
Change-Id: Iff6a5a840c5dd7731e881d7db379915375d02324
2020-03-23 15:08:04 +00:00
Anton Hansson
d83682eab3 Merge "Move statsd TEST_MAPPINGS to statsd root" into rvc-dev 2020-03-23 15:05:06 +00:00
Sudheer Shanka
7ae4fa36d4 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev am: add060f917
Change-Id: I44f5d7994470c9f58928115b984f64e3e4eccfdb
2020-03-22 07:40:20 +00:00
Sudheer Shanka
add060f917 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev 2020-03-22 07:21:17 +00:00
TreeHugger Robot
764b48015d Merge "Statsd update for native puller api feedback" into rvc-dev am: 1e377304cb
Change-Id: I262405b3861a97fbf037538b9bb710ad7fae9c3f
2020-03-21 03:17:00 +00:00
TreeHugger Robot
1e377304cb Merge "Statsd update for native puller api feedback" into rvc-dev 2020-03-21 03:15:06 +00:00
TreeHugger Robot
0c7ad7832b Merge "Add MediaParser test cases to apex media presubmit" into rvc-dev am: 054a8136bd
Change-Id: I99bb57ca28831c744998a739a39de51471fcafe1
2020-03-20 19:15:12 +00:00
TreeHugger Robot
790ecaa02c Merge "Unrestrict updated buggy apps." into rvc-dev am: 25098aa147
Change-Id: Ia1727084ea3f785c265963205ba3bd8a0a8a5ce5
2020-03-20 19:14:08 +00:00
Sudheer Shanka
a80a997a3b Add BlobStoreManager.getRemainingLeaseQuotaBytes.
+ Add LimitExceededException which can be used to indicate
that an app is doing something that will cause it to violate
any limits enforced by the System.

Bug: 150239703
Test: atest --test-mapping apex/blobstore
Change-Id: I7584d1b8618be546080b0eddb2fe35de2611f9e7
2020-03-20 12:06:53 -07:00
TreeHugger Robot
054a8136bd Merge "Add MediaParser test cases to apex media presubmit" into rvc-dev 2020-03-20 19:01:09 +00:00
TreeHugger Robot
25098aa147 Merge "Unrestrict updated buggy apps." into rvc-dev 2020-03-20 18:59:12 +00:00
TreeHugger Robot
e7710a5518 Merge "Add StringDef for parameter names" into rvc-dev am: d3e9c716eb
Change-Id: I2c95b6f6d1c1926e34203a391c8ceb078789086a
2020-03-20 18:40:31 +00:00
TreeHugger Robot
41a1a9e3a7 Merge "Add parser name constants and a StringDef for them" into rvc-dev am: 1e9da0f457
Change-Id: Ie98b83f74fd56e0b69c27ed16a33c55067c4349a
2020-03-20 18:40:08 +00:00
TreeHugger Robot
d3e9c716eb Merge "Add StringDef for parameter names" into rvc-dev 2020-03-20 18:37:18 +00:00
TreeHugger Robot
1e9da0f457 Merge "Add parser name constants and a StringDef for them" into rvc-dev 2020-03-20 18:36:58 +00:00
Tej Singh
73597dcb9a Statsd update for native puller api feedback
Update statsd to take in times in milliseconds instead of nanoseconds.

Also make appropriate updates for graphics stats, odpm, subsystem sleep
state, and LibStatsPullTests

Test: atest LibStatsPullTests
Test: bit statsd_test:*
Bug: 150788562
Change-Id: I593552d6c50bb4dcb89ca9cc1c737781653e7cc5
2020-03-20 11:16:18 -07:00
Jeffrey Huang
57ebd41dba Merge "Put two way binder calls on new thread" into rvc-dev am: 32d9a6bbcc
Change-Id: I682bb52721b0cba14c2e459e0664c1293eeceeed
2020-03-20 17:59:16 +00:00
Jeffrey Huang
32d9a6bbcc Merge "Put two way binder calls on new thread" into rvc-dev 2020-03-20 17:56:07 +00:00
Santiago Seifert
2068b63cca Add StringDef for parameter names
Bug: 150854787
Test: CTS.
Change-Id: I37bb32607094efd81b52daad59b2f595a4e5cf33
2020-03-20 16:42:26 +00:00
Santiago Seifert
5f0547f84f Add parser name constants and a StringDef for them
Bug: 150854787
Test: CTS.
Change-Id: Ie16526d81decb660f6a96f7ad3a82e3b0e3d0de5
2020-03-20 16:42:21 +00:00
Anton Hansson
82bf89e705 Merge "Compile service-statsd against the system server SDK" into rvc-dev am: 97773cbe29
Change-Id: I574af9cdbb59db4f3696e2aea9737277658aa458
2020-03-20 10:36:03 +00:00
Anton Hansson
97773cbe29 Merge "Compile service-statsd against the system server SDK" into rvc-dev 2020-03-20 10:33:25 +00:00
Anton Hansson
919c961d2d Merge "Migrate service-statsd off IoUtils" into rvc-dev am: 037d723a02
Change-Id: If4eaa6f19261f4b9aaea6555608a6c98de3d128f
2020-03-20 10:03:09 +00:00
Anton Hansson
037d723a02 Merge "Migrate service-statsd off IoUtils" into rvc-dev 2020-03-20 09:49:13 +00:00
Anton Hansson
e851a66098 Merge "Remove stale comment and add copyright notice" into rvc-dev am: 9c8ec232b1
Change-Id: I1ff9c845ce049b4834d3b8dd17044338bcbf48ed
2020-03-20 09:30:13 +00:00
Anton Hansson
9c8ec232b1 Merge "Remove stale comment and add copyright notice" into rvc-dev 2020-03-20 09:28:33 +00:00
TreeHugger Robot
6ac2855513 Merge "Enforce permission on native puller API" into rvc-dev am: 591bb7b1fe
Change-Id: I2f222e33eb5984e181ee643268c934cd33276f9a
2020-03-19 21:36:52 +00:00
TreeHugger Robot
591bb7b1fe Merge "Enforce permission on native puller API" into rvc-dev 2020-03-19 21:12:52 +00:00
Jeffrey Huang
cf66b50ca6 Put two way binder calls on new thread
Bug: 150401679
Test: Manual, rebooted device, registered pulling alarm
Change-Id: I2d39a1e148a1948745da236307766446cbfadb12
2020-03-19 12:48:01 -07:00
Sudheer Shanka
04de47062f Merge "Delete a blob after the last lease of it is released." into rvc-dev am: 0c0abbf7f7
Change-Id: Iee70add7241beb64e60cef4122f02aa664866126
2020-03-19 19:28:04 +00:00
Sudheer Shanka
4c53dfb139 Merge "Dump no. of open fds correctly." into rvc-dev am: b63e5b27a0
Change-Id: I8d7f0061b340b7081adf6edeecd3e29369f342d4
2020-03-19 19:27:46 +00:00
Sudheer Shanka
0c0abbf7f7 Merge "Delete a blob after the last lease of it is released." into rvc-dev 2020-03-19 19:26:24 +00:00
Sudheer Shanka
b63e5b27a0 Merge "Dump no. of open fds correctly." into rvc-dev 2020-03-19 19:25:19 +00:00
Tej Singh
10458eca11 Enforce permission on native puller API
Test: m
Test: no security exceptions on boot
Test: atest LibStatsPullTests
Bug: 148955001
Change-Id: I4b06bfc41be2925270eaddd717f1499d98739dae
2020-03-19 11:54:11 -07:00
Santiago Seifert
c899843882 Add MediaParser test cases to apex media presubmit
Bug: 147308781
Test: CTS.
Change-Id: Ib2d9a181d55913f105005554ac26938b5403c761
2020-03-19 18:33:04 +00:00
Kweku Adams
917f8a45dc Unrestrict updated buggy apps.
If an app is put into the RESTRICTED bucket because the system thinks
it's buggy, we can bring it out of the bucket when the app is updated,
assuming that the bug is fixed in the new version. If there are other
reasons that the app is restricted, then we don't bring it out.

Bug: 149507105
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: Ib66fa5363ad763625e9a4aa93c8a44851e9259e8
2020-03-19 10:27:02 -07:00
Anton Hansson
0511558771 Compile service-statsd against the system server SDK
This ensures this jar doesn't link against any non-sdk jars,
and hides the implementation names of the actual stub jars.

Bug: 146757305
Test: m
Change-Id: Ia80ada60acd9b059f566dec349ac1c4308298fd1
2020-03-19 15:46:11 +00:00
Anton Hansson
cf404f6474 Migrate service-statsd off IoUtils
There's an equivalent public method in FileUtils, so use that
one instead for now.

Note that the method is deprecated, so there may be reason to
move off it altogether.

Bug: 146757305
Test: m
Change-Id: Ia4f29a255bd02e16c1fa8be331d3e7834a2cefdc
2020-03-19 15:40:36 +00:00
Anton Hansson
f3cf62b1f7 Remove stale comment and add copyright notice
The service-statsd blueprint had some stale TODO's in it.

Bug: 146757305
Test: m
Change-Id: Iebd4409f95b7ea1f950df6c615dce09c8852f076
2020-03-19 15:39:37 +00:00
Anton Hansson
58cd241e97 Move statsd TEST_MAPPINGS to statsd root
Changes in statsd need to trigger the tests, not just changes
to the tests themselves.

Bug: 151868293
Test: presubmit
Change-Id: Ia271c07df52da8c765c683457c63e310282f66e5
2020-03-19 09:52:38 +00:00
Sudheer Shanka
09deac5816 Dump no. of open fds correctly.
Fixes: 151378533
Test: atest --test-mapping apex/blobstore
Change-Id: Ib52352ffd3334734122a62ab33c75ddbdda0aa81
2020-03-18 21:12:01 -07:00
Sudheer Shanka
c0fd5fa650 Delete a blob after the last lease of it is released.
Also, avoid deleting it if it was committed recently
to allow app that contributed it to acquire a lease.

Bug: 151378266
Test: atest --test-mapping apex/blobstore
Change-Id: I32f9bc0d0e9d74e7a07c279b5057f53ccb610673
2020-03-18 20:56:29 -07:00
TreeHugger Robot
dd2f86b8ac Merge "Revert "Build FrameworkStatsdTest test against the sdk"" into rvc-dev am: 2d76bb60fe
Change-Id: Ie4e68db428cddcc936573f712d016cc5c356c8d5
2020-03-18 23:28:11 +00:00
TreeHugger Robot
2d76bb60fe Merge "Revert "Build FrameworkStatsdTest test against the sdk"" into rvc-dev 2020-03-18 23:24:05 +00:00