Commit Graph

7456 Commits

Author SHA1 Message Date
TreeHugger Robot
f335551b69 Merge "Add haptic composition API." 2020-01-28 12:17:28 +00:00
Automerger Merge Worker
6100cdb620 Merge "Add @RequiresPermission annotation to reboot APIs" am: 147863d9fc am: dab92d5611 am: f613e166f2
Change-Id: I4c9e098636584896625e31fb2ee5099aaef12278
2020-01-28 11:18:55 +00:00
Automerger Merge Worker
f613e166f2 Merge "Add @RequiresPermission annotation to reboot APIs" am: 147863d9fc am: dab92d5611
Change-Id: I6d1bd40becf31ddf274c79dd34b38c90f5f83cbe
2020-01-28 11:04:18 +00:00
Nikita Ioffe
dab92d5611 Merge "Add @RequiresPermission annotation to reboot APIs"
am: 147863d9fc

Change-Id: I5ca246de4d4f8912271d222c3e82e96d3d47fa6d
2020-01-28 02:57:56 -08:00
Peter Wang
f3ad937082 Merge "[Telephony Mainline] Make ServiceRegisterer static" 2020-01-28 00:02:14 +00:00
Automerger Merge Worker
251a110c45 DO NOT MERGE: Adds artificial package handler latency am: de626c28d7 am: 895d932835
Change-Id: Icbf1e5c7475260bee1c147f92aa328dd29f4fb17
2020-01-27 20:22:29 +00:00
Automerger Merge Worker
895d932835 DO NOT MERGE: Adds artificial package handler latency am: de626c28d7
Change-Id: I5303926e34c973ca9e4a7d12d0f4cd46e2fbcde8
2020-01-27 20:14:59 +00:00
Anton Hansson
db59208477 Merge "Hide Status @IntDef" 2020-01-27 19:10:21 +00:00
Michael Wright
274640e756 Add haptic composition API.
Not all effects will be thought of by system owners. By exposing the
underlying primitives we use to design effects we can enable our own
future development in an unbundled fashion while at the same time
providing the ecosystem more freedom to create novel and meaningful
haptic experiences.

This CL implements the fundamental parts of the APIs but doesn't yet do
a number of things (e.g. intensity scaling, breaking up long delay
durations with NOOP primitives, etc.)

Bug: 139762802
Test: atest VibratorTest
      manual testing
Change-Id: I15d12f34137a81ca64390b4ef06927341b6ca1ac
2020-01-27 18:53:55 +00:00
David Su
ae86c54233 Merge "WifiActivityEnergyInfo: clean up API surface" 2020-01-27 18:47:27 +00:00
Anton Hansson
925f0a51a3 Hide Status @IntDef
Typedefs aren't meant to be exposed in the stubs

Bug: 145982314
Test: m
Change-Id: Ied82f8fe225bb74506e24ffdcb45d34edb71570c
2020-01-27 13:19:46 +00:00
Nikita Ioffe
169fbf6d5c Add @RequiresPermission annotation to reboot APIs
Test: builds
Bug: 148286076
Fixes: 148286076
Change-Id: If58234a2197655c51b8aa43d6966097046f5030a
2020-01-27 10:58:30 +00:00
Peter Wang
b43cc01144 [Telephony Mainline] Make ServiceRegisterer static
Bug: 142255256
Test: Build
Change-Id: Ia6860ce495c0957b6ca942356f267298fe8a2843
2020-01-27 16:11:05 +08:00
Marco Ballesio
b83a44dcd9 Merge "Add support for freezing cached apps" 2020-01-25 03:39:53 +00:00
Nate Myren
32af0ecb7e Merge "Disable user-facing historical app ops methods" 2020-01-25 01:40:14 +00:00
Ruchir Rastogi
c7e7661b7f Merge "Delete StatsLogEventWrapper" 2020-01-25 01:17:24 +00:00
Marco Ballesio
bdaf16e72a Add support for freezing cached apps
Freeze apps when cached and unfreeze them once removed from the cache or
killed. Frozen apps will not use any CPU cycles, reducing power
consumption for misbehaving processes which might attempt to run
while cached.

Change-Id: Ib055352062825db62927015c33ee0a285aa4630c
Depends-On: pa/1495867, ag/9976279, ag/9981529, ag/9987868¬
Bug: 143308662
Test: manual, atest CachedAppOptimizerTest
2020-01-24 15:08:01 -08:00
Nate Myren
697650b3b7 Disable user-facing historical app ops methods
Disable the ability to see historical app ops using dumpsys, and by
calling "getHistoricalOps", unless the calling package has an
instrumentation, or is the statsd package.

