Commit Graph

6276 Commits

Author SHA1 Message Date
TreeHugger Robot
0b5d5d58c6 Merge "Add trace points for GraphicsEnvironment setup" 2019-03-19 12:16:19 +00:00
Yiwei Zhang
e6bdc381af Add trace points for GraphicsEnvironment setup
Bug: 126775624
Test: build, flash and boot. Take systrace to verify.
Change-Id: I190f84878fb714acb2cf25dfc5d8b546b3bbd67a
2019-03-18 22:16:42 -07:00
Adam Bookatz
484a77d026 Merge "UserManager.getUserName w/ GET_ACCOUNTS_PRIVILEGED" 2019-03-18 16:58:03 +00:00
Andrei-Valentin Onea
e3cbf906ee Merge "Add @UnsupportedAppUsage annotations" 2019-03-18 10:56:26 +00:00
Jeff Sharkey
1400382856 Wire up getStorageVolume() for synthetic paths.
When a getStorageVolume(File) call is for a synthetic path backed
by a content:// Uri, translate it and call getStorageVolume(Uri).

Bug: 124700423
Test: manual
Change-Id: I0f0dc4d5c2205e9d602e4ec2b036fb7822ba1e33
2019-03-17 13:12:30 -06:00
Josh Gao
2cc8c8a492 Merge "ParcelFileDescriptor: improve javadoc." am: c4e2b24d87 am: bc7222d46d
am: b578ef38ed

Change-Id: I031c3238d57583bf0d041f00fa33e586d5984316
2019-03-15 20:12:09 -07:00
Josh Gao
b578ef38ed Merge "ParcelFileDescriptor: improve javadoc." am: c4e2b24d87
am: bc7222d46d

Change-Id: I4a6d999b503985a84f44ad487bb36a505d80de6a
2019-03-15 20:02:34 -07:00
Josh Gao
bc7222d46d Merge "ParcelFileDescriptor: improve javadoc."
am: c4e2b24d87

Change-Id: Ic01db5d3f9c7527f2458aa4cf10bd2c43d685bed
2019-03-15 19:52:34 -07:00
Treehugger Robot
c4e2b24d87 Merge "ParcelFileDescriptor: improve javadoc." 2019-03-16 02:36:30 +00:00
Andrei Onea
24ec321bf3 Add @UnsupportedAppUsage annotations
For packages:
  android.os

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I4ece0a3f37f88fc2508cb965092aed7cabc61819
2019-03-15 18:44:27 +00:00
TreeHugger Robot
d84ddb0c4f Merge "Rename setPowerSaverMode to setPowerSaverModeEnabled" 2019-03-15 16:15:41 +00:00
Nandana Dutt
2fe07f808a Merge changes I39e84219,I8d0e12cb am: cae221acac am: 20324711c0
am: 8ea4083e36

Change-Id: I4521a62ce5cd461efd9c936bd5f630f653e48809
2019-03-15 03:56:27 -07:00
Nandana Dutt
8ea4083e36 Merge changes I39e84219,I8d0e12cb am: cae221acac
am: 20324711c0

Change-Id: I6d345de879380cd2797008efa79e3befa978f136
2019-03-15 03:47:20 -07:00
Nandana Dutt
20324711c0 Merge changes I39e84219,I8d0e12cb
am: cae221acac

Change-Id: I5fe14b5b25a1b22e184aa02e658c81d9d0238541
2019-03-15 03:39:51 -07:00
Treehugger Robot
cae221acac Merge changes I39e84219,I8d0e12cb
* changes:
  Bugreporting API: Take ownership of fds.
  Don't manage dumpstate lifecycle from system server
2019-03-15 10:28:06 +00:00
Matt Pape
e9b680a3ae Remove interfaces for runtime and runtime_native namespaces.
Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: I73157c127a246719afb37eca65cabf2e3d24b38a
2019-03-14 10:07:41 -07:00
Nandana Dutt
9d6ff2968e Bugreporting API: Take ownership of fds.
BUG: 126434607
FIXES: 127649051
Test: manual
Change-Id: I39e8421925c53061b6bc2954dffe3bccb7b3314d
2019-03-14 16:16:33 +00:00
Martijn Coenen
b8d244425e Merge "Add StorageManager checkpoint APIs." 2019-03-14 07:25:18 +00:00
Chris Wailes
fe3a348e7b Addressed deferred CL feedback comments.
This CL addresses several bits of feedback from previous CLs:
* ZygoteState.mABIList => ZygoteState.mAbiList
* Adding appropriate whitespace
* Finalizing variables where appropriate
* TEMP_RETRY_FAILURE around write
* Zygote.getSystemProperty => Zygote.getConfigurationProperty

