Commit Graph

6225 Commits

Author SHA1 Message Date
TreeHugger Robot
268e3ac09d Merge "Make the ANGLE Toast Message Updatable via ANGLE APK" 2019-03-08 01:21:35 +00:00
Tim Van Patten
b225b4437b Make the ANGLE Toast Message Updatable via ANGLE APK
This change creates an intent that the ANGLE APK will respond to with a
string that will be presented within a Toast message to the user when
ANGLE is in use for an app.

Bug: 127693688
Test: atest CtsAngleIntegrationHostTestCases
Test: Verify Toast message contains the updated message.
Change-Id: If2ecd4dba96bcfba5511e76d24a5aa5e64c2ea18
2019-03-07 11:39:59 -07:00
Wei Wang
52b40ae27d Merge "Address API review comments for Thermal API" 2019-03-07 18:25:38 +00:00
Wei Wang
7a49ff6c50 Address API review comments for Thermal API
Bug: 126945111
Test: atest cts/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/PowerManagerTest.java
Change-Id: I7ec1ea057b11c223c46d02ad63de335cb0a0d4dd
2019-03-07 00:08:47 -08:00
Steven Moreland
26190d5536 Merge "NativeHandle.java: set Nullable/NonNull" am: 6792c595a2 am: b5e85d6bb6
am: 927dee8243

Change-Id: I1caab5b13688b9d76e8d6ba59c83e32a6218be7e
2019-03-06 12:47:15 -08:00
Steven Moreland
927dee8243 Merge "NativeHandle.java: set Nullable/NonNull" am: 6792c595a2
am: b5e85d6bb6

Change-Id: If8aa9d85330683954856e2f1f2755d251bd0bb36
2019-03-06 12:37:46 -08:00
Steven Moreland
b5e85d6bb6 Merge "NativeHandle.java: set Nullable/NonNull"
am: 6792c595a2

Change-Id: I09cdb1ce3cc64cb8ca42a13b307b93b5dab8e42c
2019-03-06 12:28:23 -08:00
Steven Moreland
0ff061a607 NativeHandle.java: set Nullable/NonNull
Fixes: 126700972
Test: hidl_test_java
Test: atest android.os.cts.HwBinderTest
Change-Id: Id45c6d0757913014028f7629db78b64f27cad084
2019-03-06 17:17:30 +00:00
TreeHugger Robot
4a2d678eed Merge "Update UserManager APIs to follow API guidelines." 2019-03-06 17:17:23 +00:00
Jeff Sharkey
715b34be65 Merge "Add trivial nullability annotations." 2019-03-06 16:17:56 +00:00
Jeff Sharkey
ba4acd5575 Add trivial nullability annotations.
Bug: 126702077, 126701263, 126700858, 126700497
Test: manual
Change-Id: Ic6599f59e6e079097a35cb2bf24c59a87627c8b7
Exempt-From-Owner-Approval: Trivial API annotations
2019-03-05 19:48:55 -07:00
TreeHugger Robot
aa447cfa81 Merge "Add @NonNull to createPredefined" 2019-03-06 01:08:20 +00:00
TreeHugger Robot
55805af719 Merge "Add receiver info to IncidentdDetails in statsd_config" 2019-03-05 09:15:31 +00:00
Leo Hsu
5183933b11 Update UserManager APIs to follow API guidelines.
Annotate @Nullable/@NonNull to arguments and return values.

Bug: 126700763
Test: Manually
Change-Id: I3cce7c4a6751240b64c0dbb6ee627579cdaf63be
2019-03-05 17:11:03 +08:00
Yao Chen
a8e78b9b88 Add receiver info to IncidentdDetails in statsd_config
This can be used for sending a broadcast to an app which incidentd
would share the incident report with.

Test: added unit test in statsd_test