Fixes: 148227477
Test: attempt to call into getHistoricalOps while not an instrumented
application or statsd. The method should return an empty bundle. Run
"adb shell dumpsys appops --history" should return "no such arg", and
"adb shell dumpsys appops -h" should not show "--history" in the args.

Change-Id: Ie5ad9a90ffc0473aba958199450bcff9315f71a6
2020-01-24 14:13:00 -08:00
Ying Xu
4b0dec268d Merge "[Telephony Mainline] Remove hidden API usages in CarrierAppUtils" 2020-01-24 20:55:31 +00:00
Ruchir Rastogi
4e65e38795 Delete StatsLogEventWrapper
Since all pullers now use StatsEvent instead of StatsLogEventWrapper,
this class can be deleted.

Test: m -j
Test: m -j statsd_test
Bug: 146578681
Change-Id: I63013768ee13af0235f8cd857ca3fc16d2fd877f
2020-01-24 12:07:25 -08:00
Roshan Pius
81d7cece57 Partial Revert of ag/10161061
Making battery stats final broke telephony unit tests (old mockito does
not allow mocking final objects).

Bug: 148282682
Test: Compiles
Change-Id: Id65ba702aa551c7c23bbd6efa527ef2b930478f5
2020-01-24 18:01:46 +00:00
Automerger Merge Worker
e29d03dbad Merge changes from topic "remove_ce_caching" am: 02e09b98b0
Change-Id: I064eaec6c1c5c056c850b71534b1e768a69a8d3a
2020-01-24 17:16:33 +00:00
Jeffrey Huang
4329c0d2ed Merge changes I9ea3677d,I0a59dce8
* changes:
  Migrate away from using ServiceManager
  Migrate StatsManager to apex
2020-01-24 02:04:06 +00:00
Peter Wang
09014f1048 [Telephony Mainline] Remove hidden API usages in CarrierAppUtils
Bug: 146904426
Test: Build
Change-Id: Ib307e565b85e7d9a142efc7e3348b823dc46643d
2020-01-24 09:22:25 +08:00
Barani Muthukumaran
add57fcc09 Provide secret to vold to remove credential
vold requires the secret to retrieve the CE key
to re-wrap without auth when the user removes
the credential.

Test: Set credential, remove credential, swipe to none
and vice-versa.
Unit tests under locksettings

Bug: 26948053
Merged-In: I14503404ddd330cced2f2ff0e8f500cbe3f96e28
Change-Id: I14503404ddd330cced2f2ff0e8f500cbe3f96e28
2020-01-24 00:43:57 +00:00
Ying Xu
15a530b09c Merge "[Telephony Mainline] Remove usages of IBinder's for classes that do not belong to Telephony" 2020-01-24 00:31:28 +00:00
Jeffrey Huang
f58800b66a Migrate away from using ServiceManager
Create a wrapper class to access binder objects
published by statsd mainline module

Bug: 147923515
Test: atest com.google.android.statsd.gts.StatsdHostTestCases
Change-Id: I9ea3677d88c790c856e4e89318ae2ce67ac7df1e
2020-01-23 15:47:08 -08:00
David Su
681e9b1f96 WifiActivityEnergyInfo: clean up API surface
- Removed setters and made object immutable.
- Added annotations where appropriate.
- Marked isValid() as @hide.
- Refactored BatteryExternalStatsWorker to not
    use setters

Bug: 148218218
Test: compiles
Change-Id: I799149f5ec6a88192f686cc23e947466765b2a1e
2020-01-23 14:57:54 -08:00
Peter Wang
51b09fa089 [Telephony Mainline] Remove usages of IBinder's for classes that do not
belong to Telephony

Bug: 142255256
Bug: 147703450
Change-Id: Ic687858415d1812eae2777e8dd7d96a0d8814528
Fix: 147703450
Test: Build
2020-01-23 11:53:32 -08:00
Roshan Pius
ed8b445e18 BatteryStatsManager: Address API council feedback
Bug: 144925883
Test: Compiles, device boots up & connects to wifi networks
Change-Id: If3e96428057232053b7edcf0442fdc001aa2dc89
2020-01-23 08:12:39 -08:00
Santos Cordon
8f6ae9798e Merge "Add display configuration files." 2020-01-22 18:35:04 +00:00
Santos Cordon
4505e5e6e8 Add display configuration files.
Adds a static display configuration file for specifying static display
configurations as a sustainable API.

