Commit Graph

7442 Commits

Author SHA1 Message Date
Anton Hansson
db59208477 Merge "Hide Status @IntDef" 2020-01-27 19:10:21 +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
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
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
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
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
Automerger Merge Worker
f184b6b8d6 Merge "Vibrator: Have Always-On Check DND/LowPower Modes" am: 301beddcdb
Change-Id: I7540f05ce7397f83bb62404dcbca6e3e0848444a
2020-01-17 20:05:26 +00:00
Ytai Ben-Tsvi
70ba0ac09e Improve HidlMemory annotation
Change-Id: I6f977f52b96a9a2dd1c47b027d5f314ff92f473f
Bug: 147287669
2020-01-17 11:27:41 -08:00
Pierre Barbier de Reuille
d56a615a01 Merge "New UserManager API to request quiet mode." 2020-01-17 16:50:29 +00:00
Zimuzo Ezeozue
8a06d26a5b Merge "Revert "Fix canonicalizing /sdcard"" 2020-01-17 14:50:39 +00:00
Pierre Barbier de Reuille
17eaf740d1 New UserManager API to request quiet mode.
Adding new API to request the end of quiet mode without asking the user
for their credentials.

Bug: 145732320
Change-Id: I80f313d269d46400fdb21ef9265fa7c0c3b5c7d0
Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testQuietMode_noCredentialRequest'
2020-01-17 13:14:24 +00:00
Robert Horvath
28d29b36a5 Merge "Go to sleep on boot when booting in quiescent mode" 2020-01-17 11:13:53 +00:00
Treehugger Robot
301beddcdb Merge "Vibrator: Have Always-On Check DND/LowPower Modes" 2020-01-17 01:39:04 +00:00
Zimuzo Ezeozue
85f83ff275 Revert "Fix canonicalizing /sdcard"
This reverts commit 50e73370ca.

Reason for revert: ag/10112811 is better and more reliable fix

Change-Id: Ice0c0e7a033013b01156898cd58df14b999e700f
2020-01-17 01:28:36 +00:00
TreeHugger Robot
8da97bddbd Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master 2020-01-16 18:29:18 +00:00
Automerger Merge Worker
a4f3890ea0 Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1 am: 8d29b6d4eb
Change-Id: I0fee940b91344e4a9ed352578bac796de0f11628
2020-01-16 15:30:36 +00:00
Automerger Merge Worker
8d29b6d4eb Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1
Change-Id: I5ba1a7499c53d4b1a70a0ed6ba279cff742422c7
2020-01-16 13:17:36 +00:00
Treehugger Robot
03e365f649 Merge "Improve DSU log and notification message" 2020-01-16 12:15:26 +00:00
Automerger Merge Worker
15e32bf125 Merge "Support multiple DSU installations" am: 69d181aecc am: fd9ae75440 am: feb7f9cf81
Change-Id: Iec8edb8568d707b827a8d4e70373333d96d6ab10
2020-01-16 06:28:53 +00:00