Change-Id: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
2019-03-04 23:47:27 -08:00
Arthur Hung
cfdc975ffc Add @NonNull to createPredefined
Bug: 126699931
Test: Manual
Change-Id: Id90841415ebf9fbd681767cc36c65154d9980286
2019-03-05 09:36:59 +08:00
Christian Wailes
adb444f742 Merge "Renamed blastula to unspecialized app process (usap)" 2019-03-02 01:38:11 +00:00
Kweku Adams
f6410681b9 Merge "Adding new Battery Saver location mode." 2019-03-01 22:17:29 +00:00
Chris Wailes
7e797b6f26 Renamed blastula to unspecialized app process (usap)
Bug: 123017829
Test: make & boot & launch apps
Change-Id: Icfb9f8f4ebabacece817735d60d232cf3afb4e08
2019-03-01 13:18:48 -08:00
Jeff Sharkey
a09312df67 Merge "All Parcelable CREATOR fields are @NonNull." 2019-03-01 14:58:28 +00:00
Andrei-Valentin Onea
b9fadbfc94 Merge "Add statslog logging for hidden api usage" 2019-03-01 11:47:15 +00:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
a30e5c389f To be @Nullable or @NonNull, that is the question.
Bug: 126699288, 126699496, 126700389
Bug: 126700085, 126701638, 126702005, 126700497
Test: manual
Change-Id: Idcbc2722ddcf014a9e5cef14321b4e2ce30adf9c
2019-03-01 06:26:39 +00:00
TreeHugger Robot
36f9c79bf5 Merge "Add missing ServiceType values to IntDef." 2019-03-01 03:53:29 +00:00
Kweku Adams
27c65cca30 Add missing ServiceType values to IntDef.
FORCE_BACKGROUND_CHECK and NIGHT_MODE were accidentally excluded from
the ServiceType @IntDef definition.

Bug: N/A
Test: N/A
Change-Id: Ib66bb2ce004a6577515ac185d0aef2dd5f1ed49b
2019-02-28 15:32:31 -08:00
Kweku Adams
4fb074e7f4 Adding new Battery Saver location mode.
When this new mode (LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF) is
enabled, LocationManagerService will avoid sending almost all
LocationRequests to providers. The only requests that will continue to
be sent will be providers are the requests that ignore location
settings.

Bug: 121256487
Bug: 122849003
Bug: 119261320
Test: atest android.os.cts.batterysaving.BatterySaverLocationTest
Change-Id: Iee95a6fb5ca11d4db7a0f0661bf3cb1051a5d710
2019-02-28 14:55:39 -08:00
TreeHugger Robot
7452b628e1 Merge "Rename createPrebaked to createPredefined" 2019-02-28 14:50:09 +00:00
Jeff Sharkey
36274999fe Developer option to disable legacy greylist.
The app developers on the legacy greylist need an option to disable
the greylist so they can debug.

Bug: 124818022
Test: manual
Change-Id: I84785a235830761794dee5c603c1ea43f8ace73e
2019-02-27 12:09:59 -07:00
Andrei Onea
e8e150dbff Add statslog logging for hidden api usage
Statslog logging is done alongside the old logging, with different
sampling rates.

Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t \
        android.cts.statsd.atom.UidAtomTests#testHiddenApiUsed
Bug: 119217680
Change-Id: If7c38eaee3a3c08434c2e4f2dac45c659ea9cb12
2019-02-27 16:16:44 +00:00
Sudheer Shanka
4068df3262 Merge "Add an @IntDef to indicate notify event types." 2019-02-27 01:48:17 +00:00
Sudheer Shanka
c27b15197a Add an @IntDef to indicate notify event types.
Fixes: 126354778
Test: n/a
Change-Id: I965b8b75b6b1e25483bf83b1aea6ec192d055c8d
2019-02-26 11:17:42 -08:00
Christian Wailes
bda1b8f60f Merge changes Ib8f3b5b0,I66b01930,I560cdf9c
* changes:
  Teaches the System Server to enable the Zygote's blastula pool.
  Added pool management code around zygote state changes.
  Improved file descriptor cleanup in Zygote.
2019-02-26 18:21:49 +00:00
Sudheer Shanka
47d759f2c4 Merge "Look for visible vols for a user under /mnt/user/<userId>/package/." 2019-02-26 16:18:15 +00:00
Arthur Hung
00657b8946 Rename createPrebaked to createPredefined
Bug: 126179814
Test: manual
Change-Id: I5536ed6c43b6f6b2e6891200af2043280a1c55bc
2019-02-26 11:56:40 +08:00
TreeHugger Robot
52480bee82 Merge "Fix Battery Saver location bugs." 2019-02-25 21:33:36 +00:00
Nandana Dutt
3267e6513a Merge "Add a new error code for disallowing concurrent bugreports" am: 2badc1e434 am: 1ae35be3e3
am: a973019596

Change-Id: Ie9a4bdc744a103b10a30df415524c94e46957ee5
2019-02-25 11:52:59 -08:00
Nandana Dutt
a973019596 Merge "Add a new error code for disallowing concurrent bugreports" am: 2badc1e434
am: 1ae35be3e3

Change-Id: I7440be8e4605466958d072dd977e0019f13b2193
2019-02-25 10:20:50 -08:00
Sudheer Shanka
e51005da04 Look for visible vols for a user under /mnt/user/<userId>/package/.
Currently, we pass down visisble volumes for a user to zygote so that
it can set up appropriate bind mounts after forking. This method has
atleast a couple of race conditions, so instead make zygote just
look under /mnt/user/<userId>/package for volumes that need to be
handled for a particular user.