Bug: 131813802
Test: Verify brightness changes work as expected.  Verify changes going
through system to HAL conversion.
Exempt-From-Owner-Approval: I am new owner of lights, but OWNERS rights hasnt yet propogated.
Change-Id: I17922267f4695bc042d7c0687d4dcc10554e1b85
2020-01-22 18:34:39 +00:00
Ying Xu
6fc642806f Merge "[Telephony Mainline] Telephony uses own user activity notification" 2020-01-22 18:30:06 +00:00
Yogisha Dixit
648a443653 Merge "Add APIs in PowerManager for suppressing ambient display." 2020-01-22 16:01:42 +00:00
Yogisha Dixit
9c20afa9d0 Add APIs in PowerManager for suppressing ambient display.
Added 4 methods:
boolean isAmbientDisplayAvailable()
void suppressAmbientDisplay(String token, boolean suppress)
boolean isAmbientDisplaySuppressedForToken(String token)
boolean isAmbientDisplaySuppressed()

This CL simply adds the API to toggle SUPPRESS_DOZE. The code for
actually turning off doze when the secure setting is updated will be
implemented in a follow-up CL.

Test: manual, atest FrameworksServicesTests:PowerManagerServiceTest
Bug: 147584235, 147587449
Change-Id: I54f46f75fb84aae2ae806690e73eeb427ad8e8e1
2020-01-22 13:20:06 +00:00
TreeHugger Robot
c083476809 Merge "Public API: Incident report section registration" 2020-01-22 04:20:15 +00:00
Mike Ma
c2ab45a221 Public API: Incident report section registration
Mark incident report section registration and unregistration as public
APIs, and protect them with
android.permission.REGISTER_INCIDENT_REPORT_SECTION.

Bug: 144789854
Test: Build
Change-Id: I0d79ca12054292412e10a63ba2e6f45a149066a9
2020-01-21 18:34:18 -08:00
Jing Ji
3dd4c345b6 Merge "Add an API android.os.Process.waitForProcessDeath" 2020-01-22 01:44:04 +00:00
Ytai Ben-tsvi
4d1830d141 Merge "Improve HidlMemory annotation" 2020-01-22 00:51:35 +00:00
Automerger Merge Worker
0cdac4ad7c AppZygote: start with the correct instruction set am: 041f016971 am: cbf8e9dd7a am: 893b3728cb
Change-Id: Ie039ef64d0d307262d0ffe53353747d64c720544
2020-01-21 23:48:34 +00:00
Sudheer Shanka
ce7f6e8925 Merge "Implement BlobStoreManagerService." 2020-01-21 23:32:36 +00:00
Lev Rumyantsev
cbf8e9dd7a AppZygote: start with the correct instruction set
am: 041f016971

Change-Id: I85ed95566f9cb6d38b02619f47e2efe6ebcf9c61
2020-01-21 15:18:34 -08:00
Lev Rumyantsev
5f30976b8c Merge changes from topic "native_bridge_for_app_zygote"
* changes:
  Zygote: support native-bridge for app-zygote
  AppZygote: start with the correct instruction set
2020-01-21 23:09:34 +00:00
Peter Wang
6a92dd47ba [Telephony Mainline] Telephony uses own user activity notification
Bug: 143536562
Test: Build
Change-Id: I9b25d63ff33d5b643dbf5bf0b7b509ce49b57a8f
2020-01-21 14:38:26 -08:00
Iavor-Valentin Iftime
c2813cf16c Merge "Change some UserManager APIs to @SystemApi" 2020-01-21 18:21:57 +00:00
Sudheer Shanka
ab1d416044 Implement BlobStoreManagerService.
This change implements the following APIs with a few TODOs:
- BlobStoreManager.{create,open,delete}Sesison()
- BlobStoreManager.Session.{openWrite,openRead,close,abandon}()
- BlobStoreManager.Session.allow*Access()
- BlobStoreManager.Session.commit()
- BlobStoreManager.openBlob()
- BlobStoreManager.{acquire,release}Lease()

Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: Id4eb8269f013b5c0ffca63c8251a2553e818091d
2020-01-20 19:17:39 -08:00
Hall Liu
6392e2548d Merge "Add system service for accessing SystemConfig" 2020-01-20 21:34:28 +00:00
Valentin Iftime
89df4c8d17 Change some UserManager APIs to @SystemApi
Added @SystemApi to all APIs currently used by TvProfileService that were @hide only.

Bug: 139914710
Test: Apps built with stable_system or experimental_system can use the APIs
Change-Id: I3499244b4d545a7a9401c7941663045bcd89c6fe
2020-01-20 09:39:40 +01:00
Jing Ji
9f21e8923d Add an API android.os.Process.waitForProcessDeath
And use this API to wait for the death of a process from
the system_server side.

Bug: 145838141
Test: Manual
Change-Id: I594843a383c3375d967e608e0c6f8d36fa2e78a3
2020-01-20 00:26:27 -08:00
Paul Crowley
658b4ca415 Merge "Provide secret to vold to remove credential" 2020-01-19 21:58:01 +00:00