Test: m
Test: Treehugger
Change-Id: I5ae4c8dfc336c7511bee375a80966abb1ead275e
2019-03-13 16:50:54 -07:00
Bookatz
cde3d92f9d UserManager.getUserName w/ GET_ACCOUNTS_PRIVILEGED
Previously, UserManager.getUserName() and getUserIcon()
required the MANAGE_USERS permission; this has been relaxed
so that the GET_ACCOUNTS_PRIVILEGED permission is also sufficient.

Test: atest UserManagerServiceUserInfoTest
Fixes: 127826840

Change-Id: If90b82313ecf23ea56dca3d24f23a4ca9caa939a
2019-03-13 12:21:00 -07:00
Nandana Dutt
be80e309ea Don't manage dumpstate lifecycle from system server
Dumpstate now exits correctly when it's finished. So we don't have to
manage its lifecycle from system server.

BUG: 123571915
Test: manually verified dumpstate service dies
Change-Id: I8d0e12cb607cda74b5cc36e26306ea106da67ba3
2019-03-13 15:19:55 +00:00
Abhijeet Kaur
ec0a01ec78 Merge "Clean up bugreport API." am: 2e44838064
am: 8deb2ecb31

Change-Id: I9054327b5f9b072986dd2d7ef5b38716138132c9
2019-03-13 07:30:03 -07:00
Abhijeet Kaur
8deb2ecb31 Merge "Clean up bugreport API."
am: 2e44838064

Change-Id: Ib21ecea8a3dc63808784aba20f018ddd012c03c8
2019-03-13 07:20:42 -07:00
Abhijeet Kaur
0bbb9f6882 Clean up bugreport API.
Make BugreportManager class final.

Add FloatRange annotation for BugreportManager.onProgress() function's
parameter.

Make @IntDef in BugreportMode hidden.

Bug: 126434607
Test: builds
Change-Id: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
Merged-In: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
2019-03-13 11:49:42 +00:00
Martijn Coenen
f04aca4fc4 Add StorageManager checkpoint APIs.
To allow the framework to check for filesystem checkpointing support,
and to allow it to request a checkpoint for the next boot.

Bug: 126740531
Test: builds
Change-Id: I640d319397d850cb2dc64deca80bdb70838cc9e8
2019-03-13 09:24:33 +01:00
Salvador Martinez
c8c4c5d33d Rename setPowerSaverMode to setPowerSaverModeEnabled
This will make it consistent with the boolean input

Test: phone boots, tests pass
Bug: 117154042
Change-Id: I30356413eafb90a93f10092ef4b0eeebe7ff7575
2019-03-12 15:58:04 -07:00
Christian Wailes
cbee8d1b23 Merge changes I29d91abd,Ie13d2c1a
* changes:
  Fixes initialization bug in USAP pool properties.
  Fixed a nullptr exception in ZygoteProcess.java.
2019-03-12 21:07:31 +00:00
Chris Wailes
84efefd666 Fixes initialization bug in USAP pool properties.
This patch fixes an initialization order bug in the USAP pool policy
management code.  Previously, bad values were used when initializing the
USAP pool when it was enabled on device boot.  This patch ensures that
the policy system properties have been checked before the pool is
initialized.

Test: Boot with USAP pool enabled
Change-Id: I29d91abd511bc35c7a70a3a56668c7ee2290864b
2019-03-12 11:19:42 -07:00
Chris Wailes
b203ac2fe8 Fixed a nullptr exception in ZygoteProcess.java.
This patch fixes a nullptr exception in ZygoteProcess caused by
ChildZygoteProcess not providing the ZygoteState with a secondary zygote
socket address.