Bug: 126069494
Test: manual
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Iab47eb34d38a25dfda4a686db9b7203ad4885a93
2019-02-24 10:24:09 -08:00
Chris Wailes
db132a3e1f Teaches the System Server to enable the Zygote's blastula pool.
This patch adds the code necessary to communicate changes to the
blastula_pool_enabled system property from the  System Server to the
zygote process.  Checking this property asynchronously from both the
system server and the zygote can lead to a deadlock, so instead the
system server checks the property and notifies the zygote.

By default the blastula pool is disabled.

Test: adb shell device_config put runtime_native blastula_pool_enabled true
Test: adb shell device_config put runtime_native blastula_pool_enabled false
Change-Id: Ib8f3b5b0eb78349255b9b316d683a69747616ef7
2019-02-22 18:54:28 -08:00
Chris Wailes
ae93714d05 Improved file descriptor cleanup in Zygote.
Enabling the blastula pool exercised a previously unused codepath that
wrote to the log.  This caused a socket to be opened when it wasn't
expected to be.  This patch re-closes the logging socket before applying
the SELinux policy for the new application.

This patch also adds code to clean up blastula table entries in
processes spawned from the Zygote and disables the blastula pool code
for child zygotes.

Bug: 123409530
Test: make & flash & boot & check logs for SELinux denials
Change-Id: I560cdf9c42502574d25ab25a0f8afa3eb6de307f
2019-02-22 18:50:56 -08:00
Kweku Adams
5e0052b1eb Fix Battery Saver location bugs.
1) Actively disabling LOCATION_MODE instead of LOCATION_PROVIDERS_ALLOWED
since the latter is deprecated and not supported.

2) The LOCATION_MODE_FOREGROUND_ONLY flag wasn't used anywhere. As
such, it was essentially no different from LOCATION_MODE_NO_CHANGE. I've
implemented the behavior in LocationManagerService so it works properly.

3) GnssLocationProvider only turned off GPS when the location mode was
LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF, but not the mode was
LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF. I've fixed it so GPS is
turned off in both modes.

4) PowerManager looked at the global battery saver state to determine if
the location mode should be used. This was fine for full Battery Saver,
but would be a problem with adaptive Battery Saver. The proper thing to
do is to just look at the local 'batterySaverEnabled' flag.

Bug: 121256487
Bug: 122849003
Bug: 119261320
Test: atest CtsBatterySavingTestCases
Change-Id: I8973d27fb050d9892bb97021712d9cf9743e8939
2019-02-22 17:07:08 -08:00
Xin Li
f90d07b1b3 Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master 2019-02-23 00:39:16 +00:00
Yiwei Zhang
5ccf21b382 Merge "Game Driver: process sphal libraries in GPU service" 2019-02-22 21:45:56 +00:00
Wale Ogunwale
691af68a3c Added some TestApi that are already used by CTS
Allows us to remove the use of private platform API from CTS.

Bug: 124134247
Test: builds
Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
2019-02-21 20:15:56 -08:00
Leo Hsu
ab28fff9f9 Add UserManager APIs to SystemApi.
Bug: 124940146
Test: make
Change-Id: I1cac9a6106b3da099e08f10f2c08d90e9f515e42
2019-02-22 01:08:14 +00:00
Xin Li
b455c3a7f3 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I2f9a524f2ba552de3f62e343075cf0abf400bbae
2019-02-21 16:02:06 -08:00
Nandana Dutt
cfb3d4856e Add a new error code for disallowing concurrent bugreports
BUG:123571915
Test: manual
Change-Id: I8787137c3cfeb33aacfa439f6eab1a668977e572
2019-02-21 16:17:54 +00:00
Yiwei Zhang
1c51f05ab4 Game Driver: process sphal libraries in GPU service
This change adds the sphal libraries text file parsing to the GPU
service. As the result, when the Game Driver apk is updated, the sphal
library list will be read out to the GAME_DRIVER_SPHAL_LIBRARIES
settings global property to be used in the graphics environment to
extend the current linker namespace.

Bug: 124448366
Test: Build, flash and boot. Install the apk to verify settings global.

Change-Id: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
2019-02-21 00:26:17 -08:00
Yiwei Zhang
786386074b Merge "Game Driver: update the format of driver build date" 2019-02-21 07:35:11 +00:00
Christian Wailes
a2f67c96cc Merge "Updated Zygote IPC related comments." am: f8881b6821 am: c850654edc
am: 49574608ae

Change-Id: Ie14f3a5377599f3542dedc0a42a87ca3a41ca9ba
2019-02-20 16:56:15 -08:00