Test: Launch Chrome with the USAP pool enabled
Change-Id: Ie13d2c1a84a79fbc45b4913aeb1d78b442201479
2019-03-12 11:19:39 -07:00
TreeHugger Robot
0cf8c88d12 Merge "Build: Add @NonNull for PREVIEW_SDK_FINGERPRINT." 2019-03-12 11:33:43 +00:00
Varun Shah
98221767e0 Merge "Added UserManager#getUserSwitchability." 2019-03-12 01:39:32 +00:00
Varun Shah
ea69440c6f Merge "Update UserManager#removeUser to follow API guidelines." 2019-03-12 01:39:32 +00:00
TreeHugger Robot
5657282f07 Merge "Battery Stats Dumpsys Readability Fixes" 2019-03-12 01:35:41 +00:00
TreeHugger Robot
b4ed947385 Merge "ContentSuggestionsService - allow user manager to disable content suggestions." 2019-03-12 01:06:03 +00:00
TreeHugger Robot
2c2e9533ce Merge "Remove brightness adjustment check." 2019-03-11 22:52:54 +00:00
Varun Shah
50ef200892 Added UserManager#getUserSwitchability.
The new SystemApi indicates whether user switching is currently allowed
or not. This API provides more detail than the already existing
UserManager#canSwitchUsers (now deprecated) by telling the user why
users cannot be switched via a flag that's returned.

Bug: 124883455
Test: atest android.server.pm.UserManagerTest#testGetUserSwitchability
Change-Id: Ib3ac2f063f3638a172fa339fd2330604b910c7f4
2019-03-11 14:49:03 -07:00
Zak Cohen
3e12ac7434 ContentSuggestionsService - allow user manager to disable content suggestions.
Bug: 126227834
Test: compile
Change-Id: I2e8f4a87b1d4adf0d3dd591380d50ee28ae20379
2019-03-11 21:36:19 +00:00
Kweku Adams
3d79da81be Remove brightness adjustment check.
Bug: 127825565
Test: N/A
Change-Id: I35147d027dd88d951d03b5dece2d39551390c060
2019-03-11 11:03:55 -07:00
Tao Bao
cfd454f918 Merge "Add Javadoc for UpdateEngine constants." 2019-03-11 16:46:31 +00:00
Narayan Kamath
714bf4968e Build: Add @NonNull for PREVIEW_SDK_FINGERPRINT.
Addresses API council feedback.

Test: make update-api && make checkapi
Bug: 126702454
Change-Id: I99137ac33ebf011f179b19a35a7a83d062865430
2019-03-11 13:25:36 +00:00
Abhijeet Kaur
789635b6c1 Merge "Clean up bugreport API." 2019-03-11 13:14:41 +00:00
Abhijeet Kaur
552e257a9d Clean up bugreport API.
Make BugreportManager class final.

Add FloatRange annotation for BugreportManager.onProgress() function's
parameter.

Make @IntDef in BugreportMode hidden.

Bug: 126434607
Test: builds
Change-Id: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
2019-03-11 11:07:01 +00:00
Olivier Gaillard
6d0059f79c Merge "Add @Nullable and @NonNull to onTransactStarted" 2019-03-11 09:51:18 +00:00
Gavin Corkery
2eb1e2e459 Merge "Rename data/pkg_staging to data/app-staging" 2019-03-09 12:41:28 +00:00
Josh Gao
4a64663c0f ParcelFileDescriptor: improve javadoc.
Add some warnings to adoptFd, getFd, and from[Datagram]Socket.

Bug: http://b/111790184
Test: none
Change-Id: I1963e5c28ad6201660c37ee5f3cfe6c8bf0ff392
2019-03-08 15:36:23 -08:00
Tao Bao
aa028f0a60 Add Javadoc for UpdateEngine constants.
Fixes: 123597185
Test: N/A
Change-Id: Iab3a43b2e65687b14424e86bc532180138c97ef0
2019-03-08 15:23:29 -08:00
Jake Wharton
720530ba1d Add nullability annotations to Handler's public API
Fixes: 126702574
Test: none
Change-Id: I396665e0971c6dc8eabbcfa32dee07bcdce13061
2019-03-08 14:00:43 -05:00
TreeHugger Robot
268e3ac09d Merge "Make the ANGLE Toast Message Updatable via ANGLE APK" 2019-03-08 01:21:35 +00:00
Varun Shah
9533e627ca Update UserManager#removeUser to follow API guidelines.
Updating the javadoc to explain the return value and adding in a null
check for the UserHandle passed in.

Bug: 124883455
Test: atest com.android.server.pm.UserManagerTest#testRemoveUserByHandle
Test: atest com.android.server.pm.UserManagerTest#testRemoveUserByHandle_ThrowsException
Change-Id: I1c2a7e140544001d6341b423890281ce53d7b38c
2019-03-07 13:53:06 -